Skip to content

ruby3.4-licensee fails to build on amd64 #75982

@murraybd

Description

@murraybd

The package ruby3.4-licensee with version 9.18.0 and epoch 1 fails to build from source on amd64 with the following error:

2025-12-15 07:32:28.719762836 +0000 UTC parsed env
2025-12-15 07:32:28.71982981 +0000 UTC configuring puller identity "720909c9f5279097d847ad02a2f24ba8f59de36a/a49c7fedc33adf69"...
2025-12-15 07:32:28.720244171 +0000 UTC running command chainctl [auth login --audience apk.cgr.dev --identity 720909c9f5279097d847ad02a2f24ba8f59de36a/a49c7fedc33adf69]
2025-12-15 07:32:28.992749364 +0000 UTC Successfully exchanged token.
2025-12-15 07:32:29.064001463 +0000 UTC Valid! Id: 720909c9f5279097d847ad02a2f24ba8f59de36a/a49c7fedc33adf69
2025-12-15 07:32:29.104006013 +0000 UTC Updates are available for chainctl (current version: 0.2.183; latest: 0.2.184). To install, please run:
2025-12-15 07:32:29.104008355 +0000 UTC     $ chainctl update
2025-12-15 07:32:29.107614566 +0000 UTC command "chainctl" completed successfully
2025-12-15 07:32:29.107701926 +0000 UTC puller identity configured successfully
2025-12-15 07:32:29.107725037 +0000 UTC puller identity configured successfully
2025-12-15 07:32:29.107740799 +0000 UTC running build...
2025-12-15 07:32:29.107752093 +0000 UTC running command melange [build ruby3.4-licensee.yaml --gcplog --source-dir ruby3.4-licensee --arch x86_64 --arch=x86_64 --env-file=build-x86_64.env --namespace=wolfi --pipeline-dir=./pipelines --out-dir=./packages/ --runner=qemu --repository-append=https://apk.cgr.dev/chainguard --repository-append=https://apk.cgr.dev/wolfi-presubmit/world-1765780354307 --repository-append=https://apk.cgr.dev/wolfi-presubmit/world-1765780354307 --git-repo-url=https://github.com/wolfi-dev/os]
2025-12-15 07:32:29.122368191 +0000 UTC melange version  with runner qemu building [ruby3.4-licensee.yaml] at commit  for arches [amd64]
2025-12-15 07:32:29.126514464 +0000 UTC melange v0.36.0 with runner qemu is building:
2025-12-15 07:32:29.131043839 +0000 UTC populating workspace /tmp/melange-workspace-3432327973 from ruby3.4-licensee
2025-12-15 07:32:30.667225675 +0000 UTC image configuration:
2025-12-15 07:32:30.667314368 +0000 UTC   contents:
2025-12-15 07:32:30.66732157 +0000 UTC     build repositories: [https://apk.cgr.dev/chainguard https://apk.cgr.dev/wolfi-presubmit/world-1765780354307]
2025-12-15 07:32:30.667331125 +0000 UTC     runtime repositories: []
2025-12-15 07:32:30.667335846 +0000 UTC     repositories: []
2025-12-15 07:32:30.667340205 +0000 UTC     keyring:      []
2025-12-15 07:32:30.667344433 +0000 UTC     packages:     [binutils=2.45.1-r2 build-base=1-r9 busybox=1.37.0-r50 ca-certificates-bundle=20251003-r0 cyrus-sasl=2.1.28-r45 gcc=15.2.0-r6 gdbm=1.26-r1 git=2.52.0-r0 glibc-dev=2.42-r4 glibc-locale-posix=2.42-r4 glibc=2.42-r4 gmp=6.3.0-r8 heimdal-libs=7.8.0-r42 isl=0.27-r4 jemalloc-dev=5.3.0-r6 keyutils-libs=1.6.3-r37 krb5-conf=1.0-r7 krb5-libs=1.22.1-r1 ld-linux=2.42-r4 libatomic=15.2.0-r6 libbrotlicommon1=1.2.0-r1 libbrotlidec1=1.2.0-r1 libcom_err=1.47.3-r1 libcrypt1=2.42-r4 libcrypto3=3.6.0-r6 libcurl-openssl4=8.17.0-r0 libexpat1=2.7.3-r0 libffi=3.5.2-r1 libgcc=15.2.0-r6 libgomp=15.2.0-r6 libidn2=2.3.8-r3 libjemalloc2=5.3.0-r6 libldap-2.6=2.6.10-r7 libnghttp2-14=1.68.0-r0 libpcre2-8-0=10.47-r0 libpsl=0.21.5-r6 libquadmath=15.2.0-r6 libssl3=3.6.0-r6 libstdc++-dev=15.2.0-r6 libstdc++=15.2.0-r6 libunistring=1.4.1-r1 libverto=0.3.2-r6 libxcrypt-dev=4.5.2-r0 libxcrypt=4.5.2-r0 libzstd1=1.5.7-r5 linux-headers=6.18.1-r0 make=4.4.1-r8 mpc=1.3.1-r7 mpfr=4.2.2-r2 ncurses-terminfo-base=6.5_p20251025-r1 ncurses=6.5_p20251025-r1 nghttp3=1.13.1-r0 nss-db=2.42-r4 nss-hesiod=2.42-r4 openssf-compiler-options=20250904-r2 pkgconf=2.5.1-r1 posix-cc-wrappers=2-r7 readline=8.3-r1 ruby-3.4-dev=3.4.7-r2 ruby-3.4=3.4.7-r2 sqlite-libs=3.51.1-r0 wolfi-baselayout=20230201-r24 yaml=0.2.5-r7 zlib=1.3.1-r51]
2025-12-15 07:32:30.66737056 +0000 UTC   accounts:
2025-12-15 07:32:30.667375951 +0000 UTC     runas:  
2025-12-15 07:32:30.667381686 +0000 UTC     users:
2025-12-15 07:32:30.667394488 +0000 UTC       - uid=1000(build) gid=1000
2025-12-15 07:32:30.667402199 +0000 UTC     groups:
2025-12-15 07:32:30.667408725 +0000 UTC       - gid=1000(build) members=[build]
2025-12-15 07:32:30.667416375 +0000 UTC auth configured for: 0x1042020
2025-12-15 07:32:31.177420357 +0000 UTC installing wolfi-baselayout (20230201-r24)
2025-12-15 07:32:31.180515335 +0000 UTC installing ca-certificates-bundle (20251003-r0)
2025-12-15 07:32:31.183464249 +0000 UTC installing glibc-locale-posix (2.42-r4)
2025-12-15 07:32:31.184162125 +0000 UTC installing libgcc (15.2.0-r6)
2025-12-15 07:32:31.245253704 +0000 UTC installing glibc (2.42-r4)
2025-12-15 07:32:31.24618922 +0000 UTC installing ld-linux (2.42-r4)
2025-12-15 07:32:31.246924084 +0000 UTC installing libstdc++ (15.2.0-r6)
2025-12-15 07:32:31.247562434 +0000 UTC installing libzstd1 (1.5.7-r5)
2025-12-15 07:32:31.76020359 +0000 UTC installing binutils (2.45.1-r2)
2025-12-15 07:32:31.762683421 +0000 UTC installing libxcrypt (4.5.2-r0)
2025-12-15 07:32:31.763135607 +0000 UTC installing libxcrypt-dev (4.5.2-r0)
2025-12-15 07:32:31.763529448 +0000 UTC installing nss-db (2.42-r4)
2025-12-15 07:32:31.764076493 +0000 UTC installing nss-hesiod (2.42-r4)
2025-12-15 07:32:31.764638722 +0000 UTC installing linux-headers (6.18.1-r0)
2025-12-15 07:32:31.766312411 +0000 UTC installing glibc-dev (2.42-r4)
2025-12-15 07:32:31.767536945 +0000 UTC installing libquadmath (15.2.0-r6)
2025-12-15 07:32:32.900404983 +0000 UTC installing libstdc++-dev (15.2.0-r6)
2025-12-15 07:32:32.902295336 +0000 UTC installing posix-cc-wrappers (2-r7)
2025-12-15 07:32:32.902479129 +0000 UTC installing libatomic (15.2.0-r6)
2025-12-15 07:32:32.902918466 +0000 UTC installing gmp (6.3.0-r8)
2025-12-15 07:32:32.903171964 +0000 UTC installing libgomp (15.2.0-r6)
2025-12-15 07:32:32.903551568 +0000 UTC installing isl (0.27-r4)
2025-12-15 07:32:32.903831402 +0000 UTC installing mpfr (4.2.2-r2)
2025-12-15 07:32:32.9041528 +0000 UTC installing mpc (1.3.1-r7)
2025-12-15 07:32:32.904442348 +0000 UTC installing zlib (1.3.1-r51)
2025-12-15 07:32:32.904790939 +0000 UTC installing openssf-compiler-options (20250904-r2)
2025-12-15 07:32:34.155407828 +0000 UTC installing gcc (15.2.0-r6)
2025-12-15 07:32:34.157359526 +0000 UTC installing make (4.4.1-r8)
2025-12-15 07:32:34.157743249 +0000 UTC installing pkgconf (2.5.1-r1)
2025-12-15 07:32:34.158146176 +0000 UTC installing build-base (1-r9)
2025-12-15 07:32:34.158288681 +0000 UTC installing libcrypt1 (2.42-r4)
2025-12-15 07:32:34.15887467 +0000 UTC installing busybox (1.37.0-r50)
2025-12-15 07:32:34.159365914 +0000 UTC installing libcrypto3 (3.6.0-r6)
2025-12-15 07:32:34.15979834 +0000 UTC installing gdbm (1.26-r1)
2025-12-15 07:32:34.160188898 +0000 UTC installing ncurses-terminfo-base (6.5_p20251025-r1)
2025-12-15 07:32:34.161371512 +0000 UTC installing ncurses (6.5_p20251025-r1)
2025-12-15 07:32:34.161736601 +0000 UTC installing readline (8.3-r1)
2025-12-15 07:32:34.162021134 +0000 UTC installing sqlite-libs (3.51.1-r0)
2025-12-15 07:32:34.162330075 +0000 UTC installing heimdal-libs (7.8.0-r42)
2025-12-15 07:32:34.162710435 +0000 UTC installing cyrus-sasl (2.1.28-r45)
2025-12-15 07:32:34.163143948 +0000 UTC installing libbrotlicommon1 (1.2.0-r1)
2025-12-15 07:32:34.16347358 +0000 UTC installing libbrotlidec1 (1.2.0-r1)
2025-12-15 07:32:34.163797356 +0000 UTC installing krb5-conf (1.0-r7)
2025-12-15 07:32:34.163940289 +0000 UTC installing libcom_err (1.47.3-r1)
2025-12-15 07:32:34.164310511 +0000 UTC installing keyutils-libs (1.6.3-r37)
2025-12-15 07:32:34.164636015 +0000 UTC installing libssl3 (3.6.0-r6)
2025-12-15 07:32:34.165045424 +0000 UTC installing libverto (0.3.2-r6)
2025-12-15 07:32:34.165374627 +0000 UTC installing krb5-libs (1.22.1-r1)
2025-12-15 07:32:34.165800384 +0000 UTC installing libldap-2.6 (2.6.10-r7)
2025-12-15 07:32:34.166254399 +0000 UTC installing libnghttp2-14 (1.68.0-r0)
2025-12-15 07:32:34.166565641 +0000 UTC installing nghttp3 (1.13.1-r0)
2025-12-15 07:32:34.166879438 +0000 UTC installing libunistring (1.4.1-r1)
2025-12-15 07:32:34.167124848 +0000 UTC installing libidn2 (2.3.8-r3)
2025-12-15 07:32:34.167402025 +0000 UTC installing libpsl (0.21.5-r6)
2025-12-15 07:32:34.167722655 +0000 UTC installing libcurl-openssl4 (8.17.0-r0)
2025-12-15 07:32:34.168172719 +0000 UTC installing libexpat1 (2.7.3-r0)
2025-12-15 07:32:34.168449297 +0000 UTC installing libpcre2-8-0 (10.47-r0)
2025-12-15 07:32:34.168811535 +0000 UTC installing git (2.52.0-r0)
2025-12-15 07:32:34.169548813 +0000 UTC installing libjemalloc2 (5.3.0-r6)
2025-12-15 07:32:34.16983351 +0000 UTC installing jemalloc-dev (5.3.0-r6)
2025-12-15 07:32:34.170133783 +0000 UTC installing libffi (3.5.2-r1)
2025-12-15 07:32:34.170488667 +0000 UTC installing yaml (0.2.5-r7)
2025-12-15 07:32:34.170812174 +0000 UTC installing ruby-3.4 (3.4.7-r2)
2025-12-15 07:32:34.175645961 +0000 UTC installing ruby-3.4-dev (3.4.7-r2)
2025-12-15 07:32:35.785401142 +0000 UTC qemu: generating ssh key pairs for ephemeral VM
2025-12-15 07:32:35.785524333 +0000 UTC qemu: generating SSH host key for VM
2025-12-15 07:32:35.787954422 +0000 UTC qemu: generating base initramfs
2025-12-15 07:32:35.840158056 +0000 UTC image configuration:
2025-12-15 07:32:35.840216982 +0000 UTC   contents:
2025-12-15 07:32:35.840227888 +0000 UTC     build repositories: [https://apk.cgr.dev/chainguard]
2025-12-15 07:32:35.840242351 +0000 UTC     runtime repositories: []
2025-12-15 07:32:35.840250622 +0000 UTC     repositories: []
2025-12-15 07:32:35.840258036 +0000 UTC     keyring:      []
2025-12-15 07:32:35.840266004 +0000 UTC     packages:     [microvm-init]
2025-12-15 07:32:36.039768532 +0000 UTC installing wolfi-baselayout (20230201-r24)
2025-12-15 07:32:36.041285636 +0000 UTC installing ca-certificates-bundle (20251003-r0)
2025-12-15 07:32:36.042277685 +0000 UTC installing libgcc (15.2.0-r6)
2025-12-15 07:32:36.043149311 +0000 UTC installing glibc-locale-posix (2.42-r4)
2025-12-15 07:32:36.044538919 +0000 UTC installing glibc (2.42-r4)
2025-12-15 07:32:36.049769329 +0000 UTC installing ld-linux (2.42-r4)
2025-12-15 07:32:36.203919928 +0000 UTC installing gnutar-rmt (1.35-r6)
2025-12-15 07:32:36.365381973 +0000 UTC installing gnutar (1.35-r6)
2025-12-15 07:32:36.379523516 +0000 UTC installing libattr1 (2.5.2-r54)
2025-12-15 07:32:36.382789299 +0000 UTC installing attr (2.5.2-r54)
2025-12-15 07:32:36.385090905 +0000 UTC installing zlib (1.3.1-r51)
2025-12-15 07:32:36.417498894 +0000 UTC installing libzstd1 (1.5.7-r5)
2025-12-15 07:32:36.420280004 +0000 UTC installing xz (5.8.1-r6)
2025-12-15 07:32:36.428763621 +0000 UTC installing libcrypto3 (3.6.0-r6)
2025-12-15 07:32:36.440263086 +0000 UTC installing kmod (34.2-r42)
2025-12-15 07:32:36.443752408 +0000 UTC installing libmnl (1.0.5-r6)
2025-12-15 07:32:36.444680654 +0000 UTC installing libbz2-1 (1.0.8-r21)
2025-12-15 07:32:36.445704124 +0000 UTC installing libelf (0.194-r0)
2025-12-15 07:32:36.447471131 +0000 UTC installing libbpf (1.6.2-r0)
2025-12-15 07:32:36.44876683 +0000 UTC installing libverto (0.3.2-r6)
2025-12-15 07:32:36.449702565 +0000 UTC installing krb5-conf (1.0-r7)
2025-12-15 07:32:36.450228569 +0000 UTC installing libcom_err (1.47.3-r1)
2025-12-15 07:32:36.451523597 +0000 UTC installing keyutils-libs (1.6.3-r37)
2025-12-15 07:32:36.452490074 +0000 UTC installing libssl3 (3.6.0-r6)
2025-12-15 07:32:36.45465372 +0000 UTC installing krb5-libs (1.22.1-r1)
2025-12-15 07:32:36.463503503 +0000 UTC installing libtirpc (1.3.7-r1)
2025-12-15 07:32:36.464535304 +0000 UTC installing libpcre2-8-0 (10.47-r0)
2025-12-15 07:32:36.472169937 +0000 UTC installing libsepol (3.9-r1)
2025-12-15 07:32:36.47712551 +0000 UTC installing libselinux (3.9-r1)
2025-12-15 07:32:36.501005044 +0000 UTC installing libnftnl (1.3.1-r0)
2025-12-15 07:32:36.502876475 +0000 UTC installing xtables (1.8.11-r29)
2025-12-15 07:32:36.516575404 +0000 UTC installing libcap (2.77-r0)
2025-12-15 07:32:36.517623216 +0000 UTC installing iproute2 (6.17.0-r2)
2025-12-15 07:32:36.526250765 +0000 UTC installing libstdc++ (15.2.0-r6)
2025-12-15 07:32:36.529773245 +0000 UTC installing inih (62-r1)
2025-12-15 07:32:36.531321943 +0000 UTC installing liburcu (0.15.5-r0)
2025-12-15 07:32:36.533302076 +0000 UTC installing libblkid (2.41.2-r2)
2025-12-15 07:32:36.535621988 +0000 UTC installing libuuid (2.41.2-r2)
2025-12-15 07:32:36.53859244 +0000 UTC installing xfsprogs-core (6.17.0-r2)
2025-12-15 07:32:36.545299359 +0000 UTC installing xfsprogs (6.17.0-r2)
2025-12-15 07:32:36.546294608 +0000 UTC installing libmount (2.41.2-r2)
2025-12-15 07:32:36.548782199 +0000 UTC installing mount (2.41.2-r2)
2025-12-15 07:32:36.549855085 +0000 UTC installing ncurses-terminfo-base (6.5_p20251025-r1)
2025-12-15 07:32:36.573585519 +0000 UTC installing ncurses (6.5_p20251025-r1)
2025-12-15 07:32:36.580733056 +0000 UTC installing setarch (2.41.2-r2)
2025-12-15 07:32:36.582142592 +0000 UTC installing libfdisk (2.41.2-r2)
2025-12-15 07:32:36.58479055 +0000 UTC installing sqlite-libs (3.51.1-r0)
2025-12-15 07:32:36.587269877 +0000 UTC installing util-linux (2.41.2-r2)
2025-12-15 07:32:36.595671907 +0000 UTC installing libsmartcols (2.41.2-r2)
2025-12-15 07:32:36.666223622 +0000 UTC installing util-linux-misc (2.41.2-r2)
2025-12-15 07:32:36.685200994 +0000 UTC installing libxcrypt (4.5.2-r0)
2025-12-15 07:32:36.686198915 +0000 UTC installing libcrypt1 (2.42-r4)
2025-12-15 07:32:36.686918505 +0000 UTC installing linux-pam (1.7.1-r3)
2025-12-15 07:32:36.704377828 +0000 UTC installing openssh-keygen (10.2_p1-r2)
2025-12-15 07:32:36.705581263 +0000 UTC installing openssh-server-config (10.2_p1-r2)
2025-12-15 07:32:36.706322448 +0000 UTC installing openssh-server (10.2_p1-r2)
2025-12-15 07:32:36.709175598 +0000 UTC installing busybox (1.37.0-r50)
2025-12-15 07:32:36.710686146 +0000 UTC installing microvm-init (0.0.1-r15)
2025-12-15 07:32:37.342875715 +0000 UTC qemu: starting VM
2025-12-15 07:32:37.344800009 +0000 UTC qemu: waiting for SSH
2025-12-15 07:32:37.84602402 +0000 UTC dial: dial tcp 127.0.0.1:33003: connect: connection refused
2025-12-15 07:32:39.348241061 +0000 UTC conn read: read tcp 127.0.0.1:60454->127.0.0.1:33003: i/o timeout
2025-12-15 07:32:40.770137021 +0000 UTC qemu: meta-data=/dev/vda               isize=512    agcount=8, agsize=1638400 blks
2025-12-15 07:32:40.770249839 +0000 UTC qemu:          =                       sectsz=4096  attr=2, projid32bit=1
2025-12-15 07:32:40.770261067 +0000 UTC qemu:          =                       crc=1        finobt=1, sparse=1, rmapbt=1
2025-12-15 07:32:40.770267952 +0000 UTC qemu:          =                       reflink=1    bigtime=1 inobtcount=1 nrext64=1
2025-12-15 07:32:40.770274055 +0000 UTC qemu:          =                       exchange=0   metadir=0
2025-12-15 07:32:40.770279593 +0000 UTC qemu: data     =                       bsize=4096   blocks=13107200, imaxpct=25
2025-12-15 07:32:40.77032436 +0000 UTC qemu:          =                       sunit=0      swidth=0 blks
2025-12-15 07:32:40.770388829 +0000 UTC qemu: naming   =version 2              bsize=4096   ascii-ci=0, ftype=1, parent=0
2025-12-15 07:32:40.770399021 +0000 UTC qemu: log      =internal log           bsize=4096   blocks=16384, version=2
2025-12-15 07:32:40.770433709 +0000 UTC qemu:          =                       sectsz=4096  sunit=1 blks, lazy-count=1
2025-12-15 07:32:40.770507564 +0000 UTC qemu: realtime =none                   extsz=4096   blocks=0, rtextents=0
2025-12-15 07:32:40.770517403 +0000 UTC qemu:          =                       rgcount=0    rgsize=0 extents
2025-12-15 07:32:40.770525261 +0000 UTC qemu:          =                       zoned=0      start=0 reserved=0
2025-12-15 07:32:40.773806612 +0000 UTC qemu: Discarding blocks...Done.
2025-12-15 07:32:40.850236113 +0000 UTC conn read: read tcp 127.0.0.1:60464->127.0.0.1:33003: i/o timeout
2025-12-15 07:32:42.351412557 +0000 UTC conn read: read tcp 127.0.0.1:60472->127.0.0.1:33003: i/o timeout
2025-12-15 07:32:42.825133867 +0000 UTC qemu: [INIT] Checking for init.d scripts...
2025-12-15 07:32:42.825205455 +0000 UTC qemu: [INIT] No /opt/melange/init.d directory (optional, skipping)
2025-12-15 07:32:42.852497623 +0000 UTC conn read: EOF
2025-12-15 07:32:43.246685222 +0000 UTC qemu: ssh-keygen: generating new host keys: RSA ECDSA 
2025-12-15 07:32:43.255316241 +0000 UTC qemu: Server listening on 0.0.0.0 port 2223.
2025-12-15 07:32:43.255400547 +0000 UTC qemu: Server listening on 0.0.0.0 port 22.
2025-12-15 07:32:43.360051874 +0000 UTC qemu: VM started successfully, SSH server is up
2025-12-15 07:32:43.360605822 +0000 UTC qemu: Connection closed by 10.0.2.2 port 60490
2025-12-15 07:32:44.174403702 +0000 UTC qemu: Connection closed by 10.0.2.2 port 60454
2025-12-15 07:32:44.447360694 +0000 UTC qemu: verifying VM host key against pre-provisioned key
2025-12-15 07:32:44.475141244 +0000 UTC qemu: Accepted publickey for root from 10.0.2.2 port 60498 ssh2: ECDSA SHA256:fa/upNOr5c3isKTwAoxLEqE9ElQ4I4GkV1gB4vBSrg0
2025-12-15 07:32:44.481610161 +0000 UTC qemu: VM host key successfully verified against pre-provisioned key
2025-12-15 07:32:44.496075299 +0000 UTC qemu: Connection closed by 10.0.2.2 port 60498
2025-12-15 07:32:44.521403076 +0000 UTC qemu: Accepted publickey for root from 10.0.2.2 port 60508 ssh2: ECDSA SHA256:fa/upNOr5c3isKTwAoxLEqE9ElQ4I4GkV1gB4vBSrg0
2025-12-15 07:32:44.553591391 +0000 UTC qemu: Accepted publickey for root from 10.0.2.2 port 39598 ssh2: ECDSA SHA256:fa/upNOr5c3isKTwAoxLEqE9ElQ4I4GkV1gB4vBSrg0
2025-12-15 07:32:44.583209886 +0000 UTC qemu: Accepted publickey for root from 10.0.2.2 port 60516 ssh2: ECDSA SHA256:fa/upNOr5c3isKTwAoxLEqE9ElQ4I4GkV1gB4vBSrg0
2025-12-15 07:32:44.625492347 +0000 UTC qemu: running kernel version: 6.16.10-r2-qemu-generic #Chainguard SMP PREEMPT_DYNAMIC Fri Oct  3 22:31:32 UTC 2025
2025-12-15 07:32:44.62557604 +0000 UTC qemu: setting up melange cachedir: ./melange-cache/
2025-12-15 07:32:44.63796041 +0000 UTC qemu: setting up local workspace
2025-12-15 07:32:44.674146406 +0000 UTC qemu: unmounting host workspace from guest
2025-12-15 07:32:44.678729959 +0000 UTC running step "git-checkout"
2025-12-15 07:32:44.693363068 +0000 UTC [git checkout] repo='https://github.com/licensee/licensee.git' dest='.' depth='-1' branch='' tag='v9.18.0' expcommit='336495543ee8756eb512a6b4ec6ad763cf890701' recurse='false' sparse_paths=''
2025-12-15 07:32:44.699295826 +0000 UTC [git checkout] execute: git config --global --add safe.directory /tmp/tmp.HHFyxg
2025-12-15 07:32:44.70138733 +0000 UTC [git checkout] execute: git config --global --add safe.directory /home/build
2025-12-15 07:32:44.703188713 +0000 UTC [git checkout] execute: git clone --quiet --origin=origin --config=user.name=Melange Build --config=user.email=melange-build@cgr.dev --config=advice.detachedHead=false --branch=v9.18.0 https://github.com/licensee/licensee.git /tmp/tmp.HHFyxg
2025-12-15 07:32:45.24006348 +0000 UTC warning: refs/tags/v9.18.0 1b58c6023dfd83356dab8610fac4e88dfefc38d6 is not a commit!
2025-12-15 07:32:45.257354054 +0000 UTC [git checkout] execute: cd /tmp/tmp.HHFyxg
2025-12-15 07:32:45.257412277 +0000 UTC [git checkout] tar -c . | tar -C "/home/build" -x
2025-12-15 07:32:45.283722326 +0000 UTC [git checkout] execute: cd /home/build
2025-12-15 07:32:45.283767802 +0000 UTC [git checkout] execute: git config --global --add safe.directory /home/build
2025-12-15 07:32:45.285630367 +0000 UTC [git checkout] execute: git fetch --quiet origin  --no-tags +refs/tags/v9.18.0:refs/origin/tags/v9.18.0
2025-12-15 07:32:45.469477286 +0000 UTC [git checkout] execute: git checkout --quiet origin/tags/v9.18.0
2025-12-15 07:32:45.481215156 +0000 UTC [git checkout] tag v9.18.0 is 336495543ee8756eb512a6b4ec6ad763cf890701
2025-12-15 07:32:45.483359954 +0000 UTC [git checkout] execute: git fetch --unshallow origin master:master
2025-12-15 07:32:45.485282224 +0000 UTC fatal: --unshallow on a complete repository does not make sense
2025-12-15 07:32:45.485444056 +0000 UTC [git checkout] failed to fetch branch master
2025-12-15 07:32:45.485455843 +0000 UTC [git checkout] FAIL failed to apply cherry-pick
2025-12-15 07:32:45.485636809 +0000 UTC Failed to run command "/bin/sh -c 'set -e 
[ -d '\''/home/build'\'' ] || mkdir -p '\''/home/build'\''
cd '\''/home/build'\''
#!/bin/sh
set -e
msg() { echo "[git checkout]" "$@"; }
fail() {
	msg FAIL "$@"
	exit 1
}
vr() {
	msg "execute:" "$@"
	"$@"
}
process_cherry_picks() {
	local cpicksf="$1" oifs="$IFS" count=0
	local fetched_branches=""
	local sdate=${SOURCE_DATE_EPOCH:-0}
	if [ "$sdate" -lt 315532800 ]; then
		msg "Setting commit date to Jan 1, 1980 (SOURCE_DATE_EPOCH found ${SOURCE_DATE_EPOCH})"
		sdate=315532800
	fi
	if [ -z "$cpicksf" ]; then
		return 0
	fi
	if [ ! -f "$cpicksf" ]; then
		msg "cherry picks input '\''$cpicksf'\'' is not a file"
		return 1
	fi

	local line="" branch="" hash="" comment=""
	while IFS= read -r line; do

		line=${line%%#*}
		[ -z "$line" ] && continue

		if ! echo "$line" | grep -q '\'':'\''; then
			msg "Invalid format, expected '\''[branch/]commit: comment'\''. Found: $line"
			return 1
		fi

		branch=${line%%:*}
		comment=${line#*:}
		comment=$(
			set -f
			echo $comment
		)

		if [ -z "$comment" ]; then
			msg "Empty comment for cherry-pick: $line"
			return 1
		fi

		hash=${branch##*/}

		[ "$branch" != "$hash" ] && branch=${branch%/*} || branch=""

		if [ -n "$branch" ]; then
			case " $fetched_branches " in
			*" $branch "*) ;;
			*)
				vr git fetch --unshallow origin $branch:$branch || {
					msg "failed to fetch branch $branch"
					return 1
				}
				fetched_branches="$fetched_branches $branch "
				;;
			esac
		fi

		vr env \
			GIT_COMMITTER_DATE="@$sdate" \
			git cherry-pick -x "$hash" || {
			msg "failed to cherry-pick $hash from branch $branch"
			return 1
		}

		msg "Cherry-picked $hash from $branch with comment: $comment"

		count=$((count + 1))
	done <"$cpicksf"

	if [ $count -gt 0 ]; then
		msg "applied $count cherry-pick(s). head is now $(git rev-parse HEAD)"
	fi
}
main() {
	local repo=$1 dest=${2:-.} depth=${3:-"unset"} branch=$4
	local tag=$5 expcommit=$6 recurse=${7:-false}
	local cherry_pick="$8" sparse_paths="$9"
	msg "repo='\''$repo'\'' dest='\''$dest'\'' depth='\''$depth'\'' branch='\''$branch'\''" \
		"tag='\''$tag'\'' expcommit='\''$expcommit'\'' recurse='\''$recurse'\''" \
		"sparse_paths='\''$sparse_paths'\''"

	case "$recurse" in
	true | false) : ;;
	*) fail "recurse must be true or false, not '\''$recurse'\''" ;;
	esac

	[ -n "$repo" ] || fail "repository not provided"

	if [ -z "$branch" ] && [ -z "$tag" ]; then
		msg "Warning: you have not specified a branch or tag."
	elif [ -n "$branch" ] && [ -n "$tag" ]; then
		fail "both branch ($branch) and tag ($tag) are specified."
	fi

	[ -n "$expcommit" ] ||
		msg "Warning: no expected-commit"

	local flags="" depthflag="" dest_fullpath="" workdir=""
	local remote="origin" rcfile="" rc="" quiet="--quiet"
	flags="--config=advice.detachedHead=false"
	[ -n "$branch" ] && flags="$flags --branch=$branch"
	[ -n "$tag" ] && flags="$flags --branch=$tag"
	[ "$recurse" = "true" ] && flags="$flags --recurse-submodules"
	[ -n "$sparse_paths" ] && flags="$flags --sparse --filter=blob:none"

	if [ "$depth" = "unset" ]; then
		depth=1
		if [ -n "$branch" -a -n "$expcommit" ]; then

			depth=-1
		fi
	fi

	[ "$depth" = "-1" ] || depthflag="--depth=$depth"

	workdir=$(mktemp -d)
	rcfile=$(mktemp)
	mkdir -p "$dest"
	dest_fullpath=$(realpath "$dest")

	vr git config --global --add safe.directory "$workdir"
	vr git config --global --add safe.directory "$dest_fullpath"

	vr git clone $quiet "--origin=$remote" \
		"--config=user.name=Melange Build" \
		"--config=user.email=melange-build@cgr.dev" \
		$flags \
		${depthflag:+"$depthflag"} "$repo" "$workdir"

	vr cd "$workdir"

	if [ -n "$sparse_paths" ]; then
		msg "Configuring sparse-checkout with paths: $sparse_paths"
		vr git sparse-checkout set --cone $sparse_paths ||
			fail "failed to configure sparse-checkout --filter=blob:none"
	fi

	msg "tar -c . | tar -C \"$dest_fullpath\" -x"
	(
		tar -c .
		echo $? >"$rcfile"
	) | tar -C "$dest_fullpath" -x --no-same-owner
	read rc <"$rcfile" || fail "failed to read rc file"
	[ $rc -eq 0 ] || fail "tar creation in $workdir failed"

	rm -rf "$workdir"
	vr cd "$dest_fullpath"
	vr git config --global --add safe.directory "$dest_fullpath"

	local foundcommit="" tagobj=""
	if [ -z "$tag" ]; then
		foundcommit=$(git rev-parse --verify HEAD)
		if [ -n "$expcommit" ] && [ "$expcommit" != "$foundcommit" ]; then
			if [ "$depth" = "-1" ]; then
				msg "expected commit $expcommit on ${branch:-HEAD}," \
					"got $foundcommit, performing reset"
				vr git reset --hard "$expcommit"
			else
				fail "expected commit $expcommit on ${branch:-HEAD}," \
					"got $foundcommit, set depth to -1 to attempt a reset"
			fi
		fi
		msg "tip of ${branch:-HEAD} is commit $foundcommit"
		process_cherry_picks "$cherry_pick" || fail "failed to apply cherry-pick"
		return 0
	fi

	vr git fetch $quiet $remote ${depthflag:-"$depthflag"} --no-tags \
		"+refs/tags/$tag:refs/$remote/tags/$tag"
	vr git checkout $quiet "$remote/tags/$tag"

	foundcommit=$(git rev-parse --verify HEAD)
	if [ -z "$expcommit" ] || [ "$expcommit" = "$foundcommit" ]; then
		msg "tag $tag is $foundcommit"
	else

		tagobj=$(git rev-parse --verify --end-of-options \
			"refs/$remote/tags/$tag")
		if [ "$expcommit" != "$tagobj" ]; then
			[ "$tagobj" != "$expcommit" ] &&
				msg "tag object hash was $tagobj"
			fail "Expected commit $expcommit for $tag, found $foundcommit"
		fi

		msg "Warning: The provided expected-commit ($expcommit)"
		msg "was the hash of the annotated tag object for $tag."
		msg "Update to set expected-commit to $foundcommit"
	fi

	process_cherry_picks "$cherry_pick" ||
		fail "failed to apply cherry-pick"

	return 0
}
cpickf=$(mktemp) || {
	echo "failed mktemp"
	exit 1
}
cat >"$cpickf" <<"END_CHERRY_PICKS"
master/b2ac1e62cd5e9228db6c6e70e0871dd04a2f3915: Update octokit requirement from >= 4.20, < 10.0 to >= 4.20, < 11.0

END_CHERRY_PICKS
main \
	"https://github.com/licensee/licensee.git" "." \
	"-1" "" \
	"v9.18.0" "336495543ee8756eb512a6b4ec6ad763cf890701" \
	"false" "$cpickf" \
	""
rm -f "$cpickf"

exit 0'": Process exited with status 1
2025-12-15 07:32:45.485869538 +0000 UTC qemu: sending shutdown signal
2025-12-15 07:32:45.501155289 +0000 UTC failed to build package: unable to run package ruby3.4-licensee pipeline: unable to run pipeline: unable to run pipeline: Process exited with status 1
2025-12-15 07:32:45.52781995 +0000 UTC failed to build: command melange failed: exit status 1
2025-12-15 07:32:45.528055936 +0000 UTC build failed: command melange failed: exit status 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingservice:ftbfsFailed to Build From Source

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions