From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6Ft0Bg7T1mHNegAAgWs5BA (envelope-from ) for ; Thu, 06 Jan 2022 12:31:26 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 8BciAw7T1mExBwAAauVa8A (envelope-from ) for ; Thu, 06 Jan 2022 12:31:26 +0100 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 C2C441EACC for ; Thu, 6 Jan 2022 12:31:25 +0100 (CET) Received: from localhost ([::1]:58412 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n5QzM-0007L0-TV for larch@yhetil.org; Thu, 06 Jan 2022 06:31:24 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44640) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5Qz0-0007J1-By for guix-patches@gnu.org; Thu, 06 Jan 2022 06:31:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:46888) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n5Qz0-0005Pa-1E for guix-patches@gnu.org; Thu, 06 Jan 2022 06:31:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n5Qyz-0004Cr-OZ for guix-patches@gnu.org; Thu, 06 Jan 2022 06:31:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53049] [PATCH] gnu: libaio: Fix cross-compilation. Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 06 Jan 2022 11:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53049 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53049@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164146865116150 (code B ref -1); Thu, 06 Jan 2022 11:31:01 +0000 Received: (at submit) by debbugs.gnu.org; 6 Jan 2022 11:30:51 +0000 Received: from localhost ([127.0.0.1]:39791 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5Qyp-0004CQ-Hl for submit@debbugs.gnu.org; Thu, 06 Jan 2022 06:30:51 -0500 Received: from lists.gnu.org ([209.51.188.17]:59910) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5Qym-0004CH-9G for submit@debbugs.gnu.org; Thu, 06 Jan 2022 06:30:49 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44578) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5Qym-0007CE-4K for guix-patches@gnu.org; Thu, 06 Jan 2022 06:30:48 -0500 Received: from lepiller.eu ([89.234.186.109]:37742) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5Qyj-0005Nv-Sq for guix-patches@gnu.org; Thu, 06 Jan 2022 06:30:47 -0500 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id bf1384a8 for ; Thu, 6 Jan 2022 11:30:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:subject:message-id:mime-version:content-type; s=dkim; bh=6AV MRQKIXn00VSj1fh7GkLU2vchXISwCEBgCfam3ORs=; b=UePpIewH5EkvbjGO05T Z+9x8NRQKUM4Vbc6IgW8SvKsnkDdSwPSig+T3A88EngLdGAelrhMyCYsC0xXOIdZ Fo3zGb6W24Md1aavMf9EWRiJsiN64AoXaXxoBPSJ+WdT7bY9my01OLbRvUW+VROP fIT8PdjKuoQVGOxWGrmViv/IMAHG+ZGh0A03IkFYLm4fv3eWumltzhBZ4W1J/1fc Y5XsqO6zwaZ/Cy5Qr8KTp5dOMPn4rocMvkLXVFMr11JptTm5FI7ITFnp/Fb8KZ6I mQ5rkFLUUaGzNP+6ho9w7Q2Kvc4k29a6Yw+cXS1Kd6b2yFWbNMd5Oj9745bzcyww ufw== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id d34ae55e (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Thu, 6 Jan 2022 11:30:40 +0000 (UTC) Date: Thu, 6 Jan 2022 12:30:30 +0100 From: Julien Lepiller Message-ID: <20220106123030.128feae4@tachikoma.lepiller.eu> X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/qMgXP+sOsEw9Cnf8hdyEpha" Received-SPF: pass client-ip=89.234.186.109; envelope-from=julien@lepiller.eu; helo=lepiller.eu X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1641468685; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=OZWPpsUp0zxd3NrCiAUKjG5f7SAhgYdWOLqHs8frEwA=; b=Wg5xQlJo/eUgGpQuCwY7Pq/tWNAQ/46buNkpwQWYFCye7i7gHbsm70TuzdkR5PYQH580xd ujre7vVy0Qo6xBjX7ZQtMr8fe++r282YZr3guYNiato1kckNoYhIZNxk60+XkyDRXyNfzn 1wzlCWBZNupUIHhfklxIHYGeMXEOwE6MD/SPkQjDGjswjkBs5Zku5F6fDvHdfwQ7xEAe3o dlupVw4l7rn7nHkBeSRz19WhI9a2GXVedAgagsJMx42sd50O6bWYTlyCclVIr3s2UunMsV OA8vm+aBx0ne/FZICcmCfc6e91Se2UMKIvKNKgFYtLhGaoqCMdj+D/WT1au+OQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641468685; a=rsa-sha256; cv=none; b=ZdaqKnywBqwMgD+hkRJZop5nu0proOkcM4DEGj8Nexx6tH7R/LlqfQ9V4vnwQEbxpkRc/P 4oIxkfdCf9MqalwE5MKaG94g5Xvj9Bm7vIuns/auHnk0e07G/xV6iUX4SO/6bDcdW2UBat mGZ98F7rlB65F5/+2nI1JUs17v6XsU+W6KVFz13umaiTr4xu4Qh9BYFLyMVeQ44aJBOuF4 fRXkG4PjVZT1fMPSkqIkZhGIVCWpQxcqiBVhQZ7So8MGsJPymXLfQwVHYcnvzf2jx0JCpn 2abJ7jqUBs+K4GPRsXyQI59rjPxJsqf2br4IVqUVXAa8kjwNxzWhGtHGpESf0A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=UePpIewH; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); 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-Migadu-Spam-Score: -2.20 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=UePpIewH; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); 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-Migadu-Queue-Id: C2C441EACC X-Spam-Score: -2.20 X-Migadu-Scanner: scn1.migadu.com X-TUID: malvPr3e3Ia6 --MP_/qMgXP+sOsEw9Cnf8hdyEpha Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Guix! I saw a message on the unofficial #guix:matrix.org room about libaio failing to build. Indeed, it uses %output and that doesn't exist in cross-compilation context anymore. Here's a small patch to fix that. I had to be careful not to change the package outside of cross-compilation, since it has >5000 dependents, hence the ,(if ...) statement. --MP_/qMgXP+sOsEw9Cnf8hdyEpha Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0001-gnu-libaio-Fix-cross-compilation.patch >From 160572309d022b4249cb41296864a0e1c32eae0a Mon Sep 17 00:00:00 2001 Message-Id: <160572309d022b4249cb41296864a0e1c32eae0a.1641468451.git.julien@lepiller.eu> From: Julien Lepiller Date: Thu, 6 Jan 2022 11:48:16 +0100 Subject: [PATCH] gnu: libaio: Fix cross-compilation. * gnu/packages/linux.scm (libaio)[arguments]: Do not use singular %output. --- gnu/packages/linux.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 3daad494e1..438ced6a27 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -5225,7 +5225,9 @@ (define-public libaio (arguments `(#:make-flags (let ((target ,(%current-target-system))) - (list (string-append "prefix=" %output) + (list (string-append "prefix=" ,(if (%current-target-system) + `(assoc-ref %outputs "out") + '%output)) (string-append "CC=" (if target (string-append (assoc-ref %build-inputs "cross-gcc") -- 2.34.0 --MP_/qMgXP+sOsEw9Cnf8hdyEpha--