pkgsrc-Bugs archive

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

pkg/36414: mk/bulk/mksandbox improvements on Solaris



>Number:         36414
>Category:       pkg
>Synopsis:       mk/bulk/mksandbox improvements on Solaris
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed May 30 12:45:00 +0000 2007
>Originator:     Ulrich Habel
>Release:        Solaris 5.9/sparc
>Organization:
-
>Environment:
SunOS sun-install 5.9 Generic_122300-07 sun4u sparc SUNW,Sun-Fire-V240
>Description:
On Solaris the pax command is used per default to populate the sandbox. It 
throws a bunch of errors when the script runs. In order to get things working 
with less warnings I suggest to use the bootstrap supplied pax command and 
eliminate the assignment of the "e" option to pax - the "p" option should be 
sufficient. Due to the mass or warnings/errors it doesn't  seem to work proper 
(tho it does).

The bootstrap is considered required so the pax utility is already installed.

In the end I'll provide the output of the script "old" version, "new" version 
and the patch to the script.

Regards

Uli


#################OLD SCRIPT VERSION OUTPUT#######################
bash-2.05# mk/bulk/mksandbox /usr/sandbox
WARNING: LOCALPATCHES directory does not exist - ignoring
Checking package hierarchy in /usr/pkg and package database in /var/db/pkg exist
Make and populate /usr/sandbox/dev
Make and populate /usr/sandbox/etc
pax: /usr/sandbox/etc/TIMEZONE : unable to preserve owner/group
pax: /usr/sandbox/etc/autopush : unable to preserve owner/group
pax: /usr/sandbox/etc/cfgadm : unable to preserve owner/group
pax: /usr/sandbox/etc/clri : unable to preserve owner/group
pax: /usr/sandbox/etc/cron : unable to preserve owner/group
pax: /usr/sandbox/etc/dcopy : unable to preserve owner/group
pax: /usr/sandbox/etc/ff : unable to preserve owner/group
pax: /usr/sandbox/etc/fmthard : unable to preserve owner/group
pax: /usr/sandbox/etc/format : unable to preserve owner/group
pax: /usr/sandbox/etc/fsck : unable to preserve owner/group
pax: /usr/sandbox/etc/fsdb : unable to preserve owner/group
pax: /usr/sandbox/etc/fstyp : unable to preserve owner/group
pax: /usr/sandbox/etc/getty : unable to preserve owner/group
pax: /usr/sandbox/etc/grpck : unable to preserve owner/group
pax: /usr/sandbox/etc/halt : unable to preserve owner/group
pax: /usr/sandbox/etc/hosts : unable to preserve owner/group
pax: /usr/sandbox/etc/init : unable to preserve owner/group
pax: /usr/sandbox/etc/install : unable to preserve owner/group
pax: /usr/sandbox/etc/killall : unable to preserve owner/group
pax: /usr/sandbox/etc/labelit : unable to preserve owner/group
pax: /usr/sandbox/etc/log : unable to preserve owner/group
pax: /usr/sandbox/etc/mail/sendmail.hf : unable to preserve owner/group
pax: /usr/sandbox/etc/mkfs : unable to preserve owner/group
pax: /usr/sandbox/etc/mknod : unable to preserve owner/group
pax: /usr/sandbox/etc/mount : unable to preserve owner/group
pax: /usr/sandbox/etc/mountall : unable to preserve owner/group
pax: /usr/sandbox/etc/ncheck : unable to preserve owner/group
pax: /usr/sandbox/etc/prtconf : unable to preserve owner/group
pax: /usr/sandbox/etc/prtvtoc : unable to preserve owner/group
pax: /usr/sandbox/etc/rc0 : unable to preserve owner/group
pax: /usr/sandbox/etc/rc1 : unable to preserve owner/group
pax: /usr/sandbox/etc/rc2 : unable to preserve owner/group
pax: /usr/sandbox/etc/rc3 : unable to preserve owner/group
pax: /usr/sandbox/etc/rc5 : unable to preserve owner/group
pax: /usr/sandbox/etc/rc6 : unable to preserve owner/group
pax: /usr/sandbox/etc/rcS : unable to preserve owner/group
pax: /usr/sandbox/etc/reboot : unable to preserve owner/group
pax: /usr/sandbox/etc/security/audit/localhost/files : unable to preserve 
owner/group
pax: /usr/sandbox/etc/setmnt : unable to preserve owner/group
pax: /usr/sandbox/etc/shutdown : unable to preserve owner/group
pax: /usr/sandbox/etc/sulogin : unable to preserve owner/group
pax: /usr/sandbox/etc/swap : unable to preserve owner/group
pax: /usr/sandbox/etc/swapadd : unable to preserve owner/group
pax: /usr/sandbox/etc/sysdef : unable to preserve owner/group
pax: /usr/sandbox/etc/sysevent/devfsadm_event_channel/reg_door : Unknown 
filetype
pax: /usr/sandbox/etc/sysevent/syseventconfd_event_channel/reg_door : Unknown 
filetype
pax: /usr/sandbox/etc/sysevent/sysevent_door : Unknown filetype
pax: /usr/sandbox/etc/sysevent/piclevent_door : Unknown filetype
pax: /usr/sandbox/etc/tar : unable to preserve owner/group
pax: /usr/sandbox/etc/telinit : unable to preserve owner/group
pax: /usr/sandbox/etc/uadmin : unable to preserve owner/group
pax: /usr/sandbox/etc/umount : unable to preserve owner/group
pax: /usr/sandbox/etc/umountall : unable to preserve owner/group
pax: /usr/sandbox/etc/utmpx : unable to preserve owner/group
pax: /usr/sandbox/etc/volcopy : unable to preserve owner/group
pax: /usr/sandbox/etc/wall : unable to preserve owner/group
pax: /usr/sandbox/etc/whodo : unable to preserve owner/group
pax: /usr/sandbox/etc/wtmpx : unable to preserve owner/group
pax: /usr/sandbox/etc/pango/ja : unable to preserve owner/group
pax: /usr/sandbox/etc/pango/ja_JP.PCK : unable to preserve owner/group
pax: /usr/sandbox/etc/pango/zh : unable to preserve owner/group
pax: /usr/sandbox/etc/pango/zh.GBK : unable to preserve owner/group
pax: /usr/sandbox/etc/pango/zh.UTF-8 : unable to preserve owner/group
pax: /usr/sandbox/etc/pango/zh_TW : unable to preserve owner/group
pax: /usr/sandbox/etc/pango/sparcv9/pango/ja : unable to preserve owner/group
pax: /usr/sandbox/etc/pango/sparcv9/pango/ja_JP.PCK : unable to preserve 
owner/group
pax: /usr/sandbox/etc/pango/sparcv9/pango/zh : unable to preserve owner/group
pax: /usr/sandbox/etc/pango/sparcv9/pango/zh.GBK : unable to preserve 
owner/group
pax: /usr/sandbox/etc/pango/sparcv9/pango/zh.UTF-8 : unable to preserve 
owner/group
pax: /usr/sandbox/etc/pango/sparcv9/pango/zh_TW : unable to preserve owner/group
pax: /usr/sandbox/etc/mknod : unable to preserve owner/group
pax: /usr/sandbox/etc/mount : unable to preserve owner/group
pax: /usr/sandbox/etc/mountall : unable to preserve owner/group
pax: /usr/sandbox/etc/ncheck : unable to preserve owner/group
pax: /usr/sandbox/etc/prtconf : unable to preserve owner/group
pax: /usr/sandbox/etc/prtvtoc : unable to preserve owner/group
pax: /usr/sandbox/etc/rc0 : unable to preserve owner/group
pax: /usr/sandbox/etc/rc1 : unable to preserve owner/group
pax: /usr/sandbox/etc/rc2 : unable to preserve owner/group
pax: /usr/sandbox/etc/rc3 : unable to preserve owner/group
pax: /usr/sandbox/etc/rc5 : unable to preserve owner/group
pax: /usr/sandbox/etc/rc6 : unable to preserve owner/group
pax: /usr/sandbox/etc/rcS : unable to preserve owner/group
pax: /usr/sandbox/etc/reboot : unable to preserve owner/group
pax: /usr/sandbox/etc/security/audit/localhost/files : unable to preserve 
owner/group
pax: /usr/sandbox/etc/setmnt : unable to preserve owner/group
pax: /usr/sandbox/etc/shutdown : unable to preserve owner/group
pax: /usr/sandbox/etc/sulogin : unable to preserve owner/group
pax: /usr/sandbox/etc/swap : unable to preserve owner/group
pax: /usr/sandbox/etc/swapadd : unable to preserve owner/group
pax: /usr/sandbox/etc/sysdef : unable to preserve owner/group
pax: /usr/sandbox/etc/sysevent/devfsadm_event_channel/reg_door : Unknown 
filetype
pax: /usr/sandbox/etc/sysevent/syseventconfd_event_channel/reg_door : Unknown 
filetype
pax: /usr/sandbox/etc/sysevent/sysevent_door : Unknown filetype
pax: /usr/sandbox/etc/sysevent/piclevent_door : Unknown filetype
pax: /usr/sandbox/etc/tar : unable to preserve owner/group
pax: /usr/sandbox/etc/telinit : unable to preserve owner/group
pax: /usr/sandbox/etc/uadmin : unable to preserve owner/group
pax: /usr/sandbox/etc/umount : unable to preserve owner/group
pax: /usr/sandbox/etc/umountall : unable to preserve owner/group
pax: /usr/sandbox/etc/utmpx : unable to preserve owner/group
pax: /usr/sandbox/etc/volcopy : unable to preserve owner/group
pax: /usr/sandbox/etc/wall : unable to preserve owner/group
pax: /usr/sandbox/etc/whodo : unable to preserve owner/group
pax: /usr/sandbox/etc/wtmpx : unable to preserve owner/group
pax: /usr/sandbox/etc/pango/ja : unable to preserve owner/group
pax: /usr/sandbox/etc/pango/ja_JP.PCK : unable to preserve owner/group
pax: /usr/sandbox/etc/pango/zh : unable to preserve owner/group
pax: /usr/sandbox/etc/pango/zh.GBK : unable to preserve owner/group
pax: /usr/sandbox/etc/pango/zh.UTF-8 : unable to preserve owner/group
pax: /usr/sandbox/etc/pango/zh_TW : unable to preserve owner/group
pax: /usr/sandbox/etc/pango/sparcv9/pango/ja : unable to preserve owner/group
pax: /usr/sandbox/etc/pango/sparcv9/pango/ja_JP.PCK : unable to preserve 
owner/group
pax: /usr/sandbox/etc/pango/sparcv9/pango/zh : unable to preserve owner/group
pax: /usr/sandbox/etc/pango/sparcv9/pango/zh.GBK : unable to preserve 
owner/group
pax: /usr/sandbox/etc/pango/sparcv9/pango/zh.UTF-8 : unable to preserve 
owner/group
pax: /usr/sandbox/etc/pango/sparcv9/pango/zh_TW : unable to preserve owner/group
pax: /usr/sandbox/etc/lp/logs : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.be : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.bg : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.bg_BG.iso88595 : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.cs : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.cy : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.et : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.ga : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.he_IL.cp1255 : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.he_IL.microsoftcp1255 : unable to preserve 
owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.hr : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.hu : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.ka : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.lt : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.lv : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.mi : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.mk : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.pl : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.ro : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.ru_RU.iso88595 : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.sk : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.sl : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.sp : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.sq : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.sr : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.vi : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.vi_VN.viscii111 : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.yi : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.zh : unable to preserve owner/group
pax: /usr/sandbox/etc/chroot : unable to preserve owner/group
pax: /usr/sandbox/etc/fuser : unable to preserve owner/group
pax: /usr/sandbox/etc/link : unable to preserve owner/group
pax: /usr/sandbox/etc/mvdir : unable to preserve owner/group
pax: /usr/sandbox/etc/pwck : unable to preserve owner/group
pax: /usr/sandbox/etc/termcap : unable to preserve owner/group
pax: /usr/sandbox/etc/unlink : unable to preserve owner/group
pax: /usr/sandbox/etc/rmt : unable to preserve owner/group
pax: /usr/sandbox/etc/uucp/remote.unknown : unable to preserve owner/group
pax: /usr/sandbox/etc/.syslog_door : unable to preserve owner/group
pax: /usr/sandbox/etc/syslog.pid : unable to preserve owner/group
Make empty dirs upon which to mount the null mounts
Making /tmp in /usr/sandbox
Making /var/games in /usr/sandbox
Making /var/run in /usr/sandbox
Making /var/log in /usr/sandbox
Making /var/spool/lock in /usr/sandbox
Making /var/spool/mqueue in /usr/sandbox
Making /usr/tmp in /usr/sandbox
Making /var/tmp in /usr/sandbox
Mount /usr/pkgsrc from /usr/sandbox
Mounting /local/installserver/packages-current and /local/distfiles from 
/usr/sandbox
Sandbox creation is now complete
bash-2.05#
pax: /usr/sandbox/etc/gtk/gtkrc.ga : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.he_IL.cp1255 : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.he_IL.microsoftcp1255 : unable to preserve 
owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.hr : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.hu : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.ka : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.lt : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.lv : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.mi : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.mk : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.pl : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.ro : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.ru_RU.iso88595 : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.sk : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.sl : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.sp : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.sq : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.sr : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.vi : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.vi_VN.viscii111 : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.yi : unable to preserve owner/group
pax: /usr/sandbox/etc/gtk/gtkrc.zh : unable to preserve owner/group
pax: /usr/sandbox/etc/chroot : unable to preserve owner/group
pax: /usr/sandbox/etc/fuser : unable to preserve owner/group
pax: /usr/sandbox/etc/link : unable to preserve owner/group
pax: /usr/sandbox/etc/mvdir : unable to preserve owner/group
pax: /usr/sandbox/etc/pwck : unable to preserve owner/group
pax: /usr/sandbox/etc/termcap : unable to preserve owner/group
pax: /usr/sandbox/etc/unlink : unable to preserve owner/group
pax: /usr/sandbox/etc/rmt : unable to preserve owner/group
pax: /usr/sandbox/etc/uucp/remote.unknown : unable to preserve owner/group
pax: /usr/sandbox/etc/.syslog_door : unable to preserve owner/group
pax: /usr/sandbox/etc/syslog.pid : unable to preserve owner/group
Make empty dirs upon which to mount the null mounts
Making /tmp in /usr/sandbox
Making /var/games in /usr/sandbox
Making /var/run in /usr/sandbox
Making /var/log in /usr/sandbox
Making /var/spool/lock in /usr/sandbox
Making /var/spool/mqueue in /usr/sandbox
Making /usr/tmp in /usr/sandbox
Making /var/tmp in /usr/sandbox
Mount /usr/pkgsrc from /usr/sandbox
Mounting /local/installserver/packages-current and /local/distfiles from 
/usr/sandbox
Sandbox creation is now complete



#################NEW SCRIPT VERSION OUTPUT#######################
bash-2.05# mk/bulk/mksandbox /usr/sandbox
WARNING: LOCALPATCHES directory does not exist - ignoring
Checking package hierarchy in /usr/pkg and package database in /var/db/pkg exist
Make and populate /usr/sandbox/dev
Make and populate /usr/sandbox/etc
pax: File ./mnttab changed size during copy to /usr/sandbox/etc/./mnttab
Make empty dirs upon which to mount the null mounts
Making /tmp in /usr/sandbox
Making /var/games in /usr/sandbox
Making /var/run in /usr/sandbox
Making /var/log in /usr/sandbox
Making /var/spool/lock in /usr/sandbox
Making /var/spool/mqueue in /usr/sandbox
Making /usr/tmp in /usr/sandbox
Making /var/tmp in /usr/sandbox
Mount /usr/pkgsrc from /usr/sandbox
Mounting /local/installserver/packages-current and /local/distfiles from 
/usr/sandbox
Sandbox creation is now complete
>How-To-Repeat:
just run mk/bulk/mksandbox on a Solaris 9 host
>Fix:
--- mk/bulk/mksandbox.orig      2007-05-30 07:54:56.495652000 +0200
+++ mk/bulk/mksandbox   2007-05-30 13:02:34.888778000 +0200
@@ -128,7 +128,7 @@
        mkdirprog="/usr/bin/mkdir -p"
        mountflags="-F lofs"
        mountprog=/sbin/mount
-       paxprog=/bin/pax
+       paxprog=/usr/pkg/bin/pax
        sedprog=/usr/xpg4/bin/sed
        sandboxMountDirs="/bin /sbin /kernel /lib /proc /opt/SUNWspro 
/usr/X11R6 /usr/5bin /usr/bin /usr/ccs /usr/dt /usr/games /usr/include /usr/lib 
/usr/openwin /usr/share /usr/sbin /usr/sadm /usr/ucb /usr/ucblib /usr/xpg4 
/var/mail /var/sadm"
        sandboxEmptyDirs="$sandboxEmptyDirs /usr/tmp /var/tmp"
@@ -244,7 +244,7 @@
 $mkdirprog $sandbox/etc
 case "$paxprog" in
 "")    (cd /etc; $gtarprog -cf - . | (cd $sandbox/etc; $gtarprog xf - )) ;;
-*)     (cd /etc; $paxprog -rwpe . $sandbox/etc) ;;
+*)     (cd /etc; $paxprog -rwpp . $sandbox/etc) ;;
 esac
 rm -f $sandbox/etc/localtime





Home | Main Index | Thread Index | Old Index