From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id YGubAmWZqGVHrgAAqHPOHw:P1 (envelope-from ) for ; Thu, 18 Jan 2024 04:22:13 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id YGubAmWZqGVHrgAAqHPOHw (envelope-from ) for ; Thu, 18 Jan 2024 04:22:13 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=luLh5YDx; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705548132; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: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=8uI7rhO+nA2qRI8ZpM7MvRr6ZrE/A6vc47Wlrm1alF4=; b=jKiQZ7GuAOJ2s2vXISeIvvR++YDAvZbzRATRdJ9RX+OwOiJwe+hlIWydmHaQnqrR8QxBfK I9lnDkPkcwk38MhxaWTsic82/0jybJs4PwJb4pUODiRwdYGPWGTpyzq6YwkqQNvfreG/qW Yl/JEC7sSqnVxvBNEEP/bDS/MynfBR1yju4bU/bDQJKsMd7A05CShlZyQB7bMFP21JlRti Cn/1pB4V/sx1gYE4HuyxzJkkLMFTYKwnptW4mJLHvAEYHUcbr1JSueLfzJL1Tqyx1MCKQ/ nfw/DDK038JGNUBVNyijjKrDpo/t4v6kjEXHSqaYScAZ6TTpnmGVuFvFBfQUTA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=luLh5YDx; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705548132; a=rsa-sha256; cv=none; b=O63vo/tl8+8s/ThR0zeDK6gEdriLdjyoeChYQr0DJnvZSZS3jspDAYiK9BpMLmyRdMOz+V BPEqXb+kK33CcetmjhuU/zT2O2V6zdc0SWjd2nmNk/WJjYo98VykDfWl6/mk5WVgU/sbsf 5pNXRYhpo0N2eGCJIWYKOfcQzJBwcT3XVYCZ2Ztcx5Fqf6+MsY0y7DeOVF7UmBOqR65VHF 8fwpUzfdnXj7n8KKsQA/y7e5x62C9lZNM4V2qgjz367s81EamTPBK851F5+gFyeLRdN//U phqLkFbTmflflCRo5lObHd3bvj0FQqm900B7Soo/WQN67upb0ZaBVmF0HAMoxw== 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 AD01D36D47 for ; Thu, 18 Jan 2024 04:22:12 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rQIyg-0003CA-S6; Wed, 17 Jan 2024 22:22:02 -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 1rQIyf-0003Bz-I2 for bug-guix@gnu.org; Wed, 17 Jan 2024 22:22:01 -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 1rQIyf-0000t4-98 for bug-guix@gnu.org; Wed, 17 Jan 2024 22:22:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rQIyg-0002LD-Bh for bug-guix@gnu.org; Wed, 17 Jan 2024 22:22:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#55793: Issue with elfutils libdw pkg-config's inputs Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 18 Jan 2024 03:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55793 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ioannis Kappas Cc: 55793@debbugs.gnu.org Received: via spool by 55793-submit@debbugs.gnu.org id=B55793.17055480688923 (code B ref 55793); Thu, 18 Jan 2024 03:22:02 +0000 Received: (at 55793) by debbugs.gnu.org; 18 Jan 2024 03:21:08 +0000 Received: from localhost ([127.0.0.1]:54070 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQIxn-0002Jo-MB for submit@debbugs.gnu.org; Wed, 17 Jan 2024 22:21:08 -0500 Received: from mail-qt1-x82b.google.com ([2607:f8b0:4864:20::82b]:60440) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQIxk-0002Iu-LT for 55793@debbugs.gnu.org; Wed, 17 Jan 2024 22:21:06 -0500 Received: by mail-qt1-x82b.google.com with SMTP id d75a77b69052e-4298e866cd6so72390211cf.0 for <55793@debbugs.gnu.org>; Wed, 17 Jan 2024 19:21:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705548057; x=1706152857; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=8uI7rhO+nA2qRI8ZpM7MvRr6ZrE/A6vc47Wlrm1alF4=; b=luLh5YDxpr7uc7q6SsBoU/X1gTGmnG8Hfewg9y5eqSTETEJFlvnM7pYmbcoG5ct/jK qOQAPzn8NcAhHX2W9vJ1oLbWe/BjGb0jqptnMJWL4zMldyu/HznnY2nkPzhq955JU7HK ILEbApwLdHXrgF5fLgjRRyQblD3Is79JZi2xEziNCTqqStKYR6T5ALksW3reqSVk2rKm jOXl7WvtLg5AEPL+qTQSUmZwl5Qp8nfRMDjqvKgBqFHLz8+yhq9xWcfzkS+WOwYrbVap XbB5mGJquSh7r3g3D6IN6fTBpCn137Iu6WWMczdI9GLT8XfhOhcx8yFnnnqrGanh00rl RF/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705548057; x=1706152857; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=8uI7rhO+nA2qRI8ZpM7MvRr6ZrE/A6vc47Wlrm1alF4=; b=dMQOkiNmYdvk1YJ2oxzTAyS424YG8bJvd5iZF8qgcB43btg2UFHovkY7VdnlLOcWcA vJQELKP2os0wpIzCwVAdK50gmFQDOP1XG8xpQGv5CxLhNqSSyTWzY3bEjPwHbykJRlc/ najVyShg4WJ7Ieuhi7xtuOCUJ1g1CJeVnyK6jac0cvDbanxHSCY0a7jvcgKHq1mShI+W DmfSds9ExS4vWvxDKkj9C8RANWPnnzSlZsKJvWNLfvBZl2mnsN8HeSfRKdofuRC6ut5p KyJh3Mvqv9REWSdQPVTthe6n/hOckA+qSXr1SeIKFKmbb0eFqSM7ems6ajyTKWsAdY5h +1dw== X-Gm-Message-State: AOJu0Yx0GZa3Vy9irjPogIOGWxbP3nAcrwjGd1sjg3Gbbt+XjjONTuO7 C1hmD7RKm/ZPaBdQADndzc4hefj6cAnPrCy3RQrOAdORnhSd5KrwP398h1QMNbM= X-Google-Smtp-Source: AGHT+IE/lPhAozkdRiuY/OIcPEmfmiu09Gy8Oi4HuFVkLlfp6DuBYKf9ZR7P3vxCb0fkuQSBhJJl5g== X-Received: by 2002:a05:622a:82:b0:42a:7e1:dd42 with SMTP id o2-20020a05622a008200b0042a07e1dd42mr222958qtw.128.1705548057207; Wed, 17 Jan 2024 19:20:57 -0800 (PST) Received: from hurd (dsl-10-141-147.b2b2c.ca. [72.10.141.147]) by smtp.gmail.com with ESMTPSA id s7-20020a05620a080700b007831cca1e84sm4990680qks.10.2024.01.17.19.20.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 19:20:56 -0800 (PST) From: Maxim Cournoyer In-Reply-To: (Ioannis Kappas's message of "Sat, 4 Jun 2022 10:54:45 +0100") References: Date: Wed, 17 Jan 2024 22:20:54 -0500 Message-ID: <87zfx3l42x.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 2.31 X-Spam-Score: 2.31 X-Migadu-Queue-Id: AD01D36D47 X-Migadu-Scanner: mx12.migadu.com X-TUID: XTbY0veCK7+Y Hello, Ioannis Kappas writes: > Hi, > > there appears to be an issue with the elfutils package that is missing > a dependency after it is installed. > > To reproduce, on a profile without `xz' installed: > > $ guix install elfutils > $ pkg-config --cflags libdw > > Package liblzma was not found in the pkg-config search path. > Perhaps you should add the directory containing `liblzma.pc' > to the PKG_CONFIG_PATH environment variable > Package 'liblzma', required by 'libdw', not found > > or using gstreamer which depends on elfutils > > $ guix shell --check gstreamer pkg-config --pure > $ pkg-config --cflags libdw > Package liblzma was not found in the pkg-config search path. > Perhaps you should add the directory containing `liblzma.pc' > to the PKG_CONFIG_PATH environment variable > Package 'liblzma', required by 'libdw', not found > > This is because elfutils has discovered an installation of the `xz' > library during the configure phase (log @ > http://ci.guix.gnu.org/log/jp6027624wl2f4xx5yz1vjzd2b9yvwl9-elfutils-0.183) > > ... > checking for library containing gzdirect... -lz > checking for library containing BZ2_bzdopen... -lbz2 > checking for library containing lzma_auto_decoder... -llzma > checking for library containing ZSTD_decompress... no > ... > > even though it is not part of the package inputs > > gnu/packages/elf.scm: > (define-public elfutils > (package > (name "elfutils") > (version "0.183") > ;; ... > (native-inputs (list m4)) > (inputs (list zlib)) > ;; ... > )) > > The `xz' package is most likely coming as an implicit input from the > commencement module's %final-inputs and thus picked up by the > configure script, but is never propagated. > > Assuming the above analysis is correct, potential solutions could be: > > 1. Declare `xz` as a propagated input in elfutils. > 2. Pass --without-lzma to the configure script. > 3. Change the build scripts so that build inputs that are only used > for unpacking sources are only visible to unpack phase. > > Looking closer at the configure output, it appears there is an > additional implicit input that is picked up by the configure script > `bzip2`, thus this should also be considered. > > Furthermore, the configure script recommends that all compression > methods should be installed > > RECOMMENDED FEATURES (should all be yes) > gzip support : yes > bzip2 support : yes > lzma/xz support : yes > zstd support : no > libstdc++ demangle support : yes > File textrel check : yes > Symbol versioning : yes > > so perhaps option#1 above should be the preferred solution, and should > also include zstd as a dep? If so, I've created the following draft > to demonstrate its use > >>>From 158b3f67fdd43b4e9b6ac1d46d27169e4f67c4de Mon Sep 17 00:00:00 2001 > Subject: [PATCH] Include elfutils recommended inputs for libdw pc > > --- > gnu/packages/elf.scm | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/gnu/packages/elf.scm b/gnu/packages/elf.scm > index 414d6a2856..cfe3bd466a 100644 > --- a/gnu/packages/elf.scm > +++ b/gnu/packages/elf.scm > @@ -109,6 +109,10 @@ (define-public elfutils > > (native-inputs (list m4)) > (inputs (list zlib)) > + ;; libdw dependencies > + (propagated-inputs `(("xz" ,xz) > + ("lbzip2" ,lbzip2) > + ("zstd:lib" ,zstd "lib"))) > (home-page "https://sourceware.org/elfutils/") > (synopsis "Collection of utilities and libraries to handle ELF files and > DWARF data") Thank you for the detailed analysis and report! I think it'd make sense to apply your patch. I won't do so myself at the moment as core-updates is being frozen, but perhaps after it gets merged or a temporary branch of core-updates is created to refine it there. Reviewed-by: Maxim Cournoyer -- Thanks, Maxim