Date: Fri, 05 Feb 2016 04:27:39 +0100 From: Patrick Hess <patrickhess@gmx.net> To: freebsd-ports@freebsd.org Cc: "O. Hartmann" <ohartman@zedat.fu-berlin.de> Subject: Re: pkg: fails with local repository (file:///) Message-ID: <2068973.mec9VNutdB@desk8.phess.net> In-Reply-To: <20160204112904.4067e8b6@freyja.zeit4.iv.bundesimmobilien.de> References: <20160202103548.1b2adab1@freyja.zeit4.iv.bundesimmobilien.de> <4592161.s4kf8P24of@desk8.phess.net> <20160204112904.4067e8b6@freyja.zeit4.iv.bundesimmobilien.de>
next in thread | previous in thread | raw e-mail | index | archive | help
O. Hartmann wrote: > poudriere(8) provides at the location specified by my alternative, local > repositories' path > > meta.txz > > as well as > > packagesite.txz > > but they are symbolic links > > [...] > ls -l /pool/poudriere/data/packages/head-amd64-head-default/ > total 3 > lrwxr-xr-x 1 root wheel 11 1 Feb. 15:04 All -> .latest/All > lrwxr-xr-x 1 root wheel 14 1 Feb. 15:04 Latest -> .latest/Latest > lrwxr-xr-x 1 root wheel 19 1 Feb. 15:04 digests.txz -> .latest/digests.txz > lrwxr-xr-x 1 root wheel 16 1 Feb. 15:04 meta.txz -> .latest/meta.txz > lrwxr-xr-x 1 root wheel 23 1 Feb. 15:04 packagesite.txz > > It seems that pkg is not handling links [...] After running a quick test on one of my own repos, I can NOT confirm your observations: # mv meta.txz packagesite.txz /tmp # pkg update -f Updating custom repository catalogue... pkg: file:///opt/Software/FreeBSD-10.1/Client-Packages-i386/meta.txz: No such file or directory repository custom has no meta file, using default settings pkg: file:///opt/Software/FreeBSD-10.1/Client-Packages-i386/packagesite.txz: No such file or directory Unable to update repository custom # ln -s /tmp/meta.txz # ln -s /tmp/packagesite.txz # pkg update -f Updating custom repository catalogue... Fetching meta.txz: 100% 264 B 0.3kB/s 00:01 Fetching packagesite.txz: 100% 190 KiB 194.5kB/s 00:01 Processing entries: 100% custom repository update completed. 826 packages processed. I'm using a home-brewed script, not poudriere, to maintain my repos, but I doubt that has anything to do with your issue. By the way, what happens when you try to access these files directly? # tar tf meta.txz # tar tf .latest/meta.txz # tar tf packagesite.txz # tar tf .latest/packagesite.txz I think you need to describe your setup in more detail. For example, how do you access your repo? NFS? CIFS? nullfs? Could this just be some kind of permissions issue? There's plenty of moving parts involved here, and I'm almost certain that the symptoms you are seeing are not actually related to pkg itself. (Please don't quote me on that, though. ;-)) Patrick
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2068973.mec9VNutdB>