Bug #326553 - check for preserve_old_lib
authorSamuli Suominen <ssuominen@gentoo.org>
Fri, 2 Jul 2010 13:24:03 +0000 (06:24 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 8 Jul 2010 07:57:41 +0000 (00:57 -0700)
pym/repoman/checks.py
pym/repoman/errors.py

index 4d12b07fdca69e76920784bc1d0dc635fbf95978..025fdf9bf9332eee416b45c94dc12fd2709dcdc7 100644 (file)
@@ -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+)$')
 
index c419b79faea1b8ce9f9cbd6dab0a672b91b4a322..97bd2829faabf9d56a1af549d4435ca4fb937835 100644 (file)
@@ -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'