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

Re: Lintian error binary-or-shlib-defines-rpath



On Tue, Oct 11, 2005 at 09:52:51PM +0200, Michael Hanke wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi!
> 
> I'm packaging kbibtex which is a KDE bibtex editor. Lintian reports the
> following error for the package:
> 
> N: Processing 1 packages...
> N: ----
> N: Processing binary package kbibtex (version 0.1.2a-2) ...
> W: kbibtex: binary-or-shlib-defines-rpath ./usr/bin/kbibtex /usr/lib
> N:
> N:   The binary or shared library defines the `RPATH'. Usually this is a
> N:   bad thing. Most likely you will find a Makefile with a line like:
> N:       gcc test.o -o test -Wl,--rpath
> N:   or
> N:       gcc test.o -o test -R/usr/local/lib
> N:   Please contact debian-devel@lists.debian.org if you have questions
> N:   about this.
> N:
> W: kbibtex: binary-or-shlib-defines-rpath
> ./usr/lib/kde3/libkbibtexpart.so /usr/lib
> 
> 
> I first thought there might be something wrong with my debian/rules, so
> I switched to CDBS to get a second oppinion. That made the rules file
> pretty simple
> 
> #!/usr/bin/make -f
> include /usr/share/cdbs/1/rules/debhelper.mk
> include /usr/share/cdbs/1/class/kde.mk
> 
> But the error remained. CDBS makes configure get called with the
> follwing arguments.
> 
> ./configure  --build=i486-linux-gnu --prefix=/usr
> - - --includedir="\${prefix}/include/kde" --mandir="\${prefix}/share/man"
> - - --infodir="\${prefix}/share/info" --sysconfdir=/etc --localstatedir=/var
> - - --libexecdir="\${prefix}/lib/kbibtex"  --disable-maintainer-mode
> - - --with-qt-dir=/usr/share/qt3 --disable-rpath --with-xinerama
> 
> The argument --disable-rpath does not have the promised consequence -
> lintian still reports the error.
> 
> Does someone have an idea what I'm doing wrong?
> 
> The package is available from mentors.debian.net
> 
> Thanks in advance,
> 
> 
> Michael
> 
> - --
> GPG key:  1024D/3144BE0F Michael Hanke
> http://apsy.gse.uni-magdeburg.de/hanke
> ICQ: 48230050
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (GNU/Linux)
> 
> iD8DBQFDTBgT93+NsjFEvg8RAlJAAKC1Eof1yq/lwDORpvtgoTFWGlX8WwCcCUqH
> 26nRRl9FA1pljVBHgv0LseE=
> =vu5r
> -----END PGP SIGNATURE-----
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-mentors-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 

Hi,

AFAICT, --disable-rpath is catching all usages of the "rpath" feature except
one: src/Makefile.in, Line 540:

    540         $(CXXLINK) -rpath $(kde_moduledir) $(libkbibtexpart_la_LDFLAGS) $(libkbibtexpart_la_OBJECTS) $(libkbibtexpart_la_LIBADD) $(LIBS)

Here -rpath is used unconditionally (and the target in question is
libkbibtexpart.la, so I think that is the one lintian chokes about).
I'd suggest you remove the "-rpath $(kde_moduledir)" and try again.
I don't want to pull kdelibs4-dev onto my home machine, or I would
have tried myself before suggesting this.


HTH,

Jan

-- 
Jan C. Nordholz
<jckn At gmx net>

Attachment: signature.asc
Description: Digital signature


Reply to: