Package: libpopt-dev
Version: 1.7-5
Severity: normal

First note this is not a bug in the debian binary package.  This is a 
bug in the original popt-1.7 tarball.  However I sent it to the 
"official" popt maintainer ([EMAIL PROTECTED]) and the mail bounced (I 
read in a separate bug report that he is no longer with red hat and 
nobody knows where he is).  Lest the patch be lost, I am sending it 
here.


I downloaded popt 1.7 and tried to cross-compile it on Debian/Unstable 
for Windows.

It came close to working.  However to get it to actually work I had to 
use this patch (and then rerun autogen.sh).

The @INTLLIBS@ bit is needed to get libintl to work with libpopt.la. 
Although no gettext functions are used, when you #include <libintl.h> 
there is code that redefines printf as libintl_printf.  So without 
linking against this library libintl_printf will not be available 
causing a link-time error.  Note that this only happens when compiling 
against libintl in GNU gettext, not when compiling against the gettext 
provided by glibc.

The mkinstalldirs change should be pretty self-evident. 
$(MKINSTALLDIRS) is already defined to point to the mkinstalldirs 
script 
in the $(top_builddir).  Yet a line below $(top_builddir) is prepended 
again when $(mkinstalldirs) is defined.  The result is that 
$(top_builddir), which is "..", is prepended twice and $(mkinstalldirs_ 
points to the wrong place.  This causes "make install" to fail.

The patch (and more explanation) is also available at 
http://freeciv.org/~jdorje/crosscompile/cross-compiling.html.

-jason short


Index: Makefile.am
===================================================================
RCS file: /home/jdorje/CVSROOT/popt-1.7/Makefile.am,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Makefile.am
--- Makefile.am 15 Jan 2005 20:35:06 -0000      1.1.1.1
+++ Makefile.am 15 Jan 2005 21:22:51 -0000
@@ -34,6 +34,7 @@
 include_HEADERS = popt.h
 lib_LTLIBRARIES = libpopt.la
 libpopt_la_SOURCES = popt.c findme.c poptparse.c poptconfig.c popthelp.c
+libpopt_la_LIBADD = @INTLLIBS@
 
 man_MANS = popt.3
 
Index: po/Makefile.in.in
===================================================================
RCS file: /home/jdorje/CVSROOT/popt-1.7/po/Makefile.in.in,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Makefile.in.in
--- po/Makefile.in.in   15 Jan 2005 20:35:08 -0000      1.1.1.1
+++ po/Makefile.in.in   15 Jan 2005 22:29:35 -0000
@@ -29,7 +29,7 @@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
 MKINSTALLDIRS = @MKINSTALLDIRS@
-mkinstalldirs = $(SHELL) `case "$(MKINSTALLDIRS)" in /*) echo 
"$(MKINSTALLDIRS)" ;; *) echo "$(top_builddir)/$(MKINSTALLDIRS)" ;; esac`
+mkinstalldirs = $(SHELL) `case "$(MKINSTALLDIRS)" in /*) echo 
"$(MKINSTALLDIRS)" ;; *) echo "$(MKINSTALLDIRS)" ;; esac`
 
 CC = @CC@
 GMSGFMT = @GMSGFMT@


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages libpopt-dev depends on:
ii  libc6-dev [libc-dev]        2.3.2.ds1-20 GNU C Library: Development Librari
ii  libpopt0                    1.7-5        lib for parsing cmdline parameters

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to