From: "Sergei Trofimovich" <slyfox@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/dtc/
Date: Tue, 7 Jul 2020 06:48:54 +0000 (UTC) [thread overview]
Message-ID: <1594104531.cf3b25e0297bae02bc8aeeb43b45f497407913f6.slyfox@gentoo> (raw)
commit: cf3b25e0297bae02bc8aeeb43b45f497407913f6
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 7 06:48:28 2020 +0000
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Tue Jul 7 06:48:51 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf3b25e0
sys-apps/dtc: avoid using environment for make options
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
.../dtc/{dtc-9999.ebuild => dtc-1.5.0-r2.ebuild} | 36 ++++++++++++++++++----
sys-apps/dtc/dtc-9999.ebuild | 34 ++++++++++++++++----
2 files changed, 58 insertions(+), 12 deletions(-)
diff --git a/sys-apps/dtc/dtc-9999.ebuild b/sys-apps/dtc/dtc-1.5.0-r2.ebuild
similarity index 70%
copy from sys-apps/dtc/dtc-9999.ebuild
copy to sys-apps/dtc/dtc-1.5.0-r2.ebuild
index a481c0ee0bc..d995690db9c 100644
--- a/sys-apps/dtc/dtc-9999.ebuild
+++ b/sys-apps/dtc/dtc-1.5.0-r2.ebuild
@@ -35,8 +35,29 @@ DOCS="
PATCHES=(
"${FILESDIR}"/${PN}-1.4.4-posix-shell.patch
+ "${FILESDIR}"/${PN}-1.5.0-fdt_check_full-visibility.patch
+ "${FILESDIR}"/${PN}-1.5.0-gcc-10.patch
)
+_emake() {
+ # valgrind is used only in 'make checkm'
+ emake \
+ NO_YAML=$(usex !yaml 1 0) \
+ NO_VALGRIND=1 \
+ \
+ AR="$(tc-getAR)" \
+ CC="$(tc-getCC)" \
+ PKG_CONFIG="$(tc-getPKG_CONFIG)" \
+ \
+ V=1 \
+ \
+ PREFIX="${EPREFIX}/usr" \
+ \
+ LIBDIR="\$(PREFIX)/$(get_libdir)" \
+ \
+ "$@"
+}
+
src_prepare() {
default
@@ -45,18 +66,21 @@ src_prepare() {
-e '/^CPPFLAGS =/s:=:+=:' \
-e 's:-Werror::' \
-e 's:-g -Os::' \
- -e "/^PREFIX =/s:=.*:= ${EPREFIX}/usr:" \
- -e "/^LIBDIR =/s:=.*:= \$(PREFIX)/$(get_libdir):" \
Makefile || die
tc-export AR CC PKG_CONFIG
- export V=1
- export NO_YAML=$(usex !yaml 1 0)
- export NO_VALGRIND=1 # used only in 'make checkm'
+}
+
+src_compile() {
+ _emake
+}
+
+src_test() {
+ _emake check
}
src_install() {
- default
+ _emake DESTDIR="${D}" install
use static-libs || find "${ED}" -name '*.a' -delete
}
diff --git a/sys-apps/dtc/dtc-9999.ebuild b/sys-apps/dtc/dtc-9999.ebuild
index a481c0ee0bc..a24d2e224a3 100644
--- a/sys-apps/dtc/dtc-9999.ebuild
+++ b/sys-apps/dtc/dtc-9999.ebuild
@@ -37,6 +37,25 @@ PATCHES=(
"${FILESDIR}"/${PN}-1.4.4-posix-shell.patch
)
+_emake() {
+ # valgrind is used only in 'make checkm'
+ emake \
+ NO_YAML=$(usex !yaml 1 0) \
+ NO_VALGRIND=1 \
+ \
+ AR="$(tc-getAR)" \
+ CC="$(tc-getCC)" \
+ PKG_CONFIG="$(tc-getPKG_CONFIG)" \
+ \
+ V=1 \
+ \
+ PREFIX="${EPREFIX}/usr" \
+ \
+ LIBDIR="\$(PREFIX)/$(get_libdir)" \
+ \
+ "$@"
+}
+
src_prepare() {
default
@@ -45,18 +64,21 @@ src_prepare() {
-e '/^CPPFLAGS =/s:=:+=:' \
-e 's:-Werror::' \
-e 's:-g -Os::' \
- -e "/^PREFIX =/s:=.*:= ${EPREFIX}/usr:" \
- -e "/^LIBDIR =/s:=.*:= \$(PREFIX)/$(get_libdir):" \
Makefile || die
tc-export AR CC PKG_CONFIG
- export V=1
- export NO_YAML=$(usex !yaml 1 0)
- export NO_VALGRIND=1 # used only in 'make checkm'
+}
+
+src_compile() {
+ _emake
+}
+
+src_test() {
+ _emake check
}
src_install() {
- default
+ _emake DESTDIR="${D}" install
use static-libs || find "${ED}" -name '*.a' -delete
}
next reply other threads:[~2020-07-07 6:48 UTC|newest]
Thread overview: 62+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-07 6:48 Sergei Trofimovich [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-07-04 14:28 [gentoo-commits] repo/gentoo:master commit in: sys-apps/dtc/ Arthur Zamarin
2025-07-04 8:58 Arthur Zamarin
2025-06-23 0:22 Sam James
2025-06-22 17:39 Sam James
2025-05-06 17:41 Eli Schwartz
2025-05-06 17:41 Eli Schwartz
2025-05-06 17:41 Eli Schwartz
2025-05-06 17:41 Eli Schwartz
2025-04-27 22:53 Sam James
2025-04-27 22:53 Sam James
2025-04-26 19:11 Arthur Zamarin
2025-04-26 4:37 Sam James
2025-04-26 4:10 Sam James
2024-11-13 19:49 Sam James
2024-10-09 6:59 Arthur Zamarin
2024-10-04 9:55 Sam James
2024-10-03 16:11 Arthur Zamarin
2024-10-02 22:53 Sam James
2024-10-02 22:53 Sam James
2024-10-02 22:53 Sam James
2024-10-02 22:53 Sam James
2024-09-22 10:10 Sam James
2024-01-08 12:28 Sam James
2023-09-25 2:21 Sam James
2023-06-07 1:51 Sam James
2023-06-06 8:48 Sam James
2023-06-06 4:02 Sam James
2023-06-06 4:02 Sam James
2023-06-06 4:02 Sam James
2022-08-31 7:06 Andreas Sturmlechner
2022-05-19 12:19 WANG Xuerui
2020-10-13 10:01 Agostino Sarubbo
2020-10-13 9:26 Agostino Sarubbo
2020-10-11 9:00 Sergei Trofimovich
2020-10-11 8:57 Sergei Trofimovich
2020-10-10 17:13 Sam James
2020-10-10 17:13 Sam James
2020-08-19 22:40 Sam James
2020-07-07 7:19 Sergei Trofimovich
2020-07-07 7:19 Sergei Trofimovich
2020-07-07 6:55 Sergei Trofimovich
2020-07-06 22:40 Sergei Trofimovich
2020-07-06 18:51 Sergei Trofimovich
2020-07-06 18:44 Sergei Trofimovich
2020-05-02 17:51 Sergei Trofimovich
2020-04-03 13:11 Agostino Sarubbo
2020-04-03 12:12 Agostino Sarubbo
2020-04-03 12:06 Agostino Sarubbo
2020-03-07 9:39 Sergei Trofimovich
2019-10-05 23:36 Göktürk Yüksek
2019-05-26 22:27 Thomas Deutschmann
2019-05-20 11:07 Mikle Kolyada
2018-12-11 14:20 Michał Górny
2018-12-01 13:27 Jeroen Roovers
2018-06-26 3:23 Jason Donenfeld
2017-11-13 15:41 Manuel Rüger
2017-03-17 8:11 Jeroen Roovers
2017-03-08 5:01 Jeroen Roovers
2016-12-07 21:22 Mike Frysinger
2016-09-11 6:54 Jeroen Roovers
2016-01-04 22:26 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=1594104531.cf3b25e0297bae02bc8aeeb43b45f497407913f6.slyfox@gentoo \
--to=slyfox@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