[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: RFH: ftbfs on powerpc: /usr/bin/make Makefile:190: *** missing separator


On 06/27/2012 02:38 PM, Stephen Gran wrote:
> This one time, at band camp, Guo Yixuan said:
>> This line could be the reason, it's generated by this line in
>> configure script: FULLNAME=`grep ^${LOGNAME}: /etc/passwd | awk -F:
>> '{print $5}'`
>> if that introduce an newline in FULLNAME, make will complain. So
>> please have a check on /etc/passwd of praetorius, thanks.
> Your username will not appear in /etc/passwd on debian systems.  This is
> probably a silly thing to do in a build system, given how many backends
> nss and pam have.

I didn't copy enough, below is a part of configure.ac, it considered
different situations.

dnl ======================================================================
dnl Oh! the joys of standards!
AC_PATH_PROG(WHOAMI,[whoami logname],"not found")
if test "x${WHOAMI}" = "xnot found" ; then
  who am i 2>/dev/null && WHOAMI="who am i | awk '{print $1}'"
if test "x${WHOAMI}" = "xnot found"  -a -x "/usr/ucb/ps" ; then
  WHOAMI="/usr/ucb/ps u $$ | tail -1 | awk '{print $1}'"
if test  "x${WHOAMI}" = "xnot found" ; then
  WHOAMI="ps u $$ | tail -1 | awk '{print $1}'"

dnl Some info about the person compiling used for making some packages.
FULLNAME=`grep ^${LOGNAME}: /etc/passwd | awk -F: '{print $5}'`
if test -z "${FULLNAME}" ; then
  FULLNAME=`ypcat passwd 2>/dev/null | grep ^${LOGNAME}: | awk -F:
'{print $5}'`
if test -z "${FULLNAME}" ; then
  FULLNAME=`nidump passwd / 2>/dev/null | grep ^${LOGNAME}: | awk -F:
'{print $5}'`
if test -z "${FULLNAME}" ; then

> Also, this has nothing to do with debian-admin - you can look at
> /etc/passwd on any debian.org host to confirm.

Sure, but I'm not a DD. So I just asked my sponsor (Thorsten) for help.

Guo Yixuan

Reply to: