Subject: [bug#38069] [PATCH]: Adjust make-bootstrap linux headers

From: Efraim Flashner <[email-masked]>
Date: Thu, 14 Nov 2019 10:30:12 +0200

On Wed, Nov 13, 2019 at 11:14:29PM +0100, Ludovic Courtès wrote:
> Hello,
> 
> Efraim Flashner <[email-masked]> skribis:
> 
> > I was experimenting with creating bootstrap-tarballs for powerpc-linux
> > and it turns out that 'a.out.h' is no longer in the linux headers.
> 
> It works for me though:
> 
> --8<---------------cut here---------------start------------->8---
> $ guix build -e '(@@ (gnu packages make-bootstrap) %linux-libre-headers-stripped)'
> /gnu/store/bz4g5bh2mkihh1w38qg99phlnl7drfv3-linux-libre-headers-stripped-4.19.56
> $ guix describe
> Generacio 115	Nov 11 2019 21:33:10	(nuna)
>   guix a2161c8
>     repository URL: https://git.savannah.gnu.org/git/guix.git
>     branch: master
>     commit: a2161c861f8c971c5b9e547f1997be4b1d4ba529
> --8<---------------cut here---------------end--------------->8---
> 
> Or is it something you noticed after upgrading ‘linux-libre-headers’?
> 

I can't find the actual package piece to make it happen, but it happens
when building the glibc-stripped:

guix build --no-grafts --no-build-hook bootstrap-tarballs --target=powerpc-linux-gnu
The following derivations will be built:
   /gnu/store/4g4gzgzamm6drrw1vasgpmk1l8i4ysm1-bootstrap-tarballs-0.drv
   /gnu/store/70b1109af993j8gwc4axnjc73w1w9bbh-glibc-stripped-tarball-2.29.drv
   /gnu/store/m37c7qf2ga428f7kx1ingbm2cswmimw6-glibc-stripped-2.29.drv
builder for `/gnu/store/qmdvsqm62181mhgd7h2rjqw0adkqdayz-glibc-stripped-2.29' failed previously (cached)
build of /gnu/store/m37c7qf2ga428f7kx1ingbm2cswmimw6-glibc-stripped-2.29.drv failed
View build log at '/var/log/guix/drvs/m3/7c7qf2ga428f7kx1ingbm2cswmimw6-glibc-stripped-2.29.drv.gz'.
cannot build derivation `/gnu/store/70b1109af993j8gwc4axnjc73w1w9bbh-glibc-stripped-tarball-2.29.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/4g4gzgzamm6drrw1vasgpmk1l8i4ysm1-bootstrap-tarballs-0.drv': 1 dependencies couldn't be built
guix build: error: build of `/gnu/store/4g4gzgzamm6drrw1vasgpmk1l8i4ysm1-bootstrap-tarballs-0.drv' failed

;;; (src "/gnu/store/391glyjmliibp0xi1mq8mq6ad02cgyl1-linux-libre-headers-4.19.56/include/linux/a.out.h")

;;; (dest "/gnu/store/qmdvsqm62181mhgd7h2rjqw0adkqdayz-glibc-stripped-2.29/include/linux")
Backtrace:
           4 (primitive-load "/gnu/store/89bq4a8mbg36gjmqi7b0h0a80yz?")
In ice-9/eval.scm:
   191:35  3 (_ _)
In /gnu/store/q7w7k3mngscbzzdqmj57726radqzagn4-module-import/guix/build/make-bootstrap.scm:
     46:4  2 (copy-linux-headers _ "/gnu/store/391glyjmliibp0xi1mq8m?")
In srfi/srfi-1.scm:
    640:9  1 (for-each #<procedure 7fffef04f840 at /gnu/store/q7w7k?> ?)
In unknown file:
           0 (copy-file "/gnu/store/391glyjmliibp0xi1mq8mq6ad02cgyl?" ?)

ERROR: In procedure copy-file:
In procedure copy-file: No such file or directory

-- 
Efraim Flashner   <[email-masked]>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted