patch/pull

16 views
Skip to first unread message

Nemo

unread,
Apr 15, 2012, 12:54:43 PM4/15/12
to nix...@googlegroups.com
To make things easier when new versions of patch(1)
are deployed, I changed /rc/bin/patch/pull so that it checks out
if there are newer versions available for /rc/bin/patch or not.
If there are, the tool suggests commands to update them by hand.

I won't create patches for patch() because that would be racy or
would require patch to be more complex to move out of the way while
updating.

So, hopefully for the last time, you should do this by hand, because
no patch is ever going to include this change:

9fs sources.lsub.org
cp /n/sources.lsub.org/nix/rc/bin/patch/* /rc/bin/patch

Sorry I didn't cover this case before, I should have noticed sooner.

hth

PS: this relies on availability of /bin/up, but up(1) was
applied while testing the patch tools, so that should not
be a problem.

Jeff Sickel

unread,
Apr 15, 2012, 7:48:59 PM4/15/12
to nix...@googlegroups.com
Easier maybe, but I seem to have gotten something wrong on my
recent pull (hget .../nix.tgz):

term% patch/pull
post...
post...
grep: can't open /n/dist/dist/patch/applied: '/n/dist/dist' does not exist
patch/apply creep
touch: /n/dist/XXX: cannot create: '/n/dist/XXX' mounted directory forbids creation
no permission to write /n/dist
apply failed


This is when running startvx (or `9vx.OSX -r . -u glenda`) on a fresh (~5 hours ago) nix tree.

erik quanstrom

unread,
Apr 15, 2012, 8:20:25 PM4/15/12
to nix...@googlegroups.com
i'll admit to paying poor attention since i have
pressing things going on, so i hope i'm not missing
the obvious, but are there instructions for
pulling down a nix tree in a parallel work space?

- erik

David du Colombier

unread,
Apr 16, 2012, 2:13:54 AM4/16/12
to nix...@googlegroups.com
> term% patch/pull
> post...
> post...
> grep: can't open /n/dist/dist/patch/applied: '/n/dist/dist' does not
> exist patch/apply creep
> touch: /n/dist/XXX: cannot create: '/n/dist/XXX' mounted directory
> forbids creation no permission to write /n/dist
> apply failed

This problem was fixed yesterday. You should update patch:

--
David du Colombier

Nemo

unread,
Apr 16, 2012, 2:59:50 AM4/16/12
to nix...@googlegroups.com, nix...@googlegroups.com
patch requires being able to
write. I bound the root at /n/dist.
it's fixed but I'll try to see if there's
a better way. as it is now you will
have to do a bind if there are changes at /.

--
iphone kbd. excuse typos :)

Jeff Sickel

unread,
Apr 16, 2012, 12:07:17 PM4/16/12
to nix...@googlegroups.com
Thanks, I did a fresh pull this morning.

The timing of the nix.tgz creation may have overlapped the fix to patch.

Reply all
Reply to author
Forward
0 new messages