Date: Wed, 04 Dec 2013 17:39:54 +0000 From: Matthew Seaman <matthew@freebsd.org> To: freebsd-questions@freebsd.org Subject: Re: pkg repo not creating repo.txz on 8.4-STABLE Message-ID: <529F68EA.90809@freebsd.org> In-Reply-To: <FCDEDCD3-7DA9-4541-A894-D77D3853B1CF@my.gd> References: <FCDEDCD3-7DA9-4541-A894-D77D3853B1CF@my.gd>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] On 12/04/13 17:07, Fleuriot Damien wrote: > Hello list, > > > > I've got this tiny problem where issuing `pkg repo /tmp/repo/All` won't yield a repo.txz file, anywhere at all. > > /tmp/repo/All contains a single, very small python package (this is a real, valid port), on purpose to minimize the size of ktrace dumps. > > > # pkg version > root@bsd8:/ # pkg -v > 1.2.1 > > # Contents of /tmp/repo/All/ > root@bsd8:/ # ls -l /tmp/repo/All/ > total 4 > -rw-r--r-- 1 root wheel 2312 Dec 4 15:57 python2-2_1.txz > > # Command used to create the repo > root@bsd8:/ # pkg repo /tmp/repo/All/ > Generating repository catalog in /tmp/repo/All/: done! > > # Resulting files , note that digests and packagesite were generated successfully > root@bsd8:/ # ls -l /tmp/repo/All/ > total 12 > -rw-r--r-- 1 root wheel 256 Dec 4 16:46 digests.txz > -rw-r--r-- 1 root wheel 712 Dec 4 16:46 packagesite.txz > -rw-r--r-- 1 root wheel 2312 Dec 4 15:57 python2-2_1.txz > > > > I've tried gleaning info from both truss and ktrace, with the following results from kdump: > > # Actual ktrace > ktrace pkg repo -q /tmp/repo/All/ > > # grep repo.txz during kdump > root@bsd8:/ # kdump | grep -C 8 repo.txz > 2254 initial thread CALL munmap(0x802400000,0xe00000) > 2254 initial thread RET munmap 0 > 2254 initial thread CALL close(0x3) > 2254 initial thread RET close 0 > 2254 initial thread CALL unlink(0x7fffffffe580) > 2254 initial thread NAMI "/tmp/repo/All//digests" > 2254 initial thread RET unlink 0 > 2254 initial thread CALL stat(0x7fffffffe170,0x7fffffffe0c0) > 2254 initial thread NAMI "/tmp/repo/All//repo.txz" > 2254 initial thread RET stat -1 errno 2 No such file or directory > 2254 initial thread CALL sigprocmask(SIG_BLOCK,0x7fffffffe990,0x802004298) > 2254 initial thread RET sigprocmask 0 > 2254 initial thread CALL sigprocmask(SIG_SETMASK,0x802004298,0) > 2254 initial thread RET sigprocmask 0 > 2254 initial thread CALL sigprocmask(SIG_BLOCK,0x7fffffffe950,0x802004298) > 2254 initial thread RET sigprocmask 0 > 2254 initial thread CALL sigprocmask(SIG_SETMASK,0x802004298,0) > > > Meh, what gives, no such file ? > > > > > Out of curiosity and to prove I'm not trying to get anyone else to do my homework, I've taken the liberty of grabbing an earlier version of `pkg` at: > ftp://ftp.freebsd.org/pub/FreeBSD/ports/local-distfiles/bapt/pkg-1.0-rc6.tar.xz > > Building and using pkg-static from these sources does yield the correct repo file : > > root@bsd8:/tmp/pkg/pkg-1.0-rc6/pkg-static # ./pkg-static repo /tmp/repo/ > Generating repo.sqlite in /tmp/repo/: done! > root@bsd8:/tmp/pkg/pkg-1.0-rc6/pkg-static # ls -l /tmp/repo/ > total 8 > -rw-r--r-- 1 root wheel 2316 Dec 4 16:52 python-2.7_1,2.txz > -rw-r--r-- 1 root wheel 1636 Dec 4 16:59 repo.txz > > > > > I'm going to look up other versions of pkg and try to narrow down the one that borks things up for me. Hi, Fleuriot, Not sure what's going on there in your ktrace, but not generating a repo.txz is normal for pkg-1.2.x. Instead, all the data is in the digests.txz file -- which if you look at it is a tarfile containing a single YAML document, plus possibly some crypto signature stuff if you've enabled that. Make sure your pkg clients are all running pkg-1.2 and it should just work for you. Cheers, Matthew [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQJ8BAEBCgBmBQJSn2jwXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTnfUsP/R5Z7C7oTzZpclHdNsLncSxy ryHzDcmbLHb9Y1BLIhjzl0U947ZQKxUfozch61wb+TElbsuOV6fSh+cBBwXW/eKY xKrFfg9YCQJzZ9nKbL+HzXyTAOGkCLY6tkIw8+IlcqwBxOt4NZsRow5jkKY9O5N8 A4qXe5sKVa9FbCU+y4pqLI2GtJSGZRAi75RT/2LHY+TwNyFPq4TwRlNqDtLILOmM hAQpAkgN0cKXBPVoc34Q66TN8uwkjNNpLzuKAlhbqJuCUXQejPzJhfzm9WAk7kpW pXLFvn632LSs1HLHN2L0GRVC6O4Hst42OB0VNZMdmQzY56FlTkcNBr1DYQMvakfh lH0sE8CkmxQT4Uxk5NfLEh27ycBCKS1h1aHMIJLhYEZus+7HnlY9vVpxKfh8pBio PvjbMYFx1FJBViev0UtvC3gN+47LR3K2goKsAm15nuAcMuPsSDPEb0LLlNlr8ILd E/QIUsXEo//B3zWi18W22nKiic4uIz1RHDRsGAV9cJIzcsdX4mftcvXeLfXpPh7Z IDdqpHJEWS1O+NtIDgROZqwz9LYn1kQ0TLPh1Eb58Y/IqaJTNEC5+Zgf+j0gs/+o WGDL9beyezHZL4O1pmhTMY4u9ghTsqqCaHzmdztwJvKD4BU3mtLEXVLCIjcRDaBH tn34YfSzzASjtCyga+2o =JLlj -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?529F68EA.90809>
