[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
32/51: gnu: netdde: Support the 64bit Hurd.
From: |
guix-commits |
Subject: |
32/51: gnu: netdde: Support the 64bit Hurd. |
Date: |
Mon, 18 Nov 2024 18:13:24 -0500 (EST) |
janneke pushed a commit to branch hurd-team
in repository guix.
commit bc8e0228b73cba452ebf9e16bf9ed1a2c269d461
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Thu Nov 7 21:41:57 2024 +0100
gnu: netdde: Support the 64bit Hurd.
* gnu/packages/patches/netdde-csum.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.
* gnu/packages/hurd.scm (netdde)[source]: Use it.
[arguments]: Do not assume x86, rather use actual ARCH in #:make-flags, and
follow upstream's "amd64" symlinking voodoo.
Change-Id: Ie825e56779dae2f489066569dc3c4405bac778c1
---
gnu/local.mk | 1 +
gnu/packages/hurd.scm | 19 ++++++++++++++++++-
gnu/packages/patches/netdde-csum.patch | 18 ++++++++++++++++++
3 files changed, 37 insertions(+), 1 deletion(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index df59b34eb8..fb89799775 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1825,6 +1825,7 @@ dist_patch_DATA =
\
%D%/packages/patches/ncftp-reproducible.patch \
%D%/packages/patches/netcdf-date-time.patch \
%D%/packages/patches/netdde-build-fix.patch \
+ %D%/packages/patches/netdde-csum.patch \
%D%/packages/patches/netpbm-CVE-2017-2586.patch \
%D%/packages/patches/netpbm-CVE-2017-2587.patch \
%D%/packages/patches/netsurf-message-timestamp.patch \
diff --git a/gnu/packages/hurd.scm b/gnu/packages/hurd.scm
index 2c231425aa..defa3f2689 100644
--- a/gnu/packages/hurd.scm
+++ b/gnu/packages/hurd.scm
@@ -579,7 +579,8 @@ implementing them.")
(uri (git-reference
(url
"https://git.savannah.gnu.org/git/hurd/incubator.git")
(commit commit)))
- (patches (list (search-patch "netdde-build-fix.patch")))
+ (patches (search-patches "netdde-build-fix.patch"
+ "netdde-csum.patch"))
(sha256
(base32
"070fpmd4nvn3mp8dj9w4if63iwz7j2m0h6ywq888znw70wlrc6sh"))
@@ -599,6 +600,13 @@ implementing them.")
" -Wno-int-conversion"
" -Wno-strict-prototypes")
"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
@@ -616,6 +624,15 @@ 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"
(delete "PKGDIR=libdde_linux26" make-flags)))))
diff --git a/gnu/packages/patches/netdde-csum.patch
b/gnu/packages/patches/netdde-csum.patch
new file mode 100644
index 0000000000..4fdd004898
--- /dev/null
+++ b/gnu/packages/patches/netdde-csum.patch
@@ -0,0 +1,18 @@
+Upstream-status: Taken from debian.
+
+<https://salsa.debian.org/hurd-team/netdde/raw/master/debian/patches/csum>.
+
+---
+ linux/drivers/net/vmxnet3/vmxnet3_drv.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/linux/drivers/net/vmxnet3/vmxnet3_drv.c
++++ b/linux/drivers/net/vmxnet3/vmxnet3_drv.c
+@@ -25,6 +25,7 @@
+ */
+
+ #include "vmxnet3_int.h"
++#include <net/ip6_checksum.h>
+
+ char vmxnet3_driver_name[] = "vmxnet3";
+ #define VMXNET3_DRIVER_DESC "VMware vmxnet3 virtual NIC driver"
- 46/51: gnu: guile-lzlib: Support the 64bit Hurd., (continued)
- 46/51: gnu: guile-lzlib: Support the 64bit Hurd., guix-commits, 2024/11/18
- 38/51: gnu: guile-fibers: Fix build for the 64bit Hurd., guix-commits, 2024/11/18
- 09/51: gnu: patch: Fix build for the 64bit Hurd., guix-commits, 2024/11/18
- 13/51: gnu: bash: Avoid hang when cross-built for the Hurd., guix-commits, 2024/11/18
- 15/51: gnu: flex: Fix [cross-]build with gcc-14., guix-commits, 2024/11/18
- 17/51: gnu: perl: Support [cross-]building with gcc-14 and for 64bit Hurd., guix-commits, 2024/11/18
- 22/51: gnu: libssh: Fix [cross-]build with gcc-14 for 32bit., guix-commits, 2024/11/18
- 23/51: gnu: cross-base: Update %xgcc to gcc-14, to support the 64bit Hurd., guix-commits, 2024/11/18
- 24/51: gnu: make-bootstrap: Update gcc-static to gcc-14, for the 64bit Hurd., guix-commits, 2024/11/18
- 25/51: DRAFT gnu: bootstrap: Add support for x86_64-gnu, aka the 64bit Hurd., guix-commits, 2024/11/18
- 32/51: gnu: netdde: Support the 64bit Hurd.,
guix-commits <=
- 34/51: gnu: rumpkernel: Support the 64bit Hurd., guix-commits, 2024/11/18
- 45/51: gnu: Add gdb-15.2, with support for the 64bit Hurd., guix-commits, 2024/11/18
- 51/51: gnu: Use gcc-14, gcc-toolchain-14 on the 64bit Hurd., guix-commits, 2024/11/18
- 48/51: gnu: findutils: Disable tests on the 64bit Hurd., guix-commits, 2024/11/18
- 26/51: system: image: Add hurd64 image types., guix-commits, 2024/11/18
- 28/51: gnu: openssl-3.0: Support the 64bit Hurd., guix-commits, 2024/11/18
- 30/51: gnu: libpciaccess: Support the 64bit Hurd., guix-commits, 2024/11/18
- 19/51: gnu: hurd: Fix build with gcc-14., guix-commits, 2024/11/18
- 18/51: gnu: texinfo-4: Fix [cross-]build with gcc-14 and the 64bit Hurd., guix-commits, 2024/11/18
- 20/51: gnu: netdde: Fix build with gcc-14., guix-commits, 2024/11/18