~ruther/guix-local

371a20e04870cd98af053dc54e68d22770f136ce — Ludovic Courtès 13 years ago 5ab57a1
distro: Add missing Linux-Libre headers to the bootstrap glibc.

* distro/packages/base.scm (%glibc-stripped): Copy all of Linux-Libre's
  `include/asm' directory; copy a few linux/ headers too.
  (%bootstrap-glibc): Update tarball hash.
1 files changed, 5 insertions(+), 10 deletions(-)

M distro/packages/base.scm
M distro/packages/base.scm => distro/packages/base.scm +5 -10
@@ 1558,7 1558,7 @@ check whether everything is alright."
                                           system "/glibc-2.16.0.tar.xz"))
                       (sha256
                        (base32
                         "1xamrl1d6y3b0l98gmih4ac8aiqnfps1rhb62z0wxr7chisiqwan"))))))))
                         "1a6sq876l8x16bi6p0jznhb20kghbvxbp1amsyqp1907by9fg0hn"))))))))
    (description "Bootstrap binaries and headers of the GNU C Library")
    (long-description #f)
    (home-page #f)))


@@ 2374,16 2374,11 @@ store.")
                                  (string-append incdir "/linux/"
                                                 (basename file))))
                     '("limits.h" "errno.h" "socket.h" "kernel.h"
                       "sysctl.h" "param.h"))

           (mkdir (string-append incdir "/asm"))
           (for-each (lambda (file)
                       (copy-file (string-append linux "/include/asm/" file)
                                  (string-append incdir "/asm/"
                                                 (basename file))))
                     '("types.h" "unistd.h" "ioctls.h" "socket.h"
                       "param.h" "errno.h"))
                       "sysctl.h" "param.h" "ioctl.h" "types.h"
                       "posix_types.h" "stddef.h"))

           (copy-recursively (string-append linux "/include/asm")
                             (string-append incdir "/asm"))
           (copy-recursively (string-append linux "/include/asm-generic")
                             (string-append incdir "/asm-generic"))
           #t))))