GNU bug report logs - #76001
[PATCH v2] gnu: Add jool.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Ashish SHUKLA <ashish.is@HIDDEN>; Keywords: patch; dated Sat, 1 Feb 2025 21:39:02 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.
Changed bug title to '[PATCH v2] gnu: Add jool.' from '[PATCH] gnu: Add jool.' Request was from "Ashish SHUKLA" <ashish.is@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 76001 <at> debbugs.gnu.org:


Received: (at 76001) by debbugs.gnu.org; 13 Feb 2025 23:49:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 13 18:49:54 2025
Received: from localhost ([127.0.0.1]:46169 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tiixu-0003nh-2F
	for submit <at> debbugs.gnu.org; Thu, 13 Feb 2025 18:49:54 -0500
Received: from anamika.lostca.se ([65.21.75.227]:55682)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <ashish.is@HIDDEN>)
 id 1tiixN-0003mt-QI
 for 76001 <at> debbugs.gnu.org; Thu, 13 Feb 2025 18:49:22 -0500
Received: from localhost.localdomain (unknown
 [IPv6:2a02:9140:3880:ee00:a4c9:8bd8:87a1:b732])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
 (No client certificate requested) (Authenticated sender: abbe)
 by anamika.lostca.se (Postfix) with ESMTPSA id 5E37389F6;
 Thu, 13 Feb 2025 23:49:14 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lostca.se; s=anamika; 
 t=1739490554;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 content-transfer-encoding:content-transfer-encoding:
 in-reply-to:in-reply-to:references:references;
 bh=jSfyStaJKNfY2TV6UQM9vhEfgBhojj0KgwDaKIl/3D8=;
 b=lzfC+n33u6SzdUjRUJKyQlo6TROsmS++TcRaFk6rSGzaoHzn7RpPlVPFvpOXQld+5/Tmds
 HCFYVKyqEWoEcEMJCzqpUBq9qvoVgrcWJW3o/PeHGM2Z+qnaASBGew/49R/b/6gs/R1tzJ
 b8itWlWi/TR7i/+3Re8uTr2wh+Tyu6s=
From: Ashish SHUKLA <ashish.is@HIDDEN>
To: ludo@HIDDEN
Subject: [PATCH v2] gnu: Add jool.
Date: Fri, 14 Feb 2025 00:49:00 +0100
Message-ID: <50a465c98b9a66cd3d6d2369e3c43f715c8d4382.1739490540.git.ashish.is@HIDDEN>
X-Mailer: git-send-email 2.48.1
In-Reply-To: <87ikpf7ajj.fsf@HIDDEN>
References: <87ikpf7ajj.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: 76001
Cc: Ashish SHUKLA <ashish.is@HIDDEN>, 76001 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.3 (/)

* gnu/packages/networking.scm (jool): Add jool.

Change-Id: Ic517fc8c4afbb964363ec68b3d89ce9fcd00c7d8
---
 gnu/packages/networking.scm | 72 +++++++++++++++++++++++++++++++++++++
 1 file changed, 72 insertions(+)

diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 8ae7f84015..f51266c764 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -66,6 +66,7 @@
 ;;; Copyright © 2024 Alexey Abramov <levenson@HIDDEN>
 ;;; Copyright © 2024 James Smith <jsubuntuxp@HIDDEN>
 ;;; Copyright © 2025 Sughosha <sughosha@HIDDEN>
+;;; Copyright © 2025 Ashish SHUKLA <ashish.is@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -92,6 +93,7 @@ (define-module (gnu packages networking)
   #:use-module (guix build-system glib-or-gtk)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system go)
+  #:use-module (guix build-system linux-module)
   #:use-module (guix build-system meson)
   #:use-module (guix build-system perl)
   #:use-module (guix build-system python)
@@ -5059,6 +5061,76 @@ (define-public dnstracer
 back to the servers which know the data.")
     (license license:bsd-2)))
 
+(define-public jool
+  (package
+    (name "jool")
+    (version "4.1.13")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/NICMx/Jool")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0rz8pqn692y61rv33hvr18ngjjyha0m14m4w4yr82xp3km5kfnsj"))))
+    (build-system linux-module-build-system)
+    (outputs '("out" "module"))
+    (native-inputs (list automake autoconf libtool pkg-config))
+    (inputs (list libnl iptables))
+    (arguments
+     (list
+      #:tests? #f
+      #:phases
+      #~(modify-phases %standard-phases
+          (replace 'build
+            (lambda* (#:key inputs #:allow-other-keys)
+              (let ((modules-dir
+                     (string-append
+                      (assoc-ref inputs "linux-module-builder") "/lib/modules")))
+                (invoke "make" "-C" "src/mod"
+                        (string-append "MODULES_DIR=" modules-dir))
+                (invoke "make"))))
+
+          (add-after 'configure 'really-configure
+            (lambda _
+              (setenv "CONFIG_SHELL" (which "sh"))
+              (setenv "CC" #$(cc-for-target))
+              (invoke "./configure"
+                      (string-append "--prefix=" #$output))))
+
+          (add-after 'unpack 'patch-Makefiles
+            (lambda _
+              (substitute* "src/mod/Makefile"
+                (("/sbin/depmod")
+                 "true"))
+              (substitute* "src/usr/iptables/Makefile"
+                (("^XTABLES_SO_DIR =.*$")
+                 (string-append "XTABLES_SO_DIR = " #$output "/lib/xtables")))))
+
+          (replace 'install
+            (lambda* (#:key inputs parallel-build? make-flags
+                      #:allow-other-keys)
+              (let ((modules-dir
+                     (string-append (assoc-ref inputs "linux-module-builder")
+                                    "/lib/modules"))
+                    (module-dir (string-append
+                                 #$output:module
+                                 "/lib/modules")))
+                (invoke "make" "install")
+                (invoke "make" "-C" "src/mod" "modules_install"
+                        "DEPMOD=true"
+                        "INSTALL_MOD_STRIP=1"
+                        (string-append "MODULES_DIR=" modules-dir)
+                        (string-append "MODULE_DIR=" module-dir)
+                        (string-append "INSTALL_PATH=" module-dir)
+                        (string-append "INSTALL_MOD_PATH=" module-dir))))))))
+    (home-page "https://nicmx.github.io/Jool/")
+    (synopsis "SIIT and NAT64 implementation for Linux")
+    (description "Jool implements SIIT and NAT64 for Linux.  It provides a kernel module,
+iptables (and netfilter) extensions, and CLI utilities.")
+    (license license:gpl2+)))
+
 (define-public dropwatch
   (package
     (name "dropwatch")

base-commit: 87dd002575fb5090649e56a3a2d10b86b1773c74
-- 
2.48.1





Information forwarded to guix-patches@HIDDEN:
bug#76001; Package guix-patches. Full text available.

Message received at 76001 <at> debbugs.gnu.org:


Received: (at 76001) by debbugs.gnu.org; 12 Feb 2025 09:54:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 12 04:54:53 2025
Received: from localhost ([127.0.0.1]:60982 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ti9SH-0003b6-9T
	for submit <at> debbugs.gnu.org; Wed, 12 Feb 2025 04:54:53 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:54796)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1ti9SD-0003aq-L9
 for 76001 <at> debbugs.gnu.org; Wed, 12 Feb 2025 04:54:51 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1ti9S8-0007pF-BR; Wed, 12 Feb 2025 04:54:44 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=tpCObo2oSn5YTfTRrbnUrzf/Uycnl1+oOPECS5uVpIc=; b=of7oIUH4VIwczNcPqbxS
 VfXBwdpnPXQPJaOVf/N5/bkxrA09seIinXCojZ0LDlPGm3oo6qhKFlVYVpXsHtnnqzC8RrH2Qa83s
 tYTHYu4D5iLLzelyjZEBHGxwIUVkwJrAD8AjRPepoeOrgN0x6AJO6itmguNKxsbdPCoaAZpLzfwvp
 747MrwLrwv3iYkReIbQw1WukQRmU6n1ejkEFpJapHT6CANNlceBqCtrtMc0n7lAI//p5CjQOszm4W
 QTDF2xRZip5bijIN4X0/Ns45p6T3os9BaN9Mi4DV95q0DKJAJuq8n3Z28ObZBjXKG0pyxJUbemKdv
 TNM8EYbQBSprLQ==;
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Ashish SHUKLA <ashish.is@HIDDEN>
Subject: Re: [bug#76001] [PATCH] gnu: Add jool.
In-Reply-To: <c6ad754614c9876d79158dab9935f739085a4659.1738445803.git.ashish.is@HIDDEN>
 (Ashish SHUKLA's message of "Sat, 1 Feb 2025 22:36:44 +0100")
References: <c6ad754614c9876d79158dab9935f739085a4659.1738445803.git.ashish.is@HIDDEN>
Date: Wed, 12 Feb 2025 10:54:40 +0100
Message-ID: <87ikpf7ajj.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: 76001
Cc: 76001 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

Ashish SHUKLA <ashish.is@HIDDEN> skribis:

> * gnu/packages/networking.scm (jool): Add jool.
>
> Change-Id: Ic517fc8c4afbb964363ec68b3d89ce9fcd00c7d8

[...]

> +                    (out (assoc-ref outputs "out"))
> +                    (module-dir (string-append
> +                                 (assoc-ref outputs "module")
> +                                 "/lib/modules")))

I=E2=80=99d suggest using #$output and #$output:module throughout.

> +    (home-page "https://nicmx.github.io/Jool/")
> +    (synopsis "SIIT and NAT64 implementation for Linux")
> +    (description "Jool implements SIIT and NAT64 for Linux.")

Could you expand the description as per
<https://guix.gnu.org/manual/devel/en/html_node/Synopses-and-Descriptions.h=
tml>?
You should probably make it clear that the package provides a kernel
module.

Thanks in advance,
Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#76001; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 1 Feb 2025 21:38:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 01 16:38:35 2025
Received: from localhost ([127.0.0.1]:60283 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1teLCE-0003Cb-Ky
	for submit <at> debbugs.gnu.org; Sat, 01 Feb 2025 16:38:35 -0500
Received: from lists.gnu.org ([2001:470:142::17]:50756)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <ashish.is@HIDDEN>)
 id 1teLCB-0003CL-LT
 for submit <at> debbugs.gnu.org; Sat, 01 Feb 2025 16:38:32 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ashish.is@HIDDEN>)
 id 1teLC2-00041v-K8
 for guix-patches@HIDDEN; Sat, 01 Feb 2025 16:38:23 -0500
Received: from anamika.lostca.se ([65.21.75.227])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <ashish.is@HIDDEN>)
 id 1teLC0-0007Fb-Fs
 for guix-patches@HIDDEN; Sat, 01 Feb 2025 16:38:22 -0500
Received: from localhost.localdomain (unknown [91.183.211.42])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
 (No client certificate requested) (Authenticated sender: abbe)
 by anamika.lostca.se (Postfix) with ESMTPSA id 543B44DB2;
 Sat,  1 Feb 2025 21:38:06 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lostca.se; s=anamika; 
 t=1738445886;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 content-transfer-encoding:content-transfer-encoding;
 bh=5BWwd/0hChHE9tni+mIWj378i67uoam52FRrcnR85YI=;
 b=iiBLTNMZhaDBAU9QI6aog2QRvIjyhhR46GtUbbXoxLnTIVhH5HniAir5xTCyOdT55B4BlJ
 RCKsCBkCrsJTgfHrY3+nDeGAlN2exwxbryKM1f1vzwAngjRL4uz+Kfwg6+6whaXNoiA5TG
 Gk73U2MvmzfrRFrQAtEO2GUQHC25gJE=
From: Ashish SHUKLA <ashish.is@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] gnu: Add jool.
Date: Sat,  1 Feb 2025 22:36:44 +0100
Message-ID: <c6ad754614c9876d79158dab9935f739085a4659.1738445803.git.ashish.is@HIDDEN>
X-Mailer: git-send-email 2.48.1
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=65.21.75.227; envelope-from=ashish.is@HIDDEN;
 helo=anamika.lostca.se
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.7 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  * gnu/packages/networking.scm (jool): Add jool. Change-Id:
 Ic517fc8c4afbb964363ec68b3d89ce9fcd00c7d8 --- Hi, This patch adds Jool software,
 which implements NAT64 support in Linux kernel, and is helpful in updating
 IPv6-only networks, e.g. FOSDEM network at FOSDEM. 
 Content analysis details:   (1.7 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.1 URIBL_SBL_A Contains URL's A record listed in the Spamhaus SBL
 blocklist [URIs: nicmx.github.io]
 0.6 URIBL_SBL Contains an URL's NS IP listed in the Spamhaus SBL
 blocklist [URIs: nicmx.github.io]
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 0.9 SPF_FAIL               SPF: sender does not match SPF record (fail)
 [SPF failed: Please see http://www.openspf.org/Why?s=mfrom;
 id=ashish.is%40lostca.se; ip=2001%3A470%3A142%3A%3A17; r=debbugs.gnu.org]
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
 no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org]
X-Debbugs-Envelope-To: submit
Cc: Ashish SHUKLA <ashish.is@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.7 (/)

* gnu/packages/networking.scm (jool): Add jool.

Change-Id: Ic517fc8c4afbb964363ec68b3d89ce9fcd00c7d8
---
Hi,

This patch adds Jool software, which implements NAT64 support in Linux kernel, and is helpful in updating IPv6-only networks, e.g. FOSDEM network at FOSDEM.

Thanks!

 gnu/packages/networking.scm | 73 +++++++++++++++++++++++++++++++++++++
 1 file changed, 73 insertions(+)

diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 09e0359122..ec7279d38b 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -66,6 +66,7 @@
 ;;; Copyright © 2024 Alexey Abramov <levenson@HIDDEN>
 ;;; Copyright © 2024 James Smith <jsubuntuxp@HIDDEN>
 ;;; Copyright © 2025 Sughosha <sughosha@HIDDEN>
+;;; Copyright © 2025 Ashish SHUKLA <ashish.is@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -92,6 +93,7 @@ (define-module (gnu packages networking)
   #:use-module (guix build-system glib-or-gtk)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system go)
+  #:use-module (guix build-system linux-module)
   #:use-module (guix build-system meson)
   #:use-module (guix build-system perl)
   #:use-module (guix build-system python)
@@ -5064,6 +5066,77 @@ (define-public dnstracer
 back to the servers which know the data.")
     (license license:bsd-2)))
 
+(define-public jool
+  (package
+    (name "jool")
+    (version "4.1.13")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/NICMx/Jool")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0rz8pqn692y61rv33hvr18ngjjyha0m14m4w4yr82xp3km5kfnsj"))))
+    (build-system linux-module-build-system)
+    (outputs '("out" "module"))
+    (native-inputs (list automake autoconf libtool pkg-config))
+    (inputs (list libnl iptables))
+    (arguments
+     (list
+      #:tests? #f
+      #:phases
+      #~(modify-phases %standard-phases
+          (replace 'build
+            (lambda* (#:key inputs #:allow-other-keys)
+              (let ((modules-dir
+                     (string-append
+                      (assoc-ref inputs "linux-module-builder") "/lib/modules")))
+                (invoke "make" "-C" "src/mod"
+                        (string-append "MODULES_DIR=" modules-dir))
+                (invoke "make"))))
+
+          (add-after 'configure 'really-configure
+            (lambda* (#:key outputs #:allow-other-keys)
+              (setenv "CONFIG_SHELL" (which "sh"))
+              (setenv "CC" #$(cc-for-target))
+              (invoke "./configure"
+                      (string-append "--prefix=" (assoc-ref outputs "out")))))
+
+          (add-after 'unpack 'patch-Makefiles
+            (lambda* (#:key outputs #:allow-other-keys)
+              (let ((out (assoc-ref outputs "out")))
+                (substitute* "src/mod/Makefile"
+                  (("/sbin/depmod")
+                   "true"))
+                (substitute* "src/usr/iptables/Makefile"
+                  (("^XTABLES_SO_DIR =.*$")
+                   (string-append "XTABLES_SO_DIR = " out "/lib/xtables"))))))
+
+          (replace 'install
+            (lambda* (#:key inputs outputs parallel-build? make-flags
+                      #:allow-other-keys)
+              (let ((modules-dir
+                     (string-append (assoc-ref inputs "linux-module-builder")
+                                    "/lib/modules"))
+                    (out (assoc-ref outputs "out"))
+                    (module-dir (string-append
+                                 (assoc-ref outputs "module")
+                                 "/lib/modules")))
+                (invoke "make" "install")
+                (invoke "make" "-C" "src/mod" "modules_install"
+                        "DEPMOD=true"
+                        "INSTALL_MOD_STRIP=1"
+                        (string-append "MODULES_DIR=" modules-dir)
+                        (string-append "MODULE_DIR=" module-dir)
+                        (string-append "INSTALL_PATH=" module-dir)
+                        (string-append "INSTALL_MOD_PATH=" module-dir))))))))
+    (home-page "https://nicmx.github.io/Jool/")
+    (synopsis "SIIT and NAT64 implementation for Linux")
+    (description "Jool implements SIIT and NAT64 for Linux.")
+    (license license:gpl2+)))
+
 (define-public dropwatch
   (package
     (name "dropwatch")

base-commit: aba3e48ae1ce70deba8e6ad63e2ac9b102abfd4d
-- 
2.48.1





Acknowledgement sent to Ashish SHUKLA <ashish.is@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#76001; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 14 Feb 2025 00:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.