packages/libiconv: Battle libiconv to not use a rpath (and fix the uclibc build)
authorHolger Freyther <zecke@selfish.org>
Thu, 24 May 2007 17:34:13 +0000 (17:34 +0000)
committerHolger Freyther <zecke@selfish.org>
Thu, 24 May 2007 17:34:13 +0000 (17:34 +0000)
    -Update libiconv to 1.11 (the latest)
    -We do not package the LD_PRELOADable libiconv stub
    -Try hard to disable the rpath issue and.
        --disable-rpath doesn't disable the roath
        --disable-rpath=no (wasn't tested and if it works....)
        --enable-relocatable says to imply --disable-rpath but that doesn't work.
        Also the files can't be regenerated as the Makefile.am doesn't exist and
        people patch the Makefile.in.
    As a last resort fail back to some GNU sed to patch *-libtool to make sure that
    hardcoding of rpaths will fail!

conf/checksums.ini
packages/libiconv/libiconv_1.11.bb [moved from packages/libiconv/libiconv_1.9.2.bb with 68% similarity]

index 953b5a1..dba0f28 100644 (file)
@@ -854,9 +854,9 @@ sha256=2d7af8211cda81abde3e0bb8ccedbd18924a27b244ff35d4eacafcf899038c56
 md5=183f6d46e8fa5e4b2aff240ab1586c2e
 sha256=80c38a005325e7539012bd665fb8e06af9ee9bfc74efb236ebff121265bfd463
 
-[ftp://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.9.2.tar.gz]
-md5=6bc300365053c815b10b800a21e0bc7e
-sha256=fdb726c5d3761d4c1569e702b74cf9561dc07c6a5f48af3e3fd18685f50d490c
+[ftp://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.11.tar.gz]
+md5=b77a17e4a5a817100ad4b2613935055e
+sha256=fbf5b9a63ea6e3abebfabc04506f0e18a2860071031e34ea4ad4f450b8c43d4b
 
 [ftp://ftp.gnupg.org/gcrypt/alpha/libassuan/libassuan-0.6.7.tar.gz]
 md5=db4e6939fafbaae80cab11a67f28771d
similarity index 68%
rename from packages/libiconv/libiconv_1.9.2.bb
rename to packages/libiconv/libiconv_1.11.bb
index 059d5fd..de87486 100644 (file)
@@ -13,11 +13,18 @@ S = "${WORKDIR}/libiconv-${PV}"
 
 inherit autotools pkgconfig
 
-EXTRA_OECONF += "--enable-shared --enable-static"
+EXTRA_OECONF += "--enable-shared --enable-static --enable-relocatable"
 
 do_configure () {
        rm -f m4/libtool.m4 libcharset/m4/libtool.m4
        autotools_do_configure
+
+       # As we do not really regenerate the Makefiles... and they have stale deps to this file
+       touch m4/libtool.m4
+
+       # Fix stupid libtool... handling. rpath handling can't be disabled and the Makefile's can't be regenerated..
+       # (GNU sed required)
+       sed -i s/^hardcode_libdir_flag_spec/#hardcode_libdir_flag_spec/ ${S}/*-libtool
 }
 
 do_stage () {