Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 14851 - problem with media-libs/jpeg-6b-r3 ebuild
Summary: problem with media-libs/jpeg-6b-r3 ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Seemant Kulleen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 16357
  Show dependency tree
 
Reported: 2003-01-31 09:22 UTC by Andy gorham
Modified: 2003-03-25 06:56 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andy gorham 2003-01-31 09:22:24 UTC
This bug seems to only apply if you have your flags set to k6-2 (or probably k6-3). 
The following line in the e-build replaces your march and mcpu flags to i586 if they are 
set to k6[-2, -3]. 
	replace-flags k6-3 i586 
	replace-flags k6-2 i586 
	replace-flags k6 i586 
However, what happens is your march flag gets changed to i586, but your mcpu flag 
only gets the k6 portion changed, leaving you with an unrecognised "-2" option.  
e.g. 
OLD flags: 
	march=k6-2 
	mcpu=k6-2 
NEW flags: 
	march=i586 
	mcpu=i586-2 
This triggers warnings on every file compiled and leaves you with a broken KDE. 
Kde cannot start because kdeinit fails to find  being unable to find libjpeg.so.62 
A quick work around is to comment out the line (21) that says 
	replace-flags k6 i586 
this allows the files to compile with march=i586 and mcpu=k6-2. 
I will learn more about ebuilds and try fix it so that both flags say i586
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2003-01-31 13:50:22 UTC
fixed in cvs -- please try again
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2003-02-25 16:10:26 UTC
i know this is already closed.

CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=k6-2"
CXXFLAGS="-mcpu=k6-2"

emerge jpeg-6b-r3.ebuild
./libtool --mode=compile gcc -mcpu=i586   -I. -c ./jcapimin.c
gcc -mcpu=i586 -I. -c -fPIC -DPIC ./jcapimin.c

works fine with replace-flags

can we change this back ? makes #16357 invalid
Comment 3 foser (RETIRED) gentoo-dev 2003-03-25 06:56:23 UTC
*** Bug 18061 has been marked as a duplicate of this bug. ***