On Mon, May 25, 2015 at 01:37:17PM +0200, Sven Joachim wrote:
> Since the pkg-config files are only created at "make install.libs", we
> currently need to install the library into a temporary location.  I've
> come up with the following patch:
> 
> --8<---------------cut here---------------start------------->8---
> diff --git a/debian/rules b/debian/rules
> index a52135b..c3b7d6e 100755
> --- a/debian/rules
> +++ b/debian/rules
> @@ -275,8 +275,9 @@ $(wobjdir-32)/config.status: config.guess-stamp
>  
>  $(objdir-test)/config.status: build-wide config.guess-stamp
>       test -d $(objdir-test) || mkdir $(objdir-test)
> -     cd $(objdir-test) && CFLAGS="$(CFLAGS)" $(srcdir)/test/configure \
> -             $(CONFARGS-TEST)
> +     cd $(objdir-test) && CFLAGS="$(CFLAGS)" \
> +             
> PKG_CONFIG_LIBDIR=$(wobjdir)/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig \
> +             $(srcdir)/test/configure $(CONFARGS-TEST)
>  
>  build-arch build-indep: build
>  
> @@ -308,8 +309,7 @@ build-debug: $(objdir-debug)/config.status
>  build-wide: $(wobjdir)/config.status
>       cd $(wobjdir) && $(MAKE)
>       # needed for building the examples
> -     mv $(wobjdir)/lib/libncursesw.so $(wobjdir)/lib/libncursesw.so.saved
> -     echo "INPUT(libncursesw.so.5 -ltinfo)" > $(wobjdir)/lib/libncursesw.so
> +     $(MAKE) -C $(wobjdir) DESTDIR=$(wobjdir) install.libs
>       touch $@
>  
>  build-wide-static: $(wobjdir-static)/config.status
> --8<---------------cut here---------------end--------------->8---

If ncurses uses any external pkg-config files, then this patch breaks
cross building, because the pkg-config cross wrapper only sets
PKG_CONFIG_LIBDIR when it is unset.

Given that libgpm-dev does not ship a .pc file, it seems likely that
this is not the case.

Arguably, it is a limitation in the cross wrapper that you cannot extend
PKG_CONFIG_LIBDIR. So if ncurses needs this functionality, then a new
bug against pkg-config needs to be raised to accommodate this.

Helmut


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to