[arch-general] devtools broken?
This started happening to me a day or 2 ago. Any ideas why, what i broke, how to fix it? jack@tor /home/jack/archaudio/linux-rt $ sudo extra-x86_64-build ==> Creating chroot for [extra] (x86_64)... ==> Creating install root at /var/lib/archbuild/extra-x86_64/root ==> Installing packages to /var/lib/archbuild/extra-x86_64/root warning: database file for 'core' does not exist warning: database file for 'extra' does not exist warning: database file for 'community' does not exist :: Synchronizing package databases... core 107.7 KiB 784K/s 00:00 [############################################] 100% extra 1425.3 KiB 1816K/s 00:01 [############################################] 100% community 1780.9 KiB 1489K/s 00:01 [############################################] 100% :: There are 52 members in group base: :: Repository core 1) bash 2) bzip2 3) coreutils 4) cronie 5) cryptsetup 6) device-mapper 7) dhcpcd 8) diffutils 9) e2fsprogs 10) file 11) filesystem 12) findutils 13) gawk 14) gcc-libs 15) gettext 16) glibc 17) grep 18) gzip 19) heirloom-mailx 20) inetutils 21) iputils 22) jfsutils 23) less 24) licenses 25) linux 26) logrotate 27) lvm2 28) man-db 29) man-pages 30) mdadm 31) nano 32) netcfg 33) pacman 34) pciutils 35) pcmciautils 36) perl 37) ppp 38) procps-ng 39) psmisc 40) reiserfsprogs 41) sed 42) shadow 43) sysfsutils 44) syslog-ng 45) systemd-sysvcompat 46) tar 47) texinfo 48) usbutils 49) util-linux 50) vi 51) which 52) xfsprogs Enter a selection (default=all): :: There are 12 members in group base-devel: :: Repository core 1) autoconf 2) automake 3) binutils 4) bison 5) fakeroot 6) flex 7) gcc 8) libtool 9) m4 10) make 11) patch 12) pkg-config Enter a selection (default=all): resolving dependencies... warning: dependency cycle detected: warning: dbus-core will be installed before its systemd dependency looking for inter-conflicts... Targets (131): acl-2.2.51-2 archlinux-keyring-20120915-1 attr-2.4.46-2 ca-certificates-20120623-1 cloog-0.17.0-2 cracklib-2.8.19-1 curl-7.28.0-1 db-5.3.21-1 dbus-core-1.6.8-1 dirmngr-1.1.0-4 eventlog-0.2.12-3 expat-2.1.0-1 gdbm-1.10-1 glib2-2.32.4-1 gmp-5.0.5-1 gnupg-2.0.19-2 gpgme-1.3.1-4 groff-1.21-2 hwids-20121012-1 iana-etc-2.30-3 iproute2-3.5.1-1 isl-0.10-1 kbd-1.15.3-3 keyutils-1.5.5-3 kmod-10-1 krb5-1.10.3-1 libarchive-3.0.4-2 libassuan-2.0.3-1 libcap-2.22-3 libffi-3.0.11-1 libgcrypt-1.5.0-3 libgpg-error-1.10-2 libgssglue-0.4-1 libksba-1.2.0-2 libldap-2.4.33-1 libltdl-2.4.2-7 libmpc-1.0.1-1 libnl-3.2.11-1 libpcap-1.3.0-1 libpipeline-1.2.2-1 libsasl-2.1.23-9 libssh2-1.4.2-1 libtirpc-0.2.2-2 libusbx-1.0.14-1 linux-api-headers-3.5.5-1 linux-firmware-20120625-1 mkinitcpio-0.10-1 mkinitcpio-busybox-1.20.2-1 mpfr-3.1.1.p2-1 ncurses-5.9-3 openssl-1.0.1.c-1 pacman-mirrorlist-20120908-1 pam-1.1.6-1 pambase-20120701-1 pcre-8.31-1 pinentry-0.8.2-1 popt-1.16-5 ppl-1.0-1 pth-2.0.7-4 readline-6.2.004-1 run-parts-4.3.4-1 systemd-194-3 sysvinit-tools-2.88-9 tzdata-2012f-1 xz-5.0.4-1 zlib-1.2.7-1 autoconf-2.69-1 automake-1.12.4-1 bash-4.2.037-1 binutils-2.22-10 bison-2.6.2-1 bzip2-1.0.6-4 coreutils-8.19-1 cronie-1.4.8-3 cryptsetup-1.5.0-2 device-mapper-2.02.97-1 dhcpcd-5.6.2-1 diffutils-3.2-1 e2fsprogs-1.42.5-1 fakeroot-1.18.4-1 file-5.11-1 filesystem-2012.10-1 findutils-4.4.2-4 flex-2.5.37-1 gawk-4.0.1-1 gcc-4.7.2-1 gcc-libs-4.7.2-1 gettext-0.18.1.1-4 glibc-2.16.0-4 grep-2.14-1 gzip-1.5-1 heirloom-mailx-12.5-3 inetutils-1.9.1-4 iputils-20101006-7 jfsutils-1.1.15-3 less-451-1 libtool-2.4.2-7 licenses-2.9-1 linux-3.6.2-1 logrotate-3.8.2-1 lvm2-2.02.97-1 m4-1.4.16-2 make-3.82-5 man-db-2.6.3-1 man-pages-3.42-1 mdadm-3.2.5-2 nano-2.2.6-2 netcfg-2.8.11-2 pacman-4.0.3-3 patch-2.7.1-1 pciutils-3.1.10-1 pcmciautils-018-4 perl-5.16.1-1 pkg-config-0.27.1-1 ppp-2.4.5-4 procps-ng-3.3.3-6 psmisc-22.19-1 reiserfsprogs-3.6.21-4 sed-4.2.1-4 shadow-4.1.5.1-1 sudo-1.8.6.p3-1 sysfsutils-2.1.0-8 syslog-ng-3.3.6-1 systemd-sysvcompat-194-3 tar-1.26-2 texinfo-4.13a-7 usbutils-006-1 util-linux-2.22.1-1 vi-1:050325-2 which-2.20-5 xfsprogs-3.1.8-2 Total Download Size: 0.03 MiB Total Installed Size: 568.70 MiB Proceed with installation? [Y/n] :: Retrieving packages from core... netcfg-2.8.11-2-any 29.6 KiB 636K/s 00:00 [############################################] 100% (131/131) checking package integrity [############################################] 100% (131/131) loading package files [############################################] 100% (131/131) checking for file conflicts [############################################] 100% ( 1/131) installing linux-api-headers [############################################] 100% ( 2/131) installing tzdata [############################################] 100% ( 3/131) installing glibc [############################################] 100% ( 4/131) installing ncurses [############################################] 100% ( 5/131) installing readline [############################################] 100% ( 6/131) installing bash [############################################] 100% ( 7/131) installing bzip2 [############################################] 100% ( 8/131) installing gcc-libs [############################################] 100% ( 9/131) installing db [############################################] 100% ( 10/131) installing zlib [############################################] 100% ( 11/131) installing cracklib [############################################] 100% ( 12/131) installing libgssglue [############################################] 100% ( 13/131) installing libtirpc [############################################] 100% ( 14/131) installing pambase [############################################] 100% ( 15/131) installing pam [############################################] 100% ( 16/131) installing attr [############################################] 100% ( 17/131) installing acl [############################################] 100% ( 18/131) installing gmp [############################################] 100% ( 19/131) installing libcap [############################################] 100% ( 20/131) installing coreutils [############################################] 100% ( 21/131) installing run-parts [############################################] 100% ( 22/131) installing cronie [############################################] 100% Optional dependencies for cronie pm-utils: defer anacron when on battery power smtp-server: sending cron job output via email ( 23/131) installing libgpg-error [############################################] 100% ( 24/131) installing libgcrypt [############################################] 100% ( 25/131) installing shadow [############################################] 100% ( 26/131) installing util-linux [############################################] 100% install: invalid user 'uuidd' error: command failed to execute correctly ( 27/131) installing expat [############################################] 100% ( 28/131) installing iana-etc [############################################] 100% ( 29/131) installing filesystem [############################################] 100% error: could not rename /var/lib/archbuild/extra-x86_64/root/etc/resolv.conf to /var/lib/archbuild/extra-x86_64/root/etc/resolv.conf.pacorig (Device or resource busy) error: problem occurred while installing filesystem error: could not commit transaction error: failed to commit transaction (transaction aborted) Errors occurred, no packages were upgraded. ==> ERROR: Failed to install packages to new root ==> ERROR: Failed to install all packages ==> Aborting... -- Joakim
On Wed, Oct 17, 2012 at 08:54:40AM +0200, Joakim Hernberg wrote:
This started happening to me a day or 2 ago. Any ideas why, what i broke, how to fix it?
As we continue to build and push new packages, I'd say that devtools is working just fine for a good number of us. I suggest adding the '-c' flag so that you get a fresh chroot. d
On Wed, 17 Oct 2012 03:18:47 -0400 Dave Reisner <d@falconindy.com> wrote:
On Wed, Oct 17, 2012 at 08:54:40AM +0200, Joakim Hernberg wrote:
This started happening to me a day or 2 ago. Any ideas why, what i broke, how to fix it?
As we continue to build and push new packages, I'd say that devtools is working just fine for a good number of us. I suggest adding the '-c' flag so that you get a fresh chroot.
d
Hmm, with devtools-20120720-1 it works, but with devtools-20121013-1 it doesn't. One possibly relevant fact (that I omitted since I thought it was the cause of my post to the mailing list being rejected by the moderators), is that I'm still not booting with systemd. See: http://www.mail-archive.com/arch-dev-public@archlinux.org/msg19994.html -- Joakim
On 17 October 2012 09:46, Joakim Hernberg <jbh@alchemy.lu> wrote:
On Wed, 17 Oct 2012 03:18:47 -0400 Dave Reisner <d@falconindy.com> wrote:
On Wed, Oct 17, 2012 at 08:54:40AM +0200, Joakim Hernberg wrote:
This started happening to me a day or 2 ago. Any ideas why, what i broke, how to fix it?
As we continue to build and push new packages, I'd say that devtools is working just fine for a good number of us. I suggest adding the '-c' flag so that you get a fresh chroot.
d
Hmm, with devtools-20120720-1 it works, but with devtools-20121013-1 it doesn't. One possibly relevant fact (that I omitted since I thought it was the cause of my post to the mailing list being rejected by the moderators), is that I'm still not booting with systemd. See: http://www.mail-archive.com/arch-dev-public@archlinux.org/msg19994.html
--
Joakim
You seem to be right, I tried to update my chroots and it doesn't work for me either (the same problem is reported) on a non-systemd system. I'll try to track it down, because I need devtools on this system. Lukas
On 17 October 2012 11:43, Lukas Jirkovsky <l.jirkovsky@gmail.com> wrote:
You seem to be right, I tried to update my chroots and it doesn't work for me either (the same problem is reported) on a non-systemd system. I'll try to track it down, because I need devtools on this system.
Lukas
The problem is in /usr/sbin/mkarchroot: line 266: for host_config in resolv.conf localtime; do bind_mount /etc/$host_config ro done line 303: for host_config in resolv.conf localtime; do umount "${working_dir}/etc/${host_config}" done If you comment out these lines, it will work. I'm not sure whether this is a correct fix. If I find a better fix, I'll send a patch to arch-projects. Lukas
On 17 October 2012 12:36, Lukas Jirkovsky <l.jirkovsky@gmail.com> wrote:
On 17 October 2012 11:43, Lukas Jirkovsky <l.jirkovsky@gmail.com> wrote:
You seem to be right, I tried to update my chroots and it doesn't work for me either (the same problem is reported) on a non-systemd system. I'll try to track it down, because I need devtools on this system.
Lukas
The problem is in /usr/sbin/mkarchroot:
line 266: for host_config in resolv.conf localtime; do bind_mount /etc/$host_config ro done
line 303: for host_config in resolv.conf localtime; do umount "${working_dir}/etc/${host_config}" done
If you comment out these lines, it will work. I'm not sure whether this is a correct fix. If I find a better fix, I'll send a patch to arch-projects.
Lukas
Don't use the previous patch, it breaks makechrootpkg.
On 17 October 2012 13:37, Lukas Jirkovsky <l.jirkovsky@gmail.com> wrote:
On 17 October 2012 12:36, Lukas Jirkovsky <l.jirkovsky@gmail.com> wrote:
On 17 October 2012 11:43, Lukas Jirkovsky <l.jirkovsky@gmail.com> wrote:
You seem to be right, I tried to update my chroots and it doesn't work for me either (the same problem is reported) on a non-systemd system. I'll try to track it down, because I need devtools on this system.
Lukas
The problem is in /usr/sbin/mkarchroot:
line 266: for host_config in resolv.conf localtime; do bind_mount /etc/$host_config ro done
line 303: for host_config in resolv.conf localtime; do umount "${working_dir}/etc/${host_config}" done
If you comment out these lines, it will work. I'm not sure whether this is a correct fix. If I find a better fix, I'll send a patch to arch-projects.
Lukas
Don't use the previous patch, it breaks makechrootpkg.
I've sent a working patch to arch-projects (I hope I didn't screw anything). In case anything went wrong, I'll post it here too: diff --git a/mkarchroot.in b/mkarchroot.in index 7ea90e1..d29dd9d 100644 --- a/mkarchroot.in +++ b/mkarchroot.in @@ -131,9 +131,7 @@ chroot_mount() { [[ -e "${working_dir}/run" ]] || mkdir "${working_dir}/run" mount -t tmpfs tmpfs "${working_dir}/run" -o mode=0755,nodev,nosuid,strictatime,size=64M - for host_config in resolv.conf localtime; do - bind_mount /etc/$host_config ro - done + bind_mount /etc/localtime ro fi [[ -n $host_mirror_path ]] && bind_mount "$host_mirror_path" ro @@ -145,6 +143,7 @@ chroot_mount() { } copy_hostconf () { + cp /etc/resolv.conf "${working_dir}/etc/resolv.conf" cp -a /etc/pacman.d/gnupg "${working_dir}/etc/pacman.d" echo "Server = ${host_mirror}" > ${working_dir}/etc/pacman.d/mirrorlist @@ -168,9 +167,7 @@ trap_chroot_umount () { [[ -n $host_mirror_path ]] && umount "${working_dir}/${host_mirror_path}" if (( ! have_nspawn )); then - for host_config in resolv.conf localtime; do - umount "${working_dir}/etc/${host_config}" - done + umount "${working_dir}/etc/localtime" umount "${working_dir}/proc/sys" umount "${working_dir}/proc" umount "${working_dir}/sys" --
participants (3)
-
Dave Reisner
-
Joakim Hernberg
-
Lukas Jirkovsky