pkgsrc-Users archive

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

Re: pkgsrc broken on Darwin/OS X



In light of that, I'd like to replace the existing pkg_tarup package
with a much lighter weight shell script (attached)

Benefits of this over existing one:

1. much smaller
2. doesn't rely on a single type of digest (that being MD5)
3. doesn't require user to be root when running tarup
4. doesn't try to do multiple things

In fact, I'd like to see it made into a proper make(1) target, rather
than a separate entity, but small steps, lots of them.

Please don't be put off by the size - it's really just settiing up the
argument list for a single pkg_create invocation.

[12:26:24] agc@netbsd-002 ~/local/tarup-20160220 [12527] > ./tarup.sh libutf
Creating package /tmp/libutf-3.0
[12:26:31] agc@netbsd-002 ~/local/tarup-20160220 [12528] > tar tvzf
/tmp/libutf-3.0.tgz
-rw-r--r--  1 root     wheel       2683 Feb 20 12:26 +CONTENTS
-r--r--r--  1 root     wheel         67 Feb 20 12:26 +COMMENT
-r--r--r--  1 root     wheel        365 Feb 20 12:26 +DESC
-r-xr-xr-x  1 root     wheel      23260 Oct 19 10:58 +INSTALL
-r-xr-xr-x  1 root     wheel       2684 Oct 19 10:58 +DEINSTALL
-r--r--r--  1 root     wheel        397 Oct 19 10:58 +BUILD_VERSION
-r--r--r--  1 root     wheel       3007 Oct 19 10:58 +BUILD_INFO
-r--r--r--  1 root     wheel          7 Oct 19 10:58 +SIZE_PKG
-r--r--r--  1 root     wheel          7 Oct 19 10:58 +SIZE_ALL
-rw-r--r--  1 root     wheel       3937 Oct 19 10:58 include/ure.h
-rw-r--r--  1 root     wheel       3979 Oct 19 10:58 include/utf.h
-rw-r--r--  1 root     wheel        954 Oct 19 10:58 lib/libutf.la
-rw-r--r--  1 root     wheel      51602 Oct 19 10:58 lib/libutf.a
lrwxr-xr-x  1 root     wheel          0 Oct 19 10:58 lib/libutf.so ->
libutf.so.3.0.0
lrwxr-xr-x  1 root     wheel          0 Oct 19 10:58 lib/libutf.so.3
-> libutf.so.3.0.0
-rwxr-xr-x  1 root     wheel      42941 Oct 19 10:58 lib/libutf.so.3.0.0
-rw-r--r--  1 root     wheel       6809 Oct 19 10:58 man/man3/ure.3
-rw-r--r--  1 root     wheel       4697 Oct 19 10:58 man/man3/utf.3
-rw-r--r--  1 root     wheel       3027 Oct 19 10:58
share/examples/libutf/langcoll.utf
tar: ustar vol 1, 19 files, 174080 bytes read, 0 bytes written in 1
secs (174080 bytes/sec)
[12:26:43] agc@netbsd-002 ~/local/tarup-20160220 [12529] > id
uid=1000(agc) gid=1000(agc) groups=1000(agc),0(wheel),5(operator),1003(cvsadmin)
[12:26:50] agc@netbsd-002 ~/local/tarup-20160220 [12530] >

Best,
Alistair


On 20 February 2016 at 07:59, Jonathan Perkin <jperkin%joyent.com@localhost> wrote:
> * On 2016-02-20 at 15:12 GMT, Greg Troxel wrote:
>
>> Jonathan Perkin <jperkin%joyent.com@localhost> writes:
>>
>> > The easiest way to get past this is to run the 3 commands described in
>> > this email (after reverting your changes to mk/):
>> >
>> >   https://mail-index.netbsd.org/pkgsrc-users/2016/01/25/msg022870.html
>> >
>> > You can follow that thread for more background behind the issue and
>> > why we can't easily handle this automatically.
>>
>> For what it's worth, I just ran into this too, and thought it was a new
>> issue because I thought I had already done the update.
>>
>> After building the new nbmake package, I instead of pkg_add -U did
>> "bmake replace", which worked fine and was easier to type.
>
> Only if you already have pkg_tarup installed, and if you don't the
> failure message isn't all that helpful.
>
> --
> Jonathan Perkin  -  Joyent, Inc.  -  www.joyent.com
>

Attachment: tarup.sh
Description: Bourne shell script



Home | Main Index | Thread Index | Old Index