Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 8020 - man-1.5k.ebuild bad CC replace
Summary: man-1.5k.ebuild bad CC replace
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Seemant Kulleen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-17 04:11 UTC by Chris Bainbridge (RETIRED)
Modified: 2002-09-27 05:21 UTC (History)
0 users

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 Chris Bainbridge (RETIRED) gentoo-dev 2002-09-17 04:11:18 UTC
The ebuild uses sed to add "CC = gcc". It should do CC = ${CC}.
Comment 1 Chris Bainbridge (RETIRED) gentoo-dev 2002-09-17 04:21:08 UTC
> cc -o gencat gencat.o genlib.o 
> make[1]: cc: Command not found 
 
looks like the gencat makefile needs to be patched as well. 
Comment 2 Chris Bainbridge (RETIRED) gentoo-dev 2002-09-17 04:40:33 UTC
Just to save anyone wasting time with this: 
 
src_unpack() { 
        unpack ${A} 
        cd ${S} 
        cp configure configure.orig 
        sed     -e 's:/usr/lib/locale:$(prefix)/usr/lib/locale:g' \ 
                -e 's!/usr/bin:/usr/ucb:!/usr/bin:!' \ 
                configure.orig > configure 
        local x 
        for x in / src/ man2html/ msgs/ 
        do 
                cd ${S}/${x} 
                cp Makefile.in Makefile.in.orig 
                sed -e '/inst.sh/d' \ 
                        -e '/^CC =/c\' \ 
                        -e "CC = ${CC}" \ 
                        -e '/^CFLAGS =/c\' \ 
                        -e "CFLAGS = $CFLAGS" \ 
                        Makefile.in.orig > Makefile.in 
        done 
        cd ${S}/gencat 
        sed -e "s:cc -o:${CC} -o:g" Makefile > Makefile.1 
        cp Makefile.1 Makefile 
} 
 
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2002-09-27 05:21:54 UTC
Thanks Chris. sorry for the delay.