summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald van Dijk <truedfx@gentoo.org>2005-09-19 21:28:28 +0000
committerHarald van Dijk <truedfx@gentoo.org>2005-09-19 21:28:28 +0000
commitd8219bf5fcef2bae830ec0c3ad5d529831a4aa0e (patch)
tree1da1c87866e8bc3c7ee9a03552e550e9068f53cd /dev-libs/librep
parentadd missing eutils inheritance (diff)
downloadgentoo-2-d8219bf5fcef2bae830ec0c3ad5d529831a4aa0e.tar.gz
gentoo-2-d8219bf5fcef2bae830ec0c3ad5d529831a4aa0e.tar.bz2
gentoo-2-d8219bf5fcef2bae830ec0c3ad5d529831a4aa0e.zip
Fix librep libtool mess instead of continuing to try to work around it
(Portage version: 1.589-cvs)
Diffstat (limited to 'dev-libs/librep')
-rw-r--r--dev-libs/librep/ChangeLog6
-rw-r--r--dev-libs/librep/Manifest13
-rw-r--r--dev-libs/librep/files/libtool.patch86
-rw-r--r--dev-libs/librep/librep-0.17-r2.ebuild5
4 files changed, 100 insertions, 10 deletions
diff --git a/dev-libs/librep/ChangeLog b/dev-libs/librep/ChangeLog
index d55431acc465..77786398c505 100644
--- a/dev-libs/librep/ChangeLog
+++ b/dev-libs/librep/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-libs/librep
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/librep/ChangeLog,v 1.33 2005/09/15 12:48:24 truedfx Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/librep/ChangeLog,v 1.34 2005/09/19 21:28:28 truedfx Exp $
+
+ 19 Sep 2005; Harald van Dijk <truedfx@gentoo.org> +files/libtool.patch,
+ librep-0.17-r2.ebuild:
+ Fix librep libtool mess instead of continuing to try to work around it
15 Sep 2005; Harald van Dijk <truedfx@gentoo.org>
+files/rep_file_fdopen.patch, librep-0.17-r1.ebuild,
diff --git a/dev-libs/librep/Manifest b/dev-libs/librep/Manifest
index b16d61c689d2..c08775cb9160 100644
--- a/dev-libs/librep/Manifest
+++ b/dev-libs/librep/Manifest
@@ -2,21 +2,22 @@
Hash: SHA1
MD5 39a3ca32061fd3e5b60ca798870eb4e1 ChangeLog 4718
+MD5 aabaa608acb879f04a961ad9e6d8e19c metadata.xml 233
MD5 cb0797d43ae9e4509e2103ffa7426a7d librep-0.16.2.ebuild 1224
-MD5 2b12c87768b0043836c8726d237f1881 librep-0.17-r1.ebuild 1385
-MD5 5d155c409a7cb138de6c7b9189b2a129 librep-0.17-r2.ebuild 1385
MD5 480474336414d1a7f92e33f628fb9a8e librep-0.17.ebuild 1281
-MD5 aabaa608acb879f04a961ad9e6d8e19c metadata.xml 233
+MD5 2b12c87768b0043836c8726d237f1881 librep-0.17-r1.ebuild 1385
+MD5 d81f9a016be9d988b146cfdc41b1b477 librep-0.17-r2.ebuild 1294
MD5 f3efabdde310e7d8da74859ea2af221c files/digest-librep-0.16.2 65
MD5 07a234e62724c3d45a1b69f1c04cd0a9 files/digest-librep-0.17 64
MD5 07a234e62724c3d45a1b69f1c04cd0a9 files/digest-librep-0.17-r1 64
MD5 07a234e62724c3d45a1b69f1c04cd0a9 files/digest-librep-0.17-r2 64
MD5 8c655620e7f5d0dc0ee9b8ef6351158d files/librep-0.15.2-exec.patch 425
+MD5 4d33f5e870cd659d295eaa8c1a8948da files/libtool.patch 3037
MD5 ad28e56472f07a05a704ecfc7cf58434 files/rep_file_fdopen.patch 219
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
-iD8DBQFDKW2GwnQyISwouHwRAp/7AJ9GXWnUAJz52LBtnha3EkedFrM+aACgvI/U
-LxccLH2dh8XpjpU8pB7IxEQ=
-=KPo1
+iD8DBQFDLynwwnQyISwouHwRAjCCAJ9t+EY5VoVmWKPIf2qn4RnnZvgePwCgnOtg
+LEyzKYW0w8xkrzz5GbycAMw=
+=p7SZ
-----END PGP SIGNATURE-----
diff --git a/dev-libs/librep/files/libtool.patch b/dev-libs/librep/files/libtool.patch
new file mode 100644
index 000000000000..06f8ae834338
--- /dev/null
+++ b/dev-libs/librep/files/libtool.patch
@@ -0,0 +1,86 @@
+--- librep-0.17.orig/intl/Makefile.in
++++ librep-0.17/intl/Makefile.in
+@@ -77,7 +77,7 @@
+ .c.o:
+ $(COMPILE) $<
+ .c.lo:
+- $(LIBTOOL) --mode=compile $(COMPILE) $<
++ $(LIBTOOL) --mode=compile --tag=CC $(COMPILE) $<
+
+ INCLUDES = -I.. -I. -I$(top_srcdir)/intl -I$(top_srcdir)/lib
+
+@@ -92,7 +92,7 @@
+ $(RANLIB) $@
+
+ libintl.la: $(OBJECTS)
+- $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $@ $(OBJECTS) \
++ $(LIBTOOL) --mode=link --tag=CC $(CC) $(LDFLAGS) -o $@ $(OBJECTS) \
+ -version-info 1:0 -rpath $(libdir)
+
+ ../po/cat-id-tbl.$lo: ../po/cat-id-tbl.c $(top_srcdir)/po/$(PACKAGE).pot
+--- librep-0.17.orig/Makedefs.in
++++ librep-0.17/Makedefs.in
+@@ -96,11 +96,11 @@
+
+ # Rule for libtool controlled C objects
+ %.lo : %.c
+- $(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $<
++ $(LIBTOOL) --mode=compile --tag=CC $(CC) -c $(CPPFLAGS) $(CFLAGS) $<
+
+ # Rule for dlopen'able C objects
+ %.la : %.c
+- $(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $<
++ $(LIBTOOL) --mode=compile --tag=CC $(CC) -c $(CPPFLAGS) $(CFLAGS) $<
+ $(rep_DL_LD) $(CPPFLAGS) $(CFLAGS) -o $@ $*.lo
+
+ # Build dependancy files from C source files.
+--- librep-0.17.orig/rules.mk.sh
++++ librep-0.17/rules.mk.sh
+@@ -19,7 +19,7 @@
+ # foo.la : foo.lo bar.lo
+ # \$(rep_DL_LD) link-opts...
+
+-rep_DL_LD=\$(rep_LIBTOOL) --mode=link \$(CC) -avoid-version -module \
++rep_DL_LD=\$(rep_LIBTOOL) --mode=link --tag=CC \$(CC) -avoid-version -module \
+ -rpath \$(rpath_repcommonexecdir)
+
+ rep_DL_INSTALL=\$(rep_LIBTOOL) --mode=install \$(INSTALL)
+@@ -27,6 +27,6 @@
+
+ # Rule for libtool controlled C objects
+ %.lo : %.c
+- \$(rep_LIBTOOL) --mode=compile \$(CC) -c \$(CPPFLAGS) \$(CFLAGS) \$<
++ \$(rep_LIBTOOL) --mode=compile --tag=CC \$(CC) -c \$(CPPFLAGS) \$(CFLAGS) \$<
+
+ EOF
+--- librep-0.17.orig/src/Makefile.in
++++ librep-0.17/src/Makefile.in
+@@ -56,16 +56,16 @@
+ all : librep.la $(DL_OBJS) check-dl rep rep-config rep-remote rep-xgettext .libexec
+
+ librep.la : $(OBJS) $(LIBOBJS) $(ALLOCA)
+- $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) \
++ $(LIBTOOL) --mode=link --tag=CC $(CC) $(LDFLAGS) \
+ -version-info $(libversion) -export-symbols librep.sym \
+ -o $@ $^ -rpath $(libdir) $(LIBS) $(GMP_LIBS)
+
+ rep : $(REP_OBJS) $(EXTRA_LIBOBJS) librep.la
+- $(LIBTOOL) --mode=link $(CC) -export-dynamic $(CPPFLAGS) $(CFLAGS) -o $@ \
++ $(LIBTOOL) --mode=link --tag=CC $(CC) -export-dynamic $(CPPFLAGS) $(CFLAGS) -o $@ \
+ $(REP_OBJS) librep.la $(EXTRA_LIBOBJS) $(LIBS) $(GMP_LIBS)
+
+ srep : $(REP_OBJS) $(EXTRA_LIBOBJS) librep.la
+- $(LIBTOOL) --mode=link $(CC) -static -export-dynamic $(CPPFLAGS) $(CFLAGS) -o $@ \
++ $(LIBTOOL) --mode=link --tag=CC $(CC) -static -export-dynamic $(CPPFLAGS) $(CFLAGS) -o $@ \
+ $(REP_OBJS) librep.la $(EXTRA_LIBOBJS) $(LIBS) $(GMP_LIBS)
+
+ rep-remote : rep-remote.c
+@@ -132,7 +132,7 @@
+ chmod +x $@
+
+ repdoc : repdoc.o
+- $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $@ $^ $(GDBM_LIBS)
++ $(LIBTOOL) --mode=link --tag=CC $(CC) $(LDFLAGS) -o $@ $^ $(GDBM_LIBS)
+
+ sdbm.la : $(SDBM_LOBJS) repsdbm.lo
+ $(rep_DL_LD) $(LDFLAGS) -o $@ $^
diff --git a/dev-libs/librep/librep-0.17-r2.ebuild b/dev-libs/librep/librep-0.17-r2.ebuild
index 9645ca2a6b7c..85165dbf52cd 100644
--- a/dev-libs/librep/librep-0.17-r2.ebuild
+++ b/dev-libs/librep/librep-0.17-r2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/librep/librep-0.17-r2.ebuild,v 1.2 2005/09/15 12:48:24 truedfx Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/librep/librep-0.17-r2.ebuild,v 1.3 2005/09/19 21:28:28 truedfx Exp $
inherit eutils libtool toolchain-funcs multilib
@@ -22,6 +22,7 @@ DEPEND="${RDEPEND}
src_unpack() {
unpack ${A}
cd "${S}"
+ epatch "${FILESDIR}/libtool.patch"
epatch "${FILESDIR}/rep_file_fdopen.patch"
sed -i -e '7s/AM_PATH_REP/[&]/' rep.m4 || die "sed failed"
elibtoolize || die "elibtoolize failed"
@@ -42,8 +43,6 @@ src_compile() {
src_install() {
make DESTDIR="${D}" install || die "make install failed"
- dosym ../../../bin/libtool /usr/$(get_libdir)/rep/${CHOST}/libtool
- fowners -h root:0 /usr/$(get_libdir)/rep/${CHOST}/libtool
dodoc AUTHORS BUGS COPYING ChangeLog NEWS README THANKS TODO TREE
docinto doc
dodoc doc/*