[opensuse-buildservice] RPATH
Hi, /usr/lib/rpm/brp-rpath says: ERROR: RPATH "/usr/src/packages/BUILD/... on ... is not allowed I think I understand why: just because the binary was linked with -rpath RPMBUILDDIR/... What is the correct solution of the problem? Should I patch the Makefile? Is there way to change rpath in the linked binary? -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Matwey V. Kornilov wrote:
Hi,
/usr/lib/rpm/brp-rpath says:
ERROR: RPATH "/usr/src/packages/BUILD/... on ... is not allowed
I think I understand why: just because the binary was linked with -rpath RPMBUILDDIR/... What is the correct solution of the problem? Should I patch the Makefile? Is there way to change rpath in the linked binary?
I am removing the rpaths with chrpath -d ${RPM_BUILD_ROOT}%{_libdir}/*.so at the end of %install. That also needs BuildRequires:chrpath to work. Greetings -- Thomas Schmidt (tschmidt [at] suse.de) SUSE Linux Products GmbH :: Research & Development :: Tools 144 pixels ought to be enough for anybody, www.blinkenlights.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Matwey V. Kornilov escribió:
Hi,
/usr/lib/rpm/brp-rpath says:
ERROR: RPATH "/usr/src/packages/BUILD/... on ... is not allowed
I think I understand why: just because the binary was linked with -rpath RPMBUILDDIR/... What is the correct solution of the problem? Should I patch the Makefile? Is there way to change rpath in the linked binary?
Does you software provide a --disable-rpath configure option if not, what project and package are we talking about ? -- "We have art in order not to die of the truth" - Friedrich Nietzsche Cristian Rodríguez R. Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/
Does you software provide a --disable-rpath configure option if not, what project and package are we talking about ?
We are talking about 'home:matwey eso-midas' or 'science eso-midas'. It is not provide a --disable-rpath configure option because it hasn't ./configure script. The software has been developing since the end of 80s and the installation procedure hasn't changed. I am in a difficulty because new FHS doesn't approve location of software in the /opt. The software has a complex structure and I don't know how to split it. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
"Matwey V. Kornilov" <matwey.kornilov@gmail.com> wrote:
Is there way to change rpath in the linked binary?
Sorry for not answering your questions directly, but perhaps this will shed some (more) light: http://fedoraproject.org/wiki/Packaging/Guidelines#Beware_of_Rpath http://wiki.debian.org/RpathIssue -- Research is what I'm doing when I don't know what I'm doing. -- Wernher von Braun -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Dec 05, 08 17:54:34 +0100, Krzysztof Kotlenga wrote:
"Matwey V. Kornilov" <matwey.kornilov@gmail.com> wrote:
Is there way to change rpath in the linked binary?
Perhaps the chrpath tool is helpful here. The version I used a few years ago could not make the rpath longer, though... http://software.opensuse.org/search?q=chrpath cheers, JW-
Sorry for not answering your questions directly, but perhaps this will shed some (more) light:
http://fedoraproject.org/wiki/Packaging/Guidelines#Beware_of_Rpath http://wiki.debian.org/RpathIssue
-- Research is what I'm doing when I don't know what I'm doing. -- Wernher von Braun -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
-- o \ Juergen Weigert paint it green! __/ _=======.=======_ <V> | jw@suse.de (not a debating __/ _---|____________\/ \ | 0911 74053-508 excercise.) __/ (____/ /\ (/) | _____________________________/ _/ \_ vim:set sw=2 wm=8 SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (5)
-
Cristian Rodríguez
-
Juergen Weigert
-
Krzysztof Kotlenga
-
Matwey V. Kornilov
-
Thomas Schmidt