Summary: | dev-libs/libx86-0.99 Fails when building | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Dave N <avebelial> |
Component: | Current packages | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | byron, darkside, James, obey, oli.huber, tais.hansen, tetromino, ulm |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge -uDNavt world - Where its being pulled in and USE flags
patch for linux headers 2.6.26 Patch for libx86-0.99 |
Description
Dave N
2008-08-24 11:25:37 UTC
Created attachment 163700 [details]
emerge -uDNavt world - Where its being pulled in and USE flags
Looks like bug #235495 (but isn't quite). Created attachment 163877 [details, diff]
patch for linux headers 2.6.26
this patch fixes the definition of flags needed for compiling lrmi.c
(In reply to comment #3) > Created an attachment (id=163877) [edit] > patch for linux headers 2.6.26 > > this patch fixes the definition of flags needed for compiling lrmi.c > How/where do I insert this patch? Thank you! (In reply to comment #4) > (In reply to comment #3) > > Created an attachment (id=163877) [edit] > > patch for linux headers 2.6.26 > > > > this patch fixes the definition of flags needed for compiling lrmi.c > > > How/where do I insert this patch? > > Thank you! > 1) Create local overlay. echo PORTDIR_OVERLAY="/usr/local/portage/my" >> /etc/make.conf 2) Create local overlay folder, copy there linux-headers from portage. mkdir -p /usr/local/portage/my/sys-kernel cp -rfp /usr/portage/sys-kernel/linux-headers/ /usr/local/portage/my 3) Download patch. whet 'http://bugs.gentoo.org/attachment.cgi?id=163877' -i /usr/local/portage/my/sys-kernel/linux-headers/files/lrmi-linux-headers-2.6.26.patch" 4) Modify last ebuild there. nano /usr/local/portage/my/sys-kernel/linux-headers/linux-headers-2.6.26.ebuild Add following into "src_unpack()" block (after line "[[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/${PV}") epatch "${FILESDIR}"/lrmi-linux-headers-2.6.26.patch" 5) Generate manifes ebuild /usr/local/portage/my/sys-kernel/linux-headers/linux-headers-2.6.26.ebuild digest 6) emerge -au linux-headers I appreciate the help, but unfortunately this fails at the patching stage of the emerge process. My linux-headers-2.6.26.ebuild file: # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-headers/linux-headers-2.6.26.ebuild,v 1.1 2008/08/20 02:57:03 vapier Exp $ ETYPE="headers" H_SUPPORTEDARCH="alpha amd64 arm cris hppa m68k mips ia64 ppc ppc64 s390 sh sparc x86" inherit kernel-2 detect_version PATCH_VER="1" SRC_URI="mirror://gentoo/gentoo-headers-base-${PV}.tar.lzma" [[ -n ${PATCH_VER} ]] && SRC_URI="${SRC_URI} mirror://gentoo/gentoo-headers-${PV}-${PATCH_VER}.tar.lzma" KEYWORDS="-* ~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" DEPEND="app-arch/lzma-utils" RDEPEND="" S=${WORKDIR}/gentoo-headers-base-${PV} src_unpack() { unpack ${A} cd "${S}" [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/${PV} epatch "${FILESDIR}/lrmi-linux-headers-2.6.26.patch" } src_install() { kernel-2_src_install cd "${D}" egrep -r \ -e '[[:space:]](asm|volatile|inline)[[:space:](]' \ -e '\<([us](8|16|32|64))\>' \ . headers___fix $(find -type f) } src_test() { emake -j1 ARCH=$(tc-arch-kernel) headers_check || die } The failure log: ***** lrmi-linux-headers-2.6.26.patch ***** =========================================== PATCH COMMAND: patch -p0 -g0 -E --no-backup-if-mismatch < /usr/local/portage/sys-kernel/linux-headers/files/lrmi-linux-headers-2.6.26.patch =========================================== can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- old/lrmi.c 2006-10-30 21:10:16.000000000 +0100 |+++ new/lrmi.c 2008-08-27 11:32:40.000000000 +0200 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored =========================================== PATCH COMMAND: patch -p1 -g0 -E --no-backup-if-mismatch < /usr/local/portage/sys-kernel/linux-headers/files/lrmi-linux-headers-2.6.26.patch =========================================== can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- old/lrmi.c 2006-10-30 21:10:16.000000000 +0100 |+++ new/lrmi.c 2008-08-27 11:32:40.000000000 +0200 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored =========================================== PATCH COMMAND: patch -p2 -g0 -E --no-backup-if-mismatch < /usr/local/portage/sys-kernel/linux-headers/files/lrmi-linux-headers-2.6.26.patch =========================================== missing header for unified diff at line 3 of patch can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- old/lrmi.c 2006-10-30 21:10:16.000000000 +0100 |+++ new/lrmi.c 2008-08-27 11:32:40.000000000 +0200 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored =========================================== PATCH COMMAND: patch -p3 -g0 -E --no-backup-if-mismatch < /usr/local/portage/sys-kernel/linux-headers/files/lrmi-linux-headers-2.6.26.patch =========================================== missing header for unified diff at line 3 of patch can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- old/lrmi.c 2006-10-30 21:10:16.000000000 +0100 |+++ new/lrmi.c 2008-08-27 11:32:40.000000000 +0200 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored =========================================== PATCH COMMAND: patch -p4 -g0 -E --no-backup-if-mismatch < /usr/local/portage/sys-kernel/linux-headers/files/lrmi-linux-headers-2.6.26.patch =========================================== missing header for unified diff at line 3 of patch can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- old/lrmi.c 2006-10-30 21:10:16.000000000 +0100 |+++ new/lrmi.c 2008-08-27 11:32:40.000000000 +0200 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored (In reply to comment #4) > (In reply to comment #3) > > Created an attachment (id=163877) [edit] > > patch for linux headers 2.6.26 > > > > this patch fixes the definition of flags needed for compiling lrmi.c > > > How/where do I insert this patch? > > Thank you! > I just downgraded to the latest 2.6.25 linux headers then libx86 compiled and installed fine. It seemed easier than patching and/or doing an overlay. oh, my bad, remove the lien that y've added Looks like that [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/${PV} applies all patches that ar in Files dir and have postfix with same version typed. The new linux-headers installed properly but libx86 still did not compile. I gave up and found a way around the problem by installing a lower version of a different package that doesn't depend on this libx86. Thank you for your help, though! Created attachment 164703 [details, diff]
Patch for libx86-0.99
Comment on attachment 164703 [details, diff]
Patch for libx86-0.99
I've added a new patch, based on previous one. But this time you need to patch libx86 and not linux-headers. Tested and seems to work.
Sorry for the triple-reply, but I've found that there is a new version of the package (libx86-1.1), which resolve Makefile's bug. The ebuild is the same, apart remove old patch and add new one for IF_MASK issue. vbetool compiles fine also with this new package. Patch works like a charm with libx86-1.1, thanks! darkside: The patch provided by Junki seems ok (I have tested it w/ 0.99 and 1.1), can you please commit it. Thanks > Created an attachment (id=164703) [edit]
> Patch for libx86-0.99
This looks good; applied to 0.99 and 1.1.
Thank you for providing the patch.
*** Bug 236933 has been marked as a duplicate of this bug. *** libx86 compiles for me now too. THANK YOU people who fixed this!! |