Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#55577 - [lxc] unable to build in a clean chroot
Attached to Project:
Community Packages
Opened by John (graysky) - Sunday, 10 September 2017, 17:36 GMT
Last edited by Doug Newgard (Scimmia) - Sunday, 05 November 2017, 19:16 GMT
Opened by John (graysky) - Sunday, 10 September 2017, 17:36 GMT
Last edited by Doug Newgard (Scimmia) - Sunday, 05 November 2017, 19:16 GMT
|
DetailsI am unable to build in a freshly created clean chroot. Can others confirm? The key error seems to be:
... storage/overlay.c: In function ‘ovl_mkdir’: storage/overlay.c:808:13: error: ‘dirlen’ may be used uninitialized in this function [-Werror=maybe-uninitialized] else if (!strncmp(workdir, lxcpath, dirlen) && ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mv -f storage/.deps/liblxc_la-btrfs.Tpo storage/.deps/liblxc_la-btrfs.Plo Build log attached. Additional info: * package version(s) 1:2.1.0-1 Steps to reproduce: 1) Create a new clean chroot 2) Attempt to build. |
This task depends upon
Closed by Doug Newgard (Scimmia)
Sunday, 05 November 2017, 19:16 GMT
Reason for closing: Fixed
Additional comments about closing: lxc 1:2.1.0-2
Sunday, 05 November 2017, 19:16 GMT
Reason for closing: Fixed
Additional comments about closing: lxc 1:2.1.0-2
build.log
Attached is a patch for the PKGBUILD that incorporates the fix.
Here is what I put in the pre_upgrade of lxc-snapshots in the AUR:
pre_upgrade() {
# version 1.10 expects changes to container config due to upstream flags
if [ $(vercmp $2 1.10) -lt 0 ]; then
echo '-> LXC made changes to the internal configuration keys with v2.1.'
echo '-> You MUST update the flags in your base container, see:'
echo '-> https://discuss.linuxcontainers.org/t/lxc-2-1-has-been-released/487';
fi
}