--- portage-2.2_rc64.orig/pym/repoman/checks.py 2010-02-27 01:48:56.000000000 +0200 +++ portage-2.2_rc64.orig/pym/repoman/checks.py 2010-07-02 09:12:42.000000000 +0300 @@ -376,6 +376,12 @@ re = re.compile(r'.*\$\(no-as-needed\)') error = errors.NO_AS_NEEDED +class NoAsNeeded(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' --- portage-2.2_rc64.orig/pym/repoman/errors.py 2010-01-24 19:10:52.000000000 +0200 +++ portage-2.2_rc64.orig/pym/repoman/errors.py 2010-07-02 09:12:46.000000000 +0300 @@ -18,4 +18,5 @@ 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'