Ralf

apparently it still breaks with the latest source but heres the output

root@wireless2:/opt/tmp/source> 
20020308.ix86-linux2.4-cw.sh                  <
+ f=openpkg-20020308-20020308.ix86-linux2.4-cw.sh
+ help=0
+ verbose=0
+ prefix=/cw
+ t=openpkg-20020308-20020308.ix86-linux2.4-cw.tar.Z
+ susr=root
+ sgrp=root
+ musr=cw
+ mgrp=cw
+ rusr=cw-r
+ rgrp=cw-r
+ nusr=cw-n
+ ngrp=cw-n
+ '[' ./cw = . ']'
+ '[' .0 = .1 ']'
+ LC_CTYPE=C
+ export LC_CTYPE
+ umask 022
+ cusr=root
+ echo 'openpkg-20020308-20020308.ix86-linux2.4-cw.sh: installing into 
/cw...'
openpkg-20020308-20020308.ix86-linux2.4-cw.sh: installing into /cw...
+ set -- 1
+ cusr=root
+ '[' .root = . ']'
+ '[' .root = . ']'
+ '[' .cw = . ']'
+ '[' .cw = . ']'
+ '[' .cw-r = . ']'
+ '[' .cw-r = . ']'
+ '[' .cw-n = . ']'
+ '[' .cw-n = . ']'
+ '[' ./cw = . ']'
++ echo /cw
++ sed -e 's;//*;/;g' -e 's;/$;;'
+ prefix=/cw
+ eval 'xusr="$susr"'
++ xusr=root
+ eval 'xgrp="$sgrp"'
++ xgrp=root
+ eval 'xuid="$suid"'
++ xuid=
+ eval 'xgid="$sgid"'
++ xgid=
+ '[' . = . ']'
++ grep '^root:'
++ awk -F: '{ print $3; }'
+ xuid=0
+ '[' .0 = . ']'+ '[' . = . ']'
++ grep '^root:'
++ awk -F: '{ print $3; }'
+ xgid=0
+ '[' .0 = . ']'
+ eval 'suid="0"'
++ suid=0
+ eval 'sgid="0"'
++ sgid=0
+ eval 'xusr="$musr"'
++ xusr=cw
+ eval 'xgrp="$mgrp"'
++ xgrp=cw
+ eval 'xuid="$muid"'
++ xuid=
+ eval 'xgid="$mgid"'
++ xgid=
+ '[' . = . ']'
++ grep '^cw:'
++ awk -F: '{ print $3; }'
+ xuid=1000
+ '[' .1000 = . ']'
+ '[' . = . ']'
++ grep '^cw:'
++ awk -F: '{ print $3; }'
+ xgid=1000
+ '[' .1000 = . ']'
+ eval 'muid="1000"'
++ muid=1000
+ eval 'mgid="1000"'
++ mgid=1000
+ eval 'xusr="$rusr"'
++ xusr=cw-r
+ eval 'xgrp="$rgrp"'
++ xgrp=cw-r
+ eval 'xuid="$ruid"'
++ xuid=
+ eval 'xgid="$rgid"'
++ xgid=
+ '[' . = . ']'
+++ xgid=1001
+ '[' .1001 = . ']'
+ eval 'ruid="1001"'
++ ruid=1001
+ eval 'rgid="1001"'
++ rgid=1001
+ eval 'xusr="$nusr"'
++ xusr=cw-n
+ eval 'xgrp="$ngrp"'
++ xgrp=cw-n
+ eval 'xuid="$nuid"'
++ xuid=
+ eval 'xgid="$ngid"'
++ xgid=
+ '[' . = . ']'
++ grep '^cw-n:'
++ awk -F: '{ print $3; }'
+ xuid=1002
+ '[' .1002 = . ']'
+ '[' . = . ']'
++ grep '^cw-n:'
++ awk -F: '{ print $3; }'
+ xgid=1002
+ '[' .1002 = . ']'
+ eval 'nuid="1002"'
++ nuid=1002
+ eval 'ngid="1002"'
++ ngid=1002
+ s=Linux
+ r=2.4.17
+ plid=Linux/2.4.17
+ shell=/cw/lib/openpkg/bash
++ cat /etc/shells
++ grep '^/cw/lib/openpkg/bash'
+ exists=/cw/lib/openpkg/bash
+ '[' ./cw/lib/openpkg/bash = . ']'
+ OIFS=        
+ IFS=:
+ set -- superuser root 0 root 0
+ IFS= 
+ class=superuser
+ usr=root
+ uid=0
+ grp=root
+ gid=0 grep '^cw-r:'
++ awk -F: '{ print $3; }'
+ xuid=1001
+ '[' .1001 = . ']'
+ '[' . = . ']'
++ grep '^cw-r:'
++ awk -F: '{ print $3; }'
++ grep '^root:'
+ exists=root:x:0:0:root:/root:/usr/bin/ksh
+ '[' .root:x:0:0:root:/root:/usr/bin/ksh = . ']'
++ grep '^root:'
+ exists=root:x:0:
+ '[' .root:x:0: = . ']'
+ OIFS=        

+ IFS=:
+ set -- management cw 1000 cw 1000
+ IFS= 

+ class=management
+ usr=cw
+ uid=1000
+ grp=cw
+ gid=1000
++ grep '^cw:'
+ exists=cw:x:1000:1000:/cw OpenPKG (management):/cw:/cw/lib/openpkg/bash
+ '[' '.cw:x:1000:1000:/cw OpenPKG 
(management):/cw:/cw/lib/openpkg/bash' = . ']'
++ grep '^cw:'
+ exists=cw:*:1000:cw
+ '[' '.cw:*:1000:cw' = . ']'
+ OIFS=        

+ IFS=:
+ set -- restricted cw-r 1001 cw-r 1001
+ IFS= 

+ class=restricted
+ usr=cw-r
+ uid=1001
+ grp=cw-r
+ gid=1001
++ grep '^cw-r:'
+ exists=cw-r:x:1001:1001:/cw OpenPKG (restricted):/cw:/cw/lib/openpkg/bash
+ '[' '.cw-r:x:1001:1001:/cw OpenPKG 
(restricted):/cw:/cw/lib/openpkg/bash' = . ']'
++ grep '^cw-r:'
+ exists=cw-r:*:1001:cw-r
+ '[' '.cw-r:*:1001:cw-r' = . ']'
+ OIFS=        

+ IFS=:
+ set -- n+ uid=1002
+ grp=cw-n
+ gid=1002
++ grep '^cw-n:'
+ exists=cw-n:x:1002:1002:/cw OpenPKG 
(non-priviledged):/cw:/cw/lib/openpkg/bash
+ '[' '.cw-n:x:1002:1002:/cw OpenPKG 
(non-priviledged):/cw:/cw/lib/openpkg/bash' = . ']'
++ grep '^cw-n:'
+ exists=cw-n:*:1002:cw-n
+ '[' '.cw-n:*:1002:cw-n' = . ']'
++ echo /cw
++ sed -e 's;/;;g'
+ name=cw
+ '[' .root '!=' .root ']'
+ '[' -f /etc/debian_version ']'
+ '[' -f /etc/SuSE-release ']'
+ '[' -f /etc/redhat-release ']'
+ '[' '!' -f /cw ']'
openpkg-20020308-20020308.ix86-linux2.4-cw.sh: /cw: Is a directory
+ chmod 755 /cw
++ echo
++ sed -e 's;%d;2;'
+ ln -s /cw /S99cw
ln: `/S99cw/cw': File exists
++ echo
++ sed -e 's;%d;3;'
+ ln -s /cw /S99cw
ln: `/S99cw/cw': File exists
++ echo
++ sed -e 's;%d;4;'
+ ln -s /cw /S99cw
ln: `/S99cw/cw': File exists
++ echo
++ sed -e 's;%d;5;'
+ ln -s /cw /S99cw
ln: `/S99cw/cw': File exists
++ echo
++ sed -e 's;%d;0;'
+ ln -s /cw /K00cw
ln: `/K00cw/cw': File exists
++ echo
++ sed -e 's;%d;1;'
+ ln -s /cw /K00cw
ln: `/K00cw/cw': File exists
++ echo
++ sed -e 's;%d;6;'
+ ln -s /cw /K00cw
ln: `/K00cw/cw': File exists
+ '[' .root '!=' .root ']'
++ grep /cw/etc/rc /etc/crontabon-priviledged cw-n 1002 cw-n 1002
+ exists=0    0  1  *  *  root  [ -f /cw/etc/rc ] && /cw/etc/rc all monthly
0    0  *  *  0  root  [ -f /cw/etc/rc ] && /cw/etc/rc all weekly
0    0  *  *  *  root  [ -f /cw/etc/rc ] && /cw/etc/rc all daily
0    *  *  *  *  root  [ -f /cw/etc/rc ] && /cw/etc/rc all hourly
*/15 *  *  *  *  root  [ -f /cw/etc/rc ] && /cw/etc/rc all quarterly
+ '[' '.0    0  1  *  *  root  [ -f /cw/etc/rc ] && /cw/etc/rc all monthly
0    0  *  *  0  root  [ -f /cw/etc/rc ] && /cw/etc/rc all weekly
0    0  *  *  *  root  [ -f /cw/etc/rc ] && /cw/etc/rc all daily
0    *  *  *  *  root  [ -f /cw/etc/rc ] && /cw/etc/rc all hourly
*/15 *  *  *  *  root  [ -f /cw/etc/rc ] && /cw/etc/rc all quarterly' = 
. ']'
+ d=
++ IFS=/
++ echo '' cw
+ d=/cw
+ '[' '!' -d /cw ']'
+ uudecode openpkg-20020308-20020308.ix86-linux2.4-cw.sh
+ uncompress

uncompress: stdin: unexpected end of file
+ cd /cw
+ tar xf -
+ rm -f openpkg-20020308-20020308.ix86-linux2.4-cw.tar.Z
+ '[' .root = .root ']'
+ cd /cw
+ chown -R -h cw .
+ chgrp -R -h cw .
+ echo 'openpkg-20020308-20020308.ix86-linux2.4-cw.sh: installation done.'
openpkg-20020308-20020308.ix86-linux2.4-cw.sh: installation done.
+ exit 0

Hope this is some reason why.

Joseph

+ IFS= 

+ class=non-priviledged
+ usr=cw-n



Ralf S. Engelschall wrote:

>On Sat, Mar 09, 2002, Joseph Sirucka wrote:
>
>>I am trying to install the openpkg source and when I run the script 
>>initially it compiles and runs ok. But the next script that is 
>>generated, and required to run fails as either root or or as the cw user 
>>I created as required.
>>
>>I am running linux with the 2.4.17 kernel.
>>
>>here is the output from root
>>
>>openpkg-1.0.0-1.0.0.ix86-linux2.4-cw.sh: installing into /cw...
>>openpkg-1.0.0-1.0.0.ix86-linux2.4-cw.sh: /cw: Is a directory
>>openpkg-1.0.0-1.0.0.ix86-linux2.4-cw.sh: create: command not found
>>ln: S99cw/cw': File exists
>>ln: K00cw/cw': File exists
>>
>>Here is the output as cw user
>>[...]
>>
>
>You have to perform the installation as root, of course. But the
>errors looks strange if you do this. Can you retry this with the
>latest "openpkg" package from OpenPKG-CURRENT? If this also fails,
>try to first cleanup your system by removing the user/group from
>/etc/passwd+/etc/group and the init-scripts from /etc/rc.d/*. Then retry
>it. Either something is trashed on your system or we have a bug here.
>But currently you seem to have a non-clean system, so it is hard to
>figure out the problem. Additionally, try to run with "sh -x ..*.sh" and
>show us the output.
>                                       Ralf S. Engelschall
>                                       [EMAIL PROTECTED]
>                                       www.engelschall.com
>______________________________________________________________________
>The OpenPKG Project                                    www.openpkg.org
>User Communication List                      [EMAIL PROTECTED]
>



______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      [EMAIL PROTECTED]

Reply via email to