From owner-freebsd-questions@FreeBSD.ORG Wed Dec 4 17:45:59 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BEE82EC5 for ; Wed, 4 Dec 2013 17:45:59 +0000 (UTC) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5D2671230 for ; Wed, 4 Dec 2013 17:45:59 +0000 (UTC) Received: from ox-dell39.ox.adestra.com (no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged)) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.7/8.14.7) with ESMTP id rB4HjsGa064829 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Wed, 4 Dec 2013 17:45:55 GMT (envelope-from m.seaman@infracaninophile.co.uk) DKIM-Filter: OpenDKIM Filter v2.8.3 smtp.infracaninophile.co.uk rB4HjsGa064829 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1386179155; bh=5O/NaL+gzApvQnsFiJJUhneopzfVZS0Dx6iq83xUNdQ=; h=Date:From:To:Subject:References:In-Reply-To; z=Date:=20Wed,=2004=20Dec=202013=2017:45:46=20+0000|From:=20Matthew =20Seaman=20|To:=20freebsd-questi ons@freebsd.org|Subject:=20Re:=20pkg=20repo=20not=20creating=20rep o.txz=20on=208.4-STABLE|References:=20=20<529F68EA.90809@freebsd.org>|In-Reply-To:=20<52 9F68EA.90809@freebsd.org>; b=nSvBwup0puqIfq/txW5X+1dV4jYqjYHBiZ9la3iGHbEDGQLfscH/9de9BnodegKhn 3fltHUAx2iccRPE2BGm1tDeLxIhj6Xv227A6tQwK/P054+Mf7pW2dgvpO8jur9RNP8 UggL7SLvHvbjDcFj88pLWMSnsfz82y3s6dfoOSrE= X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged) claimed to be ox-dell39.ox.adestra.com Message-ID: <529F6A4A.3080905@infracaninophile.co.uk> Date: Wed, 04 Dec 2013 17:45:46 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: pkg repo not creating repo.txz on 8.4-STABLE References: <529F68EA.90809@freebsd.org> In-Reply-To: <529F68EA.90809@freebsd.org> X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="LuXFhRUvBTKDv3ru20JbjPMXRRvweobFX" X-Virus-Scanned: clamav-milter 0.98 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-0.3 required=5.0 tests=AWL,BAYES_00,DCC_CHECK, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_RP_RNBL,RDNS_NONE autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Dec 2013 17:45:59 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --LuXFhRUvBTKDv3ru20JbjPMXRRvweobFX Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 12/04/13 17:39, Matthew Seaman wrote: > 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 s= uccessfully >> 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 followin= g 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,0x802= 004298) >> 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,0x802= 004298) >> 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 `pk= g` at: >> ftp://ftp.freebsd.org/pub/FreeBSD/ports/local-distfiles/bapt/pkg-1.0-r= c6.tar.xz >> >> Building and using pkg-static from these sources does yield the correc= t repo file : >> >> root@bsd8:/tmp/pkg/pkg-1.0-rc6/pkg-static # ./pkg-static repo /tmp/rep= o/ >> 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. >=20 > Hi, Fleuriot, >=20 > 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. Errr... actually all the package meta-data should all be in packagesite.txz -- digests.txz is a cutdown list. If you read pkg-repository(5) it explains it much better. Cheers, Matthew --LuXFhRUvBTKDv3ru20JbjPMXRRvweobFX Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQJ8BAEBCgBmBQJSn2pSXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTnRZsP/3DrD42Vd+eRufMojKNqBi3F Y8hxH9JxY5WLxIvRAFQheW5u8/u7W4s9qlTmuEFuPzCK177sue9V+/5PtZHMjRYT Oe0yW8KYroimG3U8eff6sh8b7ipWbr7skVIvSuNIZmhpnvtRcbW1TmKe2zN5bljg 7RisMf0X0+O2TnOiC33hpBikx5j/BfrcCw+eo9aSdv93CY9gL2Gl2o3sBUtC2lzI HC4qgum6actVgAOgsAFAzeq/YXxOS5Nj33R9REVre44iLw8IgvYQPRc+3lIXf7Fy 83xDP7UTrZJyNx2mrj70KUX4XPfwinvhYOabdXx13Yn9iVhL4l/wvd2j0d/nHA2J To6sDMTSCV3+ArbDen8UoJiav8GH47Qk7YUtS5qx0QxzZXz8B9oJs4bulFhBOX9s kJaGwYv3IH+cxqfGGjwlzg1pYxiEcJM5NJiOZ9VbLb71YCpsAOSEZEWgbJJ3ivna c17Nrht9xjQbmeemCzHMEg6qhsnRHtJRTEhA5I9rGDTI3HlW/ulj2hXE1SIok7jH 2KAPq8kLluUPuE1osFi8K60UrxswdjkMc3nYmzfBxRC6tvpEE5WqisUhpjOYsp3F qIchLylVJOCK0o51SmVhEOe2kWOuSOt7CyeY+rZw1qdIwOLu51F05ncZCfHbJSJQ qQbYdVd87thZ8/iXSQrq =9RJM -----END PGP SIGNATURE----- --LuXFhRUvBTKDv3ru20JbjPMXRRvweobFX--