diff --git a/0001-Backport-from-trunk-5761ef718536d94bc8ab283972efcfc1.patch b/0001-Backport-from-trunk-5761ef718536d94bc8ab283972efcfc1.patch new file mode 100644 index 0000000..e7660e3 --- /dev/null +++ b/0001-Backport-from-trunk-5761ef718536d94bc8ab283972efcfc1.patch @@ -0,0 +1,53 @@ +From 03f01548ea1d0a87d0d3f26757f6cf81ee62abcf Mon Sep 17 00:00:00 2001 +From: marxin +Date: Wed, 2 Jan 2019 09:34:56 +0100 +Subject: [PATCH] Backport from trunk 5761ef718536d94bc8ab283972efcfc1c75054f0: + +Come up with lto-bytecode check for ELF files. +--- + BinariesCheck.py | 11 ++++++++++- + 1 file changed, 10 insertions(+), 1 deletion(-) + +diff --git a/BinariesCheck.py b/BinariesCheck.py +index 21a0cf8..7cd5253 100644 +--- a/BinariesCheck.py ++++ b/BinariesCheck.py +@@ -71,6 +71,7 @@ + + chdir_call_regex = create_regexp_call('chdir') + mktemp_call_regex = create_regexp_call('mktemp') ++ lto_section_name_prefix = '.gnu.lto_.' + + def __init__(self, pkg, path, file, is_ar, is_shlib): + self.readelf_error = False +@@ -90,6 +91,7 @@ + self.debuginfo = False + self.symtab = False + self.tail = '' ++ self.lto_sections = False + + self.setgid = False + self.setuid = False +@@ -513,6 +515,9 @@ + for ec in bin_info.exit_calls: + printWarning(pkg, 'shared-lib-calls-exit', fname, ec) + ++ if bin_info.lto_sections: ++ printError(pkg, 'lto-bytecode', fname) ++ + for ec in bin_info.forbidden_calls: + printWarning(pkg, ec, fname, + BinaryInfo.forbidden_functions[ec]['f_name']) +@@ -835,7 +840,11 @@ + '''This executable should be stripped from debugging symbols, in order to take + less space and be loaded faster. This is usually done automatically at + buildtime by rpm. Check the build logs and the permission on the file (some +-implementations only strip if the permission is 0755).''' ++implementations only strip if the permission is 0755).''', ++ ++'lto-bytecode', ++'''This executable contains a LTO section. LTO bytecode is not portable ++and should not be distributes in static libraries or e.g. Python modules.''', + ) + + # BinariesCheck.py ends here diff --git a/rpmlint-tests.spec b/rpmlint-tests.spec index 573cead..1926f93 100644 --- a/rpmlint-tests.spec +++ b/rpmlint-tests.spec @@ -1,7 +1,7 @@ # # spec file for package rpmlint-tests # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # # icecream 0 diff --git a/rpmlint.changes b/rpmlint.changes index 27df954..4f62ccc 100644 --- a/rpmlint.changes +++ b/rpmlint.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jan 2 08:43:03 UTC 2019 - Martin Liška + +- Add 0001-Backport-from-trunk-5761ef718536d94bc8ab283972efcfc1.patch. + ------------------------------------------------------------------- Fri Dec 21 17:08:47 UTC 2018 - matthias.gerstner@suse.com diff --git a/rpmlint.spec b/rpmlint.spec index 6ace543..a2c7681 100644 --- a/rpmlint.spec +++ b/rpmlint.spec @@ -1,7 +1,7 @@ # # spec file for package rpmlint # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -89,6 +89,7 @@ Patch74: 0001-Always-import-XDG-desktop-files-as-utf8.patch Patch75: 0001-Fix-compatibility-with-file-5.33.patch Patch76: update-magic-values-python-37.patch Patch77: suse-rpmlint-all-pie.patch +Patch78: 0001-Backport-from-trunk-5761ef718536d94bc8ab283972efcfc1.patch BuildRequires: obs-service-format_spec_file BuildRequires: python3-flake8 BuildRequires: python3-pytest