[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
45/47: gnu: inetutils: Fix build for the 64bit Hurd.
From: |
guix-commits |
Subject: |
45/47: gnu: inetutils: Fix build for the 64bit Hurd. |
Date: |
Sat, 9 Nov 2024 09:37:56 -0500 (EST) |
janneke pushed a commit to branch hurd-team
in repository guix.
commit f063fb41f0636f26179d4dd9262262270c947809
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Fri Nov 8 11:15:12 2024 +0100
gnu: inetutils: Fix build for the 64bit Hurd.
* gnu/packages/patches/inetutils-hurd64.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.
* gnu/packages/admin.scm (inetutils)[arguments]: When building for the 64bit
Hurd, use it in new "apply-hurd64-patch" stage.
Change-Id: I780f6a92418b49e5fe0d23eb1c90e155216f1428
---
gnu/local.mk | 1 +
gnu/packages/admin.scm | 14 ++++++-
gnu/packages/patches/inetutils-hurd64.patch | 65 +++++++++++++++++++++++++++++
3 files changed, 78 insertions(+), 2 deletions(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index fd6c67e3a5..209f68859e 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1567,6 +1567,7 @@ dist_patch_DATA =
\
%D%/packages/patches/ilmbase-fix-tests.patch \
%D%/packages/patches/instead-use-games-path.patch \
%D%/packages/patches/intltool-perl-compatibility.patch \
+ %D%/packages/patches/inetutils-hurd64.patch \
%D%/packages/patches/irrlicht-use-system-libs.patch \
%D%/packages/patches/irrlicht-link-against-needed-libs.patch \
%D%/packages/patches/isl-0.11.1-aarch64-support.patch \
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index db9aea31a5..f0dde60d6a 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -31,7 +31,7 @@
;;; Copyright © 2019, 2021, 2022 Guillaume Le Vaillant <glv@posteo.net>
;;; Copyright © 2019, 2020, 2021 Mathieu Othacehe <m.othacehe@gmail.com>
;;; Copyright © 2020 Oleg Pykhalov <go.wigust@gmail.com>
-;;; Copyright © 2020, 2023 Janneke Nieuwenhuizen <janneke@gnu.org>
+;;; Copyright © 2020, 2023, 2024 Janneke Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2020, 2021, 2022 Michael Rohleder <mike@rohleder.de>
;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
;;; Copyright © 2020 Morgan Smith <Morgan.J.Smith@outlook.com>
@@ -1000,7 +1000,17 @@ re-executing them as necessary.")
"\\\""))
;; On some systems, 'libls.sh' may fail with an error such as:
;; "Failed to tell switch -a apart from -A".
- #:parallel-tests? #f))
+ #:parallel-tests? #f
+ #:phases (if (target-hurd64?)
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'apply-hurd64-patch
+ (lambda _
+ (let ((patch
+ #$(local-file
+ (search-patch
+ "inetutils-hurd64.patch"))))
+ (invoke "patch" "--force" "-p1" "-i" patch)))))
+ #~%standard-phases)))
(inputs
(list coreutils
shadow ;for login (used in telnetd and rlogind)
diff --git a/gnu/packages/patches/inetutils-hurd64.patch
b/gnu/packages/patches/inetutils-hurd64.patch
new file mode 100644
index 0000000000..3fb238bcdc
--- /dev/null
+++ b/gnu/packages/patches/inetutils-hurd64.patch
@@ -0,0 +1,65 @@
+Upstream-status: Not presented upstream.
+
+From 0804e655a7abfd22dc3a053f03fab8f811405f84 Mon Sep 17 00:00:00 2001
+From: Janneke Nieuwenhuizen <janneke@gnu.org>
+Date: Fri, 8 Nov 2024 11:07:56 +0100
+Subject: [PATCH] ifconfig hurd: Build fix for the 64bit HUrd.
+Content-Transfer-Encoding: 8bit
+Content-Type: text/plain; charset=UTF-8
+
+* ifconfig/system/hurd.c (check_driving): Use mach_msg_type_number_t
+instead of size_t for file_get_fs_options.
+---
+ ifconfig/system/hurd.c | 12 +++++++-----
+ 1 file changed, 7 insertions(+), 5 deletions(-)
+
+diff --git a/ifconfig/system/hurd.c b/ifconfig/system/hurd.c
+index 70b2ed27..86fe6375 100644
+--- a/ifconfig/system/hurd.c
++++ b/ifconfig/system/hurd.c
+@@ -47,7 +47,7 @@ check_driving (const char *name)
+ error_t err;
+
+ char *argz = 0, *new_argz = 0;
+- size_t argz_len = 0;
++ mach_msg_type_number_t argz_len = 0;
+ char *entry = 0;
+ const char *socket = _SERVERS_SOCKET "/2";
+
+@@ -106,7 +106,9 @@ check_driving (const char *name)
+ new_argz = malloc (argz_len);
+ memcpy (new_argz, argz, argz_len);
+
+- err = argz_insert (&new_argz, &argz_len, new_argz, name);
++ size_t new_argz_len = 0;
++
++ err = argz_insert (&new_argz, &new_argz_len, new_argz, name);
+ if (err)
+ {
+ error (0, err, "Could not prepend name %s to '%s' for %s", name,
+@@ -114,7 +116,7 @@ check_driving (const char *name)
+ goto out;
+ }
+
+- err = argz_insert (&new_argz, &argz_len, new_argz, "-i");
++ err = argz_insert (&new_argz, &new_argz_len, new_argz, "-i");
+ if (err)
+ {
+ argz_stringify (new_argz, argz_len, ' ');
+@@ -122,10 +124,10 @@ check_driving (const char *name)
+ goto out;
+ }
+
+- err = fsys_set_options (fsys, new_argz, argz_len, 1);
++ err = fsys_set_options (fsys, new_argz, new_argz_len, 1);
+ if (err)
+ {
+- argz_stringify (new_argz, argz_len, ' ');
++ argz_stringify (new_argz, new_argz_len, ' ');
+ error (0, err, "Could not make pfinet %s drive %s with '%s'", socket,
+ name, new_argz);
+ goto out;
+--
+Janneke Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond https://LilyPond.org
+Freelance IT https://www.JoyOfSource.com | Avatar® https://AvatarAcademy.com
+
- 18/47: installer: Support dry-run from Guile via store., (continued)
- 18/47: installer: Support dry-run from Guile via store., guix-commits, 2024/11/09
- 22/47: gnu: Add basic support for x86_64-pc-gnu target, aka 64bit Hurd., guix-commits, 2024/11/09
- 27/47: gnu: patch: Fix build for the 64bit Hurd., guix-commits, 2024/11/09
- 25/47: gnu: elfutils: Fix build for 64bit Hurd., guix-commits, 2024/11/09
- 10/47: installer: Remove unused (newt) imports., guix-commits, 2024/11/09
- 13/47: installer: Fix file-name typos., guix-commits, 2024/11/09
- 26/47: gnu: grep: Fix build for the 64bit Hurd., guix-commits, 2024/11/09
- 30/47: gnu: gcc-13, gcc-14: Support being used as parent for gcc-static., guix-commits, 2024/11/09
- 29/47: gnu: libstdc++: Support the 64bit Hurd., guix-commits, 2024/11/09
- 46/47: gnu: grub: Fix build for the 64bit Hurd., guix-commits, 2024/11/09
- 45/47: gnu: inetutils: Fix build for the 64bit Hurd.,
guix-commits <=
- 08/47: system: examples: Add devel-hurd.tmpl., guix-commits, 2024/11/09
- 12/47: installer: Use "partitioning-page" consistently., guix-commits, 2024/11/09
- 14/47: installer: Use `%' for parameter %run-command-in-installer., guix-commits, 2024/11/09
- 19/47: gnu: gnumach: Update to v1.8+git20240406., guix-commits, 2024/11/09
- 21/47: gnu: gcc: Add indirections current-gcc, current-gcc-toolchain., guix-commits, 2024/11/09
- 15/47: installer: Add dry-run?, guix-commits, 2024/11/09
- 16/47: installer: Add "Kernel" page to select the Hurd., guix-commits, 2024/11/09
- 20/47: gnu: hurd: Update to v0.9.git20240714., guix-commits, 2024/11/09
- 23/47: gnu: cross-libc: Support cross-building for the 64bit Hurd., guix-commits, 2024/11/09
- 24/47: gnu: bash-minimal: Fix build for 64bit Hurd., guix-commits, 2024/11/09