pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/mksandbox/files mksandbox: Copy mounts that a...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1aef4ca07abb
branches:  trunk
changeset: 443163:1aef4ca07abb
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Mon Dec 07 13:05:12 2020 +0000

description:
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.

diffstat:

 pkgtools/mksandbox/files/mksandbox |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 80e71fc93c35 -r 1aef4ca07abb pkgtools/mksandbox/files/mksandbox
--- a/pkgtools/mksandbox/files/mksandbox        Mon Dec 07 13:04:05 2020 +0000
+++ b/pkgtools/mksandbox/files/mksandbox        Mon Dec 07 13:05:12 2020 +0000
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-# $NetBSD: mksandbox,v 1.16 2020/12/07 12:35:52 jperkin Exp $
+# $NetBSD: mksandbox,v 1.17 2020/12/07 13:05:12 jperkin Exp $
 
 # Copyright (c) 2002,2012 Alistair Crooks <agc%NetBSD.org@localhost>
 # All rights reserved.
@@ -314,6 +314,10 @@
 
 echo "Make empty dirs upon which to mount the null mounts"
 for d in $sandboxMountDirs; do
+       if [ -L $d ]; then
+               $cpprog -P $d $sandbox$d
+               continue
+       fi
        test -d $d || continue;
        case $d in
        *X11*)  test "$with_x" = "yes" || continue ;;



Home | Main Index | Thread Index | Old Index