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'
EMakeParallelDisabled, EMakeParallelDisabledViaMAKEOPTS, NoAsNeeded,
DeprecatedBindnowFlags, SrcUnpackPatches, WantAutoDefaultValue,
SrcCompileEconf, Eapi3DeprecatedFuncs,
- Eapi4IncompatibleFuncs, Eapi4GoneVars, BuiltWithUse)))
+ Eapi4IncompatibleFuncs, Eapi4GoneVars, BuiltWithUse,
+ PreserveOldLib)))
_here_doc_re = re.compile(r'.*\s<<[-]?(\w+)$')
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'