summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2010-07-02 06:24:03 -0700
committerZac Medico <zmedico@gentoo.org>2010-07-08 00:57:41 -0700
commit68823f808f1a76886c1e38100870f3eb4d746a56 (patch)
treed87273e0c79a1a492d341663cdf6811e98753f5c
parent8f89f480b8b66b1b2254e937406e4b2b92813894 (diff)
downloadportage-68823f808f1a76886c1e38100870f3eb4d746a56.tar.gz
portage-68823f808f1a76886c1e38100870f3eb4d746a56.tar.bz2
portage-68823f808f1a76886c1e38100870f3eb4d746a56.zip
Bug #326553 - check for preserve_old_lib
-rw-r--r--pym/repoman/checks.py9
-rw-r--r--pym/repoman/errors.py1
2 files changed, 9 insertions, 1 deletions
diff --git a/pym/repoman/checks.py b/pym/repoman/checks.py
index 4d12b07fd..025fdf9bf 100644
--- a/pym/repoman/checks.py
+++ b/pym/repoman/checks.py
@@ -381,6 +381,12 @@ class NoAsNeeded(LineCheck):
re = re.compile(r'.*\$\(no-as-needed\)')
error = errors.NO_AS_NEEDED
+class PreserveOldLib(LineCheck):
+ """Check for calls to the preserve_old_lib function."""
+ repoman_check_name = 'upstream.workaround'
+ re = re.compile(r'.*preserve_old_lib')
+ error = errors.PRESERVE_OLD_LIB
+
class DeprecatedBindnowFlags(LineCheck):
"""Check for calls to the deprecated bindnow-flags function."""
repoman_check_name = 'ebuild.minorsyn'
@@ -501,7 +507,8 @@ _constant_checks = tuple((c() for c in (
EMakeParallelDisabled, EMakeParallelDisabledViaMAKEOPTS, NoAsNeeded,
DeprecatedBindnowFlags, SrcUnpackPatches, WantAutoDefaultValue,
SrcCompileEconf, Eapi3DeprecatedFuncs,
- Eapi4IncompatibleFuncs, Eapi4GoneVars, BuiltWithUse)))
+ Eapi4IncompatibleFuncs, Eapi4GoneVars, BuiltWithUse,
+ PreserveOldLib)))
_here_doc_re = re.compile(r'.*\s<<[-]?(\w+)$')
diff --git a/pym/repoman/errors.py b/pym/repoman/errors.py
index c419b79fa..97bd2829f 100644
--- a/pym/repoman/errors.py
+++ b/pym/repoman/errors.py
@@ -17,4 +17,5 @@ EMAKE_PARALLEL_DISABLED_VIA_MAKEOPTS = 'Upstream parallel compilation bug (MAKEO
DEPRECATED_BINDNOW_FLAGS = 'Deprecated bindnow-flags call on line: %d'
EAPI_DEFINED_AFTER_INHERIT = 'EAPI defined after inherit on line: %d'
NO_AS_NEEDED = 'Upstream asneeded linking bug (no-as-needed on line: %d)'
+PRESERVE_OLD_LIB = 'Upstream ABI change workaround on line: %d'
BUILT_WITH_USE = 'built_with_use on line: %d'