From owner-freebsd-pkg@freebsd.org Fri Sep 16 16:32:25 2016 Return-Path: Delivered-To: freebsd-pkg@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 A8B7CBDD367 for ; Fri, 16 Sep 2016 16:32:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 91E5D826 for ; Fri, 16 Sep 2016 16:32:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 914ECBDD366; Fri, 16 Sep 2016 16:32:25 +0000 (UTC) Delivered-To: pkg@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 90F88BDD365 for ; Fri, 16 Sep 2016 16:32:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 80160825 for ; Fri, 16 Sep 2016 16:32:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u8GGWPQE004936 for ; Fri, 16 Sep 2016 16:32:25 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: [Bug 206917] ports-mgmt/pkg: url: "file:///xxx" in repos.conf not working! Date: Fri, 16 Sep 2016 16:32:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: ohartman@zedat.fu-berlin.de X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkg@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Sep 2016 16:32:25 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206917 ohartman@zedat.fu-berlin.de changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Closed |Open Resolution|FIXED |--- --- Comment #3 from ohartman@zedat.fu-berlin.de --- This bug still persists and I can not fathom why it has been closed! Within the nanoBSD world, this is the scripted function which is supposed to install the packages, see below. Using a local host which provides pkg/FreeBSD:12:x86:64/latest as a reposit= ory works fine, but it is lately on CURRENT incredibly slow (libfetch problem?). But the file:/// tag still doesn't work! #url: "file:///extern/pkg/\${ABI}/latest/", is a autofs share, exported via NFS from a host which does have a complete repository created via poudriere. url: "file:///pool/test/\${ABI}/latest/", is a local hosted copy, pool/test is a ZFS filesystem and under latest I ha= ve the exact copy what we see under the autofs file system mentioned above. I also tried file://localhost/... or file://127.0.0.1/... which is supposed= to work according libfecth(3). Tests, which obviously work so far: root@thor: [gllb] fetch file:///pool/test/FreeBSD:12:x86:64/latest/meta.txz= . meta.txz 100% of 264 B 4096 kBps 00m= 00s fetch: .: open(): Is a directory root@thor: [gllb] The same game with the autofs filesystem, /extern/pkg. cust_local_pkg_install_cfg() { local RCCONF_PKG RCCONF_REPOS if [ ! -z "${PACKAGES}" ] then RCCONF_PKG=3D"usr/local/etc/pkg.conf" RCCONF_REPOS=3D"usr/local/etc/pkg/repos/myrepo.conf" # Local, temporary cache dir for pkg(8) LOCAL_REPOS_DIR=3D"/usr/local/etc/pkg/repos" PKG_CACHEDIR=3D"/var/cache/pkg" PKG_DBDIR=3D"/var/db/pkg" ASSUME_ALWAYS_YES=3D"YES" if [ ! -d "${NANO_WORLDDIR}/usr/local/etc/pkg/repos" ] then mkdir -p -m755 ${NANO_WORLDDIR}/usr/local/etc/pkg/repos fi cd ${NANO_WORLDDIR} cat > ${RCCONF_PKG} < ${RCCONF_REPOS} <