2015-04-10 16:35:46 +02:00
|
|
|
From: Some One <nobody@opensuse.org>
|
|
|
|
Date: Thu, 9 Apr 2015 14:55:39 +0200
|
|
|
|
Subject: [PATCH] suse-no-run-ldconfig.diff
|
|
|
|
|
2011-04-21 12:12:02 +02:00
|
|
|
===================================================================
|
2015-04-10 16:35:46 +02:00
|
|
|
---
|
|
|
|
SpecCheck.py | 12 ++++++++++++
|
|
|
|
1 file changed, 12 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/SpecCheck.py b/SpecCheck.py
|
|
|
|
index 63897f2..12b6f2b 100644
|
|
|
|
--- a/SpecCheck.py
|
|
|
|
+++ b/SpecCheck.py
|
|
|
|
@@ -448,6 +448,10 @@ class SpecCheck(AbstractCheck.AbstractCheck):
|
|
|
|
'comparison-operator-in-deptoken',
|
2009-09-16 18:41:21 +02:00
|
|
|
conf)
|
2008-04-17 04:52:37 +02:00
|
|
|
|
|
|
|
+ if current_section in ('post', 'postun'):
|
|
|
|
+ if line.find('%run_ldconfig') != -1:
|
|
|
|
+ printWarning(pkg, 'deprecated-use-of-%run_ldconfig')
|
|
|
|
+
|
|
|
|
if current_section == 'changelog':
|
2010-04-01 16:20:38 +02:00
|
|
|
for match in AbstractCheck.macro_regex.findall(line):
|
|
|
|
res = re.match('%+', match)
|
2015-04-10 16:35:46 +02:00
|
|
|
@@ -773,6 +777,14 @@ may break short circuit builds.''',
|
2008-04-17 04:52:37 +02:00
|
|
|
'''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
|
2010-11-26 17:47:21 +01:00
|
|
|
+is deprecated. Please use /sbin/ldconfig instead, or
|
2008-04-17 04:52:37 +02:00
|
|
|
+
|
|
|
|
+%post(un) -p /sbin/ldconfig
|
|
|
|
+
|
2010-11-26 17:47:21 +01:00
|
|
|
+in the case where ldconfig is the only command to be executed.''',
|
2008-04-17 04:52:37 +02:00
|
|
|
+
|
|
|
|
'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
|