SHA256
1
0
forked from pool/rpmlint
rpmlint/suse-no-run-ldconfig.diff
OBS User autobuild 5e20a03ee9 Accepting request 30231 from Base:System
Copy from Base:System/rpmlint based on submit request 30231 from user lnussel

OBS-URL: https://build.opensuse.org/request/show/30231
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpmlint?expand=0&rev=50
2010-01-27 17:18:50 +00:00

29 lines
1.0 KiB
Diff

--- SpecCheck.py
+++ SpecCheck.py
@@ -407,6 +407,10 @@
printWarning(pkg, 'comparison-operator-in-deptoken',
conf)
+ if current_section in ('post', 'postun'):
+ if line.find('%run_ldconfig') != -1:
+ printWarning(pkg, 'deprecated-use-of-%run_ldconfig')
+
if current_section == 'changelog':
res = AbstractCheck.macro_regex.search(line)
if res and len(res.group(1)) % 2:
@@ -627,6 +631,14 @@
'''Make check or other automated regression test should be run in %check, as
they can be disabled with a rpm macro for short circuiting purposes.''',
+'deprecated-use-of-%run_ldconfig',
+'''According to the new SUSE Packaging Conventions, the use of %run_ldconfig
+is deprecated. use
+
+%post(un) -p /sbin/ldconfig
+
+instead.''',
+
'macro-in-%changelog',
'''Macros are expanded in %changelog too, which can in unfortunate cases lead
to the package not building at all, or other subtle unexpected conditions that