From patchwork Sun May 14 21:42:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felix Lechner X-Patchwork-Id: 50012 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 193A227BBEA; Sun, 14 May 2023 22:43:17 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 7C0FD27BBE2 for ; Sun, 14 May 2023 22:43:16 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pyJUe-0001qO-09; Sun, 14 May 2023 17:43:04 -0400 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 1pyJUc-0001lq-ED for guix-patches@gnu.org; Sun, 14 May 2023 17:43:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pyJUc-0003wL-6D for guix-patches@gnu.org; Sun, 14 May 2023 17:43:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pyJUc-0002ZO-1z for guix-patches@gnu.org; Sun, 14 May 2023 17:43:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63508] [PATCH 1/3] gnu: eudev: Convert native-inputs to new style. Resent-From: Felix Lechner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 14 May 2023 21:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63508 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63508@debbugs.gnu.org Cc: Felix Lechner Received: via spool by 63508-submit@debbugs.gnu.org id=B63508.16841005629831 (code B ref 63508); Sun, 14 May 2023 21:43:02 +0000 Received: (at 63508) by debbugs.gnu.org; 14 May 2023 21:42:42 +0000 Received: from localhost ([127.0.0.1]:41731 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pyJUI-0002YT-4t for submit@debbugs.gnu.org; Sun, 14 May 2023 17:42:42 -0400 Received: from sail-ipv4.us-core.com ([208.82.101.137]:39696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pyJUG-0002YI-Pe for 63508@debbugs.gnu.org; Sun, 14 May 2023 17:42:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=mpp6MnNmVmkOKyI 1MJNfzCCwsceYki24Tq1JXp/0CdM=; h=references:in-reply-to:date:subject: cc:to:from; d=lease-up.com; b=qszSSu/HfCz03MZCaXepP6O0e5O22fMlPgUg67qq ykvU4hbh8Mm1ElU3NzrzRaFzIbMUzDOKyQOpK8BgwRXMSn/lvwVFN51+r2zCERUNDx0s97 ivVMraEcKhAQyLDSgWPvnMaFdfTwgJBsf7rwihDRazabWoP/UnvwxXUGxPYPg= Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id beac318e (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Sun, 14 May 2023 21:42:39 +0000 (UTC) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id c22bc855; Sun, 14 May 2023 21:42:39 +0000 (UTC) Date: Sun, 14 May 2023 14:42:29 -0700 Message-Id: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 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: , Reply-to: Felix Lechner X-ACL-Warn: , Felix Lechner via Guix-patches X-Patchwork-Original-From: Felix Lechner via Guix-patches via From: Felix Lechner Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/linux.scm (eudev): Convert native-inputs to new style. --- gnu/packages/linux.scm | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index ea64e9d241..7ae34d1d4a 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -4190,19 +4190,19 @@ (define-public eudev "hwdb" "--update"))))))) #:configure-flags (list "--enable-manpages"))) (native-inputs - `(("autoconf" ,autoconf) - ("automake" ,automake) - ("gperf" ,gperf) - ("libtool" ,libtool) - ("pkg-config" ,pkg-config) - ;; For tests. - ("perl" ,perl) - ("python" ,python-wrapper) - ;; For documentation. - ("docbook-xml" ,docbook-xml-4.2) - ("docbook-xsl" ,docbook-xsl) - ("libxml2" ,libxml2) ;for $XML_CATALOG_FILES - ("xsltproc" ,libxslt))) + (list autoconf + automake + gperf + libtool + pkg-config + ;; For tests. + perl + python-wrapper + ;; For documentation. + docbook-xml-4.2 + docbook-xsl + libxml2 ;for $XML_CATALOG_FILES + libxslt)) (inputs ;; When linked against libblkid, eudev can populate /dev/disk/by-label ;; and similar; it also installs the '60-persistent-storage.rules' file, From patchwork Sun May 14 21:42:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felix Lechner X-Patchwork-Id: 50013 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 36D4027BBE9; Sun, 14 May 2023 22:43:25 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id D4E3927BBE2 for ; Sun, 14 May 2023 22:43:23 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pyJUf-0001sp-9X; Sun, 14 May 2023 17:43:05 -0400 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 1pyJUd-0001ox-Af for guix-patches@gnu.org; Sun, 14 May 2023 17:43:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pyJUd-0003wR-2b for guix-patches@gnu.org; Sun, 14 May 2023 17:43:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pyJUc-0002ZW-Fy for guix-patches@gnu.org; Sun, 14 May 2023 17:43:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63508] [PATCH 2/3] gnu: eudev: Convert build arguments to gexps. Resent-From: Felix Lechner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 14 May 2023 21:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63508 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63508@debbugs.gnu.org Cc: Felix Lechner Received: via spool by 63508-submit@debbugs.gnu.org id=B63508.16841005669850 (code B ref 63508); Sun, 14 May 2023 21:43:02 +0000 Received: (at 63508) by debbugs.gnu.org; 14 May 2023 21:42:46 +0000 Received: from localhost ([127.0.0.1]:41734 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pyJUL-0002Ym-D7 for submit@debbugs.gnu.org; Sun, 14 May 2023 17:42:45 -0400 Received: from sail-ipv4.us-core.com ([208.82.101.137]:39696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pyJUJ-0002YI-GM for 63508@debbugs.gnu.org; Sun, 14 May 2023 17:42:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=bglLQLbZ+wT7DhV TX6m8DFjNzcNQ01DSOtqRaqcTcD0=; h=references:in-reply-to:date:subject: cc:to:from; d=lease-up.com; b=XW1klxHvLwtijsKX9DRf3G1t81QbALAzSA5U6S1r lDrA5zXLLS1u/RogfoPkZ0opgzxaj1NF4cKI1VObOrWjtaQKu+OwL47ZUqlA/VLDwSrZ8T GZF7DnyI5yQgky0mlZvKL4mqd0cIm7ipEa8Mb1C11bkvFpdM7kbErqmk+EhZA= Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id e61cb43a (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Sun, 14 May 2023 21:42:42 +0000 (UTC) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id c38e0e3f; Sun, 14 May 2023 21:42:41 +0000 (UTC) Date: Sun, 14 May 2023 14:42:30 -0700 Message-Id: <85af3647b4729638ce33464c835095edc6e208bd.1684100044.git.felix.lechner@lease-up.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 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: , Reply-to: Felix Lechner X-ACL-Warn: , Felix Lechner via Guix-patches X-Patchwork-Original-From: Felix Lechner via Guix-patches via From: Felix Lechner Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/linux.scm (eudev): Convert build arguments to gexps. --- gnu/packages/linux.scm | 68 ++++++++++++++++++++---------------------- 1 file changed, 32 insertions(+), 36 deletions(-) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 7ae34d1d4a..98e683bdb0 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -4153,42 +4153,38 @@ (define-public eudev (patches (search-patches "eudev-rules-directory.patch")))) (build-system gnu-build-system) (arguments - `(#:phases - (modify-phases %standard-phases - (add-before 'bootstrap 'patch-file-names - (lambda* (#:key inputs native-inputs #:allow-other-keys) - (substitute* "man/make.sh" - (("/usr/bin/xsltproc") - (string-append (assoc-ref - (or native-inputs inputs) "xsltproc") - "/bin/xsltproc"))))) - (add-after 'install 'move-static-library - (lambda* (#:key outputs #:allow-other-keys) - (let* ((out (assoc-ref outputs "out")) - (static (assoc-ref outputs "static")) - (source (string-append out "/lib/libudev.a")) - (target (string-append static "/lib/libudev.a"))) - (mkdir-p (dirname target)) - (link source target) - (delete-file source) - ;; Remove reference to the static library from the .la file - ;; such that Libtool looks for it in the usual places. - (substitute* (string-append out "/lib/libudev.la") - (("old_library=.*") - "old_library=''\n"))))) - (add-after 'install 'build-hwdb - (lambda* (#:key outputs #:allow-other-keys) - ;; Build OUT/etc/udev/hwdb.bin. This allows 'lsusb' and - ;; similar tools to display product names. - ;; - ;; XXX: This can't be done when cross-compiling. Find another way - ;; to generate hwdb.bin for cross-built systems. - (let ((out (assoc-ref outputs "out"))) - ,@(if (%current-target-system) - '(#t) - '((invoke (string-append out "/bin/udevadm") - "hwdb" "--update"))))))) - #:configure-flags (list "--enable-manpages"))) + (list + #:phases + #~(modify-phases %standard-phases + (add-before 'bootstrap 'patch-file-names + (lambda* (#:key inputs native-inputs #:allow-other-keys) + (substitute* "man/make.sh" + (("/usr/bin/xsltproc") + (search-input-file (or native-inputs inputs) "/bin/xsltproc"))))) + (add-after 'install 'move-static-library + (lambda _ + (let ((source (string-append #$output "/lib/libudev.a")) + (target (string-append #$output:static "/lib/libudev.a"))) + (mkdir-p (dirname target)) + (link source target) + (delete-file source) + ;; Remove reference to the static library from the .la file + ;; such that Libtool looks for it in the usual places. + (substitute* (string-append #$output "/lib/libudev.la") + (("old_library=.*") + "old_library=''\n"))))) + (add-after 'install 'build-hwdb + (lambda _ + ;; Build OUT/etc/udev/hwdb.bin. This allows 'lsusb' and + ;; similar tools to display product names. + ;; + ;; XXX: This can't be done when cross-compiling. Find another way + ;; to generate hwdb.bin for cross-built systems. + #$@(if (%current-target-system) + #~(#t) + #~((invoke (string-append #$output "/bin/udevadm") + "hwdb" "--update")))))) + #:configure-flags #~(list "--enable-manpages"))) (native-inputs (list autoconf automake From patchwork Sun May 14 21:42:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felix Lechner X-Patchwork-Id: 50014 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 09A4927BBEA; Sun, 14 May 2023 22:44:15 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id B60C427BBE2 for ; Sun, 14 May 2023 22:44:13 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pyJVb-0002B9-MJ; Sun, 14 May 2023 17:44:03 -0400 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 1pyJVa-0002Av-FD for guix-patches@gnu.org; Sun, 14 May 2023 17:44:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pyJVa-00043N-7G for guix-patches@gnu.org; Sun, 14 May 2023 17:44:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pyJVa-0002bw-2V for guix-patches@gnu.org; Sun, 14 May 2023 17:44:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63508] [PATCH 3/3] gnu: eudev: Always use MAC-based names for network interfaces. Resent-From: Felix Lechner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 14 May 2023 21:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63508 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63508@debbugs.gnu.org Cc: Felix Lechner Received: via spool by 63508-submit@debbugs.gnu.org id=B63508.16841005959947 (code B ref 63508); Sun, 14 May 2023 21:44:02 +0000 Received: (at 63508) by debbugs.gnu.org; 14 May 2023 21:43:15 +0000 Received: from localhost ([127.0.0.1]:41744 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pyJUo-0002aM-Uu for submit@debbugs.gnu.org; Sun, 14 May 2023 17:43:15 -0400 Received: from sail-ipv4.us-core.com ([208.82.101.137]:32996) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pyJUm-0002aE-Ut for 63508@debbugs.gnu.org; Sun, 14 May 2023 17:43:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=fC2CYLR1lmV1uOU ma/pvUAIDHZcg8CHbRYntjbFUTmE=; h=references:in-reply-to:date:subject: cc:to:from; d=lease-up.com; b=Yh4xiZoSo0L8qrfIKVTpP8OpXPDhg6YudiMxFUx+ rW+IzrVCGsjAeHbEXNg68piV3W/TtZ7pLZMhqAsJUYvQDGwc6Cxq5JGDHnpkPcvlOtFM4V QrDhpMxr9VJlTBhDfA2+4G2CT47SJaHinB3gv8G/fhtBi7aq1fUKTgzFtsaPA= Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id e5c0cad7 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Sun, 14 May 2023 21:43:12 +0000 (UTC) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id a993efe7; Sun, 14 May 2023 21:43:11 +0000 (UTC) Date: Sun, 14 May 2023 14:42:31 -0700 Message-Id: <89b635e974a7d570cbd19b847fc3eb8ac903103b.1684100044.git.felix.lechner@lease-up.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 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: , Reply-to: Felix Lechner X-ACL-Warn: , Felix Lechner via Guix-patches X-Patchwork-Original-From: Felix Lechner via Guix-patches via From: Felix Lechner Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Upon personal reflection, a declarative operating system like Guix probably ought to use only predictable interface names. While shorter names like 'eno1' offer an indisputable convenience and beauty when typing on the command line, administrators in Guix are unlikely to do so due to the declarative configuration system. Some system services may explicitly refer to interface names in their configuration. They would also benefit from the predictable and constant nature of MAC-based names. The latter is particularly relevant on multi-homed machines, i.e. those with more than one network connection. A MAC-based interface name as issued by 'eudev' looks like this: enx0123456789af (fictitious) This commit was deployed on two production machines. The migration to MAC-based interface names took place without issues. A second reconfiguration was the used to add the new interface name in services tha needed it. The second step can be skipped, since the name is known with certainty in advance. The current naming scheme is less desirable because some services may silently refuse to start after equipment was added or removed. A removal may take place, for example, when something broke or when equipment was sold. The device enumeration may also change when a CMOS battery fails and system options are lost. In the author's option, Guix should not depend on BIOS enumeration for device names. In the author's case, the name of the sole network interface changed from enp3s0 to enp4s0 when a PCIe disk controller (a SAS host-based adapter) was installed. As a result, OpenSMTPd silently failed to start. This commit switches 'eudev' from the standard naming order ID_NET_NAME_ONBOARD ID_NET_NAME_SLOT ID_NET_NAME_PATH to ID_NET_NAME_MAC, which is always available. [1] The author initially attempted to achieve the same result via (udev-rules-service 'net-name-mac (udev-rule "01-net-name-mac.rules" "SUBSYSTEM==\"net\", ACTION==\"add\", NAME=\"$env{ID_NET_NAME_MAC}\" "))) but that did not work. While the situation was not examined exhaustively, it was not clear that udevadm can currently work because the standard command to test udev setups: [2] $ udevadm --debug test /sys/class/net/* did not find the script installed via the 'udev-service-type'. A review of the 'eudev' sources indicated that the path to find rules [3] is hard-coded to the store location during installation. An attempt to set the path to /etc/udev/rules.d yielded a build error because that target folder outside the store was understandably not writable. The manual page for udevadm did not offer a way to select the runtime location of the udev/rules.d folder via environment variables or a command-line option. Anyone for whom such a setup is working properly should please contact the author. Thank you! This commit may result in some loss of privacy, although it is presently not clear how meaningful that is. With this commit, anyone using privacy-enhanced IPv6 addresses risks having their MAC exposed when they publish their configuration files in Git or post a well-meant sample in a chat rooms, because that configuration may mention the MAC address. Moreover, the compatibilty with schemes to generate fake one-time MAC addresses upon boot should be evaluated. One concern is that the explicit reference to a network interface in a configuration file would likely force the use of a single and constant MAC address for that interface. This commit was tested in production and is currently being used. The change here resulted in the recompilation of several seemingly unrelated packages such as Emacs and GTK. Perhaps those dependency relationships should be examined. [1] https://wiki.debian.org/NetworkInterfaceNames#How_to_migrate_to_this_scheme_on_upgraded_systems [2] https://wiki.archlinux.org/title/Udev#Testing_rules_before_loading [3] https://github.com/eudev-project/eudev/blob/39979ddf46e75d1b75bf381e1c73914c226c4302/configure.ac#L180 [4] https://en.wikipedia.org/wiki/IPv6_address#Temporary_addresses * gnu/packages/linux.scm (eudev): Always use MAC-based names for network interfaces. --- gnu/packages/linux.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 98e683bdb0..724c621fed 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -4173,6 +4173,12 @@ (define-public eudev (substitute* (string-append #$output "/lib/libudev.la") (("old_library=.*") "old_library=''\n"))))) + (add-before 'install 'net-name-mac + (lambda _ + (use-modules (ice-9 regex)) + (substitute* "rules/80-net-name-slot.rules" + (((regexp-quote "ID_NET_NAME_ONBOARD")) + "ID_NET_NAME_MAC")))) (add-after 'install 'build-hwdb (lambda _ ;; Build OUT/etc/udev/hwdb.bin. This allows 'lsusb' and