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 ms5.migadu.com with LMTPS id gMvAJYZ7m2Jh7AAAbAwnHQ (envelope-from ) for ; Sat, 04 Jun 2022 17:34:30 +0200 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 CEabJYZ7m2LG4AAAauVa8A (envelope-from ) for ; Sat, 04 Jun 2022 17:34:30 +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 2193319ED4 for ; Sat, 4 Jun 2022 17:34:29 +0200 (CEST) Received: from localhost ([::1]:48006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nxVnI-0005Xe-Lt for larch@yhetil.org; Sat, 04 Jun 2022 11:34:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46118) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nxQUo-0007h0-Fw for bug-guix@gnu.org; Sat, 04 Jun 2022 05:55:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35542) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nxQUo-0005Zx-0F for bug-guix@gnu.org; Sat, 04 Jun 2022 05:55:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nxQUn-0000sh-US for bug-guix@gnu.org; Sat, 04 Jun 2022 05:55:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#55793: Issue with elfutils libdw pkg-config's inputs Resent-From: Ioannis Kappas Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 04 Jun 2022 09:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55793 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 55793@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16543364993371 (code B ref -1); Sat, 04 Jun 2022 09:55:01 +0000 Received: (at submit) by debbugs.gnu.org; 4 Jun 2022 09:54:59 +0000 Received: from localhost ([127.0.0.1]:57672 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nxQUk-0000sJ-Jk for submit@debbugs.gnu.org; Sat, 04 Jun 2022 05:54:58 -0400 Received: from lists.gnu.org ([209.51.188.17]:39846) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nxQUi-0000sA-LJ for submit@debbugs.gnu.org; Sat, 04 Jun 2022 05:54:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46078) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nxQUi-0007gm-1r for bug-guix@gnu.org; Sat, 04 Jun 2022 05:54:56 -0400 Received: from mail-oi1-x229.google.com ([2607:f8b0:4864:20::229]:34504) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nxQUg-0005YH-5Q for bug-guix@gnu.org; Sat, 04 Jun 2022 05:54:55 -0400 Received: by mail-oi1-x229.google.com with SMTP id k187so13446428oif.1 for ; Sat, 04 Jun 2022 02:54:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=7TUs2whV46VNbNMLgE3Nl/f7lqCbY0Gl31ZfxwJkv5A=; b=NOWbUq1Y2pwZkyFqL2ZDGtBTBn5mtJV2Rtg6hubK8pbXthMyxMowTSjJ+WzJYv3oLS /e9NLMZD3abiYpmxVstUGGN+00v3azFyU2FA34l4hl8IQav7qk1qWzTFWrOvCNwyAB7Z Tipm78aibrYKLfaBy1oLBJ/tYWvbrdG8WF9JOvMtM/Et3s9fEZkA5vCl7MK102tz3kSv 5nlaeZRffCFDpha1srJ70Y6IKKLPHMyb4wsDPiMN+xmtYPqAp9aLSVWfoFOqyIDQFIoA mI2xPyC/93GbXtBySmPUTYfDtd9u7SFhjNVyWsSAkX5OSSp/cLDYuoZKNTCkPbTyq9+i HP8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=7TUs2whV46VNbNMLgE3Nl/f7lqCbY0Gl31ZfxwJkv5A=; b=FBX7XlxIo6wthQ/72ihbt88c1uzrV7AAl8/6kVxLwI9vv78r55oFz1CoLRUcZavx5i lzw7Pe2wpD6k1dJGqWHGVXBH5agcPPn57wF8e7afpdx4PQCd1UAbzC6aCguNPRXbI9rg +xuTk2qyEUC7lXZPCu9L3HyeaKeyQgC6Se0RCJV3Ky+fV0ue4t+atRk+XohUY/YaYNIy d2D5ag2kv6sGpU7BzAyDYDjziVhQx3NzoXFfAGa+O5QzmlqDEaRKp1r8ORZpS2w6Bw0c Olw2aXN4KzH0i/qPWOrt5uDroKywg6ytwQuYGfI6SQMu5zpJy5e1Sdxf+4nrCvI3mnWD cNHw== X-Gm-Message-State: AOAM532ftmNRP4nnoSAX4ls/9btF7AFXSXHH63EkbYfYcMH45xhyaPvq XeoCVKESSaBcoZefN9E96kl+Q4NothV+JOF9sRHHSA6YC2M= X-Google-Smtp-Source: ABdhPJzfHvMNvPdlpKuWMZiJ1eBSmznkNakKiBALAWBvEGiyMr1eQwWND6x2wnBv4auDmER6Ek9/N4m+wD6b3AgPDNE= X-Received: by 2002:a05:6808:2326:b0:32b:89:175b with SMTP id bn38-20020a056808232600b0032b0089175bmr24978938oib.178.1654336492433; Sat, 04 Jun 2022 02:54:52 -0700 (PDT) MIME-Version: 1.0 From: Ioannis Kappas Date: Sat, 4 Jun 2022 10:54:45 +0100 Message-ID: Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::229; envelope-from=ioannis.kappas@gmail.com; helo=mail-oi1-x229.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-Mailman-Approved-At: Sat, 04 Jun 2022 11:34:03 -0400 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1654356870; 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=7TUs2whV46VNbNMLgE3Nl/f7lqCbY0Gl31ZfxwJkv5A=; b=iNd1ibJPVEs9XCd/vAo8sbc65EC7DA60yyGJxB/ZM/evTvKriC+Q0A8CQknSb8YHm7CvrL dMxYl1zSNe2Y1i4gLH3quRTBMNDDRVbRUl5hS6hy8SE0V2i+rcKwOcqFwE2GPD8nRIPPnA +26CwazgdnpCEBdnRPEvh7YsJAolrsFttn+b8emPixWuyTxrckaas0NhSp6nWZojRR/XFo 6o7WasHaV2cW/uHGhJnB6gd8g3+VcAw+/vp4q1Pq0VDtkxyq8PQRK0Wpuq1etE2/x7yRqi AVmVu05uBZpCjyTONgcI1zqxdU97xvxwwFJNiBYijHmBiWbMZeUVEoajxLjdXA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654356870; a=rsa-sha256; cv=none; b=Xb8PNHfQDbnONcJ+h8II5Z/522sEOCNURZjUQHwDiIy3jmKYYHLkNEMiTED0rzteCbefnD vcv5Y/xym4xC2j3x5WWJ56Nk08PuBiqD/p6P+sJ6V8DDVnCuncnEMt6Sx07sJNVfRnkpvU aow1tJLmw4IJdFzv0PjK0KuZG5ucVUrhaW0dHonJUdP3j0jP+D7PwS/pB0Cbja6LuoCKEh DbLQfciD8HUC2MHyD1f+9flVFu4UVfSV7qwiC4N/bhcKDsMi3iFxjYAnmYSpsW66JrQuvQ o4nhAQy0E0U0afy+cCTG7lZIQoGKsNjnN/ZJ5dBspnVZx0NeC3iMTCW80chzcg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=NOWbUq1Y; 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" X-Migadu-Spam-Score: 5.78 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=NOWbUq1Y; 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" X-Migadu-Queue-Id: 2193319ED4 X-Spam-Score: 5.78 X-Migadu-Scanner: scn0.migadu.com X-TUID: GQnKFisA35hT 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") -- 2.34.0 Testing with gstreamer $ pre-inst-env guix shell --check gstreamer pkg-config --pure guix shell: checking the environment variables visible from shell '/bin/bash'... guix shell: All is good! The shell gets correct environment variables. $ pkg-config --cflags libdw -I/gnu/store/yvf3j3gd3321k9n1wd9ycfaz7blbp8v6-elfutils-0.183/include -I/gnu/store/aggsb6j1svxp70xlll4rqnx5f2pzz794-xz-5.2.5/include -I/gnu/store/3x3dl71d4xm6y4hjwq110hmfyfx0xc6j-zstd-1.5.0-lib/include -I/gnu/store/yvf3j3gd3321k9n1wd9ycfaz7blbp8v6-elfutils-0.183/include -I/gnu/store/8qv5kb2fgm4c3bf70zcg9l6hkf3qzpw9-zlib-1.2.11/include Thanks