Am 25.05.2015 um 13:43 schrieb Helmut Grohne:
> 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.
It surely is not, but the cross build is broken anyway:
,----
| checking for specific curses-directory... /tmp/ncurses-5.9+20150516/obj-wide
| checking for specified curses library type... ncursesw
| checking for multibyte character support... yes
| checking pkg-config for ncursesw... yes
| checking if the ncursesw package files work... configure: error: cannot run
test program while cross compiling
`----
Sounds like something for Thomas to look at.
Cheers,
Sven
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]