Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 147364

Summary: sys-apps/hwsetup-1.1 breaks on ppc32
Product: Gentoo Linux Reporter: Lars Weiler (RETIRED) <pylon>
Component: New packagesAssignee: Gentoo LiveCD Package Maintainers <livecd>
Status: RESOLVED FIXED    
Severity: normal CC: dberkholz, ppc
Priority: High    
Version: unspecified   
Hardware: PPC   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Fixes the above bug

Description Lars Weiler (RETIRED) gentoo-dev 2006-09-12 13:09:48 UTC
With a current (todays) snapshot, hwsetup fails on livecd-building:

>>> Emerging (59 of 85) sys-apps/hwsetup-1.1 to /
 * Applying hwsetup-1.1-dyn_blacklist.patch ...                                                                                                                     [ ok ]
 * Applying hwsetup-1.1-fastprobe.patch ...                                                                                                                         [ ok ]
 * Applying hwsetup-1.1-gentoo.patch ...                                                                                                                            [ ok ]
gcc -I/usr/include/kudzu -DBLACKLIST -Wall -fPIC -O2 -s -o hwsetup hwsetup.c -lkudzu -lpci
/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.1/../../../libkudzu.a(macio.o): In function `macioProbe':
: undefined reference to `minifind'
/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.1/../../../libkudzu.a(macio.o): In function `macioProbe':
: undefined reference to `minifind'
collect2: ld returned 1 exit status
make: *** [hwsetup] Error 1

!!! ERROR: sys-apps/hwsetup-1.1 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  hwsetup-1.1.ebuild, line 32:   Called die

wolf31o2 said, that dberkholz played with that stuff...
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2006-09-12 13:27:21 UTC
I did not touch libkudzu in any relevant way. If you have sys-apps/kudzu installed rather than sys-libs/libkudzu, feel free to reassign back to me. (Although I'm not sure how you could, as hwsetup directly depends on libkudzu.)
Comment 2 Lars Weiler (RETIRED) gentoo-dev 2006-09-13 03:47:01 UTC
Nope, sys-libs/libkudzu-1.1.62-r1 has been installed.
Comment 3 Joe Jezak (RETIRED) gentoo-dev 2006-11-12 23:01:02 UTC
Donnie, you're right, you didn't change anything. :)

The problem is that this line:
emake libkudzu.a ARCH=$(tc-arch-kernel) RPM_OPT_FLAGS="${CFLAGS}" || die

Will set ARCH=powerpc on all kernels >= 2.6.16 on ppc, instead of the old behavior returning ppc/ppc64.  To fix this, we can either force it to ppc when applicable, or fix the Makefile so that it substitutes ppc for powerpc.  What do you want to do?
Comment 4 Joe Jezak (RETIRED) gentoo-dev 2006-11-21 21:31:05 UTC
Created attachment 102507 [details, diff]
Fixes the above bug

This patch is against the ebuild and fixes the bug.  I'll apply it if nobody has any objections...
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2006-11-29 14:42:43 UTC
FIXED... =]