From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id kBBWNrc3PGdLXQEAqHPOHw:P1 (envelope-from ) for ; Tue, 19 Nov 2024 07:01:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id kBBWNrc3PGdLXQEAqHPOHw (envelope-from ) for ; Tue, 19 Nov 2024 08:01:12 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=X0GvVjW5; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=Ufn2jrKf; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1731999671; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=mG2IXGN2iXW/3r3SSj6sbcsDh9atD8S2wy/yV1JDqTA=; b=OS3RMzSzzmveaavYP9B2l7FpvAFP7oiDNQ7hfvHEBppT2USlL+z2bPvfH9MZN4TimNj3dW 6JijRK8rSyM97VhgSvkeeWFnsR4lNQcxdADUlPbqV3/x9pwyNSVWxNjWY8IwNdmmrGtIPK BtCEzbcJbQLSFDd5pTkNGXz3I9abYLVL4J4i7RrJf9IrKW1UxzFVP2oxyx0uIkoJpivcLh t8f2gBEuEO5Euc2FNvSZ6K9YG1OKFO2oWjhsA0VqHbfth2lIEpItDuKDAeakgM74Xtpgj7 bwTHFhEp5ffPXF+/ABORuI/lSmflhO/tHoFq6VeW6ll8eomWfs6laEIwarc8Jg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1731999671; a=rsa-sha256; cv=none; b=POwkQM2qDj4jX3w2hy9fTwFIfxcPZi0DBhTO2hNLlJVCbX+tJkTofjiYLokVqZrZ2QQIji LLQOzP9CvwfyB68H7Zo30oxZqhQaSTj/ppH8Z5TykyRXoynx2GdmoWT76cPIfT2Db3YS6D zZfVfo1p8YnaPDEkRdoVE1kt38NQlxuVZG+SQhJ05FZ8oa8VYADMeBSyj6d1PwQ7Fr84Rw QrhFBESO6wvgUc9A2vxLBjshgaxoAlRXqx+Te2Q5MfkzZgJqqEwpO8ofiK0YnRxsqQBOA2 oGiHn3UlzqKtWJyp8mnCXtQBGVAGMUIqbSKJTqejFQzoMqVonjqtOYRi628OGQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=X0GvVjW5; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=Ufn2jrKf; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A3AE97982A for ; Tue, 19 Nov 2024 08:01:11 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tDID1-00009w-CF; Tue, 19 Nov 2024 01:59:35 -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 ) id 1tDICx-0008W1-BH for guix-patches@gnu.org; Tue, 19 Nov 2024 01:59:31 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tDICq-0004M1-Cn for guix-patches@gnu.org; Tue, 19 Nov 2024 01:59:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=mG2IXGN2iXW/3r3SSj6sbcsDh9atD8S2wy/yV1JDqTA=; b=X0GvVjW5jOYE+PNLj7r5R16sOCS45LcGcwChX2qIK+f0nP6IFoM6uBpOkB+7hmdnr+105GtzioNuFGqw41F0zSpdsRzLdyKKb/6PcHsINSxPBxlVgmaFqLkD0Ikmso2gxnPRIZsCYkOlZtllpoacvW/oveOxchLkS7w3yFT4yTqTh4+SLLzPcEYmubS6tRaeBK6PMoZCtGHR4qIdKCiRBW31r02lqD9xxxaVwo19A7pVe5H1ECygXBEaIoJ73yIa74RfWM87lE+GQFkDkqGxtgm06toLYW6uUt0d1PrfsPz53K0uRoT7DKn7yOX0R8yiRCfiXxZiVBh3hiUcnsqz2g==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tDICq-0005KA-7t for guix-patches@gnu.org; Tue, 19 Nov 2024 01:59:24 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74290] [PATCH v3 33/51] gnu: netdde: Support the 64bit Hurd. Resent-From: Janneke Nieuwenhuizen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Nov 2024 06:59:24 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74290 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74290@debbugs.gnu.org Received: via spool by 74290-submit@debbugs.gnu.org id=B74290.173199955320281 (code B ref 74290); Tue, 19 Nov 2024 06:59:24 +0000 Received: (at 74290) by debbugs.gnu.org; 19 Nov 2024 06:59:13 +0000 Received: from localhost ([127.0.0.1]:40605 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDICe-0005Gp-6R for submit@debbugs.gnu.org; Tue, 19 Nov 2024 01:59:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49982) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDIC7-0005Ab-Sb for 74290@debbugs.gnu.org; Tue, 19 Nov 2024 01:58:40 -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 ) id 1tDI9x-00042a-0V; Tue, 19 Nov 2024 01:56:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=mG2IXGN2iXW/3r3SSj6sbcsDh9atD8S2wy/yV1JDqTA=; b=Ufn2jrKfHfiTtPzUfrxF VzbuUxJdkMXRZUgoO/eZRwS0STrdyZZb/mq3ttB27etzsLIxI8mEFRkmgPapvCdfoRT1hR42NZhOb yB7IuFbOIvRBpUsyqYyA5g/isRom7xnjE8768vrEJTc75bFxd/T0Had2NepW0xRekH8VJDdaNPLZc LBdNRkr3xegHqIq5V0I2eI8Sjj5xBhbNff/rg8MeUUNj9ClI33Il83t7gWrfhS79qtSr/hemjCcMi nBjl6LHkGecBvSIO+ar1oxzEx5qwgTMz7S5C1uRBQABNoOysvQ+0BVvsgPlYGDOFFeu7NilIqWNhe 4TJke6tpzOdQ6g==; From: Janneke Nieuwenhuizen Date: Tue, 19 Nov 2024 07:55:03 +0100 Message-ID: X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.03 X-Spam-Score: -6.03 X-Migadu-Queue-Id: A3AE97982A X-Migadu-Scanner: mx13.migadu.com X-TUID: FjST7rfwXBlX * 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(-) create mode 100644 gnu/packages/patches/netdde-csum.patch diff --git a/gnu/local.mk b/gnu/local.mk index b6e25cd43d..e4b6de83cb 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1826,6 +1826,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 @@ (define-public netdde (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 @@ (define-public netdde " -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 @@ (define-public netdde (("/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. + +. + +--- + 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 + + char vmxnet3_driver_name[] = "vmxnet3"; + #define VMXNET3_DRIVER_DESC "VMware vmxnet3 virtual NIC driver" -- 2.46.0