Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jul 2005 03:49:04 +0200
From:      Danny Pansters <danny@ricin.com>
To:        freebsd-ports@freebsd.org, Chuck Swiger <cswiger@mac.com>
Subject:   Re: Installing .la files for textproc/redland...
Message-ID:  <200507210349.04912.danny@ricin.com>
In-Reply-To: <42DEF1F5.9040306@mac.com>
References:  <42DEF1F5.9040306@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help

Sorry, forgot to CC..


Probably need to explicitely install them during do-install or post-install. 
That's likely the only way to be sure it gets to be where you want it to.

Autotools are a nightmare. With *BSD one could even ask if they do more harm 
than good in many cases. It's _always_ messy. Even on *i*ux I sometimes think 
this is the case. I guess it helps folks to get generated Makefiles.

If I were you I'd use post-install and be done with it (if carefully handled 
and added to plist it will also always be removed as-should upon uninstall). 
I always think that if you can't control what's supposed to be used but you 
can easily control your own stupid focussed solution, go for the latter.

HTH,

Dan 

On Thursday 21 July 2005 02:53, Chuck Swiger wrote:
> Hi, all--
>
> A port which depends on textproc/redland would like to use .la files.
> How can I convince the port make stuff to not ignore .la files?
>
> I looked through /usr/ports/Mk/bsd.autotools.mk, and found this:
>
> # LIBTOOLFLAGS=<value>
> #       - Arguments passed to libtool during configure step
> #         Currently defaults to "--disable-ltlibs", but this will be going
> #         away when libtool .la files are brought back
>
> ...so I dutifully added:
>
> LIBTOOLFLAGS=   --enable-ltlibs
>
> ...to textproc/redland/Makefile.  This causes the .la files to be built
> under ${WORKSRC}, but libtool still decides not to install them:
>
> [ .... ]
> creating rdfproc
> gmake[2]: Entering directory
> `/usr/ports/textproc/redland/work/redland-1.0.2/utils' test -z
> "/usr/local/bin" || mkdir -p -- "/usr/local/bin"
>    /bin/sh /usr/local/bin/libtool15 --mode=install install -c -s -o root -g
> wheel -m 555 'redland-db-upgrade' '/usr/local/bin/redland-db-upgrade'
> libtool15: install: warning: `../librdf/librdf.la' has not been installed
> in `/usr/local/lib'
> libtool15: install: warning:
> `/usr/ports/textproc/redland/work/redland-1.0.2/rasqal/librasqal.la' has
> not been installed in `/usr/local/lib'
> install -c -o root -g wheel -m 555 -s .libs/redland-db-upgrade
> /usr/local/bin/redland-db-upgrade
>    /bin/sh /usr/local/bin/libtool15 --mode=install install -c -s -o root -g
> wheel -m 555 'rdfproc' '/usr/local/bin/rdfproc'
> libtool15: install: warning: `../librdf/librdf.la' has not been installed
> in `/usr/local/lib'
> libtool15: install: warning:
> `/usr/ports/textproc/redland/work/redland-1.0.2/rasqal/librasqal.la' has
> not been installed in `/usr/local/lib'
> install -c -o root -g wheel -m 555 -s .libs/rdfproc /usr/local/bin/rdfproc
> test -z "/usr/local/man/man1" || mkdir -p -- "/usr/local/man/man1"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507210349.04912.danny>