From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 4JSxM1F3ZWROqAAASxT56A (envelope-from ) for ; Thu, 18 May 2023 02:54:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id aDOGM1F3ZWTkbwEAauVa8A (envelope-from ) for ; Thu, 18 May 2023 02:54:41 +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 8581D3F129 for ; Thu, 18 May 2023 02:54:39 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pzRu8-00009E-56; Wed, 17 May 2023 20:54: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 1pzRu7-00008w-AL for guix-patches@gnu.org; Wed, 17 May 2023 20:54: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 1pzRu7-00026T-2b for guix-patches@gnu.org; Wed, 17 May 2023 20:54:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pzRu6-0006hs-U9 for guix-patches@gnu.org; Wed, 17 May 2023 20:54:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63508] [PATCH v2 2/4] gnu: eudev: Convert build arguments to gexps. Resent-From: Felix Lechner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 18 May 2023 00:54: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: Liliana Marie Prikler , Felix Lechner Received: via spool by 63508-submit@debbugs.gnu.org id=B63508.168437118625694 (code B ref 63508); Thu, 18 May 2023 00:54:02 +0000 Received: (at 63508) by debbugs.gnu.org; 18 May 2023 00:53:06 +0000 Received: from localhost ([127.0.0.1]:51500 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pzRtB-0006gL-VN for submit@debbugs.gnu.org; Wed, 17 May 2023 20:53:06 -0400 Received: from sail-ipv4.us-core.com ([208.82.101.137]:57944) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pzRt9-0006fX-0o for 63508@debbugs.gnu.org; Wed, 17 May 2023 20:53:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=D8Xf6yKzYiSFV+j ozi7bYwI1vK2K0oXLEE8lHVyfN4I=; h=references:in-reply-to:date:subject: cc:to:from; d=lease-up.com; b=Sa8dTxIK/pjR+5mq96/dGFD/StrK7pTxO6+icueF bjmnvs/ZsxaVEfMEy3By6TGYQ/iHXsFNbNWr7tsmN6S/ZVkTefd+qybzHlzD3fYoB2JeMe rgjSwzNB95gmVNoWutzsm3bmjDeLrxjPbWZau0JEqDFL6vyW8txj3PbZbChxc= Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id c75eedca (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Thu, 18 May 2023 00:53:01 +0000 (UTC) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 95be0def; Thu, 18 May 2023 00:53:00 +0000 (UTC) Date: Wed, 17 May 2023 17:52:39 -0700 Message-Id: X-Mailer: git-send-email 2.40.1 In-Reply-To: <29b8c15130a15487142ecf2089cba2a76ee8cb6d.1684370595.git.felix.lechner@lease-up.com> References: <29b8c15130a15487142ecf2089cba2a76ee8cb6d.1684370595.git.felix.lechner@lease-up.com> 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: , Reply-to: Felix Lechner X-ACL-Warn: , Felix Lechner via Guix-patches From: Felix Lechner 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1684371279; a=rsa-sha256; cv=none; b=XLMQ7JYpEsy/qe3jUNqxkCJ7NYsmvffQLM+6DQeGvQpMGeObH/MAvqD8vMB+ubvZbHypKs YITfMie0IncyurwYhDeOC3qwq9uyC5dw8+9VFKA7uIuS4i0b2uBawlOYWTd1vaTNiEIfUe 4GJSh/HDgp5FCPaLEVEO4c+M+vYimOKfRWkw8lE2yXOhp9HT7iMJrEzZfUqohNf5PhG4Yk vRbzTmNIa2dnXtce3fl/k5uwD+7G1tgCWeGJl+wpLijqLyMXOqEHCPYH9Y6/bKpNce4Jl/ JfMDBvB0dObSL+09s1KNXo6o/2asUvigqOzxFkHCcHHv4oMpXVeWLokC81Pxgg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=Sa8dTxIK; 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=1684371279; 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-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=ytTmRCaRfh2O+hL+16H1uEAFIj4vlWnvYQVqe2uQs24=; b=f1+JNpKDIHn33EaSU9+O9D5enpfpKkEgmUVqVkpZf2MiiiSEEfLQ2iSCom18r0jb+IyE/X 37gaJTMp+Kawor123g49OTsc9Veu+U7qbPyKSBnZn2qQSxtI3DN/x11dLZKgYbY8l+sueV YkuzZ/eJl2DbYskOIh6lEoqyZ93HIhEO0Y6CWrhrEakyDar3JZamlgyXzV5hbffSh9TCrs IEB6R3YgIXC+KrELaDAD9MLkQ0Hf/wCy9mC+CPtyC+DThQZp67wQV9LD/TAKv5A9Cx2nue uYMueZio4IbZ+SiaogGGjjnyMP2KiBL2XIijO/6RYWQpY4WBdMWTGWCVjwpAQw== X-Migadu-Spam-Score: -2.19 X-Spam-Score: -2.19 X-Migadu-Queue-Id: 8581D3F129 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=Sa8dTxIK; 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" X-TUID: mdgpEaLJi7C3 * 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 1f1b319dbf..9058648700 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 -- 2.40.1