summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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'