emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#68718: closed ([PATCH] gnu: elfutils: Move inputs to propagated-inpu


From: GNU bug Tracking System
Subject: bug#68718: closed ([PATCH] gnu: elfutils: Move inputs to propagated-inputs.)
Date: Fri, 31 May 2024 03:16:02 +0000

Your message dated Thu, 30 May 2024 23:13:53 -0400
with message-id <87ttied66m.fsf@gmail.com>
and subject line Re: [PATCH v2] gnu: elfutils: Move inputs to propagated-inputs.
has caused the debbugs.gnu.org bug report #68718,
regarding [PATCH] gnu: elfutils: Move inputs to propagated-inputs.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
68718: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=68718
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] gnu: elfutils: Move inputs to propagated-inputs. Date: Thu, 25 Jan 2024 15:00:50 -0500
zlib and liblzma are required in `lib/pkgconfig/{libdw,libelf}.pc'.
Thus, `lib/pkgconfig/liblzma.pc' and `lib/pkgconfig/zlib.pc' from the xz
and zlib packages must be propagated for pkg-config to work on libdw and
libelf.

* gnu/packages/elf.scm (elfutils): Move packages ...
[inputs]: ... from here ...
[propagated-inputs]: ... to here.

Change-Id: Ic89d226b2392fe821b207302d3b386f9633b981a
---
 gnu/packages/elf.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/packages/elf.scm b/gnu/packages/elf.scm
index a100038f14..b760f1b339 100644
--- a/gnu/packages/elf.scm
+++ b/gnu/packages/elf.scm
@@ -138,7 +138,7 @@ (define-public elfutils
              '()))))
 
     (native-inputs (list m4))
-    (inputs (list xz zlib))
+    (propagated-inputs (list xz zlib))
     (home-page "https://sourceware.org/elfutils/";)
     (synopsis "Collection of utilities and libraries to handle ELF files and
 DWARF data")

base-commit: ed7eb108e5ba38135db99aa3b162f88797c372f9
-- 
2.41.0




--- End Message ---
--- Begin Message --- Subject: Re: [PATCH v2] gnu: elfutils: Move inputs to propagated-inputs. Date: Thu, 30 May 2024 23:13:53 -0400 User-agent: Gnus/5.13 (Gnus v5.13)
Hi,

odion@efficios.com writes:

> From: Olivier Dion <olivier.dion@polymtl.ca>
>
> zlib and liblzma are required in `lib/pkgconfig/{libdw,libelf}.pc'.
> Thus, `lib/pkgconfig/liblzma.pc' and `lib/pkgconfig/zlib.pc' from the xz
> and zlib packages must be propagated for pkg-config to work on libdw and
> libelf.
>
> * gnu/packages/elf.scm (elfutils): Move packages ...
> [inputs]: ... from here ...
> [propagated-inputs]: ... to here.

I've reworded the GNU ChangeLog part like:

* gnu/packages/elf.scm (elfutils)
[inputs]: Turn into...
[propagated-inputs]: ... this field.

> Change-Id: Ic89d226b2392fe821b207302d3b386f9633b981a
> ---
>  gnu/packages/elf.scm | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/gnu/packages/elf.scm b/gnu/packages/elf.scm
> index a100038f14..484f8dfc2c 100644
> --- a/gnu/packages/elf.scm
> +++ b/gnu/packages/elf.scm
> @@ -138,7 +138,11 @@ (define-public elfutils
>               '()))))
>  
>      (native-inputs (list m4))
> -    (inputs (list xz zlib))
> +    ;; zlib and liblzma are required in `lib/pkgconfig/{libdw,libelf}.pc'.
> +    ;; Thus, `lib/pkgconfig/liblzma.pc' and `lib/pkgconfig/zlib.pc' from the
> +    ;; xz and zlib packages must be propagated for pkg-config to work on 
> libdw
> +    ;; and libelf.
> +    (propagated-inputs (list xz zlib))

And simplified this to:

    (propagated-inputs (list xz zlib))  ;in Requires of libdw.pc, libelf.pc

and...

Actually, these are in 'Requires.private', which ought to be only useful
for static compilation (though these would be consulted for Cflags since
there's no Cflags.private in pkg-config).

pkgconf handles this better than pkg-config, letting you do without
propagation here, as long as the libs are found in a standard include
path and you are building a shared library.

I think with the planned switch to pkgconf, we probably should avoid
propagation here unless really necessary; do you have a failing example
at hand?

-- 
Maxim


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]