public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sys-devel/elftoolchain/
@ 2021-03-26 11:42 David Seifert
  0 siblings, 0 replies; 5+ messages in thread
From: David Seifert @ 2021-03-26 11:42 UTC (permalink / raw
  To: gentoo-commits

commit:     0ccb7db097e2ef5b28e2042733638b0a4b2eadbe
Author:     Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
AuthorDate: Fri Mar 26 11:42:11 2021 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Fri Mar 26 11:42:11 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ccb7db0

sys-devel/elftoolchain: tools for building/analyzing ELF program images

* Elftoolchain contains a drop in replacement for libelf, released under
  the BSD licence. It also provides replacements for other tools, such
  as binutils, but in the scope of this contribution only libelf is added,
  with posibillity of extending the tools at some point.

Closes: https://github.com/gentoo/gentoo/pull/18944
Closes: https://bugs.gentoo.org/762364
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 sys-devel/elftoolchain/Manifest                  |  1 +
 sys-devel/elftoolchain/elftoolchain-0.7.1.ebuild | 55 ++++++++++++++++++++++++
 sys-devel/elftoolchain/metadata.xml              | 12 ++++++
 3 files changed, 68 insertions(+)

diff --git a/sys-devel/elftoolchain/Manifest b/sys-devel/elftoolchain/Manifest
new file mode 100644
index 00000000000..40e9f23e39d
--- /dev/null
+++ b/sys-devel/elftoolchain/Manifest
@@ -0,0 +1 @@
+DIST elftoolchain-0.7.1.tar.bz2 5361427 BLAKE2B f86204b3c89433948eaf2cd2edc57abf9b77bfab777dc2a840b7aa5fbddfd31665bd27f31d7af2dea09fab0118e201b12802b4da85f8210af29094661f6f1fe5 SHA512 8226c468b393f0d567167a9dd6b16d2a226227e4d05dab8f44550038da44dcbfb92749f8e1a4b130b893675337a6771e24a81f350f3f864b1b8b17402ed23b26

diff --git a/sys-devel/elftoolchain/elftoolchain-0.7.1.ebuild b/sys-devel/elftoolchain/elftoolchain-0.7.1.ebuild
new file mode 100644
index 00000000000..8b4360d6209
--- /dev/null
+++ b/sys-devel/elftoolchain/elftoolchain-0.7.1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+DESCRIPTION="Libraries/utilities to handle ELF objects (BSD drop in replacement for libelf)"
+HOMEPAGE="https://wiki.freebsd.org/LibElf"
+SRC_URI="https://netcologne.dl.sourceforge.net/project/elftoolchain/Sources/${P}/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+	!dev-libs/elfutils
+	!dev-libs/libelf"
+DEPEND="${RDEPEND}"
+BDEPEND="
+	dev-vcs/subversion
+	sys-apps/lsb-release
+	>=sys-devel/bmake-20210206
+	virtual/yacc"
+
+src_prepare() {
+	default
+	sed -i -e "s@cc@$(tc-getCC)@" common/native-elf-format || die
+	sed -i -e "s@readelf@$(tc-getREADELF)@" common/native-elf-format || die
+}
+
+_bmake() {
+	bmake \
+		AR="$(tc-getAR)" \
+		CC="$(tc-getCC)" \
+		LD="$(tc-getLD)" \
+		RANLIB="$(tc-getRANLIB)" \
+		"$@" || die
+}
+
+src_compile() {
+	export MAKESYSPATH="${BROOT}"/usr/share/mk/bmake
+	_bmake -C common
+	_bmake -C libelf
+}
+
+src_install() {
+	doheader common/elfdefinitions.h
+	doheader libelf/{gelf,libelf}.h
+
+	dolib.so libelf/libelf.so.1
+	dosym libelf.so.1 /usr/$(get_libdir)/libelf.so
+
+	dodoc README
+}

diff --git a/sys-devel/elftoolchain/metadata.xml b/sys-devel/elftoolchain/metadata.xml
new file mode 100644
index 00000000000..9654d1c22bc
--- /dev/null
+++ b/sys-devel/elftoolchain/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>jakov.smolic@sartura.hr</email>
+		<name>Jakov Smolic</name>
+	</maintainer>
+	<maintainer type="project">
+		<email>proxy-maint@gentoo.org</email>
+		<name>Proxy Maintainers</name>
+	</maintainer>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sys-devel/elftoolchain/
@ 2021-03-26 13:24 David Seifert
  0 siblings, 0 replies; 5+ messages in thread
From: David Seifert @ 2021-03-26 13:24 UTC (permalink / raw
  To: gentoo-commits

commit:     00138071fa73241d0c0c296be37c5af3a2e0330c
Author:     Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
AuthorDate: Fri Mar 26 13:24:06 2021 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Fri Mar 26 13:24:06 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00138071

sys-devel/elftoolchain: Add upstream remote-id in metadata

Closes: https://github.com/gentoo/gentoo/pull/20126
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 sys-devel/elftoolchain/metadata.xml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys-devel/elftoolchain/metadata.xml b/sys-devel/elftoolchain/metadata.xml
index 9654d1c22bc..cebcfd37826 100644
--- a/sys-devel/elftoolchain/metadata.xml
+++ b/sys-devel/elftoolchain/metadata.xml
@@ -9,4 +9,7 @@
 		<email>proxy-maint@gentoo.org</email>
 		<name>Proxy Maintainers</name>
 	</maintainer>
+	<upstream>
+		<remote-id type="sourceforge">elftoolchain</remote-id>
+	</upstream>
 </pkgmetadata>


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sys-devel/elftoolchain/
@ 2021-04-03 12:31 David Seifert
  0 siblings, 0 replies; 5+ messages in thread
From: David Seifert @ 2021-04-03 12:31 UTC (permalink / raw
  To: gentoo-commits

commit:     513da9e913e15fbff05de1b80f5457fe0edd3a29
Author:     Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
AuthorDate: Sat Apr  3 12:30:41 2021 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Apr  3 12:30:41 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=513da9e9

sys-devel/elftoolchain: Simplify bmake calls, change BINDIR

Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 ...0.7.1-r1.ebuild => elftoolchain-0.7.1-r2.ebuild} | 21 ++++++++-------------
 1 file changed, 8 insertions(+), 13 deletions(-)

diff --git a/sys-devel/elftoolchain/elftoolchain-0.7.1-r1.ebuild b/sys-devel/elftoolchain/elftoolchain-0.7.1-r2.ebuild
similarity index 82%
rename from sys-devel/elftoolchain/elftoolchain-0.7.1-r1.ebuild
rename to sys-devel/elftoolchain/elftoolchain-0.7.1-r2.ebuild
index f5ede11619d..4eea87b1c58 100644
--- a/sys-devel/elftoolchain/elftoolchain-0.7.1-r1.ebuild
+++ b/sys-devel/elftoolchain/elftoolchain-0.7.1-r2.ebuild
@@ -21,7 +21,7 @@ DEPEND="${RDEPEND}"
 BDEPEND="
 	dev-vcs/subversion
 	sys-apps/lsb-release
-	>=sys-devel/bmake-20210206
+	>=sys-devel/bmake-20210314-r1
 	virtual/yacc"
 
 PATCHES=( "${FILESDIR}"/${P}-fno-common.patch )
@@ -36,27 +36,22 @@ src_prepare() {
 	sed -i -e "s@readelf@$(tc-getREADELF)@" common/native-elf-format || die
 }
 
-_bmake() {
-	bmake \
-		AR="$(tc-getAR)" \
-		CC="$(tc-getCC)" \
-		LD="$(tc-getLD)" \
-		RANLIB="$(tc-getRANLIB)" \
-		"$@" || die
+src_configure() {
+	tc-export AR CC LD RANLIB
+	export MAKESYSPATH="${BROOT}"/usr/share/mk/bmake
 }
 
 src_compile() {
-	export MAKESYSPATH="${BROOT}"/usr/share/mk/bmake
-	_bmake
+	bmake || die
 }
 
 src_install() {
-	_bmake \
+	bmake \
 		DESTDIR="${D}" \
-		BINDIR="${EPREFIX}"/usr/${CHOST}-elftoolchain/usr/bin \
+		BINDIR="${EPREFIX}"/usr/bin/${CHOST}-elftoolchain \
 		LIBDIR="${EPREFIX}"/usr/$(get_libdir) \
 		DOCDIR="${EPREFIX}"/usr/share/doc/${PF} \
-		install
+		install || die
 
 	# remove static libraries
 	find "${ED}" -name '*.a' -delete || die


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sys-devel/elftoolchain/
@ 2021-05-07 16:24 David Seifert
  0 siblings, 0 replies; 5+ messages in thread
From: David Seifert @ 2021-05-07 16:24 UTC (permalink / raw
  To: gentoo-commits

commit:     74f544d9b6a54dbf58dc7c5032c8f944bc4ea430
Author:     Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
AuthorDate: Fri May  7 16:23:54 2021 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Fri May  7 16:23:54 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74f544d9

sys-devel/elftoolchain: Add 0.7.1_p20210319 snapshot

* Allows us to drop fno-common patch as well as some other hacks.
Introcudes dev-libs/uthash dependency

Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 sys-devel/elftoolchain/Manifest                    |  1 +
 .../elftoolchain-0.7.1_p20210319.ebuild            | 64 ++++++++++++++++++++++
 2 files changed, 65 insertions(+)

diff --git a/sys-devel/elftoolchain/Manifest b/sys-devel/elftoolchain/Manifest
index 40e9f23e39d..d43a208db90 100644
--- a/sys-devel/elftoolchain/Manifest
+++ b/sys-devel/elftoolchain/Manifest
@@ -1 +1,2 @@
 DIST elftoolchain-0.7.1.tar.bz2 5361427 BLAKE2B f86204b3c89433948eaf2cd2edc57abf9b77bfab777dc2a840b7aa5fbddfd31665bd27f31d7af2dea09fab0118e201b12802b4da85f8210af29094661f6f1fe5 SHA512 8226c468b393f0d567167a9dd6b16d2a226227e4d05dab8f44550038da44dcbfb92749f8e1a4b130b893675337a6771e24a81f350f3f864b1b8b17402ed23b26
+DIST elftoolchain-0.7.1_p20210319.tar.gz 6767324 BLAKE2B c7e068577744fd42a44784e6a2b03ffdaa9dd15e41f4ff2a6d5fd80df24a61a950ff11fa63ebbbaf2c90bc1b19e58f7184a2b883a6f866adcbf0940ad9fca81c SHA512 968d3247e160dd6f90a88e69bf3cb8e6bf2b8216500a0a91699bc2b8d3de22db8f013212813139701e75c3a9eb852bb4c1360e8058f85959e0973e05e4851c8c

diff --git a/sys-devel/elftoolchain/elftoolchain-0.7.1_p20210319.ebuild b/sys-devel/elftoolchain/elftoolchain-0.7.1_p20210319.ebuild
new file mode 100644
index 00000000000..5c427a1e211
--- /dev/null
+++ b/sys-devel/elftoolchain/elftoolchain-0.7.1_p20210319.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit flag-o-matic toolchain-funcs
+
+MY_COMMIT="58584bb3e5276586e1cb246641525f72843ebc08"
+
+DESCRIPTION="Libraries/utilities to handle ELF objects (BSD drop in replacement for libelf)"
+HOMEPAGE="https://wiki.freebsd.org/LibElf"
+SRC_URI="https://github.com/elftoolchain/elftoolchain/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}"/${PN}-${MY_COMMIT}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+	app-arch/libarchive:=
+	dev-libs/uthash
+	!dev-libs/elfutils
+	!dev-libs/libelf"
+DEPEND="${RDEPEND}"
+BDEPEND="
+	dev-vcs/subversion
+	sys-apps/lsb-release
+	>=sys-devel/bmake-20210314-r1
+	virtual/yacc"
+
+src_prepare() {
+	default
+
+	sed -e 's/-Werror//' -i libelf/os.Linux.mk || die
+
+	# use system uthash
+	rm common/{utarray,uthash}.h || die
+
+	# needs unpackaged TET tools
+	rm -r test || die
+}
+
+src_configure() {
+	# -pg is used and the two are incompatible
+	filter-flags -fomit-frame-pointer
+	tc-export AR CC LD RANLIB
+	export MAKESYSPATH="${BROOT}"/usr/share/mk/bmake
+}
+
+src_compile() {
+	bmake || die
+}
+
+src_install() {
+	bmake \
+		DESTDIR="${D}" \
+		BINDIR="${EPREFIX}"/usr/bin/${CHOST}-elftoolchain \
+		LIBDIR="${EPREFIX}"/usr/$(get_libdir) \
+		DOCDIR="${EPREFIX}"/usr/share/doc/${PF} \
+		install || die
+
+	# remove static libraries
+	find "${ED}" -name '*.a' -delete || die
+}


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sys-devel/elftoolchain/
@ 2024-06-18 18:55 Jakov Smolić
  0 siblings, 0 replies; 5+ messages in thread
From: Jakov Smolić @ 2024-06-18 18:55 UTC (permalink / raw
  To: gentoo-commits

commit:     edd174d1531f62eed364bd8c121f1fb4e49f45b7
Author:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 18 18:40:13 2024 +0000
Commit:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
CommitDate: Tue Jun 18 18:55:08 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=edd174d1

sys-devel/elftoolchain: drop myself as a maintainer

Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org>

 sys-devel/elftoolchain/metadata.xml | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/sys-devel/elftoolchain/metadata.xml b/sys-devel/elftoolchain/metadata.xml
index adc88ed39395..a56d1ca0c6ea 100644
--- a/sys-devel/elftoolchain/metadata.xml
+++ b/sys-devel/elftoolchain/metadata.xml
@@ -1,10 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-	<maintainer type="person">
-		<email>jsmolic@gentoo.org</email>
-		<name>Jakov Smolić</name>
-	</maintainer>
+	<!-- maintainer-needed -->
 	<upstream>
 		<remote-id type="sourceforge">elftoolchain</remote-id>
 	</upstream>


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-06-18 18:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-26 13:24 [gentoo-commits] repo/gentoo:master commit in: sys-devel/elftoolchain/ David Seifert
  -- strict thread matches above, loose matches on Subject: below --
2024-06-18 18:55 Jakov Smolić
2021-05-07 16:24 David Seifert
2021-04-03 12:31 David Seifert
2021-03-26 11:42 David Seifert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox