[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
25/85: gnu: netdde: Resurrect and update to 2.6.32.65-2-e67c284ac1.
From: |
guix-commits |
Subject: |
25/85: gnu: netdde: Resurrect and update to 2.6.32.65-2-e67c284ac1. |
Date: |
Thu, 15 Jun 2023 02:32:38 -0400 (EDT) |
janneke pushed a commit to branch hurd-team
in repository guix.
commit edfc407dc7846d9c9cff6f95bd174c79bb1593d1
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Thu May 25 07:25:26 2023 +0200
gnu: netdde: Resurrect and update to 2.6.32.65-2-e67c284ac1.
* gnu/packages/patches/netdde-build-fix.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/hurd.scm (netdde)[source]: Update to
e67c284ac113d939b10b4578334f27dab29d5b08 and use it.
[inputs]: Add zlib:static.
[arguments]: Remove #true from build phases. In 'build' phase, remove
obsolete CFLAGS, and also build static version. In 'install' phase,
install them in <out>/hurd.
---
gnu/local.mk | 1 +
gnu/packages/hurd.scm | 31 +++++++++++++++--------------
gnu/packages/patches/netdde-build-fix.patch | 28 ++++++++++++++++++++++++++
3 files changed, 45 insertions(+), 15 deletions(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index d38c5dfea8..bb510111f0 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1613,6 +1613,7 @@ dist_patch_DATA =
\
%D%/packages/patches/ncompress-fix-softlinks.patch \
%D%/packages/patches/ncftp-reproducible.patch \
%D%/packages/patches/netcdf-date-time.patch \
+ %D%/packages/patches/netdde-build-fix.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 4fe68740fb..4a1de924ac 100644
--- a/gnu/packages/hurd.scm
+++ b/gnu/packages/hurd.scm
@@ -559,8 +559,8 @@ implementing them.")
(license gpl2+)))
(define-public netdde
- (let ((commit "4a1016f130b6f2065d3f088325e5fb0b2997ae12")
- (revision "1"))
+ (let ((commit "e67c284ac113d939b10b4578334f27dab29d5b08")
+ (revision "2"))
(package
(name "netdde")
;; The version prefix corresponds to the version of Linux from which the
@@ -571,9 +571,10 @@ 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")))
(sha256
(base32
- "1njv9dszq4lj05yq4v9j5v247hfghpzvvz4hzy0khjjr35mw7hr8"))
+ "0vnkls7sr7srzib5mnw6gybzl5qa8c5a4zf3h08w6gdr7zqbndh0"))
(file-name (git-file-name name commit))))
(build-system gnu-build-system)
(arguments
@@ -582,8 +583,7 @@ implementing them.")
(search-input-file %build-inputs "/bin/bash"))
"PKGDIR=libdde_linux26"
,@(if (%current-target-system)
- (list "CC=i586-pc-gnu-gcc"
- "LINK_PROGRAM=i586-pc-gnu-gcc")
+ (list "CC=i586-pc-gnu-gcc")
(list "CC=gcc")))
#:configure-flags
,#~(list (string-append "LDFLAGS=-Wl,-rpath=" #$output "/lib"))
@@ -600,8 +600,7 @@ implementing them.")
(string-append dde "/" dir ) dir))
'("libdde_linux26" "libddekit")))
(substitute* "libdde_linux26/mk/rel2abs.sh"
- (("/bin/bash") (which "bash")))
- #t))
+ (("/bin/bash") (which "bash")))))
(add-after 'patch-generated-file-shebangs 'build-libdde-linux26
(lambda* (#:key make-flags #:allow-other-keys)
(with-directory-excursion "libdde_linux26"
@@ -612,17 +611,19 @@ implementing them.")
(apply invoke "make" "convert" make-flags)))
(replace 'build
(lambda* (#:key make-flags #:allow-other-keys)
- ;; no-common can be dropped with GCC 10+ where this is the
- ;; default.
- (apply invoke "make" "CFLAGS=-fno-common" make-flags)))
+ (apply invoke "make" "LINK_PROGRAM='$(CC)'" make-flags)
+ ;; This hack to build netdde.static was found in
+ ;;
https://salsa.debian.org/hurd-team/netdde/-/blob/b539b2ad7a171371f140c3da58cce33f1a91ac12/debian/rules
+ (delete-file "Makefile.inc")
+ (apply invoke "make" "LINK_PROGRAM='$(CC)' -static"
+ "TARGET=netdde.static" make-flags)))
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
- (install-file "netdde"
- (string-append (assoc-ref outputs "out")
- "/bin"))
- #t)))))
+ (let ((hurd (string-append (assoc-ref outputs "out") "/hurd")))
+ (install-file "netdde" hurd)
+ (install-file "netdde.static" hurd)))))))
(inputs
- (list hurd libpciaccess-0.17 zlib))
+ (list hurd libpciaccess-0.17 zlib `(,zlib "static")))
(native-inputs
`(("coreutils" ,coreutils)
("gawk" ,gawk)
diff --git a/gnu/packages/patches/netdde-build-fix.patch
b/gnu/packages/patches/netdde-build-fix.patch
new file mode 100644
index 0000000000..f7f0fc35a9
--- /dev/null
+++ b/gnu/packages/patches/netdde-build-fix.patch
@@ -0,0 +1,28 @@
+Upstream status: Presented upstream.
+
+ https://lists.gnu.org/archive/html/bug-hurd/2023-05//msg00449.html
+
+From b0a7e4f2706bea8d1c80d5af7a095941f9635033 Mon Sep 17 00:00:00 2001
+From: Janneke Nieuwenhuizen <janneke@gnu.org>
+Date: Fri, 26 May 2023 17:39:17 +0200
+Subject: [PATCH] Update for .../rumpdisk: Fix race condition in bootstrap
+
+---
+ machdev.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/machdev.c b/machdev.c
+index dda5eb8ba..1a6811072 100644
+--- a/machdev.c
++++ b/machdev.c
+@@ -18,5 +18,6 @@ void machdev_run1 (void *arg)
+
+ void machdev_run2(void)
+ {
+- machdev_trivfs_server(bootstrap);
++ machdev_trivfs_server_startup(bootstrap);
++ machdev_trivfs_server_loop(NULL);
+ }
+--
+2.40.1
+
- 06/85: squash! gnu: Add libc-for-target and glibc/hurd., (continued)
- 06/85: squash! gnu: Add libc-for-target and glibc/hurd., guix-commits, 2023/06/15
- 09/85: gnu: Add libc-locales-for-target and glibc-locales/hurd., guix-commits, 2023/06/15
- 07/85: squash! gnu: Add libc-for-target and glibc/hurd., guix-commits, 2023/06/15
- 08/85: gnu: gnumach: Update to 1.8+git20221224., guix-commits, 2023/06/15
- 11/85: squash! gnu: mig: Update to 04bfe7a91223ba15d868f7165e49328b1c6e86c3., guix-commits, 2023/06/15
- 13/85: Revert "hurd-boot: Add urandom and default-pager translators.", guix-commits, 2023/06/15
- 24/85: gnu: gnumach: Support "noide" argument., guix-commits, 2023/06/15
- 27/85: system: hurd: Add netdde to %base-packages/hurd., guix-commits, 2023/06/15
- 28/85: services: static-networking: Support netdde for the Hurd., guix-commits, 2023/06/15
- 29/85: gnu: gnumach: Disable builtin networking., guix-commits, 2023/06/15
- 25/85: gnu: netdde: Resurrect and update to 2.6.32.65-2-e67c284ac1.,
guix-commits <=
- 02/85: gnu: glibc/hurd-headers: Properly cross-build., guix-commits, 2023/06/15
- 10/85: gnu: mig: Update to 04bfe7a91223ba15d868f7165e49328b1c6e86c3., guix-commits, 2023/06/15
- 19/85: gnu: hurd: Add rumpkernel., guix-commits, 2023/06/15
- 22/85: system: hurd: Boot with pci.arbiter and rumpdisk., guix-commits, 2023/06/15
- 23/85: bootloader: grub: Use rumpdisk-style root when booting with "noide"., guix-commits, 2023/06/15
- 30/85: gnu: commencement: Add autoconf-boot0., guix-commits, 2023/06/15
- 26/85: hurd-boot: Cater for netdde., guix-commits, 2023/06/15
- 33/85: gnu: commencement: mig-boot0: Update to 1.8+git20230520., guix-commits, 2023/06/15
- 38/85: gnu: coreutils: Skip hanging and failing test for the Hurd., guix-commits, 2023/06/15
- 44/85: gnu: m4: Skip gnulib stack-overflow tests for the Hurd., guix-commits, 2023/06/15