tech-pkg archive

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

Re: libstdc++ dependency mis-detection in gcc packages?





On Tue, May 2, 2023 at 05:37 Jonathan Perkin <jperkin%mnx.io@localhost> wrote:
* On 2023-05-02 at 11:56 BST, Havard Eidnes wrote:

>2) The main point: is the pkgin warning for the gcc12 and gcc10
>   package installation spurious?  Is the bug with the generation of
>   pkg_summary?  We really should not emit a warning which seems to
>   indicate "this will not work" when it evidently does anyway.
>   Teaching users to ignore warnings is bad practice.

The generation of REQUIRES comes from the ${_BUILD_INFO_FILE} target in
mk/pkgformat/pkg/metadata.mk.  On most systems it does a basic ldd on
all of the binaries and libraries that are contained in the package, and
so on systems where this is recursive it may end up listing libraries
that are not directly required by the package (and so the software may
work regardless).

For many years I've used this patch which instead only records direct
dependencies via DT_NEEDED:

   https://github.com/TritonDataCenter/pkgsrc/commit/dff5fd726aa1d33966ab4557cc55026f38905f46

It might be good to get consensus on this and figure out a portable way
to do it for all ELF platforms.

As usual, I think Jonathan has hit the nail on the head, and the patch lgtm

Which makes me wonder- are there any other patches we should be incorporating, Jonathan?

:)

Thanks,
Alistair 


Home | Main Index | Thread Index | Old Index