Installing .la files for textproc/redland...

Danny Pansters danny at ricin.com
Thu Jul 21 01:50:16 GMT 2005


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"


More information about the freebsd-ports mailing list