Subject: ISO image installer test fails
From: Leo Famulari <[email-masked]>
To: Efraim Flashner <[email-masked]>
Cc: [email-masked]
Date: Mon, 8 Feb 2021 23:04:48 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

On Sun, Feb 07, 2021 at 02:47:30PM -0500, [email-masked] wrote:
> commit 589b6be99634d0c42cf25e1599b2f62b0d8e89f7
> Author: Efraim Flashner <[email-masked]>
> AuthorDate: Sun Feb 7 21:47:01 2021 +0200
> 
>     gnu: xorriso: Update to 1.5.4.pl02.
>     
>     * gnu/packages/cdrom.scm (xorriso): Update to 1.5.4.pl02.

I think this update broke the system test 'iso-image-installer'.

Specifically, the derivation
/gnu/store/kkk47s7kba3w8dw8qx3h07r98q1j760z-image.iso.drv fails like
this, unless I revert the commit:

------
$ make check-system TESTS=iso-image-installer
[...]
frontend/grub-mkrescue-sed.sh manipulating xorriso arguments

frontend/grub-mkrescue-sed.sh mode:  mbr_only

Performing actions for MKRESCUE_SED_IN_EFI_NO_PT=yes
64+0 records in
64+0 records out
64 bytes copied, 0.000127741 s, 501 kB/s

GNU xorriso 1.5.4.pl02 : RockRidge filesystem manipulator, libburnia project.

xorriso : NOTE : Environment variable SOURCE_DATE_EPOCH encountered with value 315532800
Drive current: -outdev 'stdio:/gnu/store/6cyag2gynzr98p37nn8dnvk09rcswvir-image.iso'
Media current: stdio file, overwriteable
Media status : is blank
Media summary: 0 sessions, 0 data blocks, 0 data, 5303m free
Added to ISO image: directory '/'='/tmp/guix-build-image.iso.drv-0/grub.wwMqSK'
xorriso : UPDATE :     568 files added in 1 seconds
Added to ISO image: file '/boot/grub/grub.cfg'='/gnu/store/pnbsq6i9vsqwgl13xbwf6yjsspl43xz0-grub.cfg'
xorriso : UPDATE :   35400 files added in 1 seconds
xorriso : UPDATE :   67600 files added in 2 seconds
Added to ISO image: directory '/'='/tmp/guix-build-image.iso.drv-0/tmp-root'
xorriso : UPDATE :   94898 files added in 3 seconds
xorriso : NOTE : Copying to System Area: 512 bytes from file '/gnu/store/i5s0kz9z7y70z69v540wy9jrpyi00l9n-grub-hybrid-2.04/lib/grub/i386-pc/boot_hybrid.img'
xorriso : UPDATE :  0.66% done
libisofs: WARNING : Calculated and written ECMA-119 tree end differ: 19978 <> 19946
xorriso : UPDATE :  14.43% done
xorriso : UPDATE :  25.41% done
xorriso : UPDATE :  25.84% done, estimate finish Tue Feb 09 00:13:05 2021
xorriso : UPDATE :  28.27% done, estimate finish Tue Feb 09 00:13:08 2021
xorriso : UPDATE :  29.55% done, estimate finish Tue Feb 09 00:13:11 2021
xorriso : UPDATE :  30.01% done, estimate finish Tue Feb 09 00:13:14 2021
xorriso : UPDATE :  33.56% done, estimate finish Tue Feb 09 00:13:15 2021
xorriso : UPDATE :  53.17% done, estimate finish Tue Feb 09 00:13:09 2021
xorriso : UPDATE :  56.79% done, estimate finish Tue Feb 09 00:13:10 2021
xorriso : UPDATE :  57.55% done, estimate finish Tue Feb 09 00:13:12 2021
xorriso : UPDATE :  78.21% done, estimate finish Tue Feb 09 00:13:08 2021
xorriso : UPDATE :  87.21% done, estimate finish Tue Feb 09 00:13:08 2021
xorriso : UPDATE :  94.14% done
xorriso : UPDATE :  98.67% done
xorriso : UPDATE :  98.85% done
libisofs: FATAL : Image is most likely damaged. Calculated/written tree end address mismatch.
libisofs: FATAL : Image is most likely damaged. Calculated/written image end address mismatch.
libburn : FAILURE : Premature end of input encountered. Missing: 65536 bytes
xorriso : FATAL : -abort_on 'FAILURE' encountered 'FATAL' during image writing
xorriso : NOTE : libburn has now been urged to cancel its operation
xorriso : FAILURE : libburn indicates failure with writing.
xorriso : NOTE : -return_with SORRY 32 triggered by problem severity FATAL
/gnu/store/i5s0kz9z7y70z69v540wy9jrpyi00l9n-grub-hybrid-2.04/bin/grub-mkrescue: error: `xorriso` invocation failed
.
Backtrace:
           1 (primitive-load "/gnu/store/f30hdchs3nr64wvvdn1jv90hjly?")
In ./guix/build/utils.scm:
    654:6  0 (invoke _ . _)

./guix/build/utils.scm:654:6: In procedure invoke:
ERROR:
  1. &invoke-error:
      program: "/gnu/store/i5s0kz9z7y70z69v540wy9jrpyi00l9n-grub-hybrid-2.04/bin/grub-mkrescue"
      arguments: ("--xorriso=/tmp/guix-build-image.iso.drv-0/grub-mkrescue-sed.sh" "-o" "/gnu/store/6cyag2gynzr98p37nn8dnvk09rcswvir-image.iso" "boot/grub/grub.cfg=/gnu/store/pnbsq6i9vsqwgl13xbwf6yjsspl43xz0-grub.cfg" "tmp-root" "--" "-volume_date" "all_file_dates" "=1" "-volid" "GUIX_IMAGE" "-volume_date" "uuid" "1970010119355483")
      exit-status: 1
      term-signal: #f
      stop-signal: #f
environment variable `PATH' set to `/gnu/store/600z6r2nd2g9iybs9l1i4b1ggq2jgh9d-parted-3.3/sbin:/gnu/store/swwd2i26pqx1jyfg81lrnrw1hq7adn05-e2fsprogs-1.45.6/bin:/gnu/store/swwd2i26pqx1jyfg81lrnrw1hq7adn05-e2fsprogs-1.45.6/sbin:/gnu/store/pgz9ln53daab5fi944q2ih24jbs699ll-dosfstools-4.1/sbin:/gnu/store/79byn3w7m02rg0npr4bv3ja030wdgxdr-xorriso-1.5.4.pl02/bin:/gnu/store/hzx0iyg1a637zywcbhv3l9lk9fkyihgs-sed-4.8/bin:/gnu/store/yhqc5imq7sn2sf9f48dj4gk12y4kw4s4-grep-3.4/bin:/gnu/store/n8awazyldv9hbzb7pjcw76hiifmvrpvd-coreutils-8.32/bin:/gnu/store/jyxv85scwbplisx6xrwfr94k70m1ynhn-findutils-4.7.0/bin:/gnu/store/alfmgg03i759f8ppzkbbad82lbdpv22h-gawk-5.0.1/bin'
note: keeping build directory `/tmp/guix-build-image.iso.drv-0'
builder for `/gnu/store/kkk47s7kba3w8dw8qx3h07r98q1j760z-image.iso.drv' failed with exit code 1
build of /gnu/store/kkk47s7kba3w8dw8qx3h07r98q1j760z-image.iso.drv failed
View build log at '/var/log/guix/drvs/kk/k47s7kba3w8dw8qx3h07r98q1j760z-image.iso.drv.bz2'.
cannot build derivation `/gnu/store/n0780yqkv6aclssf2a58x7qppl0jwn9s-installation.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/53a7021c3yz7lg6fjgayz741g1zg2myp-iso-image-installer.drv': 1 dependencies couldn't be built
guix build: error: build of `/gnu/store/53a7021c3yz7lg6fjgayz741g1zg2myp-iso-image-installer.drv' failed
make: *** [Makefile:6221: check-system] Error 1
------