applied changes from private overlay. added new confix-2.3.0
authorMarkus Duft <mduft@gentoo.org>
Tue, 13 Jul 2010 11:57:23 +0000 (11:57 +0000)
committerMarkus Duft <mduft@gentoo.org>
Tue, 13 Jul 2010 11:57:23 +0000 (11:57 +0000)
Package-Manager: portage-2.2.00.14771-prefix/cvs/Linux i686

dev-util/confix/ChangeLog
dev-util/confix/Manifest
dev-util/confix/confix-2.1.0-r4.ebuild [moved from dev-util/confix/confix-2.1.0-r3.ebuild with 55% similarity]
dev-util/confix/confix-2.3.0-r3.ebuild [new file with mode: 0644]
dev-util/confix/confix-9999.ebuild
dev-util/confix/files/2.1.0/local-libs-first.patch [new file with mode: 0644]
dev-util/confix/files/2.3.0/exeext.patch [moved from dev-util/confix/files/2.2.0/exeext.patch with 100% similarity]
dev-util/confix/files/2.3.0/ext-ac-archive.patch [moved from dev-util/confix/files/2.2.0/ext-ac-archive.patch with 100% similarity]
dev-util/confix/files/2.3.0/local-libs-first.patch [new file with mode: 0644]
dev-util/confix/files/2.3.0/new-automake.patch [new file with mode: 0644]

index 3d210e89a675010b75148633b972d84c7ca5cee6..7dce2b1bec9eb2ebc92cbb081edeb125f1c235d6 100644 (file)
@@ -1,6 +1,17 @@
 # ChangeLog for dev-util/confix
 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/confix/ChangeLog,v 1.12 2010/02/08 08:56:51 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/confix/ChangeLog,v 1.13 2010/07/13 11:57:23 mduft Exp $
+
+*confix-2.3.0-r3 (13 Jul 2010)
+*confix-2.1.0-r4 (13 Jul 2010)
+
+  13 Jul 2010; Markus Duft <mduft@gentoo.org>
+  +files/2.1.0/local-libs-first.patch, -files/2.2.0/exeext.patch,
+  -files/2.2.0/ext-ac-archive.patch, +files/2.3.0/exeext.patch,
+  +files/2.3.0/ext-ac-archive.patch, +files/2.3.0/local-libs-first.patch,
+  +files/2.3.0/new-automake.patch, -confix-2.1.0-r3.ebuild,
+  +confix-2.1.0-r4.ebuild, +confix-2.3.0-r3.ebuild, confix-9999.ebuild:
+  applied changes from private overlay. added new confix-2.3.0
 
   08 Feb 2010; Peter Volkov <pva@gentoo.org> confix-2.1.0.ebuild,
   confix-2.1.0-r3.ebuild, confix-9999.ebuild:
index 36f2e67acb029ed32d82fbbdae585ac5e738d2ca..8d0100ce75d05d10fd1e05dd28013b4e0ebeabe7 100644 (file)
@@ -3,12 +3,17 @@ AUX 2.1.0/exeext.patch 853 RMD160 a74991889f13ae4ac9c693a31a3cac45c3369c64 SHA1
 AUX 2.1.0/ext-ac-archive.patch 1219 RMD160 132c5f93b6ab7bb6180e3387ae2c0053e988f6e6 SHA1 e46fa3c669fabcbac9fb425645e30c29765e880e SHA256 93869837ba4c9430cd1f4997f7a446a43f294c28b2bb74018574d33ff9acfbc8
 AUX 2.1.0/fast-install.patch 15068 RMD160 2896a18ac2cc205d8e131cfb0185e4b92d657648 SHA1 86c7ffd5211de188cc7a93f402614876f8e52f25 SHA256 167d627f774e5cb48b2ff7012f2ef42b1b27b50c3e6c9c2b63dccca8955a3ce7
 AUX 2.1.0/jni-hpux.patch 461 RMD160 ceb81eab19f5ad68cbfea6e0a222396e568ee04f SHA1 1d106059b0c5af376dc63fa39c95a98d27acd7f7 SHA256 7b53466e987f738a34adaca8cbd8266265f43985ba7bddb02f100f068ca946e3
+AUX 2.1.0/local-libs-first.patch 1703 RMD160 4249f0e970dc3327cbee0cb5cfb20bd85a387e0d SHA1 c5c055bcf100ed0401e023e874afa2904260507d SHA256 cb4fdda0c6897610a153d3f19211a2c8148a0c0dfb32d951bbc1e096cf124521
 AUX 2.1.0/private-headers.patch 1685 RMD160 b15e70c2f3bad3205b6ae6b6627dc9167eb46945 SHA1 e0614dc7a80f573cd4c5119775d7e2929d90ffe6 SHA256 a47b77fb37677b7e3faa8d5e5d15c9cadf1546103f069c84b75f28dcda0fc873
-AUX 2.2.0/exeext.patch 890 RMD160 52223f7adfe5f20c045517b20f2bb6e43da0bcf4 SHA1 ec0546cdb44eb3899539e3a4254b9639b9513c80 SHA256 eeb76fd3eddc2665f9cbbc4379c0d75e5e9c2e6363bf7f3157e6c81c997dfd15
-AUX 2.2.0/ext-ac-archive.patch 1515 RMD160 1aa84c6e3a1259447289ed4cc8fa93e7dba1bc86 SHA1 ed015add7286b176f12590cbd8dbbb8da9a7560d SHA256 6713126639eaffa18ec22d5c7c4e3091b0bf3efa7a7d2c9b9011a7b6e95be99d
+AUX 2.3.0/exeext.patch 890 RMD160 52223f7adfe5f20c045517b20f2bb6e43da0bcf4 SHA1 ec0546cdb44eb3899539e3a4254b9639b9513c80 SHA256 eeb76fd3eddc2665f9cbbc4379c0d75e5e9c2e6363bf7f3157e6c81c997dfd15
+AUX 2.3.0/ext-ac-archive.patch 1515 RMD160 1aa84c6e3a1259447289ed4cc8fa93e7dba1bc86 SHA1 ed015add7286b176f12590cbd8dbbb8da9a7560d SHA256 6713126639eaffa18ec22d5c7c4e3091b0bf3efa7a7d2c9b9011a7b6e95be99d
+AUX 2.3.0/local-libs-first.patch 1871 RMD160 b078d7a27697b054e54fdce679b240a69b2dc63d SHA1 d39d19e801c8c57c0ce0aea39c3936525447a8fa SHA256 5a4ac9bfe8778c10952b5e0cfa33c835b8dd5f66d64f9fcd251fffd0b19c9459
+AUX 2.3.0/new-automake.patch 573 RMD160 188d27734e55b4ea92dbff7a7b7e04bb2d55daaa SHA1 1812a618794ebdebf73c08f8fb7546b88fb94ba2 SHA256 28190dc46beee0f163a9f64d8e523232d73864948cc06e9e9e35b98645df160e
 DIST Confix-2.1.0.tar.bz2 977383 RMD160 f83dc809b674cf7cfc78ad2a6a843c8bba9cc43a SHA1 837a8db0ca59c451289661f012eb227ccc8fda08 SHA256 ba4c4278e6bf1bf74503935fb394a2c045d122afebde52d863b040fba6e7104f
-EBUILD confix-2.1.0-r3.ebuild 1769 RMD160 ad4117357dcecd9422092e7f5dc6dc833c0b0cd6 SHA1 dc8d5af2aec89519c381c9d8a26a4989834c1238 SHA256 196d708518459c865a1b13a620263ca6c2771c15481c69ded77e30cc97da3d2b
+DIST Confix-2.3.0.tar.bz2 677643 RMD160 cc2f98a798e5a1dc8004bf4ed26ff4ac621e54d0 SHA1 30eb92b8bd87dc92784b45f07d5531870fe525fc SHA256 4f8426b37a8d3ca5bfae0063d678cfdbb16c03771f3fc7a2847e1cda997b56f4
+EBUILD confix-2.1.0-r4.ebuild 2869 RMD160 5a803052bdf0fc86b88cc2ed69ce61e0b7b22542 SHA1 c3985c3a6b6650392e716af71acc41b7a07590d9 SHA256 dd01fe903049a4fffa109b669ee8539499aff0f2eb8eddda160e7cf7bbca0ad2
 EBUILD confix-2.1.0.ebuild 1492 RMD160 6062580103a1ab5895dd1ae2245f72a1cff933ed SHA1 991014a2f9b3e4e5b2a9d2a79b97ffbd91570f89 SHA256 9a4fec08532924d8a45d3cc139000c71f75cf468d8273f07f42a0c711c31e3aa
-EBUILD confix-9999.ebuild 1874 RMD160 be7f23c36f6980f7cd66a9569a65daa44ad42b0b SHA1 877709f3e098511e10bc209a876c5254e6e3acd6 SHA256 f4580efee34ba9f7d9e2d05152d5b8673d6cec92f159b052e89af4aa15ab17dc
-MISC ChangeLog 2206 RMD160 6856cb2cbcd34bfed36e57b00fd7ebcfd1386fd2 SHA1 8b971ba2d804d5e32e86367bb20cb247cabb7e4b SHA256 ed8d49a77b69d140c863ca62eaad25040e3125c0eb0d1f50aa700b2068b5abad
+EBUILD confix-2.3.0-r3.ebuild 2663 RMD160 fb6255934ebe74bada2d1f515bf83ba1ff802d73 SHA1 9d301c616398f5fd3d220258b503e2e74a912399 SHA256 b503bf9b0fb39e7e5019234ced50f8c091dab6ce5c6a2cb8c8f0f845c4547ee2
+EBUILD confix-9999.ebuild 1876 RMD160 13f5dde375bf60ecd0636c68d52d115154c60388 SHA1 7f0d7cbeb52297d7e3db7ac1c989eeea19667692 SHA256 9db163110f357c7b746b1c11860f228ee4bdd9b7be54c07985b39223dc2f2193
+MISC ChangeLog 2717 RMD160 12dae71f9fb4d5364a333927b8817498eb3671bf SHA1 b1a29ed7c4daf169322cd1d7f9cf62bdc82a3793 SHA256 f4b2083c3ca6eb25ef178cdafeaba3b50a117fc77cd84a05a27c52a86264edd4
 MISC metadata.xml 310 RMD160 8705c05dd91101641c0c967f040cf8c6de36f5e0 SHA1 255e1d97639f0f1698d667d23273797d05ac034d SHA256 05b48b7bd20b100b293a45dd84f1d9e7beeb52409327248b0d5ad242e0d9d2e5
similarity index 55%
rename from dev-util/confix/confix-2.1.0-r3.ebuild
rename to dev-util/confix/confix-2.1.0-r4.ebuild
index b4637a6ab281d65c82042037ab36ba3f0488ca1f..54b36a60b3b77efe96b8ce5b3f10f705d00444bd 100644 (file)
@@ -1,8 +1,8 @@
 # Copyright 1999-2010 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/confix/confix-2.1.0-r3.ebuild,v 1.4 2010/02/08 08:56:51 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/confix/confix-2.1.0-r4.ebuild,v 1.1 2010/07/13 11:57:23 mduft Exp $
 
-inherit eutils distutils
+inherit distutils
 
 DESCRIPTION="Confix: A Build Tool on Top of GNU Automake"
 HOMEPAGE="http://confix.sourceforge.net"
@@ -10,7 +10,7 @@ SRC_URI="mirror://sourceforge/confix/Confix-${PV}.tar.bz2"
 
 LICENSE="GPL-2"
 SLOT="2"
-KEYWORDS="~amd64 ~x86 ~ppc-aix ~ia64-hpux ~x86-interix ~x86-linux ~sparc-solaris ~x86-solaris"
+KEYWORDS="~amd64 ~x86 ~ppc-aix ~hppa-hpux ~ia64-hpux ~x86-interix ~x86-linux ~sparc-solaris ~x86-solaris"
 IUSE=""
 
 DEPEND="dev-lang/python"
@@ -40,6 +40,8 @@ src_unpack() {
        epatch "${FILESDIR}"/${PV}/private-headers.patch
        # enable fast installation rules.
        epatch "${FILESDIR}"/${PV}/fast-install.patch
+       # link local libraries first.
+       epatch "${FILESDIR}"/${PV}/local-libs-first.patch
 
        # need to store repos in exact versioned share/confix-PV/repo
        sed -i -e "s,'confix2','confix-${PV}'," \
@@ -52,3 +54,26 @@ src_unpack() {
                libconfix/core/utils/const.py \
        || die "cannot adjust confix version"
 }
+
+pkg_preinst() {
+       if has_version '<dev-util/confix-2.1.0-r03.1'; then
+               einfo "After upgrading to ${P} you likely want to remerge all packages built"
+               einfo "with <dev-util/confix-2.1.0-r03.1 in your EPREFIX to fix a bug in"
+               einfo "libtool's la-files created using the old ${PN}."
+               ewarn
+               ewarn "Use this command (copy&paste) to identify packages built with <confix-2.1.0-r3"
+               ewarn "needing a remerge in your particular instance of Gentoo Prefix:"
+               ewarn
+               # use 'echo' to get this command from here:
+               ewarn "( cd \$(portageq envvar EPREFIX)/var/db/pkg || exit 1;" \
+                         "pattern=\$(cd ../../.. && echo \$(grep -l" \
+                         "'/portage/[^/]*/[^/]*/work/' usr/lib/lib*.la)" \
+                         "| sed -e 's, ,|,g'); if [[ -z \${pattern} ]]; then" \
+                         "echo 'No more packages were built with broken Confix.'; exit 0; fi;" \
+                         "emerge --ask --oneshot \$(grep -lE \"(\${pattern})\"" \
+                         "*/*/CONTENTS | xargs grep -l usr/share/confix-2.1.0/repo" \
+                         "| sed -e 's,^,=,;s,/CONTENTS,,')" \
+                         ")"
+               ewarn
+       fi
+}
diff --git a/dev-util/confix/confix-2.3.0-r3.ebuild b/dev-util/confix/confix-2.3.0-r3.ebuild
new file mode 100644 (file)
index 0000000..41f44e1
--- /dev/null
@@ -0,0 +1,76 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/confix/confix-2.3.0-r3.ebuild,v 1.1 2010/07/13 11:57:23 mduft Exp $
+
+inherit distutils
+
+DESCRIPTION="Confix: A Build Tool on Top of GNU Automake"
+HOMEPAGE="http://confix.sourceforge.net"
+SRC_URI="mirror://sourceforge/confix/Confix-${PV}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="2"
+KEYWORDS="~amd64 ~x86 ~ppc-aix ~hppa-hpux ~ia64-hpux ~x86-interix ~x86-linux ~sparc-solaris ~x86-solaris"
+IUSE=""
+
+DEPEND="dev-lang/python"
+RDEPEND="${DEPEND}
+       sys-devel/automake
+       sys-devel/libtool
+       sys-devel/autoconf-archive
+       dev-util/confix-wrapper
+"
+
+S="${WORKDIR}/Confix-${PV}"
+PYTHON_MODNAME="libconfix tests"
+
+src_unpack() {
+       unpack ${A}
+       cd "${S}"
+
+       # find jni-include dirs on hpux.
+       epatch "${FILESDIR}"/2.1.0/jni-hpux.patch
+       # add .exe extension to TESTS
+       epatch "${FILESDIR}"/${PV}/exeext.patch
+       # use external autoconf archive
+       epatch "${FILESDIR}"/${PV}/ext-ac-archive.patch
+       # link local libraries first.
+       epatch "${FILESDIR}"/${PV}/local-libs-first.patch
+       # don't use automake 1.9, but any newer too...
+       epatch "${FILESDIR}"/${PV}/new-automake.patch
+
+       # need to store repos in exact versioned share/confix-PV/repo
+       sed -i -e "s,\<confix2\>,confix-${PV}," \
+               libconfix/plugins/automake/repo_automake.py \
+               libconfix/core/machinery/repo.py \
+       || die "cannot adjust repo dir"
+       #       libconfix/plugins/cmake/consts.py \
+
+       # adjust version-printing to have same version as share/confix-PV/repo,
+       # to ease revdep-rebuild-alike scripts for rebuilding confix-packages.
+       sed -i -e "/^CONFIX_VERSION[    ]*=/s,.*,CONFIX_VERSION = '${PV}'," \
+               libconfix/core/utils/const.py \
+       || die "cannot adjust confix version"
+}
+
+pkg_preinst() {
+       if has_version "<dev-util/confix-${PV}"; then
+               einfo "After merging ${P} you might have to remerge all packages built"
+               einfo "with !=dev-util/confix-${PV}* in your EPREFIX to get all the"
+               einfo "repo files useable with current ${PN}".
+               ewarn
+               ewarn "Use this command (copy&paste) to identify packages built with confix"
+               ewarn "needing a remerge in your particular instance of Gentoo Prefix:"
+               ewarn
+               # use 'echo' to get this command from here:
+               ewarn "( cd \$(portageq envvar EPREFIX)/var/db/pkg || exit 1;" \
+                         "pattern=\$(cd ../../.. && echo \$(ls -d" \
+                         "usr/share/confix*/repo | grep -v confix-${PV}) |" \
+                         "sed -e 's, ,|,g'); if [[ -z \${pattern} ]]; then echo" \
+                         "'No more packages were built with broken Confix.'; exit 0;" \
+                         "fi; emerge --ask --oneshot \$(grep -lE \"(\${pattern})\"" \
+                         "*/*/CONTENTS | sed -e 's,^,=,;s,/CONTENTS,,')" \
+                         ")"
+               ewarn
+       fi
+}
index 9a271355ca954fa3112aef3ea05e565e4028a694..ad9a40ec151e775bf99f525abe8ab4179aa3ea85 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2010 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/confix/confix-9999.ebuild,v 1.3 2010/02/08 08:56:51 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/confix/confix-9999.ebuild,v 1.4 2010/07/13 11:57:23 mduft Exp $
 
 EAPI=2
 
@@ -34,9 +34,9 @@ src_prepare() {
 # does not apply to trunk anymore
 #      epatch "${FILESDIR}"/2.1.0/CALL_RESCAN_HACK.patch
        # add .exe extension to TESTS
-       epatch "${FILESDIR}"/2.2.0/exeext.patch
+       epatch "${FILESDIR}"/2.3.0/exeext.patch
        # use external autoconf archive
-       epatch "${FILESDIR}"/2.2.0/ext-ac-archive.patch
+       epatch "${FILESDIR}"/2.3.0/ext-ac-archive.patch
        # enable SET_FILE_PROPERTIES(file, { 'PRIVATE_CINCLUDE', 1 })
 # does not apply to trunk anymore
 #      epatch "${FILESDIR}"/2.1.0/private-headers.patch
diff --git a/dev-util/confix/files/2.1.0/local-libs-first.patch b/dev-util/confix/files/2.1.0/local-libs-first.patch
new file mode 100644 (file)
index 0000000..26f9c75
--- /dev/null
@@ -0,0 +1,38 @@
+With libtool, link local libraries with /path/to/libfile.la instead of libpath,
+to avoid encoding local libpath into installed la-file.
+These also have to be linked first, to avoid finding already installed
+libraries of previous versions during libtool-relink.
+--- libconfix/plugins/c/linked.py.orig 2010-06-25 11:30:40.885595798 +0200
++++ libconfix/plugins/c/linked.py      2010-06-25 11:31:07.055184455 +0200
+@@ -128,6 +128,8 @@
+         pass
+ 
+     def get_linkline(self):
++        local_paths = []
++        local_libraries = []
+         native_paths = []
+         native_libraries = []
+         external_linkline = []
+@@ -150,8 +152,11 @@
+ 
+         for bi in native_libs_to_use:
+             if isinstance(bi, BuildInfo_CLibrary_NativeLocal):
+-                native_paths.append('-L'+'/'.join(['$(top_builddir)']+bi.dir()))
+-                native_libraries.append('-l'+bi.name())
++                if self.__use_libtool:
++                    local_libraries.append('/'.join(['$(top_builddir)']+bi.dir()+['lib'+bi.name()+'.la']))
++                else:
++                    local_paths.append('-L'+'/'.join(['$(top_builddir)']+bi.dir()))
++                    local_libraries.append('-l'+bi.name())
+                 continue
+             if isinstance(bi, BuildInfo_CLibrary_NativeInstalled):
+                 using_installed_library = True
+@@ -173,7 +178,7 @@
+             external_linkline.extend(elem)
+             pass
+             
+-        return native_paths + native_libraries + external_linkline
++        return local_paths + local_libraries + native_paths + native_libraries + external_linkline
+     
+     def __init_buildinfo(self):
+         self.__buildinfo_direct_dependent_native_libs = []
diff --git a/dev-util/confix/files/2.3.0/local-libs-first.patch b/dev-util/confix/files/2.3.0/local-libs-first.patch
new file mode 100644 (file)
index 0000000..29d4a7a
--- /dev/null
@@ -0,0 +1,39 @@
+With libtool, link local libraries with /path/to/libfile.la instead of libpath,
+to avoid encoding local libpath into installed la-file.
+These also have to be linked first, to avoid finding already installed
+libraries of previous versions during libtool-relink.
+diff -ru Confix-2.3.0.orig/libconfix/plugins/automake/c/out_c.py Confix-2.3.0/libconfix/plugins/automake/c/out_c.py
+--- Confix-2.3.0.orig/libconfix/plugins/automake/c/out_c.py    2010-07-06 12:55:59.286540943 +0200
++++ Confix-2.3.0/libconfix/plugins/automake/c/out_c.py 2010-07-06 13:01:23.574428852 +0200
+@@ -411,6 +411,8 @@
+         """
+         assert isinstance(linked_builder, LinkedBuilder)
+         
++        local_paths = []
++        local_libraries = []
+         native_paths = []
+         native_libraries = []
+         external_linkline = []
+@@ -424,8 +426,11 @@
+ 
+         for bi in native_libs_to_use:
+             if isinstance(bi, BuildInfo_CLibrary_NativeLocal):
+-                native_paths.append('-L'+'/'.join(['$(top_builddir)']+bi.dir()))
+-                native_libraries.append('-l'+bi.basename())
++                if self.__use_libtool:
++                    local_libraries.append('/'.join(['$(top_builddir)']+bi.dir()+['lib'+bi.basename()+'.la']))
++                else:
++                    local_paths.append('-L'+'/'.join(['$(top_builddir)']+bi.dir()))
++                    local_libraries.append('-l'+bi.basename())
+                 continue
+             if isinstance(bi, BuildInfo_CLibrary_NativeInstalled):
+                 using_installed_library = True
+@@ -447,7 +452,7 @@
+             external_linkline.extend(elem)
+             pass
+ 
+-        return native_paths + native_libraries + external_linkline
++        return local_paths + local_libraries + native_paths + native_libraries + external_linkline
+ 
+     def external_libpath(self):
+         """ For unit tests only. """
diff --git a/dev-util/confix/files/2.3.0/new-automake.patch b/dev-util/confix/files/2.3.0/new-automake.patch
new file mode 100644 (file)
index 0000000..d6f24a4
--- /dev/null
@@ -0,0 +1,12 @@
+diff -ru Confix-2.3.0.orig/libconfix/plugins/automake/out_automake.py Confix-2.3.0/libconfix/plugins/automake/out_automake.py
+--- Confix-2.3.0.orig/libconfix/plugins/automake/out_automake.py       2010-07-12 13:15:49.254867387 +0200
++++ Confix-2.3.0/libconfix/plugins/automake/out_automake.py    2010-07-12 13:17:29.755908602 +0200
+@@ -170,7 +170,7 @@
+ 
+ 
+         # our minimum required automake version is 1.9
+-        self.makefile_am().add_automake_options('1.9')
++        # self.makefile_am().add_automake_options('1.9')
+ 
+ 
+         # enable dist'ing in the following formats