Re: [LTP] IDcheck.sh - awk problem

Michal Simek
2009-07-08T15:06:39Z

Garrett Cooper wrote:
> On Tue, Jul 7, 2009 at 11:04 PM, Michal Simek<michal.simek@petalogix.com> wrote:
>
>> Hi All,
>>
>> There will be good to prevent missing /etc/passwd for installing to
>> different folder.
>>
>> export DESTDIR=`pwd`/nfs
>> mkdir -p nfs
>> make install
>>
>> Thanks,
>> Michal
>>
>>
>> Checking for required user/group ids
>>
>> awk: cmd. line:1: fatal: cannot open file
>> `/home/projects/xils/ltp-microblaze.git/nfs/etc/passwd' for reading (No
>> such file or directory)
>> bin => 2
>> awk: cmd. line:1: fatal: cannot open file
>> `/home/projects/xils/ltp-microblaze.git/nfs/etc/passwd' for reading (No
>> such file or directory)
>> daemon => 2
>> awk: cmd. line:1: fatal: cannot open file
>> `/home/projects/xils/ltp-microblaze.git/nfs/etc/passwd' for reading (No
>> such file or directory)
>> nobody => 2
>> awk: cmd. line:1: fatal: cannot open file
>> `/home/projects/xils/ltp-microblaze.git/nfs/etc/group' for reading (No
>> such file or directory)
>> bin => 2
>> awk: cmd. line:1: fatal: cannot open file
>> `/home/projects/xils/ltp-microblaze.git/nfs/etc/group' for reading (No
>> such file or directory)
>> daemon => 2
>> awk: cmd. line:1: fatal: cannot open file
>> `/home/projects/xils/ltp-microblaze.git/nfs/etc/group' for reading (No
>> such file or directory)
>> nobody => 2
>> awk: cmd. line:1: fatal: cannot open file
>> `/home/projects/xils/ltp-microblaze.git/nfs/etc/group' for reading (No
>> such file or directory)
>> sys => 2
>> awk: cmd. line:1: fatal: cannot open file
>> `/home/projects/xils/ltp-microblaze.git/nfs/etc/group' for reading (No
>> such file or directory)
>> users => 2
>> 'nobody' user id and group found.
>> 'bin' user id and group found.
>> 'daemon' user id and group found.
>> Users group found.
>> Sys group found.
>> awk: cmd. line:1: fatal: cannot open file
>> `/home/projects/xils/ltp-microblaze.git/nfs/etc/group' for reading (No
>> such file or directory)
>> nobody => 2
>> awk: cmd. line:1: fatal: cannot open file
>> `/home/projects/xils/ltp-microblaze.git/nfs/etc/passwd' for reading (No
>> such file or directory)
>> nobody => 2
>> awk: cmd. line:1: fatal: cannot open file
>> `/home/projects/xils/ltp-microblaze.git/nfs/etc/group' for reading (No
>> such file or directory)
>> bin => 2
>> awk: cmd. line:1: fatal: cannot open file
>> `/home/projects/xils/ltp-microblaze.git/nfs/etc/passwd' for reading (No
>> such file or directory)
>> bin => 2
>> awk: cmd. line:1: fatal: cannot open file
>> `/home/projects/xils/ltp-microblaze.git/nfs/etc/group' for reading (No
>> such file or directory)
>> daemon => 2
>> awk: cmd. line:1: fatal: cannot open file
>> `/home/projects/xils/ltp-microblaze.git/nfs/etc/passwd' for reading (No
>> such file or directory)
>> daemon => 2
>> awk: cmd. line:1: fatal: cannot open file
>> `/home/projects/xils/ltp-microblaze.git/nfs/etc/passwd' for reading (No
>> such file or directory)
>> users => 2
>> awk: cmd. line:1: fatal: cannot open file
>> `/home/projects/xils/ltp-microblaze.git/nfs/etc/passwd' for reading (No
>> such file or directory)
>> sys => 2
>> Required users/groups exist.
>>
>
> That's part of the reason why I wanted it to be reviewed before it was
> committed, and I halfway expected Mike to provide that assistance but
> he didn't... *sigh*.
>
> Does the /etc/passwd // /etc/group file exist?
>
Of course not because I cross compile ltp for Microblaze - correct
/etc/passwd - group is on
target system. Maybe worth to remove calling IDcheck.sh from make
install and call it only before
running the test.

Michal

> Thanks,
> -Garrett
>

--
Michal Simek, Ing. (M.Eng)
PetaLogix - Linux Solutions for a Reconfigurable World
w: www.petalogix.com p: +61-7-30090663,+42-0-721842854 f: +61-7-30090663