SHA256
1
0
forked from pool/rpmlint

Accepting request 98773 from devel:openSUSE:Factory:rpmlint

- reenable libtool wrapper check

OBS-URL: https://build.opensuse.org/request/show/98773
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpmlint?expand=0&rev=152
This commit is contained in:
Stephan Kulow 2012-01-05 12:49:52 +00:00 committed by Git OBS Bridge
commit 719444642d
3 changed files with 22 additions and 36 deletions

View File

@ -1,56 +1,38 @@
package ProtocolReader; --- BinariesCheck.py
i +++ BinariesCheck.py
@@ -231,8 +231,19 @@
require Exportei path is_elf = 'ELF' in pkgfile.magic
Da/work/built/patchinfo/a8074a35e4528cffdfb08bd7c9969012/protocol-autotest"))Da/work/built/patchinfo/a8074a35e4528cffdfb08bd7c9969012/protocol-autotest"));; is_ar = 'current ar archive' in pkgfile.magic
@ISA = qw(Exporter); is_ocaml_native = 'Objective caml native' in pkgfile.magic
@EXPORT = qw(new read); + is_shell = "shell script" in pkgfile.magic
is_ar =
rpath
asdfdff
ead_one_protocol("fc46dcae41fa022273d4dfd752880372/protocol") to
:x
sub new { bless {} } string.find(i[1], 'current ar archive') != -1
is_ocaml_native = string.find(i[1], 'ObjABXML::ABXML::patchprotocolnative') != -1
print Dumper(a+ is_shell = string.find(i[1], "shell script") != -)1
is_binary = is_elf or is_ar or is_ocaml_native is_binary = is_elf or is_ar or is_ocaml_native
if is_binary:
@@ -278,6 +279,16 @@
printError(pkg, 'invalid-directory-reference', i[0],
'(line %s)' % ", ".join(lines))
+ if is_shell: + if is_shell:
+ count= 0 + count= 0
+ for l in file(pkg.dirName() + i[0], "r"): + for l in file(pkgfile.path, "r"):
+ count = count + 1 + count = count + 1
+ if (l.find("This wrapper script should never be moved out of the build directory") != -1): + if (l.find("This wrapper script should never be moved out of the build directory") != -1):
+ printError(pkg, 'libtool-wrapper-in-package', i[0]) + printError(pkg, 'libtool-wrapper-in-package', fname)
+ break + break
+ if (count > 20): + if (count > 20):
+ break; + break;
+ +
if has_lib != []: if not is_binary:
if exec_files != []: if reference_regex.search(fname):
for f in exec_files: lines = pkg.grep(invalid_dir_ref_regex, fname)
@@ -341,6 +352,14 @@ @@ -463,6 +474,15 @@
Another common mistake that causes this problem is linking with Another common mistake that causes this problem is linking with
``gcc -Wl,-shared'' instead of ``gcc -shared''.''', ``gcc -Wl,-shared'' instead of ``gcc -shared''.''',
+'libtool-wrapper-in-package', +'libtool-wrapper-in-package',
+'''Your package contains a libtool wrapper shell script. This +'''Your package contains a libtool wrapper shell script. This
+will not work. Instead of install'ing the libtool wrapper file, +will not work. Instead of install'ing the libtool wrapper file,
+run +run·
+ +
+libtool --mode=install install -m perm <file> <dest> +libtool --mode=install install -m perm <file> <dest>
+ +
+to install the relinked file.''', +to install the relinked file.''',
+
'binary-or-shlib-defines-rpath', 'binary-or-shlib-defines-rpath',
'''The binary or shared library defines `RPATH'. Usually this is a '''The binary or shared library defines `RPATH'. Usually this is a
bad thing because it hardcodes the path to search libraries and so bad thing because it hardcodes the path to search libraries and so

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jan 4 16:56:40 CET 2012 - dmueller@suse.de
- reenable libtool wrapper check
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Dec 21 11:01:43 CET 2011 - dmueller@suse.de Wed Dec 21 11:01:43 CET 2011 - dmueller@suse.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package rpmlint # spec file for package rpmlint
# #
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -15,7 +15,6 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
#!BuildIgnore: rpmlint-mini #!BuildIgnore: rpmlint-mini
Name: rpmlint Name: rpmlint
@ -172,7 +171,7 @@ Authors:
#%patch34 #%patch34
#%patch35 #%patch35
%patch37 %patch37
#%patch39 %patch39
#%patch41 #%patch41
%patch42 %patch42
#%patch46 #%patch46