Summary: | ports-mgmt/poudriere-devel : Unable to extract pkg | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | korsani | ||||
Component: | Individual Port(s) | Assignee: | Bryan Drewery <bdrewery> | ||||
Status: | Open --- | ||||||
Severity: | Affects Some People | CC: | dch, dvl, freebsd, grahamperrin, thierry, vsasjason, w.schwarzenfeld | ||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(bdrewery) |
||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
korsani
2016-03-30 20:45:18 UTC
Update: After setting some set -x to /usr/local/share/poudriere/common.sh, I found that this line fails : + [ -e /mnt/space/3/poudriere/data/.m/zon-default/ref/packages/Latest/pkg.txz ] Which is in function : ensure_pkg_installed() { local force="$1" local mnt _my_path mnt [ ${PKGNG} -eq 1 ] || return 0 [ -z "${force}" ] && [ -x "${mnt}${PKG_BIN}" ] && return 0 # Hack, speed up QEMU usage on pkg-repo. if [ ${QEMU_EMULATING:-0} -eq 1 ] && \ [ -f /usr/local/sbin/pkg-static ]; then cp -f /usr/local/sbin/pkg-static "${mnt}/.p/pkg-static" return 0 fi [ -e ${MASTERMNT}/packages/Latest/pkg.txz ] || return 1 #pkg missing injail tar xf /packages/Latest/pkg.txz -C / \ -s ",/.*/,.p/,g" "*/pkg-static" return 0 } At line marked "pkg missing" In my case, ${MASTERMNT}/packages/Latest/pkg.txz is resolved in: /mnt/space/3/poudriere/data/packages/zon-default/.building 641397412 8140044 581945576 1% /mnt/space/3/poudriere/data/.m/zon-default/ref/packages and former directory is always empty Did I made something wrong for that directory beeing empty ? and/or pkg not beeing built ? Maintainer feedback? This was fixed quite a while ago. No, it was not fixed. Stil there today on FreeBSD 12.1 with poudriere-3.3.3 (In reply to Dan Langille from comment #4) Same here. Same here. .latest/Latest/ directory was empty, so: pkg package missing, skipping sanity manual work around was: :# cp All/pkg-1.14.7.txz .latest/Latest/pkg.txz after I did that poudriere is functional again. Just hit it with 2020Q4 I suspect it is related to a failed build. (In reply to Dan Langille from comment #7) This fixed it for me: [dvl@ava-pkg-01prd:/usr/local/poudriere/data/packages/FreeBSD:12:amd64-2020Q4] $ sudo rm -rf .building I'm hitting this with poudriere-3.3.6 and it's blocking a production fix. This fixed it this time, run poudriere with: * -C ports-mgmt/pkg * security/clamav (what I needed to build, but it built only ports-mgmt/pkg) * -C security/clamav Success! seeing this on fresh VM, 13.1-RELEASE amd64, with a custom 13.1-RELEASE+patches jail, and a default ports tree, using poudriere-devel-3.3.99.20220831 It appears (as reported by dvl), that running a `poudriere bulk -C ...` prior is sufficient to fix this. |