Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem with sys-apps/man-1.5l-r1 - ebuild problem?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
puke
Tux's lil' helper
Tux's lil' helper


Joined: 05 Oct 2002
Posts: 128

PostPosted: Fri Mar 28, 2003 12:06 pm    Post subject: Problem with sys-apps/man-1.5l-r1 - ebuild problem? Reply with quote

Code:

>>> emerge (1 of 6) sys-apps/man-1.5l-r1 to /
>>> md5 ;-) man-1.5l.tar.gz
>>> Unpacking source...
>>> Unpacking man-1.5l.tar.gz to /var/tmp/portage/man-1.5l-r1/work
 * Applying man-1.5l-search-order.patch...                                [ ok ]
 * Applying man-1.5l-groff-1.18.patch...                                  [ ok ]
 * Applying man-1.5l-wrong-quotes.patch...                                [ ok ]
 * Applying man-1.5l-util_c-segfault.patch...                             [ ok ]
 * Applying man-1.5l-redhat-patches.patch...                              [ ok ]
 * Applying man-1.5l-locale-debug-info.patch...                           [ ok ]
>>> Source unpacked.
checking for gcc
gcc is /usr/bin/gcc
checking for ANSI C header files
checking for POSIX.1 header files
checking for BSD string and memory functions
checking whether sys/types.h defines uid_t
checking for Xenix
checking how to get alloca
checking for nls
checking for getopt.h
Checking echo to see how to suppress newlines...
...using -n.
Testing whether grep needs -s or -q ... -q

Assuming you want to be able to handle the nroff source for man pages.

Assuming the following ways to invoke the various commands and filters:
troff command:  /usr/bin/groff -Tps -mandoc
nroff command:  /usr/bin/nroff -Tlatin1 -c -mandoc
jnroff command: /usr/bin/groff -Tnippon -mandocj
eqn command:    /usr/bin/geqn -Tps
neqn command:   /usr/bin/geqn -Tlatin1
jneqn command:  /usr/bin/geqn -Tnippon
tbl command:    /usr/bin/gtbl
col command:    /usr/bin/col
vgrind command: missing
refer command:  /usr/bin/refer
grap command:   missing
pic command:    /usr/bin/pic
pager command:  /usr/bin/less -is
cmp command:    /usr/bin/cmp -s
cat command:    /usr/bin/cat
awk command:    /usr/bin/awk

It seems that no col is needed, since you use groff.

Assuming that binaries go to /usr/bin, the configuration file
goes to /etc, makewhatis to /usr/sbin, and the man pages
to /usr/share/man/man*.

Assuming that you do not want to install non-english man pages.

Setting the default section search order to 1 8 2 3 4 5 6 7 9 tcl n l p o.

Assuming that formatted pages should be compressed.
Using /bin/bzip2 for compression.

Assuming the following ways to invoke the various decompressors:
gunzip command:         /bin/gunzip -c
bzip2 command:          /bin/bzip2 -c -d
pcat command:           missing
zcat command:           /bin/zcat
fcat command:           missing
unyabba command:        missing

Created Makefile and conf_script. Now do "make" and "make install".

cd src; ../conf_script Makefile
Creating Makefile from Makefile.in
cd src; make
make[1]: Entering directory `/var/tmp/portage/man-1.5l-r1/work/man-1.5l/src'
march=athlon -mcpu=athlon -O3 -pipe  -s  makemsg.c   -o makemsg
/bin/sh: line 1: -mcpu=athlon: command not found
make[1]: [makemsg] Error 127 (ignored)
./makemsg ../msgs/mess.en gripedefs.h msg.c
make[1]: ./makemsg: Command not found
make[1]: *** [gripedefs.h] Error 127
make[1]: Leaving directory `/var/tmp/portage/man-1.5l-r1/work/man-1.5l/src'
make: *** [source] Error 2

!!! ERROR: sys-apps/man-1.5l-r1 failed.
!!! Function src_compile, Line 82, Exitcode 2
!!! (no error message)


It doesn't seem to like my -mcpu flag??

/bin/sh: line 1: -mcpu=athlon: command not found

Never had this problem before.. :?


Last edited by puke on Fri Mar 28, 2003 2:18 pm; edited 1 time in total
Back to top
View user's profile Send private message
s0be
Apprentice
Apprentice


Joined: 23 Nov 2002
Posts: 240

PostPosted: Fri Mar 28, 2003 1:28 pm    Post subject: Reply with quote

are you cross compiling? I always thought you should use -march to properly optimize for your system.

s0be
Back to top
View user's profile Send private message
puke
Tux's lil' helper
Tux's lil' helper


Joined: 05 Oct 2002
Posts: 128

PostPosted: Fri Mar 28, 2003 2:17 pm    Post subject: Reply with quote

Quote:
are you cross compiling? I always thought you should use -march to properly optimize for your system.


Nope. Just compiling for localhost.

The relevant part of my make.conf is:

CHOST='i686-pc-linux-gnu'
CFLAGS='-march=athlon -mcpu=athlon -O3 -pipe'
CXXFLAGS='-march=athlon -mcpu=athlon -O3 -pipe'

I think there may be something wrong with the ebuild script to get this error? It seems to be trying to execute my switch.. "-mcpu=athlon" ?
Back to top
View user's profile Send private message
puke
Tux's lil' helper
Tux's lil' helper


Joined: 05 Oct 2002
Posts: 128

PostPosted: Fri Mar 28, 2003 2:29 pm    Post subject: Reply with quote

Interesting...

Code:

# cd /var/tmp/portage/man-1.5l-r1/work/man-1.5l/src
# make
cc -march=athlon -mcpu=athlon -O3 -pipe  -s  makemsg.c   -o makemsg
./makemsg ../msgs/mess.en gripedefs.h msg.c
cc -c -Wall -Wstrict-prototypes -Wmissing-prototypes -march=athlon -mcpu=athlon -O3 -pipe -I. -DSTDC_HEADERS -DPOSIX -DDO_COMPRESS -DGREPSILENT="'q'" man.c
[..stuff..]
cc -s -DGREPSILENT="'q'" -o man man.o manfile.o manpath.o man-config.o man-getopt.o man-iconv.o to_cat.o different.o gripes.o glob.o util.o msg.o
../conf_script man.conf
Creating man.conf from man.conf.in
rm -f apropos
sed -e 's,%apropos_or_whatis%,apropos,' \
    -e 's,%version%,man-1.5l,' \
    -e 's,%pager%,/usr/bin/less -is,' -e 's,%manpathoption%,--path,' \
    -e 's,%grepsilent%,q,' \
apropos.sh > apropos
chmod +x apropos
rm -f whatis
sed -e 's,%apropos_or_whatis%,whatis,' \
    -e 's,%version%,man-1.5l,' \
    -e 's,%pager%,/usr/bin/less -is,' -e 's,%manpathoption%,--path,' \
    -e 's,%grepsilent%,q,' \
apropos.sh > whatis
chmod +x whatis
rm -f makewhatis
sed -e 's,%version%,man-1.5l,' \
    -e 's,%awk%,/usr/bin/awk,' makewhatis.sh > makewhatis
chmod +x makewhatis


So it works manually, but not from emerge? :x
Back to top
View user's profile Send private message
puke
Tux's lil' helper
Tux's lil' helper


Joined: 05 Oct 2002
Posts: 128

PostPosted: Sun Mar 30, 2003 1:18 am    Post subject: Reply with quote

Bump!!

I'm still getting this problem. Anyone have any ideas??

Should I try removing man and re-emerging?
Back to top
View user's profile Send private message
flanksteak
n00b
n00b


Joined: 27 May 2002
Posts: 49
Location: Seattle

PostPosted: Tue Apr 01, 2003 1:49 pm    Post subject: Reply with quote

I'm getting the same problem. I added a bug to bugzilla:

https://bugs.gentoo.org/show_bug.cgi?id=18584
Back to top
View user's profile Send private message
Bharain
n00b
n00b


Joined: 18 Jan 2004
Posts: 10

PostPosted: Tue Jun 21, 2005 9:38 pm    Post subject: Reply with quote

The problem seems to be BUILD_CC not being defined in a Makefile, heres what i did

Code:

emerge -u man
#wait for it to fail
cd /usr/tmp/portage/man-1.5p/work/man-1.5p/src
#Edit Makefile, change line 19 to "BUILD_CC = gcc"
make
ebuild /usr/portage/sys-apps/man/man-1.5p.ebuild install qmerge


while not the best solution this at least gets it installed
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum