From owner-freebsd-ports@freebsd.org Fri Feb 5 03:27:51 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 15145A9DFDB for ; Fri, 5 Feb 2016 03:27:51 +0000 (UTC) (envelope-from patrickhess@gmx.net) Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 695A1C3C for ; Fri, 5 Feb 2016 03:27:49 +0000 (UTC) (envelope-from patrickhess@gmx.net) Received: from desk8.phess.net ([95.88.166.205]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0Lrviw-1a31gB0nbq-013hlR; Fri, 05 Feb 2016 04:27:41 +0100 From: Patrick Hess To: freebsd-ports@freebsd.org Cc: "O. Hartmann" Subject: Re: pkg: fails with local repository (file:///) Date: Fri, 05 Feb 2016 04:27:39 +0100 Message-ID: <2068973.mec9VNutdB@desk8.phess.net> User-Agent: KMail/4.14.3 (FreeBSD/10.1-RELEASE-p26; KDE/4.14.3; i386; ; ) 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> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:gUvJ3XAO7mohNYqB4Kq/98lVrWxNScWZYMzF+bZT8k9At0FLuym xrp7aAdtiK39ECl/P3TPTe7BS6vdyK2se7dO3T4Au3QNWR0dDVpVevrcNPcNYdr46NBDYBv VIdUuDUl4w0lM5BxSxLaVw+DhUvqPbnh58aqpIpyWCz2XW+jXSs5Mw7ClWGZnGeNTqI3C1G EoP2xO5YD+h8ssLWHO3og== X-UI-Out-Filterresults: notjunk:1;V01:K0:nNpw/4tpQ7s=:IHCw4jb4ym92aBV2SccH9n WbIyibs/m/1wD4247xwAVx+1iOxPCIbIRrbt8aiUM0aeqSw16Gchr7YnmnazBRx7l73L1a2JK ZJ4bPym9ExErvI8HxFbUBQ0PEYCPCJUq+ZkiXxriaAWzi4XsZSVI/n0iKWDuYExLLnJINfhJC tJcPIhs05hLIQEWk/GNbwaM/69UmYxu5ICYqgorUZoR9xMsdY4Z+6mNcUTrjpK29BPIbrCRNB bz+fHfeOt5QiqVipySozX2QcFROUr36J2MNOxLzIVRtqzY3SWBsAU53HZIPlJ0WaCGtALr+aF FNwrwhycQxQiqp1Wwtqa9cRcnBGhAnhdC1YbiNfOTCK2Im4PxsX9EMsrEhX6RksN5BJmAfdtW tzHqeawiS1LjhLfZnzbq8FaMBe8WsUZGitWyuNOhs98MrzkNDJA4CeiMBlznTC93sEGt0KNH2 X6V2zZZNxV3hkCWjmwPsSIhKqPXLet+z+fyAr+75BRU+zd2rfkNuZB68A+4xCnZQWCw8DwB3z CXzKCXfovtUOhc4GkbBDvGRmGfaphTdCIXzR1WgyJD0cRpY8UNa4hrmyGyiS/8n5t4sZXwXc6 gI6qgsxNMf+1Hgc+SSChU9XQKOUDpRrdhKuiqBMMoncz98SFw/149SjhuF6w7K/heUaB35JL+ tHmap3VZaZmuMutVDOYMQr4sK6HE9nKbptr+zKCwFD74Yzu/8g5aiBlX+0q/U4XAkJMl1B/F8 QWpaPb4GkvO9yO/iSNTcfcM+GiH3fObmM4sOd3i2CY7ScjPtdV1wFukbgElNZ36DJ9VO67Ztc iloWuOu X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Feb 2016 03:27:51 -0000 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