jlam
5c253acc19
+ Skip mounting X11 directories if --without-x is specified.
...
+ Add a "chroot" option, stolen from pkg_comp(8) that starts a root
shell with a better environment setup.
2008-04-01 16:30:19 +00:00
jlam
e0dde0f751
Add missing ]
2008-04-01 16:06:35 +00:00
jlam
a38826c59e
Add a --without-x flag to the mksandbox script.
2008-02-26 05:06:32 +00:00
rillig
7fca192e2e
Replaced all references to pkglint with lintpkgsrc, which has its own
...
package since a few days.
2008-01-04 15:49:07 +00:00
wiz
daff9198ed
On Linux (at least Red Hat Enterprise 3), openssl needs libraries
...
from /usr/kerberos and /dev/random in sandbox. On FreeBSD, use
devfs to populate /dev in sandbox.
From Sergey Svishchev.
2007-05-19 14:09:54 +00:00
martti
e2610fb8c8
Remove trailing tabs.
2006-12-15 13:15:06 +00:00
dmcmahill
b3c2d58dbe
add /usr/sadm to the list of sandboxMountDirs for SunOS
2006-12-14 14:29:22 +00:00
minskim
2b7640f4c7
Use /bin/mount if it exists on Linux, because some distros (e.g. Ubuntu
...
Linux) do not have /sbin/mount.
2006-09-26 20:56:28 +00:00
minskim
cbf5ec4bec
Create /var/spool/lock in the sandbox. The directory is needed to
...
build comm/minicom.
2006-06-08 01:11:43 +00:00
tv
d430660269
Interix cannot use the generic mksandbox procedure. Exit with error.
...
(A future Interix-specific mksandbox procedure is in work.)
2005-11-16 17:42:20 +00:00
dmcmahill
51352eff3c
by default don't try to include src and xsrc in the list of things to
...
mount in the sandbox. Then in the individual OS section, turn it back
on if needed. Right now, just turn on NetBSD. At some point we should
probably fill out the other supported OS's or figure out a way to pull
in the information from the makefiles which already define much of whats
needed.
2005-04-21 21:44:56 +00:00
grant
3f3afebafb
on Linux, we need more than just /proc in the sandbox. :)
2005-02-10 03:20:00 +00:00
agc
a920ff2b3c
Allow the xsrc directory to be specified on the command line, defaulting to
...
/usr/xsrc if not specified, and check for its existence.
2004-10-24 22:54:25 +00:00
cjep
8d4dc2e04d
Make and mount the local patches directory when relevant. Fixes PR#26951
...
from Masanori Mikawa.
2004-09-16 09:55:42 +00:00
grant
b0bef53ef5
many kernel-grovelling tools in Linux need /proc mounted to do
...
anything useful.
make it so.
2004-09-02 07:04:54 +00:00
grant
06d1f588de
add /var/sadm so that Solaris pkgchk(8) can read the package database,
...
xpm/builtin.mk uses this to determine whether Solaris has xpm.
2004-07-03 21:42:37 +00:00
grant
eca521ff8e
the timezone file on Solaris is /etc/TIMEZONE.
2004-07-01 13:18:20 +00:00
grant
492fa68c52
on Solaris, ensure /usr/tmp and /var/tmp are created in the sandbox,
...
as nroff(1) and others complain if these directories don't exist.
2004-06-06 01:33:17 +00:00
grant
455f44b853
remove "local" variable scope, it is not required and is NetBSD sh(1)
...
specific.
2004-06-06 01:30:31 +00:00
grant
7430d655d9
on Solaris, mount /opt/SUNWspro in the sandbox if it exists.
2004-02-13 23:53:13 +00:00
grant
3b338ae7b6
print a useful error if the pkgsrc directory or src directory
...
doesn't exist.
2004-01-30 08:51:29 +00:00
grant
fb2aa67691
if an unknown option is given, don't treat it as a sandbox
...
directory, print the usage message instead.
2004-01-30 08:34:28 +00:00
grant
d84262f580
add /usr/5bin for Solaris.
2004-01-26 22:32:30 +00:00
grant
c7be5308d1
sandboxed builds also need /usr/dt and /usr/ucblib on Solaris.
2004-01-22 13:08:32 +00:00
grant
94317ffdac
on Linux, use --bind arg to mount(8) and call 'MAKEDEV generic' to
...
make the device files, as this is what Linux systems seem to use...
2004-01-20 01:01:56 +00:00
jlam
841b57441b
Merge pkgviews-mk branch into the HEAD by running:
...
cd pkgsrc/mk
cvs update -Pd -A
cvs update -Pd -j pkgviews-mk-base -j pkgviews-mk
2003-09-02 06:59:37 +00:00
seb
e9ea51f5ad
Also create /var/log/lastlog{,x} in the sandbox if they exist in the
...
hosting system.
2003-08-10 20:33:53 +00:00
seb
95c657b976
Rename sandboxDirs to sandboxMountDirs.
...
Introduce sandboxEmptyFiles a list of files to create empty in the
sandbox if they exist on the hosting system. Hence put /var/run in
sandboxEmptyDirs list.
Use $cppprog instead of cp.
2003-07-30 09:25:13 +00:00
seb
4a21457080
Whitespace.
2003-07-30 09:14:04 +00:00
seb
ac47c58a83
Introduce sandboxEmptyDirs a list of directories to create empty
...
in the sandbox if they exist on the hosting system: put /var/spool/mqueue
as it was already created before and add /var/log for now (needed
for various packages, like security/ssh2).
Only create /var/run/utmp(x) if they exist on the hosting system.
XXX this may better be an opsys dependent action.
2003-07-29 20:31:05 +00:00
jmmv
f1446ddf2b
Drop trailing whitespace. Ok'ed by wiz.
2003-05-06 17:40:18 +00:00
cjep
7dfa1c9d90
PR#21087. Some files are missing in bulk build sandboxes created by
...
mksandbox. From Brook G. Milligan.
2003-04-13 11:28:01 +00:00
cjep
3bcfb29272
Introduce a variable called kernel which is either empty or contains the
...
full pathname to the kernel file (e.g. for NetBSD /netbsd, OpenBSD /bsd, etc)
2002-12-31 17:46:12 +00:00
cjep
7b08a3ada9
Loopback mount /proc on SunOS. shells/tcsh successfully builds in the sandbox
...
except for one peculiar thing: bmake does not pick up a definition for CC.
Something is missing (for SunOS).
2002-12-31 17:42:32 +00:00
cjep
9c42c5520e
Add /usr/ccs, /usr/ucb and /usr/xpg4 for SunOS in sandboxDirs.
...
Provided that I copy a working gcc and the binaries from the bootstrap kit
into the sandbox manually, this gets me as far as having a pkgsrc
sandbox that can build pkg_tools/pkg_install.
2002-12-31 15:33:56 +00:00
cjep
c892115b8e
1. On SunOS populate /dev in the sandbox with devfsadm and ucblinks.
...
2. Introduce sandboxDirs, a list of directories that need to be
null mounted. This is different (e.g. on SunOS).
2002-12-31 15:09:01 +00:00
cjep
a00ddfac74
1. Introduce mountflags so that we can tune the mount command for Solaris
...
(et al.).
2. Use the loopback filesystem on Solaris.
2002-12-31 13:52:50 +00:00
cjep
bdb0556788
Introduce idprog so that Solaris survives the root test.
2002-12-31 13:41:16 +00:00
agc
d9242dfee4
Apply patches from Sergey Svishchev in PR 19221 to get the correct value
...
for localpatches and to make that directory available in the sandbox.
2002-12-03 18:49:39 +00:00
agc
7f9686ba08
Fixes from Robert Elz to:
...
+ umount filesystems in the reverse order from that which they were mounted
+ null-mount /lib and /libexec in a way more consistent with the original
2002-11-20 16:23:09 +00:00
seb
ca66a9af3a
Take care of -current's /lib and /libexec.
...
Noted by Julio Merino <jmmv at menta dot net> in PR pkg/18968, I had this
in my trees for weeks and I forgot about it...
2002-11-08 10:26:51 +00:00
jlam
b119dbc8ef
Merge pkgsrc/mk from the buildlink2 branch back into the main trunk.
2002-08-22 08:21:26 +00:00
seb
ae89e1a1e1
Actually Alistair was right: $packages and $distfiles also need to be
...
$mkdirprog'ed, it helps on a fresh/virgin/cleaned up bulk building system.
2002-08-15 10:42:19 +00:00
agc
a4d0d788d6
Make sure that /var/games exists in the sandbox, and has the correct
...
permissions.
2002-08-12 16:33:11 +00:00
seb
9ddc0ee2a9
New feature: this script now create $sandbox/sandbox, a shell script
...
to ease the use of the sandbox.
$sandbox/sandbox umount
Umount the null mounts from the sandbox
$sandbox/sandbox mount
Mount the null mounts required by the sandbox (useful across reboots, ...).
$sandbox/sandbox whatever
Runs the command passed as arguments, chrooted into the sandbox.
Typical usage would be `$sandbox/sandbox /my/favourite/shell'.
$sandbox/sandbox
Same as `$sandbox/sandbox /bin/sh'
Approved by agc.
2002-08-12 15:19:49 +00:00
seb
5670256c19
- Remove $sandbox/etc/localtime before copying /usr/share/zoneinfo/GMT over.
...
This prevent surprise when /etc/localtime -previously copied over in the
sandbox by pax/tar- is a symlink to /usr/share/zoneinfo/whatever.
- Improve somewhat some messages.
- Make sure $sandbox/$packages and $sandbox/$distfiles are created instead of
$packages and $distfiles.
2002-08-12 14:47:07 +00:00
agc
335e691b7a
Don't null-mount all of /var - just do /var/mail for just now, so that
...
the packages which expect a sane mail delivery set up can configure and
build within the sandbox.
2002-08-12 10:12:09 +00:00
agc
c57f1d48cf
Also null-mount /var from inside the sandbox
2002-08-12 09:55:35 +00:00
agc
7d725beb1b
Correct the position of a closing parenthesis in a comment
2002-08-07 12:14:12 +00:00
agc
742d20ca58
A small shell script to set up a sandbox (usually for a pkgsrc bulk
...
build), using null mounts.
2002-08-07 12:03:00 +00:00