Summary: | sys-apps/pciutils-3.1.2 fails to emerge on Gentoo/FreeBSD 7.1 | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | 404 Error <404errorqc> |
Component: | FreeBSD | Assignee: | Gentoo/BSD Team <bsd+disabled> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | FreeBSD | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 314499 | ||
Bug Blocks: | |||
Attachments: |
Patch of ebuild
files/pciutils-3.1.2-configure.patch pciutils-3.1.2.ebuild Yet another patch. |
Description
404 Error
2009-03-12 22:43:08 UTC
Created attachment 184916 [details, diff]
Patch of ebuild
You've forgotten the most important lines of the description :)
gmake HOST=i486-gentoo-freebsd7.1 CROSS_COMPILE=i486-gentoo-freebsd7.1- DNS=yes IDSDIR=/usr/share/misc MANDIR=/usr/share/man PREFIX=/usr SHARED=yes STRIP= ZLIB=yes 'OPT=-O2 -pipe' all pcimodules
...
...Looking for access methods...\c
Unfortunately, your OS is not supported by the PCI Library << THE CAUSE!
...
I figured out it won't compile because of unrecognized HOST. If I change CHOST to FreeBSD, it compiles and runs fine, nevertheless I carefully checked lib/configure.c and found autodetection of OS line 23 based on "uname -s" when HOST is empty. That's reliable, because it returns "FreeBSD".
Therefore I suggest to simply remove HOST from gmake in the ebuild:
gmake CROSS_COMPILE=i486-gentoo-freebsd7.1- DNS=yes IDSDIR=/usr/share/misc MANDIR=/usr/share/man PREFIX=/usr SHARED=yes STRIP= ZLIB=yes 'OPT=-O2 -pipe' all pcimodules
It works like a charm, please apply my patch. Don't forget to run "ebuild pciutils-3.1.2.ebuild digest".
Whooops my error I apologize. I reported the bug very quickly and just forgot to post my build.log when coming back on the problem. gmake -j1 CROSS_COMPILE=i686-gentoo-freebsd7.1- DNS=yes IDSDIR=/usr/share/misc MANDIR=/usr/share/man PREFIX=/usr SHARED=yes STRIP= ZLIB=yes DESTDIR=/var/tmp/portage/sys-apps/pciutils-3.1.2/image/ install install-lib gmake -C lib all Tested your patch, worked! Also tested in a Gentoo/Linux box, worked like a charm there too. Will that be pushed in the portage tree as a -r1 release ? I'm not an official Gentoo developer (yet?). Hence, I cannot push it in portage tree. Perhaps, we should wait for someone who can apply the patch. Please change the status to NEW until it's fixed in portage. As per request of Marek, will close when the patch will be applied in the portage tree. Note: still needs to be tested against cross-compiling. Created attachment 184950 [details, diff]
files/pciutils-3.1.2-configure.patch
Modified sed pattern to properly extract only low-alpha. From CHOST, like "i486-gentoo-freebsd7.1" it matches "freebsd" instead of "freebsd7.1".
Created attachment 184952 [details, diff]
pciutils-3.1.2.ebuild
New ebuild to include the patch
With new patches : Gentoo Linux (amd64) => OK Gentoo FreeBSD 7.1 (x86) => OK Patch looks good; did anybody send this upstream? Created attachment 195454 [details, diff]
Yet another patch.
This patch fix build problem with OS autodetection and strange install error.
pciutils-3.1.7 in the tree and it should work |