diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2026-04-28 09:48:57 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2026-05-18 19:12:08 +0200 |
| commit | 54376cfcdb7fb1fa6acffa93b69889034a6136a7 (patch) | |
| tree | 7711c45dfb0c50f6ea744677dcc74d0ef6a97e95 | |
| parent | bb5405a1094df80c5320d113d193a91965d501d2 (diff) | |
gnu: glibc-headers-mesboot: Improve kernel headers fetch.
This is a follow-up to eb504359c76de431c4f88c00a19a1a6c10a3d7f9
and can be merged with it.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
| -rw-r--r-- | gnu/packages/commencement.scm | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm index 8bedce40584..333f828dbaf 100644 --- a/gnu/packages/commencement.scm +++ b/gnu/packages/commencement.scm | |||
| @@ -1604,13 +1604,16 @@ ac_cv_c_float_format='IEEE (little-endian)' | |||
| 1604 | (arguments | 1604 | (arguments |
| 1605 | (substitute-keyword-arguments arguments | 1605 | (substitute-keyword-arguments arguments |
| 1606 | ((#:configure-flags configure-flags) | 1606 | ((#:configure-flags configure-flags) |
| 1607 | #~(let ((ioctl.h (search-input-file %build-inputs | 1607 | #~(let ((kernel-headers |
| 1608 | "/include/asm/ioctl.h"))) | 1608 | (search-input-directory %build-inputs |
| 1609 | #$(if (system-hurd?) | ||
| 1610 | "include/mach" | ||
| 1611 | "include/linux")))) | ||
| 1609 | (list | 1612 | (list |
| 1610 | (string-append "--prefix=" #$output) | 1613 | (string-append "--prefix=" #$output) |
| 1611 | "--disable-obsolete-rpc" | 1614 | "--disable-obsolete-rpc" |
| 1612 | "--host=i686-unknown-linux-gnu" | 1615 | "--host=i686-unknown-linux-gnu" |
| 1613 | (string-append "--with-headers=" (dirname (dirname ioctl.h))) | 1616 | (string-append "--with-headers=" (dirname kernel-headers)) |
| 1614 | "--enable-static-nss" | 1617 | "--enable-static-nss" |
| 1615 | "--with-pthread" | 1618 | "--with-pthread" |
| 1616 | "--without-cvs" | 1619 | "--without-cvs" |
| @@ -1652,10 +1655,13 @@ ac_cv_c_float_format='IEEE (little-endian)' | |||
| 1652 | (substitute* "configure" | 1655 | (substitute* "configure" |
| 1653 | (("/bin/pwd") "pwd"))))) | 1656 | (("/bin/pwd") "pwd"))))) |
| 1654 | (replace 'install | 1657 | (replace 'install |
| 1655 | (lambda* (#:key outputs make-flags #:allow-other-keys) | 1658 | (lambda* (#:key inputs outputs make-flags #:allow-other-keys) |
| 1656 | (let* ((ioctl.h (search-input-file %build-inputs | 1659 | (let* ((kernel-headers |
| 1657 | "/include/asm/ioctl.h")) | 1660 | (search-input-directory inputs |
| 1658 | (kernel-headers (dirname (dirname (dirname ioctl.h))))) | 1661 | #$(if (system-hurd?) |
| 1662 | "include/mach" | ||
| 1663 | "include/linux"))) | ||
| 1664 | (kernel-headers (dirname (dirname kernel-headers)))) | ||
| 1659 | (apply invoke "make" make-flags) | 1665 | (apply invoke "make" make-flags) |
| 1660 | (copy-recursively kernel-headers #$output)))) | 1666 | (copy-recursively kernel-headers #$output)))) |
| 1661 | (add-before 'configure 'remove-bashism | 1667 | (add-before 'configure 'remove-bashism |
