You are not logged in.

#1 2012-01-04 16:35:19

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,729
Website

cannot build in a clean chroot [SOLVED]

Following building in a clean chroot wiki page but am getting errors I can't rationalize.  Can someone point out the error of my way?  Why all these missing file warnings?

$ mkdir /media/data/archbuild
$ CHROOT=/media/data/archbuild/root
$ sudo mkarchroot $CHROOT base base-devel sudo
    << install completes successfully >>
$ cp /var/abs/core/glibc ./ && cd glibc
$ sudo makechrootpkg -c -r $CHROOT
==> Creating clean working copy...done
grep: /media/data/archbuild/root/facade/etc/makepkg.conf: No such file or directory
/usr/sbin/makechrootpkg: line 330: /media/data/archbuild/root/facade/etc/makepkg.conf: No such file or directory
grep: /media/data/archbuild/root/facade/etc/makepkg.conf: No such file or directory
/usr/sbin/makechrootpkg: line 335: /media/data/archbuild/root/facade/etc/makepkg.conf: No such file or directory
sed: can't read /media/data/archbuild/root/facade/etc/makepkg.conf: No such file or directory
/usr/sbin/makechrootpkg: line 340: /media/data/archbuild/root/facade/etc/makepkg.conf: No such file or directory
sed: can't read /media/data/archbuild/root/facade/etc/makepkg.conf: No such file or directory
/usr/sbin/makechrootpkg: line 345: /media/data/archbuild/root/facade/etc/makepkg.conf: No such file or directory
grep: /media/data/archbuild/root/facade/etc/makepkg.conf: No such file or directory
/usr/sbin/makechrootpkg: line 378: /media/data/archbuild/root/facade/etc/sudoers.d/nobody-pacman: No such file or directory
chmod: cannot access `/media/data/archbuild/root/facade/etc/sudoers.d/nobody-pacman': No such file or directory
/usr/sbin/makechrootpkg: line 385: /media/data/archbuild/root/facade/etc/locale.conf: No such file or directory
==> ERROR: '/media/data/archbuild/root/facade' does not appear to be a Arch chroot.
==> ERROR: Build failed, check /media/data/archbuild/root/facade/build

Last edited by graysky (2012-01-04 19:52:07)

Offline

#2 2012-01-04 17:03:51

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: cannot build in a clean chroot [SOLVED]

Perhaps the news item about devtmpfs has a bearing on your difficulty...


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#3 2012-01-04 17:17:56

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,729
Website

Re: cannot build in a clean chroot [SOLVED]

lilsirecho wrote:

Perhaps the news item about devtmpfs has a bearing on your difficulty...

@lilsirecho - I don't think so...

$ uname -r
3.1.7-1-ARCH

Plus, that only applies to udev >= 176.

$ pacman -Si udev
Repository     : core
Name           : udev
Version        : 175-1

Last edited by graysky (2012-01-04 17:20:24)

Offline

#4 2012-01-04 19:51:48

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,729
Website

Re: cannot build in a clean chroot [SOLVED]

PEBKAC - my flaw was defining CHROOT=/media/data/archbuild/root.  It should be defined as CHROOT=/media/data/archbuild - thanks wonder.

Here is the correct sequence for others interested:

CHROOT=/tmp/WORK/chroot
mkdir $CHROOT
sudo mkarchroot $CHROOT/root base base-devel sudo
cp /var/abs/core/glibc ./ && cd glibc
sudo makechrootpkg -c -r $CHROOT

Last edited by graysky (2012-01-04 20:00:55)

Offline

#5 2012-01-04 20:09:10

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: cannot build in a clean chroot [SOLVED]

you can also use sudo extra-x86_64-build, or whatever architecture you want, the a directory with PKGBUILD.

that will create a chroot in /var/tmp/archbuild if doesn't exist, or upgrade+start compilation, if exists.

you can offcourse recompile against testing using testing-x86_64-build


Give what you have. To someone, it may be better than you dare to think.

Offline

Board footer

Powered by FluxBB