[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/11: gnu: netdde: Update to c0ef248d and cater for the 64bit Hurd.
From: |
guix-commits |
Subject: |
04/11: gnu: netdde: Update to c0ef248d and cater for the 64bit Hurd. |
Date: |
Fri, 8 Nov 2024 09:02:34 -0500 (EST) |
janneke pushed a commit to branch hurd-team
in repository guix.
commit 9e730fb431a838a9e0cc1f45f76b7fd4a920b691
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Thu Nov 7 21:41:57 2024 +0100
gnu: netdde: Update to c0ef248d and cater for the 64bit Hurd.
* gnu/packages/hurd.scm (netdde): Update to
c0ef248dc7c5ccc1273e2a796f3ece30c5b645df.
[arguments]: Do not assume x86, rather use actual ARCH in #:make-flags
and follow upstream's "amd64" symlinking voodoo.
(dde-sources): Update to b6c8526c703f3ba76294d9002f195c63897ec661.
Change-Id: Id03f5c5124f16e9ffd6a77cbb2507d274e0f325a
---
gnu/packages/hurd.scm | 29 +++++++++++++++++++++++------
1 file changed, 23 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/hurd.scm b/gnu/packages/hurd.scm
index 990499ecdd..13c213957f 100644
--- a/gnu/packages/hurd.scm
+++ b/gnu/packages/hurd.scm
@@ -293,7 +293,7 @@ Hurd-minimal package which are needed for both glibc and
GCC.")
(define dde-sources
;; This is the current tip of the dde branch
- (let ((commit "066797b576ebf8364ad157f50bef2a655597deeb"))
+ (let ((commit "b6c8526c703f3ba76294d9002f195c63897ec661"))
(origin
(method git-fetch)
(uri (git-reference
@@ -301,7 +301,7 @@ Hurd-minimal package which are needed for both glibc and
GCC.")
(commit commit)))
(sha256
(base32
- "19f2awlfnar5gyhi0w5zawla5brzck2s88iv0f20022pd1l5v9hl"))
+ "0k1ilj8ghli8x43xaksbc4y419pqh0w16k374914c07svq419bbr"))
(file-name (git-file-name "dde" (string-take commit 7))))))
(define %import-from-dde
@@ -554,8 +554,8 @@ implementing them.")
(license gpl2+)))
(define-public netdde
- (let ((commit "e67c284ac113d939b10b4578334f27dab29d5b08")
- (revision "2"))
+ (let ((commit "c0ef248dc7c5ccc1273e2a796f3ece30c5b645df")
+ (revision "3"))
(package
(name "netdde")
;; The version prefix corresponds to the version of Linux from which the
@@ -569,7 +569,7 @@ implementing them.")
(patches (list (search-patch "netdde-build-fix.patch")))
(sha256
(base32
- "0vnkls7sr7srzib5mnw6gybzl5qa8c5a4zf3h08w6gdr7zqbndh0"))
+ "070fpmd4nvn3mp8dj9w4if63iwz7j2m0h6ywq888znw70wlrc6sh"))
(file-name (git-file-name name commit))))
(build-system gnu-build-system)
(arguments
@@ -579,7 +579,13 @@ implementing them.")
(search-input-file %build-inputs "/bin/bash"))
"PKGDIR=libdde_linux26"
(string-append "CC=" ,(cc-for-target))
- "ARCH=x86")
+ (let ((arch ,(match (or (%current-target-system)
+ (%current-system))
+ ((? target-x86-32?)
+ "x86")
+ ((? target-x86-64?)
+ "amd64"))))
+ (string-append "ARCH=" arch)))
#:configure-flags
,#~(list (string-append "LDFLAGS=-Wl,-rpath=" #$output "/lib"))
#:phases
@@ -597,8 +603,19 @@ implementing them.")
(("/bin/bash") (which "bash")))))
(add-after 'patch-generated-file-shebangs 'build-libdde-linux26
(lambda* (#:key make-flags #:allow-other-keys)
+ (when ,(target-hurd64?)
+ (let ((dir "libdde_linux26/build/include"))
+ (mkdir-p (string-append dir "/x86"))
+ (format #t "symlink ~a -> ~a\n"
+ (string-append dir "/x86/amd64") "x86")
+ (symlink "x86" (string-append dir "/amd64"))
+ (format #t "symlink ~a -> ~a\n"
+ (string-append dir "/amd64/asm-x86_64") "asm-x86")
+ (symlink "asm-x86" (string-append dir
"/amd64/asm-x86_64"))))
(with-directory-excursion "libdde_linux26"
(apply invoke "make"
+ (string-append "CFLAGS=-Wno-strict-prototypes"
+ " -Wno-int-conversion")
(delete "PKGDIR=libdde_linux26" make-flags)))))
(add-after 'build-libdde-linux26 'convert
(lambda* (#:key make-flags #:allow-other-keys)
- branch hurd-team updated (66bfcfc1fa -> 2c78b8ca28), guix-commits, 2024/11/08
- 03/11: Revert "gnu: rumpkernel: Update to f1ffd6405f225336e595a0f99f01095ed7438337.", guix-commits, 2024/11/08
- 09/11: gnu: inetutils: Fix build for the 64bit Hurd., guix-commits, 2024/11/08
- 06/11: gnu: hurd: Build fixes for the 64bit Hurd., guix-commits, 2024/11/08
- 07/11: gnu: git-minimal: Fix build for the 64bit Hurd., guix-commits, 2024/11/08
- 02/11: gnu: rumpkernel: Update to f1ffd6405f225336e595a0f99f01095ed7438337., guix-commits, 2024/11/08
- 05/11: gnu: hurd: Disable rumpkernel for the 64bit Hurd., guix-commits, 2024/11/08
- 08/11: gnu: git-minimal: Support the 64bit Hurd., guix-commits, 2024/11/08
- 04/11: gnu: netdde: Update to c0ef248d and cater for the 64bit Hurd.,
guix-commits <=
- 01/11: squash! gnu: libpciaccess: Support the 64bit Hurd., guix-commits, 2024/11/08
- 10/11: gnu: grub: Fix build for the 64bit Hurd., guix-commits, 2024/11/08
- 11/11: gnu: guile-fibers: Fix build for the 64bit Hurd., guix-commits, 2024/11/08