Darwin Version

Richard L. Hamilton rlhamil at smart.net
Sat Oct 3 10:53:05 PDT 2015


> On Oct 3, 2015, at 13:26, Eric A. Borisch <eborisch at macports.org> wrote:
> 
> On Saturday, October 3, 2015, Clemens Lang <cal at macports.org <mailto:cal at macports.org>> wrote:
> 
> 
> ----- On 3 Oct, 2015, at 15:47, Bachsau web at bachsau.name <javascript:;> wrote:
> 
> > Clemens Lang wrote on 03.10.2015 15:02:
> >> such as /bin/sh, /usr/bin/python, /usr/bin/make, /usr/bin/clang,
> >> etc.
> >
> > All of which are also part of macports, so can't you just use this or
> > create shadowcopies yourself?
> 
> Yes, we could provide copies of bash, python, make and clang ourselves
> and use them instead. So far, we have always relied on Apple's toolchain
> but you're right that we don't really have to.
> 
> However, remember that it's not just 3-4 binaries we're talking about
> here. Lots and lots of smaller tools would also be needed, such as ar,
> as, arch, awk, base64, bc, bison, bzip2, chgrp, chown, cpio, curl, diff,
> du, grep, fmt, gzip, ...
> 
> We're currently re-using some of those from /usr/bin to reduce the
> footprint of our build dependencies. MacPorts is already being
> criticized for using too much storage and "downloading the internet"
> before installing what you initially requested, and a change such as
> this would make things even worse.
> 
>  Is there something clever that could be done with mounts or hard (directory) links here?

An NFS mount of self might work - the Mac NFS implementation doesn't seem to pass named attributes, and NFS protocol doesn't pass flags.  Thus:

sh-3.2$ ls -ldO@ /bin /net/localhost/bin
drwxr-xr-x@ 42 root  wheel  restricted,hidden 1428 Oct  2 04:41 /bin
	com.apple.FinderInfo	  32
	com.apple.rootless	   0
drwxr-xr-x  42 root  wheel  -                 1428 Oct  2 04:41 /net/localhost/bin


Same thing, but as seen in the 2nd case, no com.apple.rootless attribute, no restricted (or hidden) flags. :-)


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-users/attachments/20151003/3e2ff9a3/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.macosforge.org/pipermail/macports-users/attachments/20151003/3e2ff9a3/attachment.sig>


More information about the macports-users mailing list