public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sergei Trofimovich" <slyfox@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/dtc/
Date: Mon,  6 Jul 2020 22:40:09 +0000 (UTC)	[thread overview]
Message-ID: <1594075203.3d79c54aba7eba3ca94367d9f864b066d7e04012.slyfox@gentoo> (raw)

commit:     3d79c54aba7eba3ca94367d9f864b066d7e04012
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Mon Jul  6 22:39:55 2020 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Mon Jul  6 22:40:03 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d79c54a

sys-apps/dtc: add USE=yaml

While at it added pkgconfig to build-time depends.

Reported-by: m.manico <AT> gmx.at
Closes: https://bugs.gentoo.org/693714
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 sys-apps/dtc/{dtc-9999.ebuild => dtc-1.5.0-r1.ebuild} | 16 ++++++++++++----
 sys-apps/dtc/dtc-9999.ebuild                          | 14 ++++++++++----
 sys-apps/dtc/metadata.xml                             |  3 +++
 3 files changed, 25 insertions(+), 8 deletions(-)

diff --git a/sys-apps/dtc/dtc-9999.ebuild b/sys-apps/dtc/dtc-1.5.0-r1.ebuild
similarity index 77%
copy from sys-apps/dtc/dtc-9999.ebuild
copy to sys-apps/dtc/dtc-1.5.0-r1.ebuild
index 4d086b5e4a3..466cd72eb84 100644
--- a/sys-apps/dtc/dtc-9999.ebuild
+++ b/sys-apps/dtc/dtc-1.5.0-r1.ebuild
@@ -1,7 +1,7 @@
 # Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 inherit multilib toolchain-funcs eutils
 
 if [[ ${PV} == "9999" ]] ; then
@@ -9,7 +9,7 @@ if [[ ${PV} == "9999" ]] ; then
 	inherit git-r3
 else
 	SRC_URI="https://www.kernel.org/pub/software/utils/${PN}/${P}.tar.xz"
-	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
+	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
 fi
 
 DESCRIPTION="Open Firmware device tree compiler"
@@ -17,12 +17,16 @@ HOMEPAGE="https://devicetree.org/ https://git.kernel.org/cgit/utils/dtc/dtc.git/
 
 LICENSE="GPL-2"
 SLOT="0"
-IUSE="static-libs"
+IUSE="static-libs yaml"
 
-DEPEND="
+BDEPEND="
 	sys-devel/bison
 	sys-devel/flex
+	virtual/pkgconfig
 "
+RDEPEND="yaml? ( dev-libs/libyaml )"
+DEPEND="${RDEPEND}"
+
 DOCS="
 	Documentation/dt-object-internal.txt
 	Documentation/dts-format.txt
@@ -31,6 +35,8 @@ 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
 )
 
 src_prepare() {
@@ -47,6 +53,8 @@ src_prepare() {
 
 	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_install() {

diff --git a/sys-apps/dtc/dtc-9999.ebuild b/sys-apps/dtc/dtc-9999.ebuild
index 4d086b5e4a3..a481c0ee0bc 100644
--- a/sys-apps/dtc/dtc-9999.ebuild
+++ b/sys-apps/dtc/dtc-9999.ebuild
@@ -1,7 +1,7 @@
 # Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 inherit multilib toolchain-funcs eutils
 
 if [[ ${PV} == "9999" ]] ; then
@@ -9,7 +9,7 @@ if [[ ${PV} == "9999" ]] ; then
 	inherit git-r3
 else
 	SRC_URI="https://www.kernel.org/pub/software/utils/${PN}/${P}.tar.xz"
-	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
+	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
 fi
 
 DESCRIPTION="Open Firmware device tree compiler"
@@ -17,12 +17,16 @@ HOMEPAGE="https://devicetree.org/ https://git.kernel.org/cgit/utils/dtc/dtc.git/
 
 LICENSE="GPL-2"
 SLOT="0"
-IUSE="static-libs"
+IUSE="static-libs yaml"
 
-DEPEND="
+BDEPEND="
 	sys-devel/bison
 	sys-devel/flex
+	virtual/pkgconfig
 "
+RDEPEND="yaml? ( dev-libs/libyaml )"
+DEPEND="${RDEPEND}"
+
 DOCS="
 	Documentation/dt-object-internal.txt
 	Documentation/dts-format.txt
@@ -47,6 +51,8 @@ src_prepare() {
 
 	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_install() {

diff --git a/sys-apps/dtc/metadata.xml b/sys-apps/dtc/metadata.xml
index 22fee8df393..17bad4a3b9b 100644
--- a/sys-apps/dtc/metadata.xml
+++ b/sys-apps/dtc/metadata.xml
@@ -8,6 +8,9 @@
 		<email>embedded@gentoo.org</email>
 		<name>Embedded Gentoo</name>
 	</maintainer>
+	<use>
+		<flag name="yaml">support .yaml-encoded device trees</flag>
+	</use>
 	<upstream>
 		<remote-id type="cpe">cpe:/a:dtc_project:dtc</remote-id>
 	</upstream>


             reply	other threads:[~2020-07-06 22:40 UTC|newest]

Thread overview: 65+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-06 22:40 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-06-22 16:38 Arthur Zamarin
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 10:57 Sam James
2025-04-26  6:31 Sam James
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-07  6:48 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=1594075203.3d79c54aba7eba3ca94367d9f864b066d7e04012.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