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
Unknown Object (File)
Thu, Apr 11, 1:04 AM
Unknown Object (File)
Thu, Apr 11, 1:04 AM
Unknown Object (File)
Thu, Apr 11, 1:04 AM
Unknown Object (File)
Thu, Apr 11, 12:20 AM
Unknown Object (File)
Mon, Apr 1, 1:13 PM
Unknown Object (File)
Feb 10 2024, 2:58 PM
Unknown Object (File)
Dec 20 2023, 3:30 AM
Unknown Object (File)
Dec 17 2023, 3:59 AM
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!