You are not logged in.

#1 2017-04-02 05:21:36

soupcan
Member
From: ?
Registered: 2008-10-25
Posts: 268

So I've broken something with my certificates

So whenever I try and build a package, say mpv-git, i get the following error:

Cloning into bare repository '/home/killian/build/mpv-git/mpv'...
fatal: unable to access 'https://github.com/mpv-player/mpv/': error:0B06A041:x509 certificate routines:build_chain:malloc failure
==> ERROR: Failure while downloading mpv git repo
    Aborting...

I'm not sure what I've done or how to fix it, any help would be appreciated.

Offline

#2 2017-04-02 08:07:10

olegabrielz
Member
From: Norway
Registered: 2015-12-23
Posts: 255

Re: So I've broken something with my certificates

Could this have something to do with it?


Be aware of my Newbie Powers

Offline

#3 2017-04-02 12:15:02

soupcan
Member
From: ?
Registered: 2008-10-25
Posts: 268

Re: So I've broken something with my certificates

olegabrielz wrote:

Could this have something to do with it?

Nope, I was aware of that and the new ca-certificates-utils package was installed properly following those steps.

Offline

#4 2017-04-02 12:53:51

olegabrielz
Member
From: Norway
Registered: 2015-12-23
Posts: 255

Re: So I've broken something with my certificates

Sorry for not providing any useful information. You have ruled out the only thing I could think of.


Be aware of my Newbie Powers

Offline

#5 2017-04-02 14:30:16

soupcan
Member
From: ?
Registered: 2008-10-25
Posts: 268

Re: So I've broken something with my certificates

olegabrielz wrote:

Sorry for not providing any useful information. You have ruled out the only thing I could think of.

That's alright, thanks for trying. I'm fairly sure I brought this on myself. The issue seems to lie in makepkg being unable to create a directory in which to clone the build files. Here's a snippet in which I attempt to build zsh-autosuggestions-git in ~/build/zsh-autosuggestions-git with makepkg -s:

==> Making package: zsh-autosuggestions-git v0.3.3.r1.gfedc22e-1 (Sun Apr  2 09:56:18 EDT 2017)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning zsh-autosuggestions git repo...
Cloning into bare repository '/home/killian/build/zsh-autosuggestions-git/zsh-autosuggestions'...
remote: Counting objects: 1498, done.
remote: Total 1498 (delta 0), reused 0 (delta 0), pack-reused 1498
Receiving objects: 100% (1498/1498), 334.67 KiB | 326.00 KiB/s, done.
Resolving deltas: 100% (912/912), done.
==> Validating source files with sha256sums...
    zsh-autosuggestions ... Skipped
==> Extracting sources...
  -> Creating working copy of zsh-autosuggestions git repo...
Cloning into 'zsh-autosuggestions'...
done.
==> Starting pkgver()...
==> Starting check()...
git submodule update --init vendor/shunit2
git submodule update --init vendor/stub.sh
Submodule 'vendor/shunit2' (https://github.com/kward/shunit2) registered for path 'vendor/shunit2'
Submodule 'vendor/stub.sh' (https://github.com/ericfreese/stub.sh) registered for path 'vendor/stub.sh'
Cloning into '/tmp/makepkg/zsh-autosuggestions-git/src/zsh-autosuggestions/vendor/shunit2'...
Cloning into '/tmp/makepkg/zsh-autosuggestions-git/src/zsh-autosuggestions/vendor/stub.sh'...
fatal: unable to access 'https://github.com/kward/shunit2/': error:0B06A041:x509 certificate routines:build_chain:malloc failure
fatal: unable to access 'https://github.com/ericfreese/stub.sh/': error:0B06A041:x509 certificate routines:build_chain:malloc failure
fatal: clone of 'https://github.com/ericfreese/stub.sh' into submodule path '/tmp/makepkg/zsh-autosuggestions-git/src/zsh-autosuggestions/vendor/stub.sh' failed
fatal: clone of 'https://github.com/kward/shunit2' into submodule path '/tmp/makepkg/zsh-autosuggestions-git/src/zsh-autosuggestions/vendor/shunit2' failed
Failed to clone 'vendor/stub.sh'. Retry scheduled
Failed to clone 'vendor/shunit2'. Retry scheduled
Cloning into '/tmp/makepkg/zsh-autosuggestions-git/src/zsh-autosuggestions/vendor/shunit2'...
Cloning into '/tmp/makepkg/zsh-autosuggestions-git/src/zsh-autosuggestions/vendor/stub.sh'...
fatal: unable to access 'https://github.com/kward/shunit2/': error:0B06A041:x509 certificate routines:build_chain:malloc failure
fatal: clone of 'https://github.com/kward/shunit2' into submodule path '/tmp/makepkg/zsh-autosuggestions-git/src/zsh-autosuggestions/vendor/shunit2' failed
Failed to clone 'vendor/shunit2' a second time, aborting
make: *** [Makefile:36: vendor/shunit2/2.1.6] Error 1
make: *** Waiting for unfinished jobs....
fatal: unable to access 'https://github.com/ericfreese/stub.sh/': error:0B06A041:x509 certificate routines:build_chain:malloc failure
fatal: clone of 'https://github.com/ericfreese/stub.sh' into submodule path '/tmp/makepkg/zsh-autosuggestions-git/src/zsh-autosuggestions/vendor/stub.sh' failed
Failed to clone 'vendor/stub.sh' a second time, aborting
make: *** [Makefile:39: vendor/stub.sh/stub.sh] Error 1
==> ERROR: A failure occurred in check().
    Aborting...

Offline

#6 2017-04-02 15:06:33

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

Re: So I've broken something with my certificates

Try building it in a clean chroot.  Use https://aur.archlinux.org/packages/clea … ot-manager from the AUR if you want something easy.  Does that work?  If so, try googling some of the errors git is throwing to see what might be to blame.  I assume you reinstalled the certs package already.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#7 2017-04-02 15:56:39

soupcan
Member
From: ?
Registered: 2008-10-25
Posts: 268

Re: So I've broken something with my certificates

graysky wrote:

Try building it in a clean chroot.  Use https://aur.archlinux.org/packages/clea … ot-manager from the AUR if you want something easy.  Does that work?  If so, try googling some of the errors git is throwing to see what might be to blame.  I assume you reinstalled the certs package already.

Yep, I have already reinstalled the certs. pacman -S ca-certificates-utils completes fine.

I've installed clean-chroot-manager. As I'm running on btrfs (I make good choices) I've configured ccm as follows:

# Fully qualified path for clean chroots. One for 64-bit and one for 32-bit.
# Neither path should use a variable like $HOME.  If your machine has lots
# of memory, consider locating this to tmpfs to avoid usage to the disk and
# to minimize access times but know that unless you copy the contents to
# physical media, it will not survive a reboot. See the manpage for tips.
CHROOTPATH64="/mnt/usb2/chroot64"
CHROOTPATH32="/mnt/usb2/chroot32"

# Number of threads makepkg in the clean chroot will use when building.
# The typical rule is physical cores + 1.
THREADS=9

# If set, the value defined will be used in the chroot's /etc/makepkg.conf
# for PACKAGER= which will be auto uncommented.
PACKAGER=""

# If set, the value defined will be used in the chroot's /etc/makepkg.conf
# for CFLAGS= and will be mirror automatically for the CXXFLAGS= therein.
#
# The default value for reference is:
# "-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong"
# or
# "-march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong"
CFLAGS=""

# Set this variable to anything if you want to run namcap on the built package
RUNNAMCAP=

# Set this to anything if you want makepkg to build through distcc for faster
# compilation. You must have distcc installed and properly configured on your
# native environment (not within the chroot) as well as on each of the slaves
# you define below.
#
# Alternatively, you can invoke ccm with the 'cd' flag to create the chroot
# with distcc enabled rather than editing this value.
#
# For more on distcc, see: https://wiki.archlinux.org/index.php/Distcc
RUNDISTCC=

# This is only needed for users planning to build with distcc. Take care to
# include the localhost plus all distcc slaves you define below. Don't over-
# think this one. Performance doesn't suffer if you over-shoot the value to
# account for physical core + 1 on the localhost and slaves.
DISTCC_THREADS=

# Define all machines in the distcc cluster below using the distcc syntax of:
# "hostname/threads" and remember to list localhost/n first, followed by your
# slave nodes listed in decreasing order of CPU power. Additional supported
# options are passed through, see the manpage for distcc.
DISTCC_HOSTS="localhost/9 foo/8 bar/4"

So /mnt/usb2/chroot64 is on an ext4 formatted external drive. I ran sudo ccm64 c, which completed like so:

sudo] password for killian: 
==> Creating install root at /mnt/usb2/chroot64/root
==> Installing packages to /mnt/usb2/chroot64/root
:: Synchronizing package databases...
 testing                                               126.5 KiB   973K/s 00:00 [##############################################] 100%
 core                                                  124.3 KiB  4.05M/s 00:00 [##############################################] 100%
 extra                                                1678.9 KiB  3.35M/s 00:00 [##############################################] 100%
 community-testing                                     219.4 KiB  4.29M/s 00:00 [##############################################] 100%
 community                                               3.8 MiB  3.87M/s 00:01 [##############################################] 100%
 repo-ck                                                51.5 KiB   368K/s 00:00 [##############################################] 100%
:: There are 25 members in group base-devel:
:: Repository testing
   1) pacman
:: Repository core
   2) autoconf  3) automake  4) binutils  5) bison  6) fakeroot  7) file  8) findutils  9) flex  10) gawk  11) gcc  12) gettext
   13) grep  14) groff  15) gzip  16) libtool  17) m4  18) make  19) patch  20) pkg-config  21) sed  22) sudo  23) texinfo
   24) util-linux  25) which

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

Package (98)                     New Version     Net Change  Download Size

core/acl                         2.2.52-3          0.28 MiB       0.13 MiB
core/archlinux-keyring           20170320-1        0.86 MiB       0.62 MiB
core/attr                        2.4.47-2          0.19 MiB       0.07 MiB
core/bash                        4.4.012-2         7.13 MiB       1.38 MiB
core/bzip2                       1.0.6-6           0.16 MiB       0.05 MiB
core/ca-certificates             20170307-1        0.00 MiB       0.00 MiB
core/ca-certificates-cacert      20140824-4        0.01 MiB       0.01 MiB
testing/ca-certificates-mozilla  3.30-1            1.19 MiB       0.40 MiB
core/ca-certificates-utils       20170307-1        0.01 MiB               
testing/coreutils                8.27-1           13.76 MiB       2.18 MiB
core/cracklib                    2.9.6-1           0.87 MiB       0.24 MiB
testing/curl                     7.53.1-2          1.35 MiB       0.84 MiB
core/db                          5.3.28-3          6.43 MiB       1.07 MiB
core/diffutils                   3.5-1             1.16 MiB       0.27 MiB
core/e2fsprogs                   1.43.4-1          4.24 MiB       0.94 MiB
core/expat                       2.2.0-2           0.24 MiB       0.07 MiB
core/filesystem                  2017.03-2         0.01 MiB       0.01 MiB
extra/gc                         7.6.0-1           0.71 MiB       0.21 MiB
core/gcc-libs                    6.3.1-2          78.38 MiB      14.92 MiB
testing/gdbm                     1.13-1            0.43 MiB       0.15 MiB
core/glib2                       2.50.3-1         13.35 MiB       2.25 MiB
core/glibc                       2.25-1           36.38 MiB       8.44 MiB
core/gmp                         6.1.2-1           0.92 MiB       0.40 MiB
core/gnupg                       2.1.19-1          9.07 MiB       1.97 MiB
core/gnutls                      3.5.10-1          5.64 MiB       2.26 MiB
core/gpgme                       1.9.0-1           1.07 MiB       0.35 MiB
extra/guile                      2.0.14-1         11.81 MiB       3.01 MiB
core/iana-etc                    20170224-1        3.80 MiB       0.35 MiB
core/icu                         58.2-1           33.98 MiB       8.12 MiB
core/keyutils                    1.5.10-1          0.12 MiB       0.07 MiB
testing/krb5                     1.15-1            4.05 MiB       1.09 MiB
core/less                        487-1             0.20 MiB       0.09 MiB
testing/libarchive               3.3.1-5           1.01 MiB       0.44 MiB
core/libassuan                   2.4.3-1           0.15 MiB       0.08 MiB
extra/libatomic_ops              7.4.4-1           0.56 MiB       0.06 MiB
core/libcap                      2.25-1            0.14 MiB       0.04 MiB
core/libffi                      3.2.1-2           0.06 MiB       0.03 MiB
core/libgcrypt                   1.7.6-1           1.29 MiB       0.46 MiB
core/libgpg-error                1.27-1            0.90 MiB       0.15 MiB
core/libidn                      1.33-1            0.89 MiB       0.20 MiB
core/libksba                     1.3.4-2           0.27 MiB       0.11 MiB
testing/libldap                  2.4.44-4          0.88 MiB       0.28 MiB
core/libmpc                      1.0.3-2           0.13 MiB       0.06 MiB
core/libpsl                      0.17.0-1          0.13 MiB       0.05 MiB
testing/libsasl                  2.1.26-10         0.49 MiB       0.13 MiB
core/libsecret                   0.18.5-1          1.86 MiB       0.19 MiB
testing/libssh2                  1.8.0-2           0.34 MiB       0.18 MiB
testing/libsystemd               233-1             1.53 MiB       0.35 MiB
core/libtasn1                    4.10-1            0.31 MiB       0.11 MiB
core/libtirpc                    1.0.1-2           0.49 MiB       0.17 MiB
core/libunistring                0.9.7-1           2.17 MiB       0.48 MiB
core/libutil-linux               2.29.2-2          1.11 MiB       0.31 MiB
core/linux-api-headers           4.10.1-1          3.65 MiB       0.83 MiB
core/lz4                         1:1.7.5-1         0.36 MiB       0.08 MiB
core/mpfr                        3.1.5.p2-1        0.61 MiB       0.25 MiB
core/ncurses                     6.0+20170128-1    3.41 MiB       1.01 MiB
core/nettle                      3.3-1             0.80 MiB       0.31 MiB
core/npth                        1.3-1             0.07 MiB       0.01 MiB
testing/openssl                  1.1.0.e-1         6.23 MiB       2.85 MiB
core/p11-kit                     0.23.5-1          3.55 MiB       0.43 MiB
core/pacman-mirrorlist           20170316-1        0.02 MiB       0.01 MiB
core/pam                         1.3.0-1           2.91 MiB       0.60 MiB
core/pambase                     20130928-1        0.00 MiB       0.00 MiB
core/pcre                        8.40-1            3.38 MiB       0.90 MiB
core/perl                        5.24.1-1         50.21 MiB      13.18 MiB
core/pinentry                    1.0.0-1           0.46 MiB       0.10 MiB
core/readline                    7.0.003-1         0.72 MiB       0.29 MiB
core/shadow                      4.4-3             3.39 MiB       1.04 MiB
testing/sqlite                   3.18.0-1          7.47 MiB       1.22 MiB
core/tar                         1.29-2            2.50 MiB       0.66 MiB
core/tzdata                      2017b-1           1.81 MiB       0.23 MiB
core/xz                          5.2.3-1           0.74 MiB       0.22 MiB
core/zlib                        1:1.2.11-1        0.32 MiB       0.08 MiB
core/autoconf                    2.69-4            2.00 MiB       0.57 MiB
core/automake                    1.15-2            1.51 MiB       0.57 MiB
core/binutils                    2.28.0-2         28.95 MiB       4.79 MiB
core/bison                       3.0.4-2           1.77 MiB       0.54 MiB
core/fakeroot                    1.21-2            0.12 MiB       0.07 MiB
core/file                        5.30-1            4.84 MiB       0.25 MiB
core/findutils                   4.6.0-2           1.54 MiB       0.41 MiB
core/flex                        2.6.3-2           0.83 MiB       0.28 MiB
core/gawk                        4.1.4-2           2.36 MiB       0.96 MiB
core/gcc                         6.3.1-2         111.25 MiB      28.16 MiB
core/gettext                     0.19.8.1-2        8.05 MiB       1.98 MiB
core/grep                        3.0-1             0.78 MiB       0.20 MiB
core/groff                       1.22.3-7          8.09 MiB       1.78 MiB
core/gzip                        1.8-2             0.14 MiB       0.07 MiB
core/libtool                     2.4.6-7           2.16 MiB       0.39 MiB
core/m4                          1.4.18-1          0.24 MiB       0.16 MiB
core/make                        4.2.1-1           1.47 MiB       0.40 MiB
testing/pacman                   5.0.1-5           4.42 MiB       0.71 MiB
core/patch                       2.7.5-1           0.16 MiB       0.08 MiB
core/pkg-config                  0.29.1-2          0.08 MiB       0.03 MiB
core/sed                         4.4-1             0.58 MiB       0.17 MiB
core/sudo                        1.8.19.p2-1       3.87 MiB       0.92 MiB
core/texinfo                     6.3-1             7.99 MiB       1.14 MiB
core/util-linux                  2.29.2-2          9.85 MiB       1.79 MiB
core/which                       2.21-2            0.03 MiB       0.02 MiB

Total Download Size:   126.58 MiB
Total Installed Size:  548.17 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 gdbm-1.13-1-x86_64                                    150.4 KiB  3.67M/s 00:00 [##############################################] 100%
 openssl-1.1.0.e-1-x86_64                                2.8 MiB  4.25M/s 00:01 [##############################################] 100%
 libarchive-3.3.1-5-x86_64                             449.0 KiB  4.38M/s 00:00 [##############################################] 100%
 coreutils-8.27-1-x86_64                                 2.2 MiB  4.20M/s 00:01 [##############################################] 100%
 ca-certificates-mozilla-3.30-1-x86_64                 406.4 KiB  4.41M/s 00:00 [##############################################] 100%
 libsasl-2.1.26-10-x86_64                              137.2 KiB  4.46M/s 00:00 [##############################################] 100%
 libldap-2.4.44-4-x86_64                               284.3 KiB  4.63M/s 00:00 [##############################################] 100%
 krb5-1.15-1-x86_64                                   1116.5 KiB  4.54M/s 00:00 [##############################################] 100%
 libssh2-1.8.0-2-x86_64                                180.2 KiB  5.87M/s 00:00 [##############################################] 100%
 curl-7.53.1-2-x86_64                                  856.7 KiB  4.40M/s 00:00 [##############################################] 100%
 sqlite-3.18.0-1-x86_64                               1250.4 KiB  4.36M/s 00:00 [##############################################] 100%
 pacman-5.0.1-5-x86_64                                 731.5 KiB  4.46M/s 00:00 [##############################################] 100%
 libsystemd-233-1-x86_64                               361.1 KiB  3.53M/s 00:00 [##############################################] 100%
 linux-api-headers-4.10.1-1-x86_64                     852.4 KiB  4.90M/s 00:00 [##############################################] 100%
 tzdata-2017b-1-any                                    235.8 KiB  3.84M/s 00:00 [##############################################] 100%
 iana-etc-20170224-1-any                               358.8 KiB  4.38M/s 00:00 [##############################################] 100%
 filesystem-2017.03-2-x86_64                            10.2 KiB  1020K/s 00:00 [##############################################] 100%
 glibc-2.25-1-x86_64                                     8.4 MiB  4.56M/s 00:02 [##############################################] 100%
 gcc-libs-6.3.1-2-x86_64                                14.9 MiB  4.34M/s 00:03 [##############################################] 100%
 ncurses-6.0+20170128-1-x86_64                        1032.1 KiB  4.80M/s 00:00 [##############################################] 100%
 readline-7.0.003-1-x86_64                             294.7 KiB  4.11M/s 00:00 [##############################################] 100%
 bash-4.4.012-2-x86_64                                1417.7 KiB  4.33M/s 00:00 [##############################################] 100%
 attr-2.4.47-2-x86_64                                   70.0 KiB  6.84M/s 00:00 [##############################################] 100%
 acl-2.2.52-3-x86_64                                   132.0 KiB  4.30M/s 00:00 [##############################################] 100%
 bzip2-1.0.6-6-x86_64                                   52.8 KiB  5.16M/s 00:00 [##############################################] 100%
 expat-2.2.0-2-x86_64                                   76.3 KiB  7.45M/s 00:00 [##############################################] 100%
 lz4-1:1.7.5-1-x86_64                                   82.7 KiB  2.69M/s 00:00 [##############################################] 100%
 db-5.3.28-3-x86_64                                   1097.6 KiB  3.70M/s 00:00 [##############################################] 100%
 perl-5.24.1-1-x86_64                                   13.2 MiB  4.09M/s 00:03 [##############################################] 100%
 xz-5.2.3-1-x86_64                                     229.1 KiB  4.48M/s 00:00 [##############################################] 100%
 zlib-1:1.2.11-1-x86_64                                 86.4 KiB  4.22M/s 00:00 [##############################################] 100%
 gmp-6.1.2-1-x86_64                                    408.5 KiB  4.43M/s 00:00 [##############################################] 100%
 libcap-2.25-1-x86_64                                   37.9 KiB  3.70M/s 00:00 [##############################################] 100%
 findutils-4.6.0-2-x86_64                              420.7 KiB  3.74M/s 00:00 [##############################################] 100%
 libtasn1-4.10-1-x86_64                                116.2 KiB  3.78M/s 00:00 [##############################################] 100%
 libffi-3.2.1-2-x86_64                                  31.5 KiB  0.00B/s 00:00 [##############################################] 100%
 p11-kit-0.23.5-1-x86_64                               444.6 KiB  3.34M/s 00:00 [##############################################] 100%
 ca-certificates-cacert-20140824-4-any                   7.1 KiB  0.00B/s 00:00 [##############################################] 100%
 ca-certificates-20170307-1-any                       1904.0   B  0.00B/s 00:00 [##############################################] 100%
 libutil-linux-2.29.2-2-x86_64                         317.5 KiB  2.21M/s 00:00 [##############################################] 100%
 e2fsprogs-1.43.4-1-x86_64                             959.5 KiB  3.47M/s 00:00 [##############################################] 100%
 keyutils-1.5.10-1-x86_64                               67.5 KiB  0.00B/s 00:00 [##############################################] 100%
 icu-58.2-1-x86_64                                       8.1 MiB  4.08M/s 00:02 [##############################################] 100%
 libpsl-0.17.0-1-x86_64                                 49.3 KiB  4.82M/s 00:00 [##############################################] 100%
 libgpg-error-1.27-1-x86_64                            150.4 KiB  3.67M/s 00:00 [##############################################] 100%
 npth-1.3-1-x86_64                                      13.4 KiB  0.00B/s 00:00 [##############################################] 100%
 libgcrypt-1.7.6-1-x86_64                              467.9 KiB  3.81M/s 00:00 [##############################################] 100%
 libksba-1.3.4-2-x86_64                                114.6 KiB  3.73M/s 00:00 [##############################################] 100%
 libassuan-2.4.3-1-x86_64                               84.6 KiB  4.13M/s 00:00 [##############################################] 100%
 pcre-8.40-1-x86_64                                    922.5 KiB  2.82M/s 00:00 [##############################################] 100%
 glib2-2.50.3-1-x86_64                                   2.2 MiB  4.09M/s 00:01 [##############################################] 100%
 libsecret-0.18.5-1-x86_64                             195.0 KiB  3.81M/s 00:00 [##############################################] 100%
 pinentry-1.0.0-1-x86_64                                98.1 KiB  4.79M/s 00:00 [##############################################] 100%
 nettle-3.3-1-x86_64                                   321.7 KiB  3.49M/s 00:00 [##############################################] 100%
 libidn-1.33-1-x86_64                                  206.9 KiB  3.37M/s 00:00 [##############################################] 100%
 libunistring-0.9.7-1-x86_64                           491.1 KiB  3.43M/s 00:00 [##############################################] 100%
 gnutls-3.5.10-1-x86_64                                  2.3 MiB  3.65M/s 00:01 [##############################################] 100%
 gnupg-2.1.19-1-x86_64                                2012.6 KiB  3.78M/s 00:01 [##############################################] 100%
 gpgme-1.9.0-1-x86_64                                  363.1 KiB  3.94M/s 00:00 [##############################################] 100%
 pacman-mirrorlist-20170316-1-any                        5.2 KiB  0.00B/s 00:00 [##############################################] 100%
 archlinux-keyring-20170320-1-any                      638.7 KiB  4.16M/s 00:00 [##############################################] 100%
 mpfr-3.1.5.p2-1-x86_64                                254.5 KiB  4.14M/s 00:00 [##############################################] 100%
 gawk-4.1.4-2-x86_64                                   987.1 KiB  4.19M/s 00:00 [##############################################] 100%
 m4-1.4.18-1-x86_64                                    166.1 KiB  4.06M/s 00:00 [##############################################] 100%
 diffutils-3.5-1-x86_64                                273.0 KiB  3.33M/s 00:00 [##############################################] 100%
 autoconf-2.69-4-any                                   583.5 KiB  3.80M/s 00:00 [##############################################] 100%
 automake-1.15-2-any                                   585.4 KiB  4.08M/s 00:00 [##############################################] 100%
 binutils-2.28.0-2-x86_64                                4.8 MiB  4.02M/s 00:01 [##############################################] 100%
 bison-3.0.4-2-x86_64                                  555.3 KiB  3.61M/s 00:00 [##############################################] 100%
 sed-4.4-1-x86_64                                      174.0 KiB  5.66M/s 00:00 [##############################################] 100%
 cracklib-2.9.6-1-x86_64                               249.9 KiB  3.49M/s 00:00 [##############################################] 100%
 libtirpc-1.0.1-2-x86_64                               171.5 KiB  4.19M/s 00:00 [##############################################] 100%
 pambase-20130928-1-any                               1708.0   B  0.00B/s 00:00 [##############################################] 100%
 pam-1.3.0-1-x86_64                                    609.7 KiB  3.72M/s 00:00 [##############################################] 100%
 shadow-4.4-3-x86_64                                  1060.6 KiB  4.32M/s 00:00 [##############################################] 100%
 util-linux-2.29.2-2-x86_64                           1828.5 KiB  4.15M/s 00:00 [##############################################] 100%
 fakeroot-1.21-2-x86_64                                 67.1 KiB  3.28M/s 00:00 [##############################################] 100%
 file-5.30-1-x86_64                                    257.0 KiB  3.58M/s 00:00 [##############################################] 100%
 flex-2.6.3-2-x86_64                                   283.4 KiB  3.46M/s 00:00 [##############################################] 100%
 libmpc-1.0.3-2-x86_64                                  63.3 KiB  6.18M/s 00:00 [##############################################] 100%
 gcc-6.3.1-2-x86_64                                     28.2 MiB  3.95M/s 00:07 [##############################################] 100%
 gettext-0.19.8.1-2-x86_64                            2026.9 KiB  3.73M/s 00:01 [##############################################] 100%
 grep-3.0-1-x86_64                                     202.7 KiB  3.96M/s 00:00 [##############################################] 100%
 groff-1.22.3-7-x86_64                                1824.6 KiB  4.05M/s 00:00 [##############################################] 100%
 less-487-1-x86_64                                      93.6 KiB  4.57M/s 00:00 [##############################################] 100%
 gzip-1.8-2-x86_64                                      75.8 KiB  3.70M/s 00:00 [##############################################] 100%
 tar-1.29-2-x86_64                                     673.9 KiB  4.11M/s 00:00 [##############################################] 100%
 libtool-2.4.6-7-x86_64                                396.1 KiB  4.30M/s 00:00 [##############################################] 100%
 texinfo-6.3-1-x86_64                                 1170.9 KiB  3.27M/s 00:00 [##############################################] 100%
 make-4.2.1-1-x86_64                                   407.4 KiB  3.32M/s 00:00 [##############################################] 100%
 patch-2.7.5-1-x86_64                                   79.2 KiB  2.58M/s 00:00 [##############################################] 100%
 pkg-config-0.29.1-2-x86_64                             34.6 KiB  0.00B/s 00:00 [##############################################] 100%
 sudo-1.8.19.p2-1-x86_64                               945.0 KiB  4.01M/s 00:00 [##############################################] 100%
 which-2.21-2-x86_64                                    15.5 KiB  0.00B/s 00:00 [##############################################] 100%
 libatomic_ops-7.4.4-1-x86_64                           58.2 KiB  2.84M/s 00:00 [##############################################] 100%
 gc-7.6.0-1-x86_64                                     217.6 KiB  4.25M/s 00:00 [##############################################] 100%
 guile-2.0.14-1-x86_64                                   3.0 MiB  3.91M/s 00:01 [##############################################] 100%
(98/98) checking keys in keyring                                                [##############################################] 100%
(98/98) checking package integrity                                              [##############################################] 100%
(98/98) loading package files                                                   [##############################################] 100%
(98/98) checking for file conflicts                                             [##############################################] 100%
(98/98) checking available disk space                                           [##############################################] 100%
:: Processing package changes...
( 1/98) installing linux-api-headers                                            [##############################################] 100%
( 2/98) installing tzdata                                                       [##############################################] 100%
( 3/98) installing iana-etc                                                     [##############################################] 100%
( 4/98) installing filesystem                                                   [##############################################] 100%
( 5/98) installing glibc                                                        [##############################################] 100%
( 6/98) installing gcc-libs                                                     [##############################################] 100%
( 7/98) installing ncurses                                                      [##############################################] 100%
( 8/98) installing readline                                                     [##############################################] 100%
( 9/98) installing bash                                                         [##############################################] 100%
Optional dependencies for bash
    bash-completion: for tab completion
(10/98) installing attr                                                         [##############################################] 100%
(11/98) installing acl                                                          [##############################################] 100%
(12/98) installing bzip2                                                        [##############################################] 100%
(13/98) installing expat                                                        [##############################################] 100%
(14/98) installing lz4                                                          [##############################################] 100%
(15/98) installing gdbm                                                         [##############################################] 100%
(16/98) installing db                                                           [##############################################] 100%
(17/98) installing perl                                                         [##############################################] 100%
(18/98) installing openssl                                                      [##############################################] 100%
Optional dependencies for openssl
    ca-certificates [pending]
(19/98) installing xz                                                           [##############################################] 100%
(20/98) installing zlib                                                         [##############################################] 100%
(21/98) installing libarchive                                                   [##############################################] 100%
(22/98) installing gmp                                                          [##############################################] 100%
(23/98) installing libcap                                                       [##############################################] 100%
(24/98) installing coreutils                                                    [##############################################] 100%
(25/98) installing findutils                                                    [##############################################] 100%
(26/98) installing libtasn1                                                     [##############################################] 100%
(27/98) installing libffi                                                       [##############################################] 100%
(28/98) installing p11-kit                                                      [##############################################] 100%
(29/98) installing ca-certificates-utils                                        [##############################################] 100%
(30/98) installing ca-certificates-mozilla                                      [##############################################] 100%
(31/98) installing ca-certificates-cacert                                       [##############################################] 100%
(32/98) installing ca-certificates                                              [##############################################] 100%
(33/98) installing libutil-linux                                                [##############################################] 100%
(34/98) installing e2fsprogs                                                    [##############################################] 100%
(35/98) installing libsasl                                                      [##############################################] 100%
(36/98) installing libldap                                                      [##############################################] 100%
(37/98) installing keyutils                                                     [##############################################] 100%
(38/98) installing krb5                                                         [##############################################] 100%
(39/98) installing libssh2                                                      [##############################################] 100%
(40/98) installing icu                                                          [##############################################] 100%
(41/98) installing libpsl                                                       [##############################################] 100%
(42/98) installing curl                                                         [##############################################] 100%
(43/98) installing libgpg-error                                                 [##############################################] 100%
(44/98) installing npth                                                         [##############################################] 100%
(45/98) installing libgcrypt                                                    [##############################################] 100%
(46/98) installing libksba                                                      [##############################################] 100%
(47/98) installing libassuan                                                    [##############################################] 100%
(48/98) installing pcre                                                         [##############################################] 100%
(49/98) installing glib2                                                        [##############################################] 100%
Optional dependencies for glib2
    python: for gdbus-codegen and gtester-report
    libelf: gresource inspection tool
(50/98) installing libsecret                                                    [##############################################] 100%
Optional dependencies for libsecret
    gnome-keyring: key storage service (or use any other service implementing org.freedesktop.secrets)
(51/98) installing pinentry                                                     [##############################################] 100%
Optional dependencies for pinentry
    gtk2: gtk2 backend
    qt5-base: qt backend
    gcr: gnome3 backend
(52/98) installing nettle                                                       [##############################################] 100%
(53/98) installing libidn                                                       [##############################################] 100%
(54/98) installing libunistring                                                 [##############################################] 100%
(55/98) installing gnutls                                                       [##############################################] 100%
Optional dependencies for gnutls
    guile: for use with Guile bindings [pending]
(56/98) installing sqlite                                                       [##############################################] 100%
(57/98) installing gnupg                                                        [##############################################] 100%
call to execv failed (Permission denied)
error: command failed to execute correctly
Optional dependencies for gnupg
    libldap: gpg2keys_ldap [installed]
    libusb-compat: scdaemon
(58/98) installing gpgme                                                        [##############################################] 100%
(59/98) installing pacman-mirrorlist                                            [##############################################] 100%
(60/98) installing archlinux-keyring                                            [##############################################] 100%
call to execv failed (Permission denied)
error: command failed to execute correctly
(61/98) installing pacman                                                       [##############################################] 100%
(62/98) installing mpfr                                                         [##############################################] 100%
(63/98) installing gawk                                                         [##############################################] 100%
(64/98) installing m4                                                           [##############################################] 100%
(65/98) installing diffutils                                                    [##############################################] 100%
(66/98) installing autoconf                                                     [##############################################] 100%
(67/98) installing automake                                                     [##############################################] 100%
(68/98) installing binutils                                                     [##############################################] 100%
(69/98) installing bison                                                        [##############################################] 100%
(70/98) installing sed                                                          [##############################################] 100%
(71/98) installing cracklib                                                     [##############################################] 100%
(72/98) installing libtirpc                                                     [##############################################] 100%
(73/98) installing pambase                                                      [##############################################] 100%
(74/98) installing pam                                                          [##############################################] 100%
(75/98) installing shadow                                                       [##############################################] 100%
(76/98) installing libsystemd                                                   [##############################################] 100%
(77/98) installing util-linux                                                   [##############################################] 100%
Optional dependencies for util-linux
    python: python bindings to libmount
(78/98) installing fakeroot                                                     [##############################################] 100%
call to execv failed (Permission denied)
error: command failed to execute correctly
(79/98) installing file                                                         [##############################################] 100%
(80/98) installing flex                                                         [##############################################] 100%
(81/98) installing libmpc                                                       [##############################################] 100%
(82/98) installing gcc                                                          [##############################################] 100%
(83/98) installing gettext                                                      [##############################################] 100%
Optional dependencies for gettext
    git: for autopoint infrastructure updates
(84/98) installing grep                                                         [##############################################] 100%
(85/98) 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
(86/98) installing less                                                         [##############################################] 100%
(87/98) installing gzip                                                         [##############################################] 100%
(88/98) installing tar                                                          [##############################################] 100%
(89/98) installing libtool                                                      [##############################################] 100%
(90/98) installing texinfo                                                      [##############################################] 100%
(91/98) installing libatomic_ops                                                [##############################################] 100%
(92/98) installing gc                                                           [##############################################] 100%
(93/98) installing guile                                                        [##############################################] 100%
(94/98) installing make                                                         [##############################################] 100%
(95/98) installing patch                                                        [##############################################] 100%
Optional dependencies for patch
    ed: for patch -e functionality
(96/98) installing pkg-config                                                   [##############################################] 100%
(97/98) installing sudo                                                         [##############################################] 100%
(98/98) installing which                                                        [##############################################] 100%
:: Running post-transaction hooks...
(1/2) Updating the info directory file...
call to execv failed (Permission denied)
error: command failed to execute correctly
(2/2) Rebuilding certificate stores...
call to execv failed (Permission denied)
error: command failed to execute correctly
Initializing machine ID from random generator.
execv(locale-gen) failed: Permission denied

Did cd ~/build/zsh-autosuggestions-git then sudo ccm64 s, which gave this:

[sudo] password for killian: 
----> Attempting to build package...
==> Creating clean working copy [killian]...done
execv(pacman) failed: Permission denied
==> Making package: zsh-autosuggestions-git v0.3.3.r1.gfedc22e-1 (Sun Apr  2 11:53:14 EDT 2017)
==> Retrieving sources...
  -> Cloning zsh-autosuggestions git repo...
Cloning into bare repository '/home/killian/build/zsh-autosuggestions-git/zsh-autosuggestions'...
remote: Counting objects: 1498, done.
remote: Total 1498 (delta 0), reused 0 (delta 0), pack-reused 1498
Receiving objects: 100% (1498/1498), 334.67 KiB | 0 bytes/s, done.
Resolving deltas: 100% (912/912), done.
==> Validating source files with sha256sums...
    zsh-autosuggestions ... Skipped
execv(/chrootbuild) failed: Permission denied
==> ERROR: Build failed, check /mnt/usb2/chroot64/killian/build

Checked /mnt/usb2/chroot64/killian/build, directory was empty.

Offline

#8 2017-04-02 18:21:05

tpr
Member
Registered: 2017-04-02
Posts: 1

Re: So I've broken something with my certificates

It's a problem with git checkout, you can try to use ssh instead of https for checkout. No idea where the problem lies to be more specific than somewhere in git's git-remote-https, some pieces I have gathered:

) git clone https://github.com/tj/git-extras.git

15:27:12.882657 git.c:371               trace: built-in: git 'clone' 'https://github.com/tj/git-extras.git'
Cloning into 'git-extras'...
15:27:12.883344 run-command.c:369       trace: run_command: 'git-remote-https' 'origin' 'https://github.com/tj/git-extras.git'
fatal: unable to access 'https://github.com/tj/git-extras.git/': error:0B06A041:x509 certificate routines:build_chain:malloc failure

strace:

write(2, "15:29:22.502324 run-command.c:36"..., 12715:29:22.502324 run-command.c:369       trace: run_command: 'git-remote-https' 'origin' 'https://github.com/tj/git-extras.git'
) = 127
pipe([7, 8])                            = 0
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f20fd54f9d0) = 30375
close(8)                                = 0
read(7, "", 1)                          = 0
close(7)                                = 0
close(3)                                = 0
close(6)                                = 0
dup(5)                                  = 3
fcntl(3, F_GETFL)                       = 0 (flags O_RDONLY)
write(4, "capabilities\n", 13)          = 13
fstat(3, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
read(3, "fetch\noption\npush\ncheck-connecti"..., 4096) = 38
write(4, "option progress true\n", 21)  = 21
read(3, "ok\n", 4096)                   = 3
write(4, "option verbosity 1\n", 19)    = 19
read(3, "ok\n", 4096)                   = 3
dup(5)                                  = 6
fcntl(6, F_GETFL)                       = 0 (flags O_RDONLY)
close(6)                                = 0
write(4, "list\n", 5)                   = 5
read(3, fatal: unable to access 'https://github.com/tj/git-extras.git/': error:0B06A041:x509 certificate routines:build_chain:malloc failure
"", 4096)                       = 0

setting MALLOC_CHECK_ doesn't produce any results.

Offline

Board footer

Powered by FluxBB