forked from pool/rpmlint
0001-Execute-chroot-tests-also-on-x86-rpms.patch,
ignore-readelf-ar-error.diff OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=494
This commit is contained in:
parent
9b471c162a
commit
5474cb37a1
16
ignore-readelf-ar-error.diff
Normal file
16
ignore-readelf-ar-error.diff
Normal file
@ -0,0 +1,16 @@
|
||||
--- a/BinariesCheck.py
|
||||
+++ b/BinariesCheck.py
|
||||
@@ -240,8 +240,11 @@ class BinaryInfo(object):
|
||||
|
||||
else:
|
||||
self.readelf_error = True
|
||||
- printWarning(pkg, 'binaryinfo-readelf-failed',
|
||||
- file, re.sub('\n.*', '', res[1]))
|
||||
+ # Go and others are producing ar archives that don't have ELF
|
||||
+ # headers, so don't complain about it
|
||||
+ if not is_ar:
|
||||
+ printWarning(pkg, 'binaryinfo-readelf-failed',
|
||||
+ file, re.sub('\n.*', '', res[1]))
|
||||
|
||||
try:
|
||||
with open(path, 'rb') as fobj:
|
@ -20,9 +20,9 @@ Index: rpmlint-rpmlint-1.10/BinariesCheck.py
|
||||
|
||||
+ if is_shell:
|
||||
+ count= 0
|
||||
+ for l in open(pkgfile.path, "r"):
|
||||
+ for l in open(pkgfile.path, 'rb'):
|
||||
+ count = count + 1
|
||||
+ if (l.find("This wrapper script should never be moved out of the build directory") != -1):
|
||||
+ if (l.find(b'This wrapper script should never be moved out of the build directory') != -1):
|
||||
+ printError(pkg, 'libtool-wrapper-in-package', fname)
|
||||
+ break
|
||||
+ if (count > 20):
|
||||
|
@ -72,7 +72,8 @@ Thu Sep 28 10:40:08 UTC 2017 - dmueller@suse.com
|
||||
- add suse-tests-without-badness.patch,
|
||||
0001-Extend-scm_regex-to-capture-more-SCM-system-files.patch,
|
||||
0003-Tighten-lib_regex-to-avoid-false-positive-in-python-.patch,
|
||||
0001-Execute-chroot-tests-also-on-x86-rpms.patch
|
||||
0001-Execute-chroot-tests-also-on-x86-rpms.patch,
|
||||
ignore-readelf-ar-error.diff
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 28 09:37:04 UTC 2017 - dmueller@suse.com
|
||||
|
@ -97,6 +97,7 @@ Patch58: add-check-for-tmpfiles-created-at-r.diff
|
||||
Patch59: 0001-Extend-scm_regex-to-capture-more-SCM-system-files.patch
|
||||
Patch60: 0003-Tighten-lib_regex-to-avoid-false-positive-in-python-.patch
|
||||
Patch61: 0001-Execute-chroot-tests-also-on-x86-rpms.patch
|
||||
Patch62: ignore-readelf-ar-error.diff
|
||||
Patch70: rpmlint-all-pie.patch
|
||||
# BuildArch must at the end. is a bug: https://bugzilla.suse.com/show_bug.cgi?id=926766
|
||||
BuildArch: noarch
|
||||
|
Loading…
Reference in New Issue
Block a user