[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#723886: Don't flag pkg-config-multi-arch-wrong-dir reports as error



Package: lintian
Version: 2.5.17
Severity: normal

Hi Nils,

this is a follow up on our IRC discussion.

The following lintian error

=======================================================================
E: libgmime-2.6-dev: pkg-config-multi-arch-wrong-dir usr/lib/pkgconfig/gmime-2.6.pc
N: 
N:    The arch all pkg-config file contains reference to an multi-arch path.
N:    
N:    This can be usually be fixed by moving this file to a multi-arch path.
N:    
N:    Severity: important, Certainty: possible
N:    
N:    Check: files, Type: binary, udeb
N: 
=======================================================================

was triggered in the src:gmime package.
The file itself contains

=======================================================================
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include


Name: GMime
Version: 2.6.17
Description: MIME parser and utility library
Requires: glib-2.0,gio-2.0,gobject-2.0
Libs: -L${libdir} -lgmime-2.6
Libs.private: -lz -lnsl -L/usr/lib/x86_64-linux-gnu -lgpgme-pthread -lassuan -lgpg-error -lpthread
Cflags: -I${includedir}/gmime-2.6 -D_LARGEFILE64_SOURCE
=======================================================================

The multiarch -L path is coming from `gpgme-config --libs`.
The maintainer took the advice and tried to move the .pc file to a
multiarch location (even though the library itself was not
multiarchified). This resulted in [1].

As we found out, pkg-config actually strips such library system search paths:
$ pkg-config --static --libs gmime-2.6 -pthread -lgmime-2.6 -lnsl -lgpgme-pthread -lassuan -lgpg-error -lpthread -lgio-2.0 -lz -lresolv -lgmodule-2.0 -ldl -lgobject-2.0 -lffi -lglib-2.0 -lpcre

It seems reasonable to therefore downgrade this message to a warning.


Regards,
Michael

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=722609
-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.10-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages lintian depends on:
ii  binutils                       2.23.52.20130828-1
ii  bzip2                          1.0.6-5
ii  diffstat                       1.55-3
ii  file                           1:5.14-2
ii  gettext                        0.18.3.1-1
ii  hardening-includes             2.4
ii  intltool-debian                0.35.0+20060710.1
ii  libapt-pkg-perl                0.1.29+b1
ii  libarchive-zip-perl            1.30-7
ii  libclass-accessor-perl         0.34-1
ii  libclone-perl                  0.35-1
ii  libdigest-sha-perl             5.85-1+b1
ii  libdpkg-perl                   1.17.1
ii  libemail-valid-perl            0.190-1
ii  libfile-basedir-perl           0.03-1
ii  libipc-run-perl                0.92-1
ii  liblist-moreutils-perl         0.33-1+b2
ii  libparse-debianchangelog-perl  1.2.0-1
ii  libtext-levenshtein-perl       0.06~01-2
ii  libtimedate-perl               1.2000-1
ii  liburi-perl                    1.60-1
ii  man-db                         2.6.5-2
ii  patchutils                     0.3.2-2
ii  perl [libdigest-sha-perl]      5.18.1-4
ii  t1utils                        1.37-2

Versions of packages lintian recommends:
ii  libautodie-perl                 2.21-1
ii  libperlio-gzip-perl             0.18-1+b3
ii  perl-modules [libautodie-perl]  5.18.1-4

Versions of packages lintian suggests:
pn  binutils-multiarch     <none>
ii  dpkg-dev               1.17.1
ii  libhtml-parser-perl    3.71-1+b1
ii  libtext-template-perl  1.46-1
ii  xz-utils               5.1.1alpha+20120614-2

-- no debconf information


Reply to: