2e06474
diff -up rpmlint-rpmlint-1.9/BinariesCheck.py.buildid rpmlint-rpmlint-1.9/BinariesCheck.py
2e06474
--- rpmlint-rpmlint-1.9/BinariesCheck.py.buildid	2017-07-17 09:45:17.415365410 -0400
2e06474
+++ rpmlint-rpmlint-1.9/BinariesCheck.py	2017-07-17 09:45:28.719085854 -0400
2e06474
@@ -294,7 +294,7 @@ usr_lib_regex = re.compile('^/usr/lib(64
2e06474
 bin_regex = re.compile('^(/usr(/X11R6)?)?/s?bin/')
2e06474
 soversion_regex = re.compile('.*?([0-9][.0-9]*)\\.so|.*\\.so\\.([0-9][.0-9]*).*')
2e06474
 reference_regex = re.compile('\.la$|^/usr/lib(64)?/pkgconfig/')
2e06474
-usr_lib_exception_regex = re.compile(Config.getOption('UsrLibBinaryException', '^/usr/lib(64)?/(perl|python|ruby|menu|pkgconfig|ocaml|lib[^/]+\.(so|l?a)$|bonobo/servers/)'))
2e06474
+usr_lib_exception_regex = re.compile(Config.getOption('UsrLibBinaryException', r'^/usr/lib(64)?/(perl|python|ruby|menu|pkgconfig|ocaml|lib[^/]+\.(so|l?a)$|bonobo/servers/|\.build-id)'))
2e06474
 srcname_regex = re.compile('(.*?)-[0-9]')
2e06474
 invalid_dir_ref_regex = re.compile('/(home|tmp)(\W|$)')
2e06474
 ocaml_mixed_regex = re.compile('^Caml1999X0\d\d$')
2e06474
diff -up rpmlint-rpmlint-1.9/FilesCheck.py.buildid rpmlint-rpmlint-1.9/FilesCheck.py
2e06474
--- rpmlint-rpmlint-1.9/FilesCheck.py.buildid	2017-07-17 09:45:37.733862908 -0400
2e06474
+++ rpmlint-rpmlint-1.9/FilesCheck.py	2017-07-17 09:46:33.053494782 -0400
2e06474
@@ -505,7 +505,7 @@ class FilesCheck(AbstractCheck.AbstractC
2e06474
                 printError(pkg, 'version-control-internal-file', f)
2e06474
             elif f.endswith('/.htaccess'):
2e06474
                 printError(pkg, 'htaccess-file', f)
2e06474
-            elif hidden_file_regex.search(f) and not f.startswith("/etc/skel/"):
2e06474
+            elif hidden_file_regex.search(f) and not f.startswith("/etc/skel/") and not f.endswith("/.build-id"):
2e06474
                 printWarning(pkg, 'hidden-file-or-dir', f)
2e06474
             elif manifest_perl_regex.search(f):
2e06474
                 printWarning(pkg, 'manifest-in-perl-module', f)
2e06474
@@ -879,7 +879,7 @@ class FilesCheck(AbstractCheck.AbstractC
2e06474
                     printError(pkg, 'non-standard-dir-perm', f, "%o" % perm)
2e06474
                 if pkg.name not in filesys_packages and f in STANDARD_DIRS:
2e06474
                     printError(pkg, 'standard-dir-owned-by-package', f)
2e06474
-                if hidden_file_regex.search(f):
2e06474
+                if hidden_file_regex.search(f) and not f.endswith("/.build-id"):
2e06474
                     printWarning(pkg, 'hidden-file-or-dir', f)
2e06474
 
2e06474
             # symbolic link check