[Olsr-dev] solved but found new problems.. (Re: trying to set LIBDIR to /usr/lib/olsrd/)

Bernd Petrovitsch (spam-protected)
Wed Jul 9 01:43:35 CEST 2008


On Die, 2008-07-08 at 20:38 +0200, Bernd Petrovitsch wrote:
> On Die, 2008-07-08 at 18:02 +0200, Holger Levsen wrote: 
[...]
> > "$(MAKE) DESTDIR=$(CURDIR)/debian/olsrd-plugins $(PLUGINS) STRIP=:" in 
> > debian/rules, and thus the plugins included my builddir in their rpath :-( I 
> > solved this in my packaging by patching the olsrd Makefile to provide 
> > ${pluginname}_install targets. Not sure if there is a better way.
>
> In theory it should work as above (even if one ignores the install
> target if it's unusable - which is the common handling if upstream
> delivers e.g. not-cross-compile-friendly packages).
> But I don't know enough about .deb building ...

I just tested it: Installing in a completely new directory with (e.g.)
----  snip  ----
{26}build_all LIBDIR=/opt/olsrd-current-2/lib SBINDIR=/opt/olsrd-current-2/sbin ETCDIR=/opt/olsrd-current-2/etc DOCDIR=/opt/olsrd-current-2/doc MANDIR=/opt/olsrd-current-2/man
{27}make install_all LIBDIR=/opt/olsrd-current-2/lib SBINDIR=/opt/olsrd-current-2/sbin ETCDIR=/opt/olsrd-current-2/etc DOCDIR=/opt/olsrd-current-2/doc MANDIR=/opt/olsrd-current-2/man
----  snip  ----
works hereover without any paths in /etc/olsrd.conf and without any
additional /etc/ld.so.conf.d/ file or LD_LIBRARY_DIR.
So "just do not set DESTDIR during the `build_all` (but set the run-time
directories) and use DESTDIR only for the installation in the packages
virtual root directory" should do it.

	Bernd
-- 
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services





More information about the Olsr-dev mailing list