[DebianGIS-dev] Bug#605002: Bug#605002: libhdf4-dev: rpath included in libdf.la

Francesco P. Lovergine frankie at debian.org
Fri Nov 26 14:46:59 UTC 2010


On Thu, Nov 25, 2010 at 09:21:49PM -0800, Andy Spencer wrote:
> Package: libhdf4-dev
> Version: 4.2r4-11
> Severity: normal
> Tags: patch
> 
> 
> The rules file in libhdf4 uses chrpath to strip the rpath from the
> executables and shared objects. It does not strip the rpath from the
> libtool archives. This causes programs built against libdf to include an
> invalid rpath.
> 
> diff --git a/debian/rules b/debian/rules
> index 5e1d965..d6e64e5 100755
> --- a/debian/rules
> +++ b/debian/rules
> @@ -153,6 +153,9 @@ stamps/install-stamp: build-arch
>  	for obj in $(DESTDIR)/usr/bin/* $(DESTDIR)/usr/lib/*.so.* $(DESTDIR)/usr/lib-alt/*.so.*; do \
>  		chrpath -d $${obj} || true; \
>  	done
> +	for obj in $(DESTDIR)/usr/lib/*.la $(DESTDIR)/usr/lib-alt/*.la; do \
> +		sed -ie 's/-R *[^ ]\+ //g' $${obj} || true; \
> +	done
>  	

This is pointless, libtool helpers are not more distributed at all.

-- 
Francesco P. Lovergine





More information about the Pkg-grass-devel mailing list