From: "Mike Gilbert" <floppym@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/keyutils/
Date: Wed, 15 May 2024 00:12:10 +0000 (UTC) [thread overview]
Message-ID: <1715731859.3cc0a9fd571f057ca3a2eae1c7f49f7048364e2c.floppym@gentoo> (raw)
commit: 3cc0a9fd571f057ca3a2eae1c7f49f7048364e2c
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Wed May 15 00:10:59 2024 +0000
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Wed May 15 00:10:59 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3cc0a9fd
sys-apps/keyutils: pass parameters to make
... instead of abusing sed.
Closes: https://bugs.gentoo.org/931839
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
sys-apps/keyutils/keyutils-1.6.3-r1.ebuild | 57 +++++++++++++++++-------------
1 file changed, 32 insertions(+), 25 deletions(-)
diff --git a/sys-apps/keyutils/keyutils-1.6.3-r1.ebuild b/sys-apps/keyutils/keyutils-1.6.3-r1.ebuild
index c8d82212103a..6d09620c632a 100644
--- a/sys-apps/keyutils/keyutils-1.6.3-r1.ebuild
+++ b/sys-apps/keyutils/keyutils-1.6.3-r1.ebuild
@@ -70,30 +70,38 @@ src_prepare() {
multilib_copy_sources
}
+mymake() {
+ local args=(
+ PREFIX="${EPREFIX}/usr"
+ ETCDIR="${EPREFIX}/etc"
+ BINDIR="${EPREFIX}/bin"
+ SBINDIR="${EPREFIX}/sbin"
+ SHAREDIR="${EPREFIX}/usr/share/keyutils"
+ MANDIR="${EPREFIX}/usr/share/man"
+ INCLUDEDIR="${EPREFIX}/usr/include"
+ LIBDIR="${EPREFIX}/usr/$(get_libdir)"
+ USRLIBDIR="${EPREFIX}/usr/$(get_libdir)"
+ CFLAGS="${CFLAGS}"
+ CXXFLAGS="${CXXFLAGS}"
+ RPATH=$(usex static -static '')
+ BUILDFOR=
+ NO_ARLIB="${NO_ARLIB}"
+ )
+ if use static; then
+ args+=( LIB_DEPENDENCY='$(ARLIB)' )
+ fi
+ emake "${args[@]}" "$@"
+}
+
multilib_src_compile() {
- tc-export AR CC CXX
- sed -i \
- -e "1iRPATH = $(usex static -static '')" \
- -e '/^C.*FLAGS/s|:=|+=|' \
- -e 's:-Werror::' \
- -e '/^BUILDFOR/s:=.*:=:' \
- -e "/^LIBDIR/s:=.*:= /usr/$(get_libdir):" \
- -e '/^USRLIBDIR/s:=.*:=$(LIBDIR):' \
- -e "s: /: ${EPREFIX}/:g" \
- -e '/^NO_ARLIB/d' \
- Makefile || die
-
- # We need the static lib in order to statically link programs.
- if use static ; then
- export NO_ARLIB=0
- # Hack the progs to depend on the static lib instead.
- sed -i \
- -e '/^.*:.*[$](DEVELLIB)$/s:$(DEVELLIB):$(ARLIB) $(SONAME):' \
- Makefile || die
+ local NO_ARLIB
+ if use static; then
+ NO_ARLIB=0
else
- export NO_ARLIB=$(usex static-libs 0 1)
+ NO_ARLIB=$(usex static-libs 0 1)
fi
- emake
+ tc-export AR CC CXX
+ mymake
}
multilib_src_test() {
@@ -101,14 +109,13 @@ multilib_src_test() {
# older versions already installed in the system.
LD_LIBRARY_PATH=${BUILD_DIR} \
PATH="${BUILD_DIR}:${PATH}" \
- emake test
+ mymake test
}
multilib_src_install() {
# Possibly undo the setting for USE=static (see src_compile).
- export NO_ARLIB=$(usex static-libs 0 1)
-
- default
+ local NO_ARLIB=$(usex static-libs 0 1)
+ mymake DESTDIR="${D}" install
}
multilib_src_install_all() {
next reply other threads:[~2024-05-15 0:12 UTC|newest]
Thread overview: 62+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-15 0:12 Mike Gilbert [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-03-03 4:00 [gentoo-commits] repo/gentoo:master commit in: sys-apps/keyutils/ Sam James
2024-03-02 12:12 Arthur Zamarin
2024-03-02 12:12 Arthur Zamarin
2024-03-02 12:12 Arthur Zamarin
2024-03-02 12:12 Arthur Zamarin
2024-03-02 12:12 Arthur Zamarin
2024-03-02 12:12 Arthur Zamarin
2024-02-07 19:20 Sam James
2024-01-05 14:02 Sam James
2024-01-05 14:02 Sam James
2023-10-10 4:34 Sam James
2023-04-06 5:18 Sam James
2023-04-06 4:50 Sam James
2022-12-26 8:35 Sam James
2022-11-22 8:04 Arthur Zamarin
2022-10-29 14:45 Sam James
2022-05-11 0:49 Sam James
2022-05-11 0:49 Sam James
2022-05-10 14:34 Agostino Sarubbo
2022-05-10 13:47 Agostino Sarubbo
2022-05-10 13:47 Agostino Sarubbo
2022-04-27 18:06 Arthur Zamarin
2022-01-14 14:42 Arthur Zamarin
2022-01-13 2:56 Georgy Yakovlev
2021-05-13 16:15 Sam James
2021-05-13 13:55 David Seifert
2020-07-08 11:34 Thomas Deutschmann
2020-07-07 17:08 Thomas Deutschmann
2020-01-06 11:52 Mike Frysinger
2019-11-02 0:23 Sergei Trofimovich
2019-09-22 9:32 Agostino Sarubbo
2019-09-21 5:20 Matt Turner
2019-09-16 7:55 Agostino Sarubbo
2019-09-13 18:01 Mikle Kolyada
2019-09-11 8:43 Agostino Sarubbo
2019-09-11 8:41 Agostino Sarubbo
2019-09-11 8:28 Agostino Sarubbo
2019-09-11 8:20 Agostino Sarubbo
2019-09-09 17:20 Aaron Bauman
2019-05-05 12:06 Mikle Kolyada
2018-11-16 12:53 Lars Wendler
2018-09-01 1:32 Thomas Deutschmann
2018-08-31 14:55 Thomas Deutschmann
2018-08-31 14:55 Thomas Deutschmann
2018-08-31 14:55 Thomas Deutschmann
2018-08-31 14:55 Thomas Deutschmann
2018-08-31 2:54 Thomas Deutschmann
2018-08-02 15:50 Lars Wendler
2018-03-11 6:24 Matt Turner
2018-03-11 1:12 Matt Turner
2018-02-18 12:28 Tobias Klausmann
2018-01-24 21:25 Sergei Trofimovich
2018-01-12 4:10 Mike Frysinger
2018-01-09 8:09 Sergei Trofimovich
2018-01-04 15:42 Lars Wendler
2018-01-04 15:25 Lars Wendler
2017-05-24 16:30 Lars Wendler
2017-03-14 21:03 Mike Frysinger
2016-04-18 19:10 Mike Frysinger
2016-03-30 23:48 Mike Frysinger
2016-03-30 23:48 Mike Frysinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1715731859.3cc0a9fd571f057ca3a2eae1c7f49f7048364e2c.floppym@gentoo \
--to=floppym@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox