summaryrefslogtreecommitdiff
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 /pym/repoman
parentWarn if FEATURES contains unknown values and don't keep them (bug #326561) (diff)
downloadportage-multirepo-68823f808f1a76886c1e38100870f3eb4d746a56.tar.gz
portage-multirepo-68823f808f1a76886c1e38100870f3eb4d746a56.tar.bz2
portage-multirepo-68823f808f1a76886c1e38100870f3eb4d746a56.zip
Bug #326553 - check for preserve_old_lib
Diffstat (limited to 'pym/repoman')
-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 4d12b07f..025fdf9b 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 c419b79f..97bd2829 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'