diff --git a/helpers/create-abi-dump.py b/helpers/create-abi-dump.py --- a/helpers/create-abi-dump.py +++ b/helpers/create-abi-dump.py @@ -201,14 +201,17 @@ version = self.version headers = [] # type: List[str] libs = [] # type: List[str] + additionalIncludes = [] # type: List[str] # From the target information we previously collected... # Grab the list of libraries and include headers for abi-compliance-checker for target in self.targets.values(): # Check each include directory to see if we need to add it.... for i in target['include_dirs']: # ignore general folders, as there are no lib specific headers are placed if i == '/usr/include' or i.endswith("/KF5"): + if not i in additionalIncludes: + additionalIncludes.append(i) continue # Otherwise, if we don't already have it - add it to the list! @@ -233,7 +236,10 @@ /usr/include/clang/AST /usr/lib64/clang/6.0.1/include - """.format(version=version, headers="\n".join(headers), libs="\n".join(libs)) # replace with f-String in Python 3.6 + + {additionalIncludes} + + """.format(version=version, headers="\n".join(headers), libs="\n".join(libs), additionalIncludes="\n".join(additionalIncludes)) # replace with f-String in Python 3.6 # Write the generated XML out to a file to pass to abi-compliance-checker # We will give this to abi-compliance-checker using it's --dump parameter @@ -283,5 +289,5 @@ scmRevision = max([t['SONAME'] for t in library.targets.values()]) # a more hackish way, to save the SONAME in the metadata # Create a name for this entry in the Package archive and store it there - packageName = "{name}_{scmRevision}".format(name=lib.name, scmRevision=scmRevision) + packageName = "{name}_{scmRevision}".format(name=library.name, scmRevision=scmRevision) ourArchive.storePackage(packageName, fileName, scmRevision)