Commit graph

29 commits

Author SHA1 Message Date
jperkin
98c16dda3a mksandbox: Update to version 1.10.
Change the /dev/shm handling on Linux to account for systemd being a complete
nightmare and changing mount types behind your back automatically.

The previous fixed works fine, until it magically changes from a tmpfs with
1777 permissions to a devtmpfs with 0755 permissions, with obvious failures
resulting when building as non-root.

Tested on el6 and el7, with the latter now reliably able to build Python.
2021-01-22 11:59:52 +00:00
jperkin
c4face150c mksandbox: Copy mounts that are symlinks.
Resolves issues seen on newer Linux.  I've had this in my tree for a while,
ride previous version bump.
2020-12-07 13:05:12 +00:00
jperkin
1278ee7035 mksandbox: Update to version 1.9.
On Linux create an additional read/write bind mount for /dev/shm.  It should be
a tmpfs mount writeable by all users, whereas the default devtmpfs permissions
for the directory are 0755.

Fixes builds of newer python releases as a non-root user.
2020-12-07 12:35:52 +00:00
rillig
b686dd9180 all: migrate several HOMEPAGEs to https
pkglint --only "https instead of http" -r -F

With manual adjustments afterwards since pkglint 19.4.4 fixed a few
indentations in unrelated lines.

This mainly affects projects hosted at SourceForce, as well as
freedesktop.org, CTAN and GNU.
2020-01-18 23:30:43 +00:00
agc
f44279d1fb Update mksandbox to version 1.8
Fix in PR pkg/53896 from silas@nocafe.net for mksandbox to fully
support relative pathnames.
2019-01-25 20:08:21 +00:00
sevan
24dd0a77b3 Update Usage coment to include --without-xsrc 2018-12-07 12:40:39 +00:00
sevan
b7de4676b7 Include /var/spool/dma on DragonFly BSD so report emails work from pbulk. 2018-09-29 18:59:29 +00:00
sevan
46cb3a599f Document the chroot command and differentiate what happens when the sandbox
script is invoked with any command specified.
2018-08-16 15:40:50 +00:00
sevan
4bd1bd8223 Add support for DragonFly BSD.
OS is essentially the same as FreeBSD from our configuration point of view, with
the exception of the name of utiliy for nullfs mounts.
Tested on DragonFly 5.3-DEVELOPMENT.
2018-04-21 19:40:50 +00:00
simonb
b6b45abbd1 Document the existing --without-src and new --without-xsrc options. 2018-04-12 02:11:24 +00:00
simonb
874ce22b9f Add a --without-xsrc option similar to the existing --without-src
option.  Allows for building X packages without needing xsrc in the
sandbox.

Approved by agc@.
2018-04-12 02:08:47 +00:00
rillig
c77d3c5335 pkgtools/*: Realign variables in Makefiles
Mainly done by pkglint, manually reviewed and improved in some few cases.
2018-01-27 19:07:46 +00:00
rillig
b381c6e2f3 Sort PLIST files.
Unsorted entries in PLIST files have generated a pkglint warning for at
least 12 years. Somewhat more recently, pkglint has learned to sort
PLIST files automatically. Since pkglint 5.4.23, the sorting is only
done in obvious, simple cases. These have been applied by running:

  pkglint -Cnone,PLIST -Wnone,plist-sort -r -F
2018-01-01 22:29:15 +00:00
jperkin
74564c9ae6 Update to mksandbox-1.7. Changes:
- Handle /run/resolvconf/resolv.conf explicitly rather than mounting all of
   /run.  If /run exists then systemd will dynamically create /run/user/uid
   tmpfs mounts inside the chroot which mksandbox is unable to unmount.
2016-10-14 12:50:07 +00:00
agc
c006a71287 Patch from Silas Silva to:
+ add a --without-src command line argument which allows a sandbox to be
  made without mounting any src tree component

+ bump mksandbox package to 1.6.
2016-03-03 04:41:15 +00:00
jperkin
a076d14ba7 mksandbox-1.5: Mount /run on newer Linux for dynamic resolv.conf 2015-07-05 11:47:14 +00:00
jperkin
73742a85a5 Update to mksandbox-1.4. Changes:
- Only copy $kernel if it exists, fixes warning on OSX 10.10 which moves
   the kernel location to a directory we already mount, noted by J. Lewis
   Muir on pkgsrc-users.

 - Add NO_CHECKSUM=yes to appease pkglint.
2015-04-14 08:55:07 +00:00
obache
34637a70ac Just define PKGNAME and use it. 2014-03-03 03:30:52 +00:00
jperkin
be6bed6b44 mksandbox-1.3:
- Add /usr/sfw to SunOS mount dirs, required for certain binaries on
   newer releases.
 - Mount proper instances of /dev and /dev/fd on SunOS rather than relying
   on devfsadm and ucblinks, the latter of which does not exist on newer
   releases.
 - Do not create /var/games if the games user does not exist.
2013-07-24 22:16:26 +00:00
jperkin
11bf2bd590 mksandbox-1.2:
* Mount /proc read-write on Linux, it appears to be required for e.g.
    groupadd to function correctly.

  * Add new --rodirs and --rwdirs options, which allow arbitrary lists
    of directories to be mounted appropriately inside the chroot.

  * Add --without-pkgsrc which prevents the default pkgsrc directories
    from being mounted.

This allows mksandbox to be easily used for chrooted pbulk setups, using
a simple invocation such as:

  mksandbox --without-pkgsrc --rodirs=/usr/pbulk --rwdirs=/shared /chroot
2013-07-20 10:20:42 +00:00
jperkin
58c1cbdabc mksandbox-1.1:
* Add /lib64 and /usr/lib64 on Linux.
  * Ensure that read-only --bind mounts on Linux are actually read-only.
2013-07-18 16:07:22 +00:00
agc
fa1cb09ad0 I'll take responsibility for this one. 2013-05-29 15:57:09 +00:00
wiz
e8276fbb5b - add missing `--mounthost=host' option (and adjust the list width
for that);
- use more common option list header line;
- correct argument names of `--src' and `--xsrc' in the text;
- correct default `xsrcdir' directory;
- choose different argument wording (then also using appropriate
  macro) in the arbitrary sandbox command running explanation (and
  adjust the list width with it);
- add comma after ``e.g.'';
- bump date.

From Bug Hunting.
2013-05-29 15:14:49 +00:00
wiz
0d9c89700d - add missing `--mounthost=host' option to usage comment;
- sort options order in usage comment and `usage' message;
- de-capitalize ``usage'' word in usage message.

From Bug Hunting.
2013-05-29 15:09:49 +00:00
asau
5c2dd9e784 "user-destdir" is default these days 2012-09-11 23:19:33 +00:00
wiz
42c24894ca Follow suit -- change to 2-clause BSD, and adapt Makefile LICENSE variable. 2012-08-26 22:13:18 +00:00
agc
05e16378ed Change to a 2-clause licen[cs]e. 2012-08-26 21:38:34 +00:00
wiz
0f9f94e78a Add more documentation. 2012-08-26 11:00:23 +00:00
wiz
0e1bdf6848 Import mksandbox-1.0 as pkgtools/mksandbox.
A small shell script to set up a sandbox (usually for a pkgsrc bulk
build), using null mounts.

The file lived in pkgsrc/mk/bulk/mksandbox, but is worthy of its own
package IMHO. New: with manpage.
2012-08-26 10:31:23 +00:00