pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/45799: Improvement of mk/bulk/mksandbox for FreeBSD and Linux
>Number: 45799
>Category: pkg
>Synopsis: Improvement of mk/bulk/mksandbox for FreeBSD and Linux
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jan 08 11:15:00 +0000 2012
>Originator: Ryo ONODERA
>Release: NetBSD 5.99.59
>Organization:
>Environment:
System: NetBSD hydrogen.elements.tetera.org 5.99.59 NetBSD 5.99.59 (LEAFGIRLA)
#4: Sat Jan 7 03:11:27 JST 2012
root%hydrogen.elements.tetera.org@localhost:/usr/obj/sys/arch/i386/compile/LEAFGIRLA
i386
Architecture: i386
Machine: i386
>Description:
On FreeBSD/i386 9.0-RC3 and CentOS Linux/i386 6.2, pkgsrc/mk/bulk/mksandbox
script does not work well.
FreeBSD/i386 9.0-RC3 has no "mount -t null", and it has "mount -t nullfs".
On CentOS Linux/i386 6.2, for creating /dev/*, "mount --bind" is more
easy way, I think.
This change for Linux works also for CentOS Linux/i386 5.4 and
current Gentoo Linux (Linux kernel 3).
>How-To-Repeat:
On FreeBSD/i386 9.0-RC3 or CentOS Linux/i386 6.2,
run "pkgsrc/mk/bulk/mksandbox --without-x /home/bulk"
>Fix:
Index: mk/bulk/mksandbox
===================================================================
RCS file: /cvsroot/pkgsrc/mk/bulk/mksandbox,v
retrieving revision 1.52
diff -u -r1.52 mksandbox
--- mk/bulk/mksandbox 20 Sep 2009 10:24:00 -0000 1.52
+++ mk/bulk/mksandbox 8 Jan 2012 11:04:58 -0000
@@ -80,6 +80,19 @@
paxprog=/bin/pax
sedprog=/usr/bin/sed
;;
+FreeBSD)
+ bmakeprog=bmake
+ chmodprog=/bin/chmod
+ chownprog=/usr/sbin/chown
+ cpprog=/bin/cp
+ gtarprog=/usr/bin/tar
+ idprog=/usr/bin/id
+ mkdirprog="/bin/mkdir -p"
+ mountflags="-t nullfs"
+ mountprog=/sbin/mount
+ paxprog=/bin/pax
+ sedprog=/usr/bin/sed
+ ;;
Interix)
echo >&2 "This script cannot be used on Interix; a different procedure
is required."
echo >&2 "(To be documented.)"
@@ -235,8 +248,7 @@
fi
;;
Linux)
- $cpprog /dev/MAKEDEV* $sandbox/dev
- (cd $sandbox/dev; ./MAKEDEV generic random)
+ $mountprog $mountflags /dev $sandbox/dev
;;
FreeBSD)
$mountprog -t devfs devfs $sandbox/dev
>Unformatted:
Home |
Main Index |
Thread Index |
Old Index