Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 67964 - relay-ctrl "compile" shell script is missing the a command on line 4
Summary: relay-ctrl "compile" shell script is missing the a command on line 4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-17 20:09 UTC by Chris Moody - Linux Architect
Modified: 2004-10-18 02:11 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 Moody - Linux Architect 2004-10-17 20:09:32 UTC
relay-ctrl-3.1.1-r2 Does not build completely - failed 

Reproducible: Always
Steps to Reproduce:
1. emerge sync
2. emerge relay-ctrl
3.

Actual Results:  
mx1 ~ # emerge relay-ctrl
Calculating dependencies ...done!
>>> emerge (1 of 1) net-mail/relay-ctrl-3.1.1-r2 to /
>>> md5 src_uri ;-) relay-ctrl-3.1.1.tar.gz
>>> Unpacking source...
>>> Unpacking relay-ctrl-3.1.1.tar.gz to /var/tmp/portage/relay-ctrl-3.1.1-r2/work
 * Replacing obsolete head/tail with POSIX compliant ones
 * Applying authenticated.c-relayfixup.diff...                                 
     [ ok ]
>>> Source unpacked.
( echo '#!/bin/sh';\
  echo 'main="$1"; shift';\
  echo exec `head -n 1 conf-ld` '-o "$main" "$main.o" ${1+"$@"}';\
) >load
( echo '#!/bin/sh'; \
  echo 'source=$1; shift'; \
  echo 'base=`echo "$source" | sed -e s:\\\\.c$::`'; \
  echo exec `head -n 1 conf-cc` '-I. -o ${base}.o -c $source ${1+"$@"}'; \
) >compile
( echo '#!/bin/sh'; \
  echo 'main="$1"; shift';\
  echo 'rm -f "$main"';\
  echo 'ar cr "$main" ${1+"$@"}';\
  echo 'ranlib "$main"';\
) >makelib
chmod 755 makelib
cat warn-auto.sh choose.sh >choose
chmod 755 choose
head -n 1 conf-bin | \
  sed -e 's/"/\\"/g' \
      -e 's/^/const char conf_bin[] = "/' \
      -e 's/$/";/' >conf_bin.c
chmod 755 compile
head -n 1 conf-man | \
  sed -e 's/"/\\"/g' \
      -e 's/^/const char conf_man[] = "/' \
      -e 's/$/";/' >conf_man.c
./compile instcheck.c
chmod 755 load
./compile instshow.c
( ( ./compile trysystime.c >/dev/null 2>&1 && \
    echo '#include <sys/time.h>' ); \
  ( ./compile trytime.c >/dev/null 2>&1 && \
    echo '#include <time.h>' ) ) >systime.h
./compile: line 4: exec: -m: invalid option
exec: usage: exec [-cl] [-a name] file [redirection ...]
make: *** [instcheck.o] Error 2
make: *** Waiting for unfinished jobs....
./compile: line 4: exec: -m: invalid option
exec: usage: exec [-cl] [-a name] file [redirection ...]
make: *** [instshow.o] Error 2
make: *** [systime.h] Error 2

!!! ERROR: net-mail/relay-ctrl-3.1.1-r2 failed.
!!! Function src_compile, Line 36, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.



Trying manually indicates the following error:
---------------------
mx1 relay-ctrl-3.1.1 # ./compile instshow.c 
./compile: line 4: exec: -m: invalid option
exec: usage: exec [-cl] [-a name] file [redirection ...]



If you edit the "compile" shell script, and add "gcc" into the line that states
the following:
exec -march=pentium2 -O3 -pipe -I. -o ${base}.o -c $source ${1+"$@"}

...
the "compile" shell script functions a expected.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-10-18 02:11:46 UTC
fixed in cvs.