From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 0B88HxnlQmdmrAAA62LTzQ:P1 (envelope-from ) for ; Sun, 24 Nov 2024 08:34:33 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 0B88HxnlQmdmrAAA62LTzQ (envelope-from ) for ; Sun, 24 Nov 2024 09:34:33 +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=YFSUmRUV; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=FZE8Im1r; 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=1732437273; 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=pdafoliq+nvOAg9oyl1+48DQztM0EimTR6FGR0o8AeQ=; b=ptk7WJw9Ke+BdDQZX4Azonj0MAO74dWWHbR1gYi91DVydKX/xhxP3lbgssfQg4HUFhLSE2 ouryX8KcyDYMfObMLp2Qo+hc1Iv5oFVrY1v/CvvupjdbAX7T85dAy8V4eOUJkDw4MHMwJc 4dLbWZlQkNHAsMFD2WQORlsEfaRwl0P9KIhlL1mBZudtEK/rB/jBX51v9QYJSIe8sqsV9u xPWW0wuUb8hvO719ATI9LOE09r38JPkEONAABb+EOgi5J4DMc2IKyAWQoqbWYPQo6NG4fr cS/MsY5d5uKfU1ly+wp+RKyAM3NCLUKt9CAx90KFU/9Cgfn6lnpyUrNh5eQvUQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=YFSUmRUV; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=FZE8Im1r; 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-Seal: i=1; s=key1; d=yhetil.org; t=1732437273; a=rsa-sha256; cv=none; b=ECAeMQOozCXaGK1Q675YZUDG1eoJ/fv6WclXql8y7jgkqA9Bqrc4AgfAfSRbpT/fiT6+e5 UmovOT+a0i1hl4ugeqnvF8WB3ZbHCgPfu50Rz3dMb3jh3ndVhEaAlqs+Ps+Bs5QHQsQ+9i F+cebws27dXjmZtq628AyvDzP82YQD7nW9171crqxCvIcQWntgSS9pPu81XyQgBVpHsCVD etSuIbrJHWNt1TutdJoz741xpdJ29O2vW844GFVgfvpUa6sVkvso1/BnDGC1MY49qKU6gv DT5CGOw9dlHWB5pUF/zD2McmLHPTMCyRnPL1zs+fEWNPklDT0sJIm0JRmAOC7Q== 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 2E1CC7BFF2 for ; Sun, 24 Nov 2024 09:34:32 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tF7Uz-0000Vd-V9; Sun, 24 Nov 2024 02:57:44 -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 1tF7Ui-0000Pi-Ag for guix-patches@gnu.org; Sun, 24 Nov 2024 02:57:24 -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 1tF7Ui-0002Oq-1N for guix-patches@gnu.org; Sun, 24 Nov 2024 02:57:24 -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=pdafoliq+nvOAg9oyl1+48DQztM0EimTR6FGR0o8AeQ=; b=YFSUmRUV6QBwrEwdJKwMaGXN1TcjErts4h1MExha2Osrn7YL9o+dfsjySCHVQQlRDYm5T3GjtduMO6eFdS43J6w7Mr4qeZS87LY8Iu0QnWMRci7gAF2v54MDNPG8cVwFgEEafoX0emsqySf4yAlycYyIIvNP8P95YsuwGDqz640EbzHlqWRGHhxSz4Sa9KZbqGnLnreWsDaEp9xoTQ92hpaSRJYVBCSQIZPw22rS9Z+VGdGL4ViyjflUfUqlMS70YlfQneYJosdYBx+d6uwbEWceeBpYsGqULC3zlOOwQ+/4Rx3kfn2PLg88D+U3uTrp4my9W9zORFz/TxMVdL6Uqw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tF7Uh-0004lb-Rb for guix-patches@gnu.org; Sun, 24 Nov 2024 02:57:23 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74290] [PATCH v4 35/58] gnu: netdde: Support the 64bit Hurd. Resent-From: Janneke Nieuwenhuizen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 24 Nov 2024 07:57:23 +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.173243503218103 (code B ref 74290); Sun, 24 Nov 2024 07:57:23 +0000 Received: (at 74290) by debbugs.gnu.org; 24 Nov 2024 07:57:12 +0000 Received: from localhost ([127.0.0.1]:60835 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tF7UV-0004hh-Vy for submit@debbugs.gnu.org; Sun, 24 Nov 2024 02:57:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58254) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tF7Tt-0004Zy-DJ for 74290@debbugs.gnu.org; Sun, 24 Nov 2024 02:56:33 -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 1tF7To-0002DC-6r; Sun, 24 Nov 2024 02:56:28 -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=pdafoliq+nvOAg9oyl1+48DQztM0EimTR6FGR0o8AeQ=; b=FZE8Im1rSD2BnLsOkbOM oh2anv7Gu07k58auBrRSQnCFylqflenNfpghynA1A2ZXJNa5CoyhDLbLIpapqBaKWA96meusE6niB hbA67rm7oKpRsSY+q9hZXUW0JHqBvGM4fOkyyPxx2ImcHBliW1e+EDeNE88QKddY1T6+5gwQai36T CB7zNYW5AD5X9juPQ5oa94SJkI1iwpJeXBDutT8SYLb2m3ipZNBLwyzB9MLLfC6JQvUqT/qP7h3HL 91vqwZPUIfdRV99RxMY7fTl/+psmH9sYIvFXt42u1M85vHkiJI2qD3JuCDHzJSmkVv3lXxillU1Tn jLqRQi55Vi/qyg==; From: Janneke Nieuwenhuizen Date: Sun, 24 Nov 2024 08:54:58 +0100 Message-ID: <556df9755809509a8ea1529ed93f1078f2da7dd2.1732434271.git.janneke@gnu.org> 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -0.33 X-Spam-Score: -0.33 X-Migadu-Queue-Id: 2E1CC7BFF2 X-TUID: IHRS2dNZOP0U * 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 adcbb55847..2e18ed7870 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1824,6 +1824,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