Summary: | dev-util/strace-4.8 fails to build with glibc-2.18 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Patrick McLean <chutzpah> |
Component: | New packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | bdimchef-gentoo, dlan, genzilla, tdalman |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=482752 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 486268 | ||
Attachments: | strace-4.8-glibc2.18.patch |
Description
Patrick McLean
2013-10-09 18:15:35 UTC
Patrick, I have this bug, tested your patch, and it did not work for me: >>> Emerging (1 of 1) dev-util/strace-4.8 * strace-4.8.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking strace-4.8.tar.xz to /var/tmp/portage/dev-util/strace-4.8/work >>> Source unpacked in /var/tmp/portage/dev-util/strace-4.8/work >>> Preparing source in /var/tmp/portage/dev-util/strace-4.8/work/strace-4.8 ... * Applying user patches from /etc/portage/patches//dev-util/strace-4.8 ... * strace-4.8-glibc2.18.patch ... [ ok ] * Done with patching /var/tmp/portage/dev-util/strace-4.8/temp/environment: line 2483: eautoreconf: command not found >>> Source prepared. But, at the end I get: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./linux/x86_64 -I./linux -I./linux -Wall -Wwrite-strings -march=native -O2 -pipe -ggdb -c pathtrace.c x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./linux/x86_64 -I./linux -I./linux -Wall -Wwrite-strings -march=native -O2 -pipe -ggdb -c process.c In file included from process.c:66:0: /usr/include/linux/ptrace.h:58:8: error: redefinition of ‘struct ptrace_peeksiginfo_args’ struct ptrace_peeksiginfo_args { ^ In file included from defs.h:159:0, from process.c:37: /usr/include/sys/ptrace.h:191:8: note: originally defined here struct ptrace_peeksiginfo_args ^ Makefile:682: recipe for target 'process.o' failed make[2]: *** [process.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory '/var/tmp/portage/dev-util/strace-4.8/work/strace-4.8' Makefile:741: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/dev-util/strace-4.8/work/strace-4.8' Makefile:511: recipe for target 'all' failed make: *** [all] Error 2 * ERROR: dev-util/strace-4.8::gentoo failed (compile phase): * emake failed You need to add inherit autotools to the ebuild I was also getting this error. Maybe I am a moron. I added inherit autotools and I am still getting the same error. I appended autotools to the existing inherit line in the ebuild: inherit flag-o-matic eutils autotools and also tried "inherit autotools" on its own line. trying with user patch, while found eautoreconf not supported, and the fix is quite easy (inherit autotools) sorry for just reporting here instead of filing another bug, thought it's trivial. * Applying user patches from /etc/portage/patches//dev-util/strace-4.8 ... * strace-4.8-glibc2.18.patch ... [ ok ] * Done with patching /var/tmp/portage/dev-util/strace-4.8/temp/environment: line 2557: eautoreconf: command not found configure: loading site script /usr/share/config.site checking for a BSD-compatible install... /usr/bin/install -c Unforunately these fixes aren't working for me. I have "inherit autotools" in my ebuild: # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-util/strace/strace-4.8.ebuild,v 1.3 2013/11/29 14:04:14 vapier Exp $ EAPI="4" inherit flag-o-matic eutils inherit autotools ...... The patch is applying: >>> Emerging (1 of 1) dev-util/strace-4.8 from x-portage * strace-4.8.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking strace-4.8.tar.xz to /var/tmp/portage/dev-util/strace-4.8/work >>> Source unpacked in /var/tmp/portage/dev-util/strace-4.8/work >>> Preparing source in /var/tmp/portage/dev-util/strace-4.8/work/strace-4.8 ... * Applying strace-4.8-glibc2.18.patch ... [ ok ] >>> Source prepared. ............. But build is still bombing: pipe -march=native -mtune=native -c process.c In file included from process.c:66:0: /usr/include/linux/ptrace.h:58:8: error: redefinition of 'struct ptrace_peeksiginfo_args' struct ptrace_peeksiginfo_args { ^ In file included from defs.h:159:0, from process.c:37: /usr/include/sys/ptrace.h:191:8: note: originally defined here struct ptrace_peeksiginfo_args ^ I am probably doing something stupid, but I would appreciate it if somebody could point me in the right direction. Got it. It took more that adding the applying the patch and "inherit autotools". I had to add: eautoreconf Right after the application of the patch. Hope it helps somebody else. eautoreconf already handled there, and for it to work, you should put the patch into /etc/portage/patches/dev-util/strace-4.8/, that will trigger a eautoreconf, no need to patch the original ebuild. src_prepare() { .. if epatch_user || [[ ! -e configure ]] ; then # git generation eautoreconf [[ ! -e CREDITS ]] && cp CREDITS{.in,} fi } for ebuild, simply move out autotools eclass from live build diff --git a/strace-4.8.ebuild b/strace-4.8.ebuild index ba172e8..1934d8f 100644 --- a/strace-4.8.ebuild +++ b/strace-4.8.ebuild @@ -4,11 +4,11 @@ EAPI="4" -inherit flag-o-matic eutils +inherit autotools flag-o-matic eutils if [[ ${PV} == "9999" ]] ; then EGIT_REPO_URI="git://strace.git.sourceforge.net/gitroot/strace/strace" - inherit git-2 autotools + inherit git-2 else SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz" *** This bug has been marked as a duplicate of bug 482752 *** |