From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id KEfWBRaJCWW4RwAAauVa8A:P1 (envelope-from ) for ; Tue, 19 Sep 2023 13:42:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id KEfWBRaJCWW4RwAAauVa8A (envelope-from ) for ; Tue, 19 Sep 2023 13:42:14 +0200 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 9EDEAC51D for ; Tue, 19 Sep 2023 13:42:13 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=planete-kraus.eu header.s=albinoniA header.b=MQwhL+fB; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1695123733; h=from:from:sender:sender:reply-to: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: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=PBBeYkgliXpiZ98SaQwPqn+fiVCjHBiXXTnh2/fFjiU=; b=lXTZJ1cEbrRkYMfFyVGewov9IRKrscE3lFxYp5VatltDmMa4jveY26G/zGduWhhLWCPAQo OWTu0ffdOWFP1GDMD2IhGLiLHlGx5tR74Nfo8bL1BJ7XQehBgupVl2HYdgb12QcjLk7SXC sBsb6+f92t4Aw3UK4FmC4d5R3Pu+WCwVmtPLJCZFLJrdDiOY6WfE6qY1fStlHAH0b/HHa3 GkDRSwJSChaG0cM11wckMlWKBnEYEZfdyYZMQj85vEU2ScBDEEF9weqiQ8kT8LVPgO1SRt mCBS0Ytkb2duUS0E65mBM2lbRrDegolx5ntxn8YLBjyjEV8CWgYBxMyEzSVE2A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1695123733; a=rsa-sha256; cv=none; b=hYJ8BjtMods9yrmw8/LbcUT0k/9MC1Fm5VhWhOrq4NyHIEyX7FAFFo24f48dkgqjoUBGYm KDcVKAMBNiT3+rwHpBuLUIo1v8czp4XvMcPJ93LbHNHGmhCo2GzRZu8ZOpjE9+qzRGoBvI o9stEK3XZ0byGLpQ4yg3h3zNtXKZyB6G+E6dz1dfd484DCTqy7Krz2cEQOLSsuGOWkpOhp SzNHvMvKzY1w1O85/xq5he7+RsaTYACPc8hipDCkTze8+Zc3SW73cmXCWxsrL7NDINb4h7 NDxAOhkAgT2O+5A7XHWNUKSpu0obOidzrxVCFZjqN0RgLBJaoQQtXepJfd2YnA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=planete-kraus.eu header.s=albinoniA header.b=MQwhL+fB; dmarc=pass (policy=none) header.from=gnu.org; 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qiZ7A-0007Fc-B7; Tue, 19 Sep 2023 07:42:01 -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 1qiZ75-0007F2-MO for guix-patches@gnu.org; Tue, 19 Sep 2023 07:41:55 -0400 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 1qiZ73-0004L0-GC for guix-patches@gnu.org; Tue, 19 Sep 2023 07:41:54 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qiZ7C-0003jF-2g; Tue, 19 Sep 2023 07:42:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66099] [PATCH gnome-team 1/3] gnu: eudev: Update libudev version to 251. Resent-From: Vivien Kraus Original-Sender: "Debbugs-submit" Resent-CC: liliana.prikler@gmail.com, maxim.cournoyer@gmail.com, rg@raghavgururajan.name, guix-patches@gnu.org Resent-Date: Tue, 19 Sep 2023 11:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66099 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66099@debbugs.gnu.org Cc: liliana.prikler@gmail.com, maxim.cournoyer@gmail.com, rg@raghavgururajan.name X-Debbugs-Original-Xcc: liliana.prikler@gmail.com, maxim.cournoyer@gmail.com, rg@raghavgururajan.name Received: via spool by 66099-submit@debbugs.gnu.org id=B66099.169512366414240 (code B ref 66099); Tue, 19 Sep 2023 11:42:02 +0000 Received: (at 66099) by debbugs.gnu.org; 19 Sep 2023 11:41:04 +0000 Received: from localhost ([127.0.0.1]:55511 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qiZ6F-0003hX-E1 for submit@debbugs.gnu.org; Tue, 19 Sep 2023 07:41:04 -0400 Received: from planete-kraus.eu ([89.234.140.182]:40840) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qiZ6C-0003gz-3b for 66099@debbugs.gnu.org; Tue, 19 Sep 2023 07:41:01 -0400 Received: from planete-kraus.eu (localhost.lan [127.0.0.1]) by planete-kraus.eu (OpenSMTPD) with ESMTP id ad5ea143 for <66099@debbugs.gnu.org>; Tue, 19 Sep 2023 11:40:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=planete-kraus.eu; h= message-id:in-reply-to:references:from:date:subject:mime-version :content-type:content-transfer-encoding:to; s=albinoniA; bh=NeJD 8t1KN5wJnTgyB9jSnl6vSzE=; b=MQwhL+fB03QjRDpLZ7jh6MSVyyY1vzA4YqA/ Lg/4MEddRhPoK1gmJnSH/lgX+QMBqGfDOEoC6GYKOKS78Vx9aH4e3xdwt2OpfPGB oc/eCLTn7fTCIPk1uei+zVmtsuu7fLh4VceYuODxF850lsG4CI5nwk6D8trr51e6 ueiDQXyY5JZGqMokcbX5pjZe8dYEBtAxtlVOrxgAVjXUJrivIX1HTLw1fVHE8bg6 MO3jaefs06nwuc1JqvNXxkJ1xmg4Iu0CW7rXH9eP0iCzD3gVxqx2TDicu8Z44raN tQZKRc7B8JYnBaf2q8Gt5sCW847eOlJUrVksYkIRz0GnqnMx2A== Received: by planete-kraus.eu (OpenSMTPD) with ESMTPSA id 2387034a (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO) for <66099@debbugs.gnu.org>; Tue, 19 Sep 2023 11:40:50 +0000 (UTC) Message-ID: In-Reply-To: References: Date: Tue, 19 Sep 2023 13:23:22 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit User-Agent: Evolution 3.46.4 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: Vivien Kraus X-ACL-Warn: , Vivien Kraus via Guix-patches From: Vivien Kraus via Guix-patches via 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: -0.75 X-Spam-Score: -0.75 X-Migadu-Queue-Id: 9EDEAC51D X-Migadu-Scanner: mx0.migadu.com X-TUID: OVM7gaQsDED8 Support for version 251 is only provided as a merge request for now: https://github.com/eudev-project/eudev/pull/253 This merge request bumps the eudev version to 3.2.14, but it has not been released yet. The udevadm command to generate the hwdb.bin file now looks at file under /lib/udev/hwdb.d, and generates /lib/udev/hwdb.bin. The intention is not to touch /etc so that users can supply their own files. The steps to generate the file are: 1. Copy /etc/udev/hwdb.d to /lib/udev/hwdb.d to accept all files from eudev; 2. Generate /lib/udev/hwdb.bin from /lib/udev/hwdb.d (by passing --usr to the udevadm command-line) − if not cross-compiling; 3. Copy /lib/udev/hwdb.bin to /etc/udev − if not cross-compiling. Point 1. is dealt with in a new phase, and points 2. and 3. are dealt with in the 'build-hwdb phase. * gnu/packages/linux.scm (eudev): Update to v3.2.12, but bump version to 3.2.14.beta. [#:phases] : New phase. : Update accordingly. * gnu/packages/patches/eudev-bump-to-251.patch: New file. * gnu/packages/linux.scm (eudev): Use it here. * gnu/local.mk (dist_patch_DATA): Register it here. --- gnu/local.mk | 1 + gnu/packages/linux.scm | 22 ++- gnu/packages/patches/eudev-bump-to-251.patch | 134 +++++++++++++++++++ 3 files changed, 151 insertions(+), 6 deletions(-) create mode 100644 gnu/packages/patches/eudev-bump-to-251.patch diff --git a/gnu/local.mk b/gnu/local.mk index db21feb507..8b9365055d 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1122,6 +1122,7 @@ dist_patch_DATA = \ %D%/packages/patches/esmini-use-pkgconfig.patch \ %D%/packages/patches/esmtp-add-lesmtp.patch \ %D%/packages/patches/eudev-rules-directory.patch \ + %D%/packages/patches/eudev-bump-to-251.patch \ %D%/packages/patches/evdi-fix-build-with-linux-6.2.patch \ %D%/packages/patches/exercism-disable-self-update.patch \ %D%/packages/patches/extempore-unbundle-external-dependencies.patch \ diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 91109c41d9..2cad9cbbe9 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -4225,16 +4225,17 @@ (define-public eudev ;; The post-systemd fork, maintained by Gentoo. (package (name "eudev") - (version "3.2.11") + (version "3.2.14.beta") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/gentoo/eudev") - (commit (string-append "v" version)))) + (commit "v3.2.12"))) (file-name (git-file-name name version)) (sha256 (base32 - "0dzaqwjnl55f69ird57wb6skahc6l7zs1slsrzqqfhww33icp6av")) - (patches (search-patches "eudev-rules-directory.patch")))) + "0wpckjxzsb4wkj3pwnw14zmp3z8ivf03hjbgs838q5gfridpxnf7")) + (patches (search-patches "eudev-rules-directory.patch" + "eudev-bump-to-251.patch")))) (build-system gnu-build-system) (arguments (list @@ -4257,7 +4258,14 @@ (define-public eudev (substitute* (string-append #$output "/lib/libudev.la") (("old_library=.*") "old_library=''\n"))))) - (add-after 'install 'build-hwdb + (add-after 'install 'allow-eudev-hwdb + (lambda _ + ;; eudev distributes the hwdb, but each file has to be enabled + ;; by being copied under /lib/udev/hwdb.d. We accept all of + ;; them. + (symlink (string-append #$output "/etc/udev/hwdb.d") + (string-append #$output "/lib/udev/hwdb.d")))) + (add-after 'allow-eudev-hwdb 'build-hwdb (lambda _ ;; Build OUT/etc/udev/hwdb.bin. This allows 'lsusb' and ;; similar tools to display product names. @@ -4267,7 +4275,9 @@ (define-public eudev #$@(if (%current-target-system) #~(#t) #~((invoke (string-append #$output "/bin/udevadm") - "hwdb" "--update")))))) + "hwdb" "--update" "--usr") + (symlink (string-append #$output "/lib/udev/hwdb.bin") + (string-append #$output "/etc/udev/hwdb.bin"))))))) #:configure-flags #~(list "--enable-manpages"))) (native-inputs (list autoconf diff --git a/gnu/packages/patches/eudev-bump-to-251.patch b/gnu/packages/patches/eudev-bump-to-251.patch new file mode 100644 index 0000000000..96a73f4ede --- /dev/null +++ b/gnu/packages/patches/eudev-bump-to-251.patch @@ -0,0 +1,134 @@ +From 4d29151078c351569767dfef490a29e379afd430 Mon Sep 17 00:00:00 2001 +Message-ID: <4d29151078c351569767dfef490a29e379afd430.1695104483.git.vivien@planete-kraus.eu> +In-Reply-To: +References: +From: Boian Bonev +Date: Tue, 30 May 2023 16:16:33 +0000 +Subject: [PATCH 1/1] Update as per IRC discussion + +Bump udev version to 251 + +Export dummies for + + - udev_device_has_current_tag + - udev_device_get_current_tags_list_entry + +since the current eudev device database does not support the concept of +current tags + +bump version to 3.2.14 +--- + README.md | 18 ++++++++++++------ + configure.ac | 4 ++-- + src/libudev/libudev-device.c | 11 +++++++++++ + src/libudev/libudev.h | 2 ++ + src/libudev/libudev.sym | 6 ++++++ + 5 files changed, 33 insertions(+), 8 deletions(-) + +diff --git a/README.md b/README.md +index 848ef3348..6016380ba 100644 +--- a/README.md ++++ b/README.md +@@ -1,11 +1,17 @@ +-This git repo is a fork of git://anongit.freedesktop.org/systemd/systemd +-with the aim of isolating udev from any particular flavor of system +-initialization. In this case, the isolation is from systemd. ++**eudev** is a standalone dynamic and persistent device naming support (aka ++userspace devfs) daemon that runs independently from the init system. ++**eudev** strives to remain init system and linux distribution neutral. It is ++currently used as the devfs manager for more than a dozen different linux ++distributions. ++ ++This git repo is a fork of git://anongit.freedesktop.org/systemd/systemd with ++the aim of isolating udev from any particular flavor of system initialization. ++In this case, the isolation is from systemd. + + This is a project started by Gentoo developers and testing was initially being +-done mostly on OpenRC. We welcome contribution from others using a variety of +-system initializations to ensure eudev remains system initialization and +-distribution neutral. On 2021-08-20 Gentoo decided to abandon eudev and a new ++done mostly on OpenRC. We welcome contribution from others using a variety of ++system initializations to ensure **eudev** remains system initialization and ++distribution neutral. On 2021-08-20 Gentoo decided to abandon eudev and a new + project was established on 2021-09-14 by Alpine, Devuan and Gentoo + contributors (alphabetical order). + +diff --git a/configure.ac b/configure.ac +index 3e31b0ebc..0d9a135bc 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -1,6 +1,6 @@ + AC_PREREQ([2.68]) +-AC_INIT([eudev],[3.2.12],[https://github.com/gentoo/eudev/issues]) +-AC_SUBST(UDEV_VERSION, 243) ++AC_INIT([eudev],[3.2.14],[https://github.com/gentoo/eudev/issues]) ++AC_SUBST(UDEV_VERSION, 251) + AC_CONFIG_SRCDIR([src/udev/udevd.c]) + + AC_USE_SYSTEM_EXTENSIONS +diff --git a/src/libudev/libudev-device.c b/src/libudev/libudev-device.c +index ac67ce846..7d7a6622e 100644 +--- a/src/libudev/libudev-device.c ++++ b/src/libudev/libudev-device.c +@@ -1819,6 +1819,12 @@ _public_ struct udev_list_entry *udev_device_get_tags_list_entry(struct udev_dev + return udev_list_get_entry(&udev_device->tags_list); + } + ++_public_ struct udev_list_entry *udev_device_get_current_tags_list_entry(struct udev_device *udev_device) ++{ ++ // TODO: eudev database does not support current tags ++ return udev_device_get_tags_list_entry(udev_device); ++} ++ + /** + * udev_device_has_tag: + * @udev_device: udev device +@@ -1842,6 +1848,11 @@ _public_ int udev_device_has_tag(struct udev_device *udev_device, const char *ta + return false; + } + ++_public_ int udev_device_has_current_tag(struct udev_device *udev_device, const char *tag) { ++ // TODO: eudev database does not support current tags ++ return udev_device_has_tag(udev_device, tag); ++} ++ + #define ENVP_SIZE 128 + #define MONITOR_BUF_SIZE 4096 + static int update_envp_monitor_buf(struct udev_device *udev_device) +diff --git a/src/libudev/libudev.h b/src/libudev/libudev.h +index 8491d2b81..0202964d6 100644 +--- a/src/libudev/libudev.h ++++ b/src/libudev/libudev.h +@@ -100,6 +100,7 @@ int udev_device_get_is_initialized(struct udev_device *udev_device); + struct udev_list_entry *udev_device_get_devlinks_list_entry(struct udev_device *udev_device); + struct udev_list_entry *udev_device_get_properties_list_entry(struct udev_device *udev_device); + struct udev_list_entry *udev_device_get_tags_list_entry(struct udev_device *udev_device); ++struct udev_list_entry *udev_device_get_current_tags_list_entry(struct udev_device *udev_device); + struct udev_list_entry *udev_device_get_sysattr_list_entry(struct udev_device *udev_device); + const char *udev_device_get_property_value(struct udev_device *udev_device, const char *key); + const char *udev_device_get_driver(struct udev_device *udev_device); +@@ -110,6 +111,7 @@ unsigned long long int udev_device_get_usec_since_initialized(struct udev_device + const char *udev_device_get_sysattr_value(struct udev_device *udev_device, const char *sysattr); + int udev_device_set_sysattr_value(struct udev_device *udev_device, const char *sysattr, char *value); + int udev_device_has_tag(struct udev_device *udev_device, const char *tag); ++int udev_device_has_current_tag(struct udev_device *udev_device, const char *tag); + + /* + * udev_monitor +diff --git a/src/libudev/libudev.sym b/src/libudev/libudev.sym +index 76726fca7..d56c2aeab 100644 +--- a/src/libudev/libudev.sym ++++ b/src/libudev/libudev.sym +@@ -118,3 +118,9 @@ global: + udev_queue_flush; + udev_queue_get_fd; + } LIBUDEV_199; ++ ++LIBUDEV_247 { ++global: ++ udev_device_has_current_tag; ++ udev_device_get_current_tags_list_entry; ++} LIBUDEV_215; +-- +2.41.0 + -- 2.41.0