summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--cfg.mk1
-rw-r--r--top/maint.mk9
3 files changed, 8 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index 3a2b2c96aa..b99af4e9f0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2016-08-18 Pino Toscano <ptoscano@redhat.com>
+ main.mk: remove sc_program_name, since there is no more need to
+ use set_program_name in tools (getprogname is enough for most
+ of the cases).
+ * cfg.mk (local-checks-to-skip): Remove sc_program_name.
+ * top/maint.mk (sc_program_name): Remove.
+
+2016-08-18 Pino Toscano <ptoscano@redhat.com>
+
Port tests away from progname, since modules that need the
program name already depend on getprogname.
* modules/acl-tests (Depends-on): Remove progname.
diff --git a/cfg.mk b/cfg.mk
index 5b9456bdef..75d932964a 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -27,7 +27,6 @@ local-checks-to-skip = \
sc_makefile_at_at_check \
sc_makefile_path_separator_check \
sc_obsolete_symbols \
- sc_program_name \
sc_prohibit_HAVE_MBRTOWC \
sc_prohibit_S_IS_definition \
sc_prohibit_always_true_header_tests \
diff --git a/top/maint.mk b/top/maint.mk
index 868e10f004..c32f8b6d0e 100644
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -717,15 +717,6 @@ sc_changelog:
$(_sc_search_regexp)
# Ensure that each .c file containing a "main" function also
-# calls set_program_name.
-sc_program_name:
- @require='set_program_name *\(.*\);' \
- in_vc_files='\.c$$' \
- containing='\<main *(' \
- halt='the above files do not call set_program_name' \
- $(_sc_search_regexp)
-
-# Ensure that each .c file containing a "main" function also
# calls bindtextdomain.
sc_bindtextdomain:
@require='bindtextdomain *\(' \