Date: Fri, 16 Sep 2016 16:32:25 +0000 From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: [Bug 206917] ports-mgmt/pkg: url: "file:///xxx" in repos.conf not working! Message-ID: <bug-206917-32340-QfWgguCcY2@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-206917-32340@https.bugs.freebsd.org/bugzilla/> References: <bug-206917-32340@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
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} <<EOF syslog: false autodeps: true assume_always_yes: true pkg_dbdir: "${PKG_DBDIR}" pkg_cachedir: "${PKG_CACHEDIR}" portsdir: "/usr/ports" EOF cat > ${RCCONF_REPOS} <<EOF walstatt.dynvpn.de: { #url: "pkg+http://local.host.de/pkg/\${ABI}/latest/", #mirror_type: "srv", #url: "file:///extern/pkg/\${ABI}/latest/", url: "file:///pool/test/\${ABI}/latest/", mirror_type: "none", sinature_type: "none", #pubkey: "/usr/local/etc/ssl/certs/repo.pub", enabled: yes } FreeBSD-ext: { url: "pkg+http://pkg.FreeBSD.org/\${ABI}/latest", sinature_type: "none", mirror_type: "srv", #pubkey: "/usr/local/etc/ssl/certs/repo.pub", enabled: no } FreeBSD: { enabled: no } EOF env ${DEFAULT_VERSIONS} ALTABI=3D${ABI} ABI=3D${ABI} pkg -c ${NANO_WORLDDIR} install -fRy ${PACKAGES} # Cleanup pkg -c ${NANO_WORLDDIR} clean #pkg -c ${NANO_WORLDDIR} -qy autoremove # clean cache, saving space rm -rvf ${NANO_WORLDDIR}/var/cache/pkg fi } customize_cmd cust_local_pkg_install_cfg --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-206917-32340-QfWgguCcY2>