You are not logged in.

#1 2017-12-22 17:13:01

gillecaluim
Member
Registered: 2014-11-02
Posts: 42

[SOLVED] failed mkarchroot

I'm using a local mirror of the arch repo to build a packages and a adjusted pacman.conf to point to these locations ( ie. Server = file:///arch/core, etc).
I'm unable to make a clean chroot using the local repos however.....

$ mkarchroot $CHROOT/root base-devel
==> Installing packages to /ourhome/chroot/root
:: Synchronizing package databases...
 core                               126.5 KiB  7.27M/s 00:00 [#################################] 100%
 extra                             1659.8 KiB  95.3M/s 00:00 [#################################] 100%
 community                            4.2 MiB  34.0M/s 00:00 [#################################] 100%
:: There are 26 members in group base-devel:
:: Repository core
   1) autoconf  2) automake  3) binutils  4) bison  5) fakeroot  6) file  7) findutils  8) flex
   9) gawk  10) gcc  11) gettext  12) grep  13) groff  14) gzip  15) libtool  16) m4  17) make
   18) pacman  19) patch  20) pkg-config  21) sed  22) sudo  23) systemd  24) texinfo
   25) util-linux  26) which

Enter a selection (default=all):
resolving dependencies...
looking for conflicting packages...

Packages (117) acl-2.2.52-4  archlinux-keyring-20171213-1  attr-2.4.47-3  bash-4.4.012-2
               bzip2-1.0.6-6  ca-certificates-20170307-1  ca-certificates-cacert-20140824-4
               ca-certificates-mozilla-3.34.1-1  ca-certificates-utils-20170307-1  coreutils-8.28-1
               cracklib-2.9.6-1  cryptsetup-2.0.0-1  curl-7.57.0-1  db-5.3.28-3  dbus-1.12.2-1
               device-mapper-2.02.176-1  diffutils-3.6-1  e2fsprogs-1.43.7-1  expat-2.2.5-1
               filesystem-2017.10-2  gc-7.6.0-1  gcc-libs-7.2.1-2  gdbm-1.13-1  glib2-2.54.2-2
               glibc-2.26-8  gmp-6.1.2-1  gnupg-2.2.3-1  gnutls-3.5.16-1  gpgme-1.10.0-1
               guile-2.2.3-1  hwids-20171003-1  iana-etc-20170824-1  iptables-1.6.1-1
               json-c-0.12.1-1  kbd-2.0.4-1  keyutils-1.5.10-1  kmod-24-1  krb5-1.15.2-1  less-487-1
               libarchive-3.3.2-1  libassuan-2.5.1-1  libatomic_ops-7.4.8-1  libcap-2.25-1
               libcap-ng-0.7.8-1  libelf-0.170-1  libffi-3.2.1-2  libgcrypt-1.8.1-1
               libgpg-error-1.27-1  libidn-1.33-2  libidn2-2.0.4-2  libksba-1.3.5-1
               libldap-2.4.45-4  libmnl-1.0.4-1  libmpc-1.0.3-2  libnftnl-1.0.7-1
               libnghttp2-1.28.0-1  libnl-3.4.0-1  libpcap-1.8.1-2  libpsl-0.18.0-2
               libsasl-2.1.26-11  libseccomp-2.3.2-1  libsecret-0.18.5+14+g9980655-1
               libssh2-1.8.0-2  libsystemd-235.38-4  libtasn1-4.12-2  libtirpc-1.0.2-1
               libunistring-0.9.8-1  libusb-1.0.21-2  libutil-linux-2.31-2
               linux-api-headers-4.12.7-1  lz4-1:1.8.0-1  mpfr-3.1.6.p1-1  ncurses-6.0+20170902-3
               nettle-3.4-1  npth-1.5-1  openssl-1.1.0.g-1  p11-kit-0.23.9-1
               pacman-mirrorlist-20171203-1  pam-1.3.0-1  pambase-20171006-1  pcre-8.41-1
               perl-5.26.1-1  pinentry-1.1.0-1  popt-1.16-9  readline-7.0.003-1  shadow-4.5-3
               sqlite-3.21.0-1  tar-1.29-2  tzdata-2017c-1  xz-5.2.3-1  zlib-1:1.2.11-2
               autoconf-2.69-4  automake-1.15.1-1  binutils-2.29.1-1  bison-3.0.4-3  fakeroot-1.22-1
               file-5.32-1  findutils-4.6.0-2  flex-2.6.4-1  gawk-4.2.0-2  gcc-7.2.1-2
               gettext-0.19.8.1-2  grep-3.1-1  groff-1.22.3-7  gzip-1.8-2
               libtool-2.4.6+40+g6ca5e224-2  m4-1.4.18-1  make-4.2.1-2  pacman-5.0.2-2
               patch-2.7.5-1  pkg-config-0.29.2-1  sed-4.4-1  sudo-1.8.21.p2-1  systemd-235.38-4
               texinfo-6.5-1  util-linux-2.31-2  which-2.21-2

Total Installed Size:  614.18 MiB

:: Proceed with installation? [Y/n]
(117/117) checking keys in keyring                           [#################################] 100%
(117/117) checking package integrity                         [#################################] 100%
(117/117) loading package files                              [#################################] 100%
(117/117) checking for file conflicts                        [#################################] 100%
(117/117) checking available disk space                      [#################################] 100%
:: Processing package changes...
(  1/117) installing linux-api-headers                       [#################################] 100%
(  2/117) installing tzdata                                  [#################################] 100%
(  3/117) installing iana-etc                                [#################################] 100%
(  4/117) installing filesystem                              [#################################] 100%
(  5/117) installing glibc                                   [#################################] 100%
Optional dependencies for glibc
    gd: for memusagestat
(  6/117) installing gcc-libs                                [#################################] 100%
(  7/117) installing ncurses                                 [#################################] 100%
(  8/117) installing readline                                [#################################] 100%
(  9/117) installing bash                                    [#################################] 100%
Optional dependencies for bash
    bash-completion: for tab completion
( 10/117) installing gmp                                     [#################################] 100%
( 11/117) installing mpfr                                    [#################################] 100%
( 12/117) installing gawk                                    [#################################] 100%
( 13/117) installing m4                                      [#################################] 100%
( 14/117) installing diffutils                               [#################################] 100%
( 15/117) installing autoconf                                [#################################] 100%
( 16/117) installing gdbm                                    [#################################] 100%
( 17/117) installing db                                      [#################################] 100%
( 18/117) installing perl                                    [#################################] 100%
( 19/117) installing automake                                [#################################] 100%
( 20/117) installing zlib                                    [#################################] 100%
( 21/117) installing binutils                                [#################################] 100%
( 22/117) installing bison                                   [#################################] 100%
( 23/117) installing attr                                    [#################################] 100%
( 24/117) installing acl                                     [#################################] 100%
( 25/117) installing sed                                     [#################################] 100%
( 26/117) installing cracklib                                [#################################] 100%
( 27/117) installing libutil-linux                           [#################################] 100%
( 28/117) installing e2fsprogs                               [#################################] 100%
( 29/117) installing openssl                                 [#################################] 100%
Optional dependencies for openssl
    ca-certificates [pending]
( 30/117) installing libsasl                                 [#################################] 100%
( 31/117) installing libldap                                 [#################################] 100%
( 32/117) installing keyutils                                [#################################] 100%
( 33/117) installing krb5                                    [#################################] 100%
( 34/117) installing libtirpc                                [#################################] 100%
( 35/117) installing pambase                                 [#################################] 100%
( 36/117) installing pam                                     [#################################] 100%
( 37/117) installing shadow                                  [#################################] 100%
( 38/117) installing libcap                                  [#################################] 100%
( 39/117) installing coreutils                               [#################################] 100%
( 40/117) installing libgpg-error                            [#################################] 100%
( 41/117) installing libgcrypt                               [#################################] 100%
( 42/117) installing lz4                                     [#################################] 100%
( 43/117) installing xz                                      [#################################] 100%
( 44/117) installing libsystemd                              [#################################] 100%
( 45/117) installing libcap-ng                               [#################################] 100%
( 46/117) installing util-linux                              [#################################] 100%
Optional dependencies for util-linux
    python: python bindings to libmount
( 47/117) installing fakeroot                                [#################################] 100%
( 48/117) installing file                                    [#################################] 100%
( 49/117) installing findutils                               [#################################] 100%
( 50/117) installing flex                                    [#################################] 100%
( 51/117) installing libmpc                                  [#################################] 100%
( 52/117) installing gcc                                     [#################################] 100%
Optional dependencies for gcc
    lib32-gcc-libs: for generating code for 32-bit ABI
( 53/117) installing bzip2                                   [#################################] 100%
( 54/117) installing pcre                                    [#################################] 100%
( 55/117) installing libffi                                  [#################################] 100%
( 56/117) installing glib2                                   [#################################] 100%
Optional dependencies for glib2
    python: for gdbus-codegen and gtester-report
    libelf: gresource inspection tool [pending]
( 57/117) installing libunistring                            [#################################] 100%
( 58/117) installing gettext                                 [#################################] 100%
Optional dependencies for gettext
    git: for autopoint infrastructure updates
( 59/117) installing grep                                    [#################################] 100%
( 60/117) installing groff                                   [#################################] 100%
Optional dependencies for groff
    netpbm: for use together with man -H command interaction in browsers
    psutils: for use together with man -H command interaction in browsers
    libxaw: for gxditview
( 61/117) installing less                                    [#################################] 100%
( 62/117) installing gzip                                    [#################################] 100%
( 63/117) installing tar                                     [#################################] 100%
( 64/117) installing libtool                                 [#################################] 100%
( 65/117) installing texinfo                                 [#################################] 100%
( 66/117) installing libatomic_ops                           [#################################] 100%
( 67/117) installing gc                                      [#################################] 100%
( 68/117) installing guile                                   [#################################] 100%
( 69/117) installing make                                    [#################################] 100%
( 70/117) installing expat                                   [#################################] 100%
( 71/117) installing libarchive                              [#################################] 100%
( 72/117) installing libtasn1                                [#################################] 100%
( 73/117) installing p11-kit                                 [#################################] 100%
( 74/117) installing ca-certificates-utils                   [#################################] 100%
( 75/117) installing ca-certificates-mozilla                 [#################################] 100%
( 76/117) installing ca-certificates-cacert                  [#################################] 100%
( 77/117) installing ca-certificates                         [#################################] 100%
( 78/117) installing libssh2                                 [#################################] 100%
( 79/117) installing libidn2                                 [#################################] 100%
( 80/117) installing libpsl                                  [#################################] 100%
( 81/117) installing libnghttp2                              [#################################] 100%
( 82/117) installing curl                                    [#################################] 100%
( 83/117) installing npth                                    [#################################] 100%
( 84/117) installing libksba                                 [#################################] 100%
( 85/117) installing libassuan                               [#################################] 100%
( 86/117) installing libsecret                               [#################################] 100%
Optional dependencies for libsecret
    gnome-keyring: key storage service (or use any other service implementing
    org.freedesktop.secrets)
( 87/117) installing pinentry                                [#################################] 100%
Optional dependencies for pinentry
    gtk2: gtk2 backend
    qt5-base: qt backend
    gcr: gnome3 backend
( 88/117) installing nettle                                  [#################################] 100%
( 89/117) installing libidn                                  [#################################] 100%
( 90/117) installing gnutls                                  [#################################] 100%
Optional dependencies for gnutls
    guile: for use with Guile bindings [installed]
( 91/117) installing sqlite                                  [#################################] 100%
( 92/117) installing gnupg                                   [#################################] 100%
Optional dependencies for gnupg
    libldap: gpg2keys_ldap [installed]
    libusb-compat: scdaemon
( 93/117) installing gpgme                                   [#################################] 100%
( 94/117) installing pacman-mirrorlist                       [#################################] 100%
( 95/117) installing archlinux-keyring                       [#################################] 100%
( 96/117) installing pacman                                  [#################################] 100%
( 97/117) installing patch                                   [#################################] 100%
Optional dependencies for patch
    ed: for patch -e functionality
( 98/117) installing pkg-config                              [#################################] 100%
( 99/117) installing sudo                                    [#################################] 100%
(100/117) installing device-mapper                           [#################################] 100%
(101/117) installing popt                                    [#################################] 100%
(102/117) installing json-c                                  [#################################] 100%
(103/117) installing cryptsetup                              [#################################] 100%
(104/117) installing dbus                                    [#################################] 100%
(105/117) installing libmnl                                  [#################################] 100%
(106/117) installing libnftnl                                [#################################] 100%
(107/117) installing libnl                                   [#################################] 100%
(108/117) installing libusb                                  [#################################] 100%
(109/117) installing libpcap                                 [#################################] 100%
(110/117) installing iptables                                [#################################] 100%
(111/117) installing kbd                                     [#################################] 100%
(112/117) installing kmod                                    [#################################] 100%
(113/117) installing hwids                                   [#################################] 100%
(114/117) installing libelf                                  [#################################] 100%
(115/117) installing libseccomp                              [#################################] 100%
(116/117) installing systemd                                 [#################################] 100%
Initializing machine ID from random generator.
Created symlink /etc/systemd/system/getty.target.wants/getty@tty1.service → /usr/lib/systemd/system/getty@.service.
Created symlink /etc/systemd/system/multi-user.target.wants/remote-fs.target → /usr/lib/systemd/system/remote-fs.target.
:: Append 'init=/usr/lib/systemd/systemd' to your kernel command line in your
   bootloader to replace sysvinit with systemd, or install systemd-sysvcompat
Optional dependencies for systemd
    libmicrohttpd: remote journald capabilities
    quota-tools: kernel-level quota management
    systemd-sysvcompat: symlink package to provide sysvinit binaries
    polkit: allow administration as unprivileged user
(117/117) installing which                                   [#################################] 100%
:: Running post-transaction hooks...
(1/7) Warn about old perl modules
(2/7) Updating udev hardware database...
(3/7) Updating system user accounts...
(4/7) Creating temporary files...
(5/7) Arming ConditionNeedsUpdate...
(6/7) Updating the info directory file...
(7/7) Rebuilding certificate stores...
Failed to parse --bind(-ro)= argument file:///arch/extra/devtools-20171108-1-any.pkg.tar.xz: Invalid argument

any suggestions?  I've built packages previously with this setup without difficulty and haven't encountered this problem

Last edited by gillecaluim (2017-12-25 04:19:47)

Offline

#2 2017-12-22 22:12:35

progandy
Member
Registered: 2012-05-17
Posts: 5,192

Re: [SOLVED] failed mkarchroot

arch-nspawn (and therefore mkarchroot) expects your mirror to have a certain directory structure:

file://$mirror_path/$repo/os/$arch

https://git.archlinux.org/devtools.git/ … ada5e5#n64

Edit: That seems like either a bug or missing documentation, so you can report it.

Last edited by progandy (2017-12-22 22:16:48)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Online

#3 2017-12-23 23:37:48

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] failed mkarchroot

It's not a bug, and it's technically not missing documentation. It's relying on the fact that mirrors by definition mirror the master repos with absolutely no deviation, and the file:/// trickery is only there to ensure that the build server at pkgbuild.com will bind-mount and utilize the official mirro running on the same server.

Moreover, any third party running a mirror who wants to optimize their own downloads by likewise using themselves as the primary mirrorlist server, will have the same directory setup *because they must* in order to be a mirror...

The problem is that here we have someone running a private mirror with their own directory structure that presumably is not meant to see outside use. Which is not something we support at all... primarily because there is no reason to do so.

Running a local mirror wastes server bandwidth for packages that you download and will never use -- why not just download what you need, when you need it? If you are distributing to other machines on your network, you should be using a caching proxy like squid, or else a networked drive operating as your CacheDir. If you're looking to get instantaneous downloads on *one* machine, by preloading 30GB mostly full of completely wasted space, consider instead adapting the "checkupdates" script to run `-Sywu` instead of `-Sy` and `-Qu`, then run that on a cron job instead of running a mirroring script.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#4 2017-12-24 00:09:44

progandy
Member
Registered: 2012-05-17
Posts: 5,192

Re: [SOLVED] failed mkarchroot

All right. I should have thought of that.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Online

#5 2017-12-25 04:19:26

gillecaluim
Member
Registered: 2014-11-02
Posts: 42

Re: [SOLVED] failed mkarchroot

thanks, that fixed the issue

Offline

Board footer

Powered by FluxBB