Subject: bug#77630: closed (Re: [bug#77630] [PATCH] gnu: e2fsprogs: Fix build for GNU/Hurd, [PATCH] gnu: e2fsprogs: Fix build for GNU/Hurd.)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 08 Apr 2025 15:30:07 +0000

Your bug report

#77630: [PATCH] gnu: e2fsprogs: Fix build for GNU/Hurd

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
77630: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=77630
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#77630] [PATCH] gnu: e2fsprogs: Fix build for GNU/Hurd, [PATCH] gnu: e2fsprogs: Fix build for GNU/Hurd.
From: Ludovic Courtès <[email-masked]>
To: [email-masked]
Cc: [email-masked]
Date: Tue, 08 Apr 2025 17:05:45 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

[email-masked] skribis:

>>>From c09b07c0cdea72372398532f5a3567af5281c73a Mon Sep 17 00:00:00 2001
> Message-ID: <[email-masked]>
> From: Yelninei <[email-masked]>
> Date: Tue, 8 Apr 2025 07:23:52 +0000
> Subject: [PATCH] gnu: e2fsprogs: Fix build for GNU/Hurd.
>
> * gnu/packages/linux.scm (e2fsprogs)[#:phases]: Remove 'set-PATH_MAX phase when 'system-hurd?'.
>
> Change-Id: I4ec84bdf5b9219b456109f427d2c192da5b20c98

Applied, thanks!

Subject: [PATCH] gnu: e2fsprogs: Fix build for GNU/Hurd
From: [email-masked]
To: [email-masked]
Date: Tue, 8 Apr 2025 09:48:46 +0200 (CEST)
List-Id: <debbugs-submit.debbugs.gnu.org>

I have not set up git-send-email yet, but here is a patch to remove the set-PATH_MAX phase as it prevents the package from building, misc/tune2fs.c now #defines' PATH_MAX  itself if it missing.

Successfully build the package with offloading to a childhurd.
/gnu/store/wvbmfvhbhh6bwx67rwa2dfzslx5j0gv6-e2fsprogs-1.47.1
>From c09b07c0cdea72372398532f5a3567af5281c73a Mon Sep 17 00:00:00 2001
Message-ID: <[email-masked]>
From: Yelninei <[email-masked]>
Date: Tue, 8 Apr 2025 07:23:52 +0000
Subject: [PATCH] gnu: e2fsprogs: Fix build for GNU/Hurd.

* gnu/packages/linux.scm (e2fsprogs)[#:phases]: Remove 'set-PATH_MAX phase when 'system-hurd?'.

Change-Id: I4ec84bdf5b9219b456109f427d2c192da5b20c98
---
 gnu/packages/linux.scm | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index a6bffa2bb9..5efb3ecadc 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -3161,12 +3161,7 @@ (define-public e2fsprogs
                                (chmod file #o666))
                              archives)))))
            ,@(if (system-hurd?)
-                 '((add-after 'unpack 'set-PATH_MAX
-                     (lambda _
-                       ;; Shamelessly introduce an arbitrary limit.
-                       (substitute* "misc/tune2fs.c"
-                         (("PATH_MAX") "4096"))))
-                   (add-after 'unpack 'skip-tests
+                 '((add-after 'unpack 'skip-tests
                      (lambda _
                        (with-directory-excursion "tests"
                          (for-each

base-commit: e839cd1108626a6db6c47915f0efa4ab41c6a01c
-- 
2.49.0