Page MenuHomeFreeBSD

archivers/rpm4: re-enable the build of the bundled elfdeps utility
ClosedPublic

Authored by markj on Jan 16 2023, 10:13 PM.
Tags
None
Referenced Files
F102792484: D38092.diff
Sun, Nov 17, 6:36 AM
Unknown Object (File)
Thu, Oct 24, 2:40 AM
Unknown Object (File)
Sat, Oct 19, 9:23 PM
Unknown Object (File)
Oct 17 2024, 5:10 PM
Unknown Object (File)
Oct 17 2024, 5:05 PM
Unknown Object (File)
Oct 14 2024, 5:15 AM
Unknown Object (File)
Sep 30 2024, 4:50 PM
Unknown Object (File)
Sep 25 2024, 7:26 PM
Subscribers

Details

Summary

Commit 5ff99a4c9df9 disabled libelf detection to work around the build
failure, but rpmbuild expects to be able to find the elfdeps utility and
misbehaves when it's not present. Since the build failure is easy to
address (different names for an ELF machine type constant for the rather
obsolescent DEC Alpha), let's just do that.

As a part of this, elfutils must be listed as a runtime dependency.
Note that we cannot list it in LIB_DEPENDS since the ports framework
ends up finding the base system libelf.so and decides that the
dependency is satisifed without installing elfutils. But the base
system libelf is missing a symbol (gelf_getvernaux) required by elfdeps.
Work around this by listing elfutils as both build and runtime
dependencies.

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

If you define LIB_DEPENDS both BUILD and RUN are implied?

If you define LIB_DEPENDS both BUILD and RUN are implied?

The problem is that libelf.so can be satisfied by /usr/lib/libelf.so, which is not what I want.

Ping? Is there anything I can do to help move this forward?

Ping? Is there anything I can do to help move this forward?

Hi Mark,

Ooops, my bad, I had approved the diff but the message doesn't seem to have been sent.
You can commit directly.

Regards

  • Rodrigo
This revision is now accepted and ready to land.Jan 23 2023, 3:21 PM

Ping? Is there anything I can do to help move this forward?

Hi Mark,

Ooops, my bad, I had approved the diff but the message doesn't seem to have been sent.
You can commit directly.

Regards

  • Rodrigo

Thank you!