From: "Sergei Trofimovich" <slyfox@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/binutils-config/
Date: Thu, 21 May 2020 22:06:45 +0000 (UTC) [thread overview]
Message-ID: <1590098747.8f92925b8d3eceb7e1d66571505ad040089b3921.slyfox@gentoo> (raw)
commit: 8f92925b8d3eceb7e1d66571505ad040089b3921
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Thu May 21 22:05:32 2020 +0000
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Thu May 21 22:05:47 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f92925b
sys-devel/binutils-config: add live ebuild
To ease live testing of changes like bug #724454
let's have a live ebuild. Should also be a good hint
where default repository hides.
Add USE=+native-symlinks flag to install 'as', 'ar' and friends.
Bug: https://bugs.gentoo.org/724454
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
.../binutils-config/binutils-config-9999.ebuild | 46 ++++++++++++++++++++++
sys-devel/binutils-config/metadata.xml | 11 ++++--
2 files changed, 53 insertions(+), 4 deletions(-)
diff --git a/sys-devel/binutils-config/binutils-config-9999.ebuild b/sys-devel/binutils-config/binutils-config-9999.ebuild
new file mode 100644
index 00000000000..fdc08708627
--- /dev/null
+++ b/sys-devel/binutils-config/binutils-config-9999.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit prefix
+
+if [[ ${PV} == 9999 ]]; then
+ EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/binutils-config.git"
+ inherit git-r3
+else
+ SRC_URI="https://dev.gentoo.org/~slyfox/distfiles/${P}.tar.xz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
+fi
+
+DESCRIPTION="Utility to change the binutils version being used"
+HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Toolchain"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="+native-symlinks"
+
+# We also RDEPEND on sys-apps/findutils which is in base @system
+RDEPEND="sys-apps/gentoo-functions"
+
+src_compile() {
+ emake DESTDIR="${D}" PV="${PV}" USE_NATIVE_LINKS="$(usex native-symlinks)"
+}
+
+src_install() {
+ emake DESTDIR="${D}" PV="${PV}" install
+
+ use prefix && eprefixify "${ED}"/usr/bin/${PN}
+}
+
+pkg_preinst() {
+ # Force a refresh when upgrading from an older version that symlinked
+ # in all the libs & includes that binutils-libs handles. #528088
+ if has_version "<${CATEGORY}/${PN}-5" ; then
+ local bc current
+ bc="${ED}/usr/bin/binutils-config"
+ if current=$("${bc}" -c) ; then
+ "${bc}" "${current}"
+ fi
+ fi
+}
diff --git a/sys-devel/binutils-config/metadata.xml b/sys-devel/binutils-config/metadata.xml
index e396f375597..3c7c5c4c8e9 100644
--- a/sys-devel/binutils-config/metadata.xml
+++ b/sys-devel/binutils-config/metadata.xml
@@ -1,8 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<maintainer type="project">
- <email>toolchain@gentoo.org</email>
- <name>Gentoo Toolchain Project</name>
-</maintainer>
+ <maintainer type="project">
+ <email>toolchain@gentoo.org</email>
+ <name>Gentoo Toolchain Project</name>
+ </maintainer>
+ <use>
+ <flag name="native-symlinks">Install native symlinks like 'as' or 'ar' to /usr/bin. Otherwise keep only ${CHOST}-as and friends.</flag>
+ </use>
</pkgmetadata>
next reply other threads:[~2020-05-21 22:06 UTC|newest]
Thread overview: 94+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-21 22:06 Sergei Trofimovich [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-12-08 5:45 [gentoo-commits] repo/gentoo:master commit in: sys-devel/binutils-config/ Sam James
2024-12-08 5:45 Sam James
2024-11-20 8:31 Sam James
2024-09-24 11:52 Sam James
2024-09-21 8:58 Michał Górny
2024-09-21 8:58 Michał Górny
2024-09-21 8:58 Michał Górny
2024-09-21 8:58 Michał Górny
2024-07-28 17:13 Andreas K. Hüttel
2024-07-28 14:32 Andreas K. Hüttel
2024-07-28 13:05 Andreas K. Hüttel
2023-09-18 0:41 Andreas K. Hüttel
2023-09-18 0:41 Andreas K. Hüttel
2023-04-10 8:21 Sam James
2023-04-10 6:52 Sam James
2023-04-10 6:52 Sam James
2023-04-10 6:52 Sam James
2023-04-10 6:52 Sam James
2023-04-10 6:52 Sam James
2023-04-10 6:52 Sam James
2023-04-10 6:52 Sam James
2023-01-03 6:14 Sam James
2023-01-03 6:14 Sam James
2023-01-03 1:06 Sam James
2022-12-28 15:27 Sam James
2022-04-24 2:35 Sam James
2022-04-02 12:04 Arthur Zamarin
2022-04-01 6:53 Arthur Zamarin
2022-03-31 19:27 Arthur Zamarin
2022-03-28 6:51 Agostino Sarubbo
2022-03-27 6:27 Agostino Sarubbo
2022-03-27 6:25 Agostino Sarubbo
2022-03-27 6:25 Agostino Sarubbo
2022-02-20 6:07 Sam James
2022-01-09 14:57 Mike Gilbert
2021-10-01 7:14 Sam James
2021-05-15 13:58 Sergei Trofimovich
2021-05-09 23:46 Sam James
2021-05-09 23:46 Sam James
2021-05-09 9:17 Agostino Sarubbo
2021-04-30 15:37 Agostino Sarubbo
2021-04-25 9:18 Sergei Trofimovich
2021-04-25 9:18 Sergei Trofimovich
2021-04-25 8:56 Sergei Trofimovich
2021-03-15 9:08 Sergei Trofimovich
2021-02-28 9:50 Sergei Trofimovich
2020-08-06 21:22 Sergei Trofimovich
2020-08-05 14:06 Agostino Sarubbo
2020-08-01 15:35 Sergei Trofimovich
2020-08-01 9:01 Sergei Trofimovich
2020-08-01 8:53 Sergei Trofimovich
2020-07-28 17:28 Sergei Trofimovich
2020-07-27 18:36 Sergei Trofimovich
2020-07-27 3:01 Sam James
2020-07-25 21:50 Sam James
2020-07-25 11:17 Sam James
2020-07-17 3:04 Sam James
2020-07-02 17:05 Sergei Trofimovich
2020-06-29 13:40 Agostino Sarubbo
2020-06-29 13:38 Agostino Sarubbo
2020-06-29 13:37 Agostino Sarubbo
2020-06-29 13:37 Agostino Sarubbo
2020-06-29 13:36 Agostino Sarubbo
2020-06-29 13:36 Agostino Sarubbo
2020-06-29 13:35 Agostino Sarubbo
2020-06-21 12:42 Sergei Trofimovich
2020-05-29 22:13 Sergei Trofimovich
2020-05-23 7:55 Sergei Trofimovich
2020-05-23 7:55 Sergei Trofimovich
2020-05-22 20:53 Sergei Trofimovich
2020-05-22 13:37 Sergei Trofimovich
2020-05-22 9:47 Sergei Trofimovich
2020-05-21 18:25 Sergei Trofimovich
2020-05-02 17:51 Sergei Trofimovich
2020-04-07 10:21 Mart Raudsepp
2020-03-23 23:58 Sergei Trofimovich
2020-02-13 19:52 Sergei Trofimovich
2020-02-13 13:03 Agostino Sarubbo
2020-02-13 12:46 Agostino Sarubbo
2020-02-13 12:38 Agostino Sarubbo
2020-02-13 12:27 Agostino Sarubbo
2020-02-13 12:19 Agostino Sarubbo
2020-02-13 12:10 Agostino Sarubbo
2020-02-13 12:03 Agostino Sarubbo
2020-02-13 8:57 Agostino Sarubbo
2019-11-10 22:20 Sergei Trofimovich
2019-09-19 18:54 Sergei Trofimovich
2019-05-04 19:51 Andreas K. Hüttel
2018-06-19 2:08 Mike Frysinger
2016-04-03 0:56 Mike Frysinger
2016-03-24 5:57 Markus Meier
2016-03-15 11:26 Agostino Sarubbo
2015-08-13 8:59 Ulrich Müller
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=1590098747.8f92925b8d3eceb7e1d66571505ad040089b3921.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