SHA256
1
0
forked from pool/rpmlint

Accepting request 732196 from home:mimi_vx:branches:devel:openSUSE:Factory:rpmlint

- Update to version 84.87+git20190920.e27d431:
  * Fix tests with disabled 'group' checks

- update add-check-for-a-non-zero-.text-segment-in-.a-archive.patch
  * dont check empty .text section on GHC libraries

OBS-URL: https://build.opensuse.org/request/show/732196
OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=689
This commit is contained in:
Dirk Mueller 2019-09-20 17:01:55 +00:00 committed by Git OBS Bridge
parent 56e0c71f5a
commit 0b4213f78a
7 changed files with 24 additions and 12 deletions

View File

@ -1,6 +1,6 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/openSUSE/rpmlint-tests.git</param>
<param name="changesrevision">2c9218051574232af0a669a831884469dee6f06a</param></service><service name="tar_scm">
<param name="changesrevision">e27d43198d06699c9a705b71e2d511a94efab752</param></service><service name="tar_scm">
<param name="url">https://github.com/openSUSE/rpmlint-checks.git</param>
<param name="changesrevision">97ff0bdbab5a7039bd4a6551772cf9446ab01d70</param></service></servicedata>

View File

@ -1,7 +1,7 @@
diff --git a/BinariesCheck.py b/BinariesCheck.py
index 36d73f8..0fb91db 100644
--- a/BinariesCheck.py
+++ b/BinariesCheck.py
Index: rpmlint-rpmlint-1.11/BinariesCheck.py
===================================================================
--- rpmlint-rpmlint-1.11.orig/BinariesCheck.py
+++ rpmlint-rpmlint-1.11/BinariesCheck.py
@@ -73,6 +73,10 @@ class BinaryInfo(object):
mktemp_call_regex = create_regexp_call('mktemp')
lto_section_name_prefix = '.gnu.lto_.'
@ -35,7 +35,7 @@ index 36d73f8..0fb91db 100644
lines = res[1].splitlines()
+
+ # For an archive, test if all .text sections are empty
+ if is_archive:
+ if is_archive and not (path.startswith('/usr/lib64/ghc') or path.startswith('/usr/lib/ghc')):
+ has_text_segment = False
+ non_zero_text_segment = False
+
@ -54,7 +54,7 @@ index 36d73f8..0fb91db 100644
for line in lines:
if BinaryInfo.lto_section_name_prefix in line:
self.lto_sections = True
@@ -522,6 +546,9 @@ class BinariesCheck(AbstractCheck.AbstractCheck):
@@ -522,6 +546,9 @@ class BinariesCheck(AbstractCheck.Abstra
if bin_info.lto_sections:
printError(pkg, 'lto-bytecode', fname)
@ -64,7 +64,7 @@ index 36d73f8..0fb91db 100644
for ec in bin_info.forbidden_calls:
printWarning(pkg, ec, fname,
BinaryInfo.forbidden_functions[ec]['f_name'])
@@ -846,6 +873,10 @@ implementations only strip if the permission is 0755).''',
@@ -846,6 +873,10 @@ implementations only strip if the permis
'lto-bytecode',
'''This executable contains a LTO section. LTO bytecode is not portable
and should not be distributed in static libraries or e.g. Python modules.''',

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4906aadbe8287b5740fe141ae8ef15a3d520e0bf1346aa772d65840e838a29bd
size 11644

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f9a6b8d586b8b87e9cb410d17381911988dc564daa8b177c75fbb19c788439b1
size 11620

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Sep 20 13:22:14 UTC 2019 - mimi.vx@gmail.com
- Update to version 84.87+git20190920.e27d431:
* Fix tests with disabled 'group' checks
-------------------------------------------------------------------
Wed Aug 28 06:32:18 UTC 2019 - tchvatal@suse.com

View File

@ -24,7 +24,7 @@ BuildRequires: rpmlint-Factory-strict
BuildRequires: rpmlint-mini
Name: rpmlint-tests
Version: 84.87+git20190828.2c92180
Version: 84.87+git20190920.e27d431
Release: 0
Summary: rpmlint regression tests
License: SUSE-Public-Domain

View File

@ -3,6 +3,12 @@ Fri Sep 20 16:04:10 UTC 2019 - Malte Kraus <malte.kraus@suse.com>
- whitelist pam_envoy (bsc#1150525)
-------------------------------------------------------------------
Fri Sep 20 13:06:47 UTC 2019 - Ondřej Súkup <mimi.vx@gmail.com>
- update add-check-for-a-non-zero-.text-segment-in-.a-archive.patch
* dont check empty .text section on GHC libraries
-------------------------------------------------------------------
Tue Sep 17 12:35:25 UTC 2019 - dmueller@suse.com