diff options
author | Andrew Udvare <audvare@gmail.com> | 2024-10-15 04:04:14 -0400 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2024-10-21 14:08:34 +0200 |
commit | 07bc74a917a14155521ad67fefd5f119353f8442 (patch) | |
tree | 985c2f587e64a55dee89f689af278a14417f3355 /sci-libs | |
parent | kde-plasma/plasma-workspace: Stabilize 6.1.5-r3 amd64, #941439 (diff) | |
download | gentoo-07bc74a917a14155521ad67fefd5f119353f8442.tar.gz gentoo-07bc74a917a14155521ad67fefd5f119353f8442.tar.bz2 gentoo-07bc74a917a14155521ad67fefd5f119353f8442.zip |
sci-libs/coinasl: fix implicit declaration issue
- Correctly detect getrusage(). The patch was present before but eautoreconf was never run before
because it was failing due to missing includes. This is resolved by pulling in coin-or BuildTools.
- Move econf to the correct phase function.
Closes: https://bugs.gentoo.org/941516
Signed-off-by: Andrew Udvare <audvare@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/38997
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/coinasl/Manifest | 1 | ||||
-rw-r--r-- | sci-libs/coinasl/coinasl-2.0.1-r1.ebuild (renamed from sci-libs/coinasl/coinasl-2.0.1.ebuild) | 14 | ||||
-rw-r--r-- | sci-libs/coinasl/files/coinasl-2.0.1-getrusage.patch | 2 |
3 files changed, 14 insertions, 3 deletions
diff --git a/sci-libs/coinasl/Manifest b/sci-libs/coinasl/Manifest index c30f0c55f14a..f2fee7a53866 100644 --- a/sci-libs/coinasl/Manifest +++ b/sci-libs/coinasl/Manifest @@ -1,2 +1,3 @@ +DIST coin-or-tools-BuildTools-20208f47f7bbc0056a92adefdfd43fded969f674.tar.gz 110238 BLAKE2B dd1965fd0a3aca6a1d0116d38c1c30edda1d2f38976ea919a4dd6e06da70171ab4a768e34a1320e7c8487c259968566aa94a585f36d96964296b2b5a240250ae SHA512 82b7f14f2ae735001d41b05b592914f4c1c710536a4ec5ed4db3aefa0f0ce181b90f44d6a91e6216d3c8dc87f760df2571837a062bf6aa3f3444a0d70f8a7a19 DIST coinasl-2.0.1.tar.gz 252385 BLAKE2B 7276c9e4325542817a49c61b0d08b5d3bd60a4d9beb981fdd164fdad80d6695c6ba83c4c0cbddeac119be4572c1fe4f0534b0adcc45541324b23e7bc2d60a303 SHA512 37c05677ebc82d56228cd80382c37ae44546fd5681063488bd2cd3c35c2155c2f85e6e8fbcbe41913eeafeb3ac12d2972919893de75affade3016e64f75e034b DIST solvers-64919f75f.tgz 360043 BLAKE2B 08b81c638bc9154e3089a87409585dd8e6f64be48ef0e431e5d5e907f5fa7c21c755890baf480924c17e25e8da6220d90f9d3ad1aa3146f40134f4bde0ca9f06 SHA512 dfb001d1feb4218b3122f4d6fe7a101f03bbb8277e8af0adda6a1ae9295b6eb7fc1ef62550bc6cc724a54754c713e36f526555c66d9f0bcb9a08ed61414bbe26 diff --git a/sci-libs/coinasl/coinasl-2.0.1.ebuild b/sci-libs/coinasl/coinasl-2.0.1-r1.ebuild index 633b07582ddf..3a7e7ae257e8 100644 --- a/sci-libs/coinasl/coinasl-2.0.1.ebuild +++ b/sci-libs/coinasl/coinasl-2.0.1-r1.ebuild @@ -3,11 +3,15 @@ EAPI=8 +inherit autotools + DESCRIPTION="Ampl Solver Library (ASL)" HOMEPAGE="https://github.com/coin-or-tools/ThirdParty-ASL" +BUILD_TOOLS_VERSION="20208f47f7bbc0056a92adefdfd43fded969f674" SOLVERS_SHA="64919f75f" SRC_URI="https://coin-or-tools.github.io/ThirdParty-ASL/solvers-${SOLVERS_SHA}.tgz - https://github.com/coin-or-tools/ThirdParty-ASL/archive/refs/tags/releases/${PV}.tar.gz -> ${P}.tar.gz" + https://github.com/coin-or-tools/ThirdParty-ASL/archive/refs/tags/releases/${PV}.tar.gz -> ${P}.tar.gz + https://github.com/coin-or-tools/BuildTools/archive/${BUILD_TOOLS_VERSION}.tar.gz -> coin-or-tools-BuildTools-${BUILD_TOOLS_VERSION}.tar.gz" S="${WORKDIR}/ThirdParty-ASL-releases-${PV}" LICENSE="EPL-1.0" @@ -24,7 +28,13 @@ src_unpack() { mv solvers "${S}" || die } -src_compile() { +src_prepare() { + default + AT_M4DIR="${WORKDIR}/BuildTools-${BUILD_TOOLS_VERSION}" + eautoreconf +} + +src_configure() { econf --enable-shared } diff --git a/sci-libs/coinasl/files/coinasl-2.0.1-getrusage.patch b/sci-libs/coinasl/files/coinasl-2.0.1-getrusage.patch index 54e8807dffae..9d6c193605bd 100644 --- a/sci-libs/coinasl/files/coinasl-2.0.1-getrusage.patch +++ b/sci-libs/coinasl/files/coinasl-2.0.1-getrusage.patch @@ -7,7 +7,7 @@ index 59e033d..2544237 100644 AC_MSG_CHECKING([for getrusage]) AC_LINK_IFELSE( - [AC_LANG_PROGRAM([[]],[[getrusage()]])], -+ [AC_LANG_PROGRAM(["#include <sys/resource.h>"],[[getrusage()]])], ++ [AC_LANG_PROGRAM([#include <sys/resource.h>],[struct rusage r; getrusage(RUSAGE_SELF, &r)])], [AC_MSG_RESULT([yes])], [CPPFLAGS="$CPPFLAGS -DNO_RUSAGE" AC_MSG_RESULT([no])]) |