[gentoo-dev][ppc64le][PATCH 04/12] ELT-patches/ppc64le: add libtool-2.4.6 patch for ppc64le #580792

2016-06-28 Thread Leno Hou
Signed-off-by: Leno Hou 
---
 eclass/ELT-patches/ppc64le/2.4.6 | 15 +++
 1 file changed, 15 insertions(+)
 create mode 100644 eclass/ELT-patches/ppc64le/2.4.6

diff --git a/eclass/ELT-patches/ppc64le/2.4.6 b/eclass/ELT-patches/ppc64le/2.4.6
new file mode 100644
index 000..711ceb2
--- /dev/null
+++ b/eclass/ELT-patches/ppc64le/2.4.6
@@ -0,0 +1,15 @@
+--- m4/libtool.m4.orig 2016-04-21 16:42:22.170586778 +
 m4/libtool.m4  2016-04-21 16:43:41.571195049 +
+@@ -1417,10 +1417,10 @@
+ x86_64-*linux*)
+   LD="${LD-ld} -m elf_x86_64"
+   ;;
+-powerpcle-*linux*)
++powerpcle-*linux*|powerpc64le-*linux*)
+   LD="${LD-ld} -m elf64lppc"
+   ;;
+-powerpc-*linux*)
++powerpc-*linux*|powerpc64-*linux*)
+   LD="${LD-ld} -m elf64ppc"
+   ;;
+ s390*-*linux*|s390*-*tpf*)
-- 
2.7.3




[gentoo-dev][ppc64le][PATCH 03/12] ELT-patches/ppc64le: add libtool-2.4.4 patch for ppc64le #580792

2016-06-28 Thread Leno Hou
Signed-off-by: Leno Hou 
---
 eclass/ELT-patches/ppc64le/2.4.4 | 15 +++
 1 file changed, 15 insertions(+)
 create mode 100644 eclass/ELT-patches/ppc64le/2.4.4

diff --git a/eclass/ELT-patches/ppc64le/2.4.4 b/eclass/ELT-patches/ppc64le/2.4.4
new file mode 100644
index 000..e3e4637
--- /dev/null
+++ b/eclass/ELT-patches/ppc64le/2.4.4
@@ -0,0 +1,15 @@
+--- m4/libtool.m4.orig 2016-04-21 16:59:06.039629474 +
 m4/libtool.m4  2016-04-21 17:00:10.564264157 +
+@@ -1386,10 +1386,10 @@
+ x86_64-*linux*)
+   LD="${LD-ld} -m elf_x86_64"
+   ;;
+-powerpcle-*linux*)
++powerpcle-*linux*|powerpc64le-*linux*)
+   LD="${LD-ld} -m elf64lppc"
+   ;;
+-powerpc-*linux*)
++powerpc-*linux*|powerpc64-*linux*)
+   LD="${LD-ld} -m elf64ppc"
+   ;;
+ s390*-*linux*|s390*-*tpf*)
-- 
2.7.3




[gentoo-dev][ppc64le][PATCH 06/12] sys-process/procps: run elibtoolize #580792

2016-06-28 Thread Leno Hou
This is needed to support newer platforms (like ppc64le).
Signed-off-by: Leno Hou 
---
 sys-process/procps/procps-3.3.10-r1.ebuild | 3 ++-
 sys-process/procps/procps-3.3.9-r2.ebuild  | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/sys-process/procps/procps-3.3.10-r1.ebuild 
b/sys-process/procps/procps-3.3.10-r1.ebuild
index f254f34..d484b23 100644
--- a/sys-process/procps/procps-3.3.10-r1.ebuild
+++ b/sys-process/procps/procps-3.3.10-r1.ebuild
@@ -4,7 +4,7 @@
 
 EAPI="5"
 
-inherit eutils toolchain-funcs
+inherit eutils libtool toolchain-funcs
 
 DESCRIPTION="standard informational utilities and process-handling tools"
 # http://packages.debian.org/sid/procps
@@ -34,6 +34,7 @@ src_prepare() {
epatch "${FILESDIR}"/${PN}-3.3.8-kill-neg-pid.patch # 
http://crbug.com/255209
epatch "${FILESDIR}"/${P}-pmap-unreadable.patch #404389
epatch "${FILESDIR}"/${P}-tests-no-tty.patch #461302
+   elibtoolize #580792
sed -i -e 's:systemd-login:systemd:' configure || die #501306
 }
 
diff --git a/sys-process/procps/procps-3.3.9-r2.ebuild 
b/sys-process/procps/procps-3.3.9-r2.ebuild
index 4e8e0e6..d5c6df8 100644
--- a/sys-process/procps/procps-3.3.9-r2.ebuild
+++ b/sys-process/procps/procps-3.3.9-r2.ebuild
@@ -4,7 +4,7 @@
 
 EAPI="4"
 
-inherit eutils toolchain-funcs
+inherit eutils libtool toolchain-funcs
 
 DESCRIPTION="standard informational utilities and process-handling tools"
 # http://packages.debian.org/sid/procps
@@ -33,6 +33,7 @@ src_prepare() {
epatch \
"${FILESDIR}"/${PN}-3.3.8-kill-neg-pid.patch \
"${FILESDIR}"/${P}-sysctl-load-config-files.patch
+   elibtoolize #580792
sed -i -e 's:systemd-login:systemd:' configure || die #501306
 }
 
-- 
2.7.3




[gentoo-dev][ppc64le][PATCH 05/12] dev-libs/libmnl: run elibtoolize #580792

2016-06-28 Thread Leno Hou
This is needed to support newer platforms (like ppc64le).
Signed-off-by: Leno Hou 
---
 net-libs/libmnl/libmnl-1.0.3-r1.ebuild | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/net-libs/libmnl/libmnl-1.0.3-r1.ebuild 
b/net-libs/libmnl/libmnl-1.0.3-r1.ebuild
index 4b0bbc2..bca8c8e 100644
--- a/net-libs/libmnl/libmnl-1.0.3-r1.ebuild
+++ b/net-libs/libmnl/libmnl-1.0.3-r1.ebuild
@@ -4,7 +4,7 @@
 
 EAPI=4
 
-inherit eutils toolchain-funcs
+inherit eutils libtool toolchain-funcs
 
 DESCRIPTION="Minimalistic netlink library"
 HOMEPAGE="http://netfilter.org/projects/libmnl";
@@ -15,6 +15,9 @@ SLOT="0"
 KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc 
x86 ~amd64-linux"
 IUSE="examples static-libs"
 
+src_prepare(){
+   elibtoolize #580792
+}
 src_configure() {
econf $(use_enable static-libs static)
 }
-- 
2.7.3




[gentoo-dev][ppc64le][PATCH 07/12] app-text/opensp: autoreconf to build opensp for ppc64le #580792

2016-06-28 Thread Leno Hou
This is needed to support newer platforms (like ppc64le).
Signed-off-by: Leno Hou 
---
 app-text/opensp/opensp-1.5.2-r3.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/app-text/opensp/opensp-1.5.2-r3.ebuild 
b/app-text/opensp/opensp-1.5.2-r3.ebuild
index 9f97607..d60c8f6 100644
--- a/app-text/opensp/opensp-1.5.2-r3.ebuild
+++ b/app-text/opensp/opensp-1.5.2-r3.ebuild
@@ -3,7 +3,7 @@
 # $Id$
 
 EAPI=5
-inherit eutils flag-o-matic
+inherit eutils flag-o-matic autotools
 
 MY_P=${P/opensp/OpenSP}
 
@@ -34,6 +34,7 @@ src_prepare() {
epatch \
"${FILESDIR}"/${PN}-1.5-gcc34.patch \
"${FILESDIR}"/${P}-fix-segfault.patch
+   eautoreconf #580792
 }
 
 src_configure() {
-- 
2.7.3




[gentoo-dev][ppc64le][PATCH 08/12] sys-block/partimage: run elibtoolize #580792

2016-06-28 Thread Leno Hou
This is needed to support newer platforms (like ppc64le).
Signed-off-by: Leno Hou 
---
 sys-block/partimage/partimage-0.6.9.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys-block/partimage/partimage-0.6.9.ebuild 
b/sys-block/partimage/partimage-0.6.9.ebuild
index 10f9545..92302f2 100644
--- a/sys-block/partimage/partimage-0.6.9.ebuild
+++ b/sys-block/partimage/partimage-0.6.9.ebuild
@@ -3,7 +3,7 @@
 # $Id$
 
 EAPI=4
-inherit eutils flag-o-matic pam user
+inherit eutils libtool flag-o-matic pam user
 
 DESCRIPTION="Console-based application to efficiently save raw partition data 
to an image file"
 HOMEPAGE="http://www.partimage.org/";
@@ -34,6 +34,7 @@ pkg_setup() {
 src_prepare() {
epatch "${FILESDIR}"/${P}-zlib-1.2.5.2.patch #405323
epatch "${FILESDIR}"/${P}-minor-typo.patch #580290
+   elibtoolize
 }
 
 src_configure() {
-- 
2.7.3




[gentoo-dev][ppc64le][PATCH 11/12] dev-utils/perf: add support for ppc64le #581746

2016-06-28 Thread Leno Hou
Signed-off-by: Leno Hou 
---
 dev-util/perf/perf-4.4.4.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/perf/perf-4.4.4.ebuild b/dev-util/perf/perf-4.4.4.ebuild
index 18dd89e..b4fe31e 100644
--- a/dev-util/perf/perf-4.4.4.ebuild
+++ b/dev-util/perf/perf-4.4.4.ebuild
@@ -76,7 +76,7 @@ pkg_setup() {
 src_unpack() {
local paths=(
tools/arch tools/build tools/include tools/lib tools/perf 
tools/scripts
-   include lib "arch/*/lib"
+   include lib "arch/*/include" "arch/*/lib"
)
 
# We expect the tar implementation to support the -j option (both
-- 
2.7.3




[gentoo-dev][ppc64le][PATCH 12/12] net-misc/gsutils: fix dev-python/oauth2client-2 dependency

2016-06-28 Thread Leno Hou
---
 net-misc/gsutil/gsutil-4.19.ebuild | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/net-misc/gsutil/gsutil-4.19.ebuild 
b/net-misc/gsutil/gsutil-4.19.ebuild
index ea1c3e1..7904721 100644
--- a/net-misc/gsutil/gsutil-4.19.ebuild
+++ b/net-misc/gsutil/gsutil-4.19.ebuild
@@ -26,8 +26,7 @@ RDEPEND="${PYTHON_DEPS}
>=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}]
>=dev-python/gcs-oauth2-boto-plugin-1.12[${PYTHON_USEDEP}]
>=dev-python/google-apitools-0.5.2[${PYTHON_USEDEP}]
-   >=dev-python/oauth2client-1.5.2[${PYTHON_USEDEP}]
-   =dev-python/python-gflags-2.0[${PYTHON_USEDEP}]
>=dev-python/retry-decorator-1.0.0[${PYTHON_USEDEP}]
>=dev-python/six-1.9.0[${PYTHON_USEDEP}]
-- 
2.7.3




[gentoo-dev][ppc64le][PATCH 01/12] sys-devel/libtool: add m4/libtool.m4 patch for ppc64le #581314

2016-06-28 Thread Leno Hou
Reference Bug:
Gentoo Bug: https://bugs.gentoo.org/show_bug.cgi?id=581314
GNU Bug: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23348

* m4/libtool (LD=elf64lppc): add recognise definition with
CHOST=powerpc64le-unknown-linux-gnu on ppc64le platform and
CHOST=powerpc64-unknown-linux-gnu on ppc64 platform. This
patch sets $LD=elf64lppc on ppc64le and $LD=elf64ppc on ppc64.

Package-Manager: portage-2.2.26
Signed-off-by: Leno Hou 
---
 .../libtool-2.4.6-libtool-m4-for-ppc64le.patch | 41 ++
 sys-devel/libtool/libtool-2.4.6-r1.ebuild  |  1 +
 sys-devel/libtool/libtool-2.4.6-r2.ebuild  |  1 +
 sys-devel/libtool/libtool-2.4.6.ebuild |  1 +
 4 files changed, 44 insertions(+)
 create mode 100644 
sys-devel/libtool/files/libtool-2.4.6-libtool-m4-for-ppc64le.patch

diff --git a/sys-devel/libtool/files/libtool-2.4.6-libtool-m4-for-ppc64le.patch 
b/sys-devel/libtool/files/libtool-2.4.6-libtool-m4-for-ppc64le.patch
new file mode 100644
index 000..946c8c7
--- /dev/null
+++ b/sys-devel/libtool/files/libtool-2.4.6-libtool-m4-for-ppc64le.patch
@@ -0,0 +1,41 @@
+From a08fc6407e6bead83024668227b91556de7292eb Mon Sep 17 00:00:00 2001
+From: Leno Hou 
+Date: Sat, 14 May 2016 14:56:57 +
+Subject: [PATCH] m4/libtool.m4: Fix LD parameters with ppc64 & ppc64le
+ platform
+
+For v2.4.6
+Reference Bug:
+Gentoo Bug: https://bugs.gentoo.org/show_bug.cgi?id=581314
+GNU Bug: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23348
+
+* m4/libtool (LD=elf64lppc): add recognise definition with
+CHOST=powerpc64le-unknown-linux-gnu on ppc64le platform and
+CHOST=powerpc64-unknown-linux-gnu on ppc64 platform. This
+patch sets =elf64lppc on ppc64le and =elf64ppc on ppc64.
+
+Signed-off-by: Leno Hou 
+---
+ m4/libtool.m4 | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/m4/libtool.m4 b/m4/libtool.m4
+index a3bc337..91b2e01 100644
+--- a/m4/libtool.m4
 b/m4/libtool.m4
+@@ -1417,10 +1417,10 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
+ x86_64-*linux*)
+   LD="${LD-ld} -m elf_x86_64"
+   ;;
+-powerpcle-*linux*)
++powerpcle-*linux*|powerpc64le-*linux*)
+   LD="${LD-ld} -m elf64lppc"
+   ;;
+-powerpc-*linux*)
++powerpc-*linux*|powerpc64-*linux*)
+   LD="${LD-ld} -m elf64ppc"
+   ;;
+ s390*-*linux*|s390*-*tpf*)
+-- 
+2.7.3
+
diff --git a/sys-devel/libtool/libtool-2.4.6-r1.ebuild 
b/sys-devel/libtool/libtool-2.4.6-r1.ebuild
index 677db33..2038ff0 100644
--- a/sys-devel/libtool/libtool-2.4.6-r1.ebuild
+++ b/sys-devel/libtool/libtool-2.4.6-r1.ebuild
@@ -48,6 +48,7 @@ src_prepare() {
 
epatch "${FILESDIR}"/${PN}-2.4.3-use-linux-version-in-fbsd.patch #109105
epatch "${FILESDIR}"/${P}-fuse-ld.patch
+   epatch "${FILESDIR}"/${PN}-2.4.6-libtool-m4-for-ppc64le.patch #581314
pushd libltdl >/dev/null
AT_NOELIBTOOLIZE=yes eautoreconf
popd >/dev/null
diff --git a/sys-devel/libtool/libtool-2.4.6-r2.ebuild 
b/sys-devel/libtool/libtool-2.4.6-r2.ebuild
index 7e8b7ef..528ce85 100644
--- a/sys-devel/libtool/libtool-2.4.6-r2.ebuild
+++ b/sys-devel/libtool/libtool-2.4.6-r2.ebuild
@@ -53,6 +53,7 @@ src_prepare() {
epatch "${FILESDIR}"/${P}-libtoolize-slow.patch
epatch "${FILESDIR}"/${P}-libtoolize-delay-help.patch
epatch "${FILESDIR}"/${P}-sed-quote-speedup.patch #542252
+   epatch "${FILESDIR}"/${PN}-2.4.6-libtool-m4-for-ppc64le.patch #581314
pushd libltdl >/dev/null
AT_NOELIBTOOLIZE=yes eautoreconf
popd >/dev/null
diff --git a/sys-devel/libtool/libtool-2.4.6.ebuild 
b/sys-devel/libtool/libtool-2.4.6.ebuild
index 71a9b47..e7eeaed 100644
--- a/sys-devel/libtool/libtool-2.4.6.ebuild
+++ b/sys-devel/libtool/libtool-2.4.6.ebuild
@@ -47,6 +47,7 @@ src_prepare() {
use vanilla && return 0
 
epatch "${FILESDIR}"/${PN}-2.4.3-use-linux-version-in-fbsd.patch #109105
+   epatch "${FILESDIR}"/${PN}-2.4.6-libtool-m4-for-ppc64le.patch #581314
pushd libltdl >/dev/null
AT_NOELIBTOOLIZE=yes eautoreconf
popd >/dev/null
-- 
2.7.3




[gentoo-dev][ppc64le][PATCH 02/12] libtool.eclass: elibtoolize: add ppc64le handling #580792

2016-06-28 Thread Leno Hou
Signed-off-by: Leno Hou 
---
 eclass/ELT-patches/ppc64le/2.4.2 | 26 ++
 eclass/libtool.eclass|  6 +-
 2 files changed, 31 insertions(+), 1 deletion(-)
 create mode 100644 eclass/ELT-patches/ppc64le/2.4.2

diff --git a/eclass/ELT-patches/ppc64le/2.4.2 b/eclass/ELT-patches/ppc64le/2.4.2
new file mode 100644
index 000..d61f6c3
--- /dev/null
+++ b/eclass/ELT-patches/ppc64le/2.4.2
@@ -0,0 +1,26 @@
+--- m4/libtool.m4.orig 2016-04-21 16:50:01.118444710 +
 m4/libtool.m4  2016-04-21 16:52:39.419906716 +
+@@ -1329,6 +1329,9 @@
+ ppc64-*linux*|powerpc64-*linux*)
+   LD="${LD-ld} -m elf32ppclinux"
+   ;;
++ppc64le-*linux*|powerpc64le-*linux*)
++  LD="${LD-ld} -m elf32lppclinux"
++  ;;
+ s390x-*linux*)
+   LD="${LD-ld} -m elf_s390"
+   ;;
+@@ -1345,9 +1348,12 @@
+ x86_64-*linux*)
+   LD="${LD-ld} -m elf_x86_64"
+   ;;
+-ppc*-*linux*|powerpc*-*linux*)
++powerpc-*linux*|powerpc64-*linux*)
+   LD="${LD-ld} -m elf64ppc"
+   ;;
++powerpcle-*linux*|powerpc64le-*linux*)
++  LD="${LD-ld} -m elf64lppc"
++  ;;
+ s390*-*linux*|s390*-*tpf*)
+   LD="${LD-ld} -m elf64_s390"
+   ;;
diff --git a/eclass/libtool.eclass b/eclass/libtool.eclass
index 47ef812..9f56c20 100644
--- a/eclass/libtool.eclass
+++ b/eclass/libtool.eclass
@@ -144,7 +144,7 @@ elibtoolize() {
local deptoremove=
local do_shallow="no"
local force="false"
-   local elt_patches="install-sh ltmain portage relink max_cmd_len sed 
test tmp cross as-needed target-nm"
+   local elt_patches="install-sh ltmain portage relink max_cmd_len sed 
test tmp cross as-needed target-nm ppc64le"
 
for x in "$@" ; do
case ${x} in
@@ -417,6 +417,10 @@ elibtoolize() {
ELT_walk_patches "${d}/configure" "${p}"
ret=$?
;;
+   ppc64le)
+   ELT_walk_patches "${d}/configure" "${p}"
+   ret=$?
+   ;;
*)
# ltmain.sh patches are applied above
;;
-- 
2.7.3




Re: [gentoo-dev][ppc64le][PATCH 01/12] sys-devel/libtool: add m4/libtool.m4 patch for ppc64le #581314

2016-06-28 Thread Anthony G. Basile
On 6/28/16 10:31 AM, Leno Hou wrote:
> Reference Bug:
> Gentoo Bug: https://bugs.gentoo.org/show_bug.cgi?id=581314
> GNU Bug: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23348
> 

Leno,

Thanks.  Just so other devs know, I'm helping Leno port gentoo to
ppc64le.  We need these 12 patches to get build systems to recognize
CHOST=powerpc64le-unknown-linux-gnu plus fix up some other pkgs.  I'm
going to set up an overlay to house these fixes until they land in the
tree, but if you can review them it'll save the effort of the
intermediate overlay.

-- 
Anthony G. Basile, Ph.D.
Gentoo Linux Developer [Hardened]
E-Mail: bluen...@gentoo.org
GnuPG FP  : 1FED FAD9 D82C 52A5 3BAB  DC79 9384 FA6E F52D 4BBA
GnuPG ID  : F52D4BBA



[gentoo-dev][ppc64le][PATCH 09/12] dev-libs/libverto: add elibtoolize w/ libverto to build for ppc64le

2016-06-28 Thread Leno Hou
This patch fixs mit-krb5 link with wrong libverto when emerge mit-krb5
Add elibtoolize will let's econf generate the configure for ppc64le
and build the correct libverto for mit-krb5 to use.

Signed-off-by: Leno Hou 
---
 dev-libs/libverto/libverto-0.2.5-r1.ebuild | 3 ++-
 dev-libs/libverto/libverto-0.2.5.ebuild| 3 +++
 dev-libs/libverto/libverto-0.2.6.ebuild| 3 ++-
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/dev-libs/libverto/libverto-0.2.5-r1.ebuild 
b/dev-libs/libverto/libverto-0.2.5-r1.ebuild
index cd1aecd..3d06f99 100644
--- a/dev-libs/libverto/libverto-0.2.5-r1.ebuild
+++ b/dev-libs/libverto/libverto-0.2.5-r1.ebuild
@@ -4,7 +4,7 @@
 
 EAPI=5
 
-inherit multilib-minimal
+inherit multilib-minimal libtool
 
 DESCRIPTION="Main event loop abstraction library"
 HOMEPAGE="https://fedorahosted.org/libverto/";
@@ -33,6 +33,7 @@ src_prepare() {
# callback on error, but we explicitly test for this behaviour.  Do not 
run
# tevent tests for now.
sed -i -e 's/def HAVE_TEVENT/ 0/' tests/test.h || die
+   elibtoolize
 }
 
 multilib_src_configure() {
diff --git a/dev-libs/libverto/libverto-0.2.5.ebuild 
b/dev-libs/libverto/libverto-0.2.5.ebuild
index 92642a9..9aac4aa 100644
--- a/dev-libs/libverto/libverto-0.2.5.ebuild
+++ b/dev-libs/libverto/libverto-0.2.5.ebuild
@@ -4,6 +4,8 @@
 
 EAPI=5
 
+inherit libtool
+
 DESCRIPTION="Main event loop abstraction library"
 HOMEPAGE="https://fedorahosted.org/libverto/";
 SRC_URI="https://fedorahosted.org/releases/l/i/libverto/${P}.tar.gz";
@@ -31,6 +33,7 @@ src_prepare() {
# callback on error, but we explicitly test for this behaviour.  Do not 
run
# tevent tests for now.
sed -i -e 's/def HAVE_TEVENT/ 0/' tests/test.h || die
+   elibtoolize
 }
 
 src_configure() {
diff --git a/dev-libs/libverto/libverto-0.2.6.ebuild 
b/dev-libs/libverto/libverto-0.2.6.ebuild
index 6f6eff7..fc0711a 100644
--- a/dev-libs/libverto/libverto-0.2.6.ebuild
+++ b/dev-libs/libverto/libverto-0.2.6.ebuild
@@ -4,7 +4,7 @@
 
 EAPI=5
 
-inherit multilib-minimal
+inherit multilib-minimal libtool
 
 DESCRIPTION="Main event loop abstraction library"
 HOMEPAGE="https://fedorahosted.org/libverto/";
@@ -33,6 +33,7 @@ src_prepare() {
# callback on error, but we explicitly test for this behaviour.  Do not 
run
# tevent tests for now.
sed -i -e 's/def HAVE_TEVENT/ 0/' tests/test.h || die
+   elibtoolize
 }
 
 multilib_src_configure() {
-- 
2.7.3




[gentoo-dev][ppc64le][PATCH 10/12] sys-devel/binutils: add ld BE emulations for ppc64le target #580614

2016-06-28 Thread Leno Hou
Signed-off-by: Leno Hou 
---
 eclass/toolchain-binutils.eclass   | 10 ++
 .../binutils/files/binutils-configure-target.patch | 18 ++
 2 files changed, 28 insertions(+)
 create mode 100644 sys-devel/binutils/files/binutils-configure-target.patch

diff --git a/eclass/toolchain-binutils.eclass b/eclass/toolchain-binutils.eclass
index 34c8569..17eb5dc 100644
--- a/eclass/toolchain-binutils.eclass
+++ b/eclass/toolchain-binutils.eclass
@@ -180,6 +180,16 @@ tc-binutils_apply_patches() {
eend $?
done
fi
+
+   # fix emulations issues if possible #580614
+   if [[ -e ${FILESDIR}/binutils-configure-target.patch ]] ; then
+   einfo "Fixing emulations issues in configure target files"
+   ebegin "  Updating ld/configure.tgt"
+   patch "ld/configure.tgt" 
"${FILESDIR}"/binutils-configure-target.patch >& 
"${T}"/configure-target-patch.log \
+   || eerror "Please file a bug about this"
+   eend $?
+   fi
+
# fix conflicts with newer glibc #272594
if [[ -e libiberty/testsuite/test-demangle.c ]] ; then
sed -i 's:\:get_line:g' 
libiberty/testsuite/test-demangle.c
diff --git a/sys-devel/binutils/files/binutils-configure-target.patch 
b/sys-devel/binutils/files/binutils-configure-target.patch
new file mode 100644
index 000..0cd8778
--- /dev/null
+++ b/sys-devel/binutils/files/binutils-configure-target.patch
@@ -0,0 +1,18 @@
+--- ld/configure.tgt.orig  2016-05-15 07:49:39.661039407 +
 ld/configure.tgt   2016-05-15 08:15:24.441045822 +
+@@ -586,10 +586,13 @@
+   esac
+   case "${targ}" in
+   powerpc*le-*)
+-  for z in targ_emul targ_extra_emuls 
targ_extra_libpath targ64_extra_emuls targ64_extra_libpath
++  for z in targ_extra_emuls targ_extra_libpath 
targ64_extra_emuls targ64_extra_libpath
+   do
+-eval ${z}=\"`eval echo \\$${z} | sed -e 
's/ppc/lppc/g'`\"
++eval ${z}+=\" `eval echo \\$${z} | sed -e 
's/ppc/lppc/g'`\"
+   done
++  eval targ_extra_emuls+=\" \$targ_emul\"
++  eval targ_emul=\"`eval echo \\$targ_emul | sed 
-e 's/ppc/lppc/g'`\"
++
+   esac ;;
+ powerpc-*-nto*) targ_emul=elf32ppcnto ;;
+ powerpcle-*-nto*)   targ_emul=elf32lppcnto ;;
-- 
2.7.3




[gentoo-dev] Re: Package up for grabs: dev-libs/yaz

2016-06-28 Thread Robin H. Johnson
On Tue, Jun 28, 2016 at 08:09:35AM +0200, Michał Górny wrote:
> Description: C/C++ toolkit for Z39.50v3 clients and servers
As the past maintainer, two comments for those who might be considering
this:
1. Z39.50 is a protocol to access library (the kind with books)
   catalogues and similar data. I can provide you details w/ many
   servers if you want them for testing.
2. There's potentially a need to have it slotted, as the API has changed
   slightly and some old (not-in-tree) binary apps use the older API.
   The Library world moves slowly when it comes to some tech.

-- 
Robin Hugh Johnson
Gentoo Linux: Dev, Infra Lead, Foundation Trustee & Treasurer
E-Mail   : robb...@gentoo.org
GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85
GnuPG FP : 7D0B3CEB E9B85B1F 825BCECF EE05E6F6 A48F6136



[gentoo-dev] Last rites: app-misc/strigi

2016-06-28 Thread Johannes Huber
# Johannes Huber  (28 Jun 2016)
# Masked for removal in 30 days. Dead upstream. Was only
# useful with Nepomuk, superseded by Baloo long time ago.
# No reverse dependencies, bug #583716.
app-misc/strigi


signature.asc
Description: This is a digitally signed message part.


[gentoo-dev] packages up for grabs

2016-06-28 Thread Anthony G. Basile
Hi everyone,

I've been proxy-maintaining (or maintaining) bitcoins and a bunch of
forks and I'd like to give those packages away.  I got involved because
I believe in the principles behind bitcoins and decentralized services
on the internet that resist censorship and promote freedom and all that
good stuff.  However, these forks live in their own world and I'm not
following them as well as I should.

If anyone is interested, please go ahead and take any.  Note that
net-p2p/bitcoin{d,-qt,-cli} and dev-util/bitcoin-tx are maintained by
luke-jr and he's doing a good job.  I don't want to see these taken off
the tree so if no one wants them I'll continue to proxy, but my
preference is to let them all go.

dev-util/bitcoin-tx
net-dns/namecoind
net-dns/namecoin-qt
net-p2p/bitcoin-cli
net-p2p/bitcoind
net-p2p/bitcoin-qt
net-p2p/bitcoinxtd
net-p2p/bitcoinxt-qt
net-p2p/datacoin-hp
net-p2p/litecoind
net-p2p/litecoin-qt
net-p2p/ppcoind
net-p2p/ppcoin-qt
net-p2p/primecoind
net-p2p/primecoin-qt

-- 
Anthony G. Basile, Ph.D.
Gentoo Linux Developer [Hardened]
E-Mail: bluen...@gentoo.org
GnuPG FP  : 1FED FAD9 D82C 52A5 3BAB  DC79 9384 FA6E F52D 4BBA
GnuPG ID  : F52D4BBA



[gentoo-dev] RFC: extension to prefix.eclass

2016-06-28 Thread Benda Xu
Hi,

This is a patch to extend prefix.eclass.

  1. a set of heuristics is added to eprefixify:
 "s,([^[:alnum:]}])/(usr|etc|bin|sbin|var|opt)/,\1${EPREFIX}/\2/,g"

  2. a function wrapper "fprefixity" to do inplace substitution in ${T}.

Please help review it.
Benda

--- prefix.eclass	2015-08-09 09:38:18.0 +0900
+++ prefix.eclass.new	2016-06-29 10:45:00.101628307 +0900
@@ -25,20 +25,36 @@
 
 
 # @FUNCTION: eprefixify
-# @USAGE: 
+# @USAGE: [-e ] 
 # @DESCRIPTION:
-# replaces @GENTOO_PORTAGE_EPREFIX@ with ${EPREFIX} for the given files,
-# dies if no arguments are given, a file does not exist, or changing a
+# Replaces @GENTOO_PORTAGE_EPREFIX@ with ${EPREFIX} for the given files,
+# tries a set of heuristics if @GENTOO_PORTAGE_EPREFIX@ is not found.
+# Additional extended regular expression can be passed by -e or
+# environment variable PREFIX_EXTRA_REGEX.
+# Dies if no arguments are given, a file does not exist, or changing a
 # file failed.
 eprefixify() {
 	[[ $# -lt 1 ]] && die "at least one argument required"
+	local PREFIX_EXTRA_REGEX
+	if [[ ${1} == -e ]]; then
+		PREFIX_EXTRA_REGEX="${2}"
+		shift 2
+	fi
 
+	[[ $# -lt 1 ]] && die "at least one file operand is required"
 	einfo "Adjusting to prefix ${EPREFIX:-/}"
 	local x
 	for x in "$@" ; do
 		if [[ -e ${x} ]] ; then
 			ebegin "  ${x##*/}"
-			sed -i -e "s|@GENTOO_PORTAGE_EPREFIX@|${EPREFIX}|g" "${x}"
+			if grep -qs @GENTOO_PORTAGE_EPREFIX@ "${x}" ; then
+sed -i -e "s|@GENTOO_PORTAGE_EPREFIX@|${EPREFIX}|g" "${x}"
+			else
+sed -r \
+	-e "s,([^[:alnum:]}])/(usr|etc|bin|sbin|var|opt)/,\1${EPREFIX}/\2/,g" \
+	-e "${PREFIX_EXTRA_REGEX}" \
+	-i "${x}"
+			fi
 			eend $? || die "failed to eprefixify ${x}"
 		else
 			die "${x} does not exist"
@@ -48,5 +64,54 @@
 	return 0
 }
 
+# @FUNCTION: __temp_prefixify
+# @USAGE: a single file. Internal use only.
+# @DESCRIPTION:
+# copies the files to ${T}, calls eprefixify, echos the new file.
+__temp_prefixify() {
+	if [[ -e $1 ]] ; then
+		local f=${1##*/}
+		cp "$1" "${T}" || die "failed to copy file"
+		eprefixify "${T}"/${f} > /dev/null
+		echo "${T}"/${f}
+	else
+		die "$1 does not exist"
+	fi
+}
+
+# @FUNCTION: fprefixify
+# @USAGE:  
+# @DESCRIPTION:
+# prefixify a function call.
+# copies the files to ${T}, calls eprefixify, and calls the function.
+# @EXAMPLE:
+# fprefixify doexe ${FILESDIR}/fix_libtool_files.sh
+# fprefixify epatch ${FILESDIR}/${PN}-4.0.2-path.patch
+fprefixify() {
+	[[ $# -lt 2 ]] && die "at least two arguments required"
+
+	local func=$1 f
+	einfo "Adjusting ${func} to prefix ${EPREFIX:-/}"
+	shift
+	case ${func} in
+		new*)
+			[[ $# -ne 2 ]] && die "${func} takes two arguments"
+			ebegin "  ${1##*/}"
+			f=$(__temp_prefixify "$1")
+			${func} "${f}" "$2"
+			eend $? || die "failed to execute ${func}"
+			;;
+		*)
+			for x in "$@" ; do
+ebegin "  ${x##*/}"
+f=$(__temp_prefixify "${x}")
+${func} "${f}"
+eend $? || die "failed to execute ${func}"
+			done
+			;;
+	esac
+
+	return 0
+}
 
 # vim: tw=72:


Re: [gentoo-dev] RFC: extension to prefix.eclass

2016-06-28 Thread R0b0t1
On Tue, Jun 28, 2016 at 8:54 PM, Benda Xu  wrote:
> Hi,
>
> This is a patch to extend prefix.eclass.
>
>   1. a set of heuristics is added to eprefixify:
>  "s,([^[:alnum:]}])/(usr|etc|bin|sbin|var|opt)/,\1${EPREFIX}/\2/,g"
>
>   2. a function wrapper "fprefixity" to do inplace substitution in ${T}.
>
> Please help review it.
> Benda
>

What is it intended to solve?

The current behavior seems to make more sense. Hiding defaults causes
problems. `fprefixify` is redundant.



Re: [gentoo-dev] RFC: extension to prefix.eclass

2016-06-28 Thread Benda Xu
Hi anonymous reviewer,

R0b0t1  writes:

> What is it intended to solve?

To simplify ebuilds that need to call eprefixify.

> The current behavior seems to make more sense. Hiding defaults causes
> problems. 

I am not sure what you mean by "Hiding defaults". It is documented, not
hidden.

The regular expression
  
  "s,([^[:alnum:]}])/(usr|etc|bin|sbin|var|opt)/,\1${EPREFIX}/\2/,g"

is conesrvative.  And it will be scrutinized by the community.

Most files can be trivially prefixified by this regular expression.

Traditionally, we need generate a patch with @GENTOO_PORTAGE_EPREFIX@,
apply the patch and then eprefixify the source (which was
"s|@GENTOO_PORTAGE_EPREFIX@|${EPREFIX}|g").  We need a lot of such
trivial patches and it is not version-bump-proof.

Having a sane default improves maintainability.  That's the point of
ebuild helpers and eclasses.

> `fprefixify` is redundant.

No, it's not redundant.  An example of fprefixify is attached.

Benda

--- a/app-shells/bash/bash-4.3_p42-r2.ebuild
+++ b/app-shells/bash/bash-4.3_p42-r2.ebuild
@@ -88,11 +88,7 @@ src_prepare() {
 	epatch "${FILESDIR}"/${PN}-4.3-mapfile-improper-array-name-validation.patch
 	epatch "${FILESDIR}"/${PN}-4.3-arrayfunc.patch
 
-	epatch "${FILESDIR}"/${PN}-4.0-configs-prefix.patch
-	eprefixify pathnames.h.in
-	# modify the bashrc file for prefix
-	cp "${FILESDIR}"/bashrc "${T}"/ || die
-	eprefixify "${T}"/bashrc
+	fprefixify epatch "${FILESDIR}"/${PN}-4.0-configs-prefix.patch
 
 	epatch_user
 }
@@ -183,7 +179,7 @@ src_install() {
 
 	insinto /etc/bash
 	doins "${FILESDIR}"/bash_logout
-	doins "${T}"/bashrc
+	fprefixify doins "${FILESDIR}"/bashrc
 	keepdir /etc/bash/bashrc.d
 	insinto /etc/skel
 	for f in bash{_logout,_profile,rc} ; do