NetBSD Problem Report #36414

From martin@duskware.de  Wed May 30 12:40:57 2007
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 6869363B880
	for <gnats-bugs@gnats.netbsd.org>; Wed, 30 May 2007 12:40:57 +0000 (UTC)
Message-Id: <20070530121741.8A66563B880@narn.NetBSD.org>
Date: Wed, 30 May 2007 12:17:41 +0000 (UTC)
From: uli@habel.name
Reply-To: uli@habel.name
To: netbsd-bugs-owner@NetBSD.org
Subject: mk/bulk/mksandbox improvements on Solaris
X-Send-Pr-Version: www-1.0

>Number:         36414
>Category:       pkg
>Synopsis:       mk/bulk/mksandbox improvements on Solaris
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    solaris-pkg-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed May 30 12:45:00 +0000 2007
>Last-Modified:  Thu Feb 06 21:27:18 +0000 2014
>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


>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->rillig
Responsible-Changed-By: obache@netbsd.org
Responsible-Changed-When: Wed, 30 May 2007 13:17:53 +0000
Responsible-Changed-Why:
bulk build + Solaris = rillig@?


Responsible-Changed-From-To: rillig->rhaen
Responsible-Changed-By: rillig@NetBSD.org
Responsible-Changed-When: Fri, 20 Nov 2009 11:35:26 +0000
Responsible-Changed-Why:
I don't have access to Solaris anymore.


Responsible-Changed-From-To: rhaen->agc
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Mon, 23 Dec 2013 11:36:33 +0000
Responsible-Changed-Why:
Over to maintainer. If you can't handle, please assign to solaris-pkg-people


Responsible-Changed-From-To: agc->solaris-pkg-people
Responsible-Changed-By: agc@NetBSD.org
Responsible-Changed-When: Thu, 06 Feb 2014 21:27:18 +0000
Responsible-Changed-Why:
transferring to solaris-pkg-people


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.