summaryrefslogtreecommitdiff
path: root/dev-ada/gnatmem
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ada/gnatmem')
-rw-r--r--dev-ada/gnatmem/Manifest5
-rw-r--r--dev-ada/gnatmem/files/gnatmem-2019-bfd.patch29
-rw-r--r--dev-ada/gnatmem/gnatmem-2019-r1.ebuild13
-rw-r--r--dev-ada/gnatmem/gnatmem-2020.ebuild49
4 files changed, 91 insertions, 5 deletions
diff --git a/dev-ada/gnatmem/Manifest b/dev-ada/gnatmem/Manifest
index 588789a8825f..bb9d1c006fde 100644
--- a/dev-ada/gnatmem/Manifest
+++ b/dev-ada/gnatmem/Manifest
@@ -1,4 +1,7 @@
AUX gnatmem-2018-gentoo.patch 2998 BLAKE2B ef2afa9a7ef200adb3729ac6e3bf80b6a4f92cae8c560805c741189917e454a391a6cc09271491110fd2e0c7c95cef672f807a64acf247cea2996fb2bbc71c31 SHA512 259915b1b9c5a586609c0e2801df3239f859871a194da5cd53ad323020832f5e2f37419bbb6f7e3c1d6a0c5d4a2bcf7b709db220b190abe84faa54463f43d199
+AUX gnatmem-2019-bfd.patch 690 BLAKE2B 81fecbd5eb8743a91699b98f73cc63f7e3112544ab42a337d3b2bde09b2bbe3632dee1f35301e758a92acdd98772c555291180d91aedb19c4b1c3905ce58ea96 SHA512 32f9feabfd628e787c4b9be5e8d0fb7b203116a8cdda2a2bca31af6cd83c09b0806d15c2670430983d6602846c3c257c5d648f40d93ce5b49a8c75d93ca1c722
DIST gnatmem-2019-20190429-19745-src.tar.gz 80136 BLAKE2B 8ae3b41827416f951abb0d0a1fe533946fad2ac8d67ae6aad2b14495a3c068718befbbbf11800c1864f3becaa0ca6dfb838aeec3b3d715b250d4436ccee93c69 SHA512 4354a30efcf95a013f481b3519a79a22f85348840f074c734013d6c73e00fd771118b84eec416260983c383484f7a404217a32c012ca0bd7c37253ba17f2eb85
-EBUILD gnatmem-2019-r1.ebuild 905 BLAKE2B 47d5390466d5f1536b2d4eab885b89753026e731c70b97fe97948b4f54ef61a20051e0c0c09f39f535d0231354a8d922db5a559615fd1cb7ec33b9abfd0c8746 SHA512 d645247bfe698975c86fdc90a56a8ba81df3d1237a9fcd12445c1a2b395b832996147a6c0217700164968593ac30fc1ceaff0f8a8454ac8b736ca323c0126ef9
+DIST gnatmem-2020-20200429-19911-src.tar.gz 80400 BLAKE2B 0367e4b40a3d0cde1002b49a330db3b5c27a08074bf9687699d0fe6b3f046562c4758865fd30a3f99703d209e24b0b5b72902cc4bcd4fd1c54576a0aa082b0fa SHA512 9d5e2bfab73ff2f9b6864bd8b1f2844587a21352a782f1dd52a17eb911d4791d93806a423c702979636dd402e372ed7954ffd33d3882c8703d0f6e8fc056babc
+EBUILD gnatmem-2019-r1.ebuild 971 BLAKE2B 2f0a96ad6064e51fa60257a64aba3aa078a919fc8f6d34e58b10ce1e69b79fcd54b0ddd9e3e693013f28a56a9b04acb27796eb4d6d4b2062518a1a3508f870d2 SHA512 5d079648cc2b1288f0948f09f05efcc696590e5fdd049ce89c61319b514b4e9e87290b6de84f68c1eb198d92024651e2eeea3a5e65d0e12da68c0bd6ea441886
+EBUILD gnatmem-2020.ebuild 989 BLAKE2B 255766c2a1bd88763d9a22520c1e7cd774db85e0cb53e8c45435c04e2e1cf648b279464a56b83072b3dcc3561b9d080834c4ff4eda9dcaec3d7c009fa0d250ef SHA512 944cdcd3b3c0a6e2406b6646c555c7d25ad4ea2da1f6ac721e44762af896e8196814a25a3e076344a74661065935720daa0bb0d4046cb1c6df6f0deac9fa22e7
MISC metadata.xml 955 BLAKE2B fe2d45bebeeb3f23c6eae6b4b2fbc14156884636af28c5bf31bb946d9a8bd74280a426be7d5e003aa88d1c6bc390f8ddd96c864d4715ce1c034b44995eeba3d1 SHA512 f2fee13e2c491e0a0393b67aa558bac39c7f3ea5a186da421ceb3ebf092bc5acb74cd2076ae59abb81d28a83c07bf4561017164ab27558a1805653023877fa72
diff --git a/dev-ada/gnatmem/files/gnatmem-2019-bfd.patch b/dev-ada/gnatmem/files/gnatmem-2019-bfd.patch
new file mode 100644
index 000000000000..007d217cf247
--- /dev/null
+++ b/dev-ada/gnatmem/files/gnatmem-2019-bfd.patch
@@ -0,0 +1,29 @@
+--- a/src/libaddr2line.c 2020-08-04 22:41:04.670046491 +0200
++++ b/src/libaddr2line.c 2020-08-04 22:44:55.560802332 +0200
+@@ -55,14 +55,26 @@
+ if (found)
+ return;
+
++#if defined(bfd_get_section_flags)
+ if ((bfd_get_section_flags (abfd, section) & SEC_ALLOC) == 0)
++#else
++ if ((bfd_section_flags (section) & SEC_ALLOC) == 0)
++#endif
+ return;
+
++#if defined(bfd_get_section_vma)
+ vma = bfd_get_section_vma (abfd, section);
++#else
++ vma = bfd_section_vma (section);
++#endif
+ if (pc < vma)
+ return;
+
++#if defined(bfd_get_section_size)
+ size = bfd_get_section_size (section);
++#else
++ size = bfd_section_size (section);
++#endif
+ if (pc >= vma + size)
+ return;
+
diff --git a/dev-ada/gnatmem/gnatmem-2019-r1.ebuild b/dev-ada/gnatmem/gnatmem-2019-r1.ebuild
index 44e18966d1ea..67e5964f46a9 100644
--- a/dev-ada/gnatmem/gnatmem-2019-r1.ebuild
+++ b/dev-ada/gnatmem/gnatmem-2019-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -21,13 +21,16 @@ IUSE=""
RDEPEND="${ADA_DEPS}"
DEPEND="${RDEPEND}
dev-ada/gprbuild[${ADA_USEDEP}]
- sys-libs/binutils-libs"
+ sys-libs/binutils-libs:="
REQUIRED_USE="${ADA_REQUIRED_USE}"
S="${WORKDIR}"/${MYP}
-PATCHES=( "${FILESDIR}"/${PN}-2018-gentoo.patch )
+PATCHES=(
+ "${FILESDIR}"/${PN}-2018-gentoo.patch
+ "${FILESDIR}"/${P}-bfd.patch
+)
src_prepare() {
default
@@ -37,7 +40,9 @@ src_prepare() {
src_compile() {
gprbuild -v -Pgnatmem.gpr -j$(makeopts_jobs) \
- -cargs:C ${CFLAGS} -cargs:Ada ${ADAFLAGS}
+ -cargs:C ${CFLAGS} -cargs:Ada ${ADAFLAGS} \
+ -largs ${LDFLAGS} \
+ || die
}
src_install() {
diff --git a/dev-ada/gnatmem/gnatmem-2020.ebuild b/dev-ada/gnatmem/gnatmem-2020.ebuild
new file mode 100644
index 000000000000..48f6cd713a4b
--- /dev/null
+++ b/dev-ada/gnatmem/gnatmem-2020.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+ADA_COMPAT=( gnat_201{6,7,8,9} )
+inherit ada multiprocessing autotools
+
+MYP=${P}-20200429-19911-src
+
+DESCRIPTION="Monitors dynamic allocation and deallocation activity in a program"
+HOMEPAGE="http://libre.adacore.com/"
+SRC_URI="https://community.download.adacore.com/v1/77354fedca0441f882e17b6a73ac5631bff26237?filename=${MYP}.tar.gz
+ -> ${MYP}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="${ADA_DEPS}"
+DEPEND="${RDEPEND}
+ dev-ada/gprbuild[${ADA_USEDEP}]
+ sys-libs/binutils-libs:="
+
+REQUIRED_USE="${ADA_REQUIRED_USE}"
+
+S="${WORKDIR}"/${MYP}
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2018-gentoo.patch
+)
+
+src_prepare() {
+ default
+ mv configure.in configure.ac
+ eautoreconf
+}
+
+src_compile() {
+ gprbuild -v -Pgnatmem.gpr -j$(makeopts_jobs) \
+ -cargs:C ${CFLAGS} -cargs:Ada ${ADAFLAGS} \
+ -largs ${LDFLAGS} \
+ || die
+}
+
+src_install() {
+ dobin obj/gnatmem
+}