diff options
author | Lucio Sauer <watermanpaint@posteo.net> | 2024-08-01 14:51:15 +0200 |
---|---|---|
committer | Lucio Sauer <watermanpaint@posteo.net> | 2024-08-01 15:00:45 +0200 |
commit | 6a9edcb8dea89f3b77d71e42583e19072701b3f1 (patch) | |
tree | f26182e671fb647cfbb10a1c3694733ec060a1f0 /sys-fs | |
parent | profiles: mask app-misc/pfetch for removal (diff) | |
download | guru-6a9edcb8dea89f3b77d71e42583e19072701b3f1.tar.gz guru-6a9edcb8dea89f3b77d71e42583e19072701b3f1.tar.bz2 guru-6a9edcb8dea89f3b77d71e42583e19072701b3f1.zip |
sys-fs/fsverity-utils: drop libfsverity.a (PG 0302)
No revdeps and not required by this package except for testing, when
USE_SHARED_LIB is set. Export prefixed AR due to dependence on
libfsverity.a at test phase.
Bug: https://bugs.gentoo.org/937042
Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>
Diffstat (limited to 'sys-fs')
-rw-r--r-- | sys-fs/fsverity-utils/fsverity-utils-1.6.ebuild | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/sys-fs/fsverity-utils/fsverity-utils-1.6.ebuild b/sys-fs/fsverity-utils/fsverity-utils-1.6.ebuild index d2a777437..cff9471d3 100644 --- a/sys-fs/fsverity-utils/fsverity-utils-1.6.ebuild +++ b/sys-fs/fsverity-utils/fsverity-utils-1.6.ebuild @@ -19,22 +19,26 @@ HOMEPAGE="https://git.kernel.org/pub/scm/fs/fsverity/fsverity-utils.git" LICENSE="MIT" SLOT="0" -IUSE="static-libs" - DEPEND="dev-libs/openssl:=" RDEPEND="${DEPEND}" BDEPEND="virtual/pkgconfig" +src_prepare() { + # bug comment 937042#c3 + sed -e '/^DEFAULT_TARGETS += libfsverity.a/d' \ + -e '/install -m644 libfsverity.a/d' \ + -i Makefile || die + default +} + src_compile() { - emake CC="$(tc-getCC)" PKGCONF="$(tc-getPKG_CONFIG)" + export PKGCONF="$(tc-getPKG_CONFIG)" USE_SHARED_LIB=1 + tc-export AR CC + default } src_install() { - emake install CC="$(tc-getCC)" PKGCONF="$(tc-getPKG_CONFIG)" DESTDIR="${D}" \ - PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" - - if ! use static-libs ; then - rm "${ED}/usr/$(get_libdir)/libfsverity.a" || die - fi + emake install DESTDIR="${D}" PREFIX="${EPREFIX}/usr" \ + LIBDIR="${EPREFIX}/usr/$(get_libdir)" } |