commit:     1bce1ecabecaba1b97ba4beabd9d0b568a2374fa
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Nov  6 10:37:53 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Nov  6 10:40:08 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1bce1eca

app-text/opensp: Revert broken autoreconfing

Remove the unnecessary autoreconf, as well as "configure" patch that
modifies a macro that is never used.  This is necessary as this
package's build system is broken beyond repair, and autoreconf triggers
the breakage.

Closes: https://bugs.gentoo.org/880001
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 app-text/opensp/files/opensp-1.5.2-configure-clang16.patch  | 13 -------------
 .../{opensp-1.5.2-r8.ebuild => opensp-1.5.2-r9.ebuild}      |  5 +----
 2 files changed, 1 insertion(+), 17 deletions(-)

diff --git a/app-text/opensp/files/opensp-1.5.2-configure-clang16.patch 
b/app-text/opensp/files/opensp-1.5.2-configure-clang16.patch
deleted file mode 100644
index 468d0f1d306d..000000000000
--- a/app-text/opensp/files/opensp-1.5.2-configure-clang16.patch
+++ /dev/null
@@ -1,13 +0,0 @@
---- a/acinclude.m4
-+++ b/acinclude.m4
-@@ -9,8 +9,9 @@ changequote([, ])dnl
- AC_MSG_CHECKING(size of $1)
- AC_CACHE_VAL(AC_CV_NAME,
- [AC_TRY_RUN([#include <stdio.h>
-+#include <stdlib.h>
- #include <$2>
--main()
-+int main(void)
- {
-   FILE *f=fopen("conftestval", "w");
-   if (!f) exit(1);

diff --git a/app-text/opensp/opensp-1.5.2-r8.ebuild 
b/app-text/opensp/opensp-1.5.2-r9.ebuild
similarity index 96%
rename from app-text/opensp/opensp-1.5.2-r8.ebuild
rename to app-text/opensp/opensp-1.5.2-r9.ebuild
index 743116acc69e..eab00d21392b 100644
--- a/app-text/opensp/opensp-1.5.2-r8.ebuild
+++ b/app-text/opensp/opensp-1.5.2-r9.ebuild
@@ -34,14 +34,11 @@ BDEPEND="nls? ( sys-devel/gettext )
 PATCHES=(
        "${FILESDIR}"/${P}-fix-segfault.patch
        "${FILESDIR}"/${P}-c11-using.patch
-       "${FILESDIR}"/${P}-configure-clang16.patch
 )
 
 src_prepare() {
        default
-
-       # Needed for Clang 16
-       eautoreconf
+       use prefix && eautoreconf
 }
 
 src_configure() {

Reply via email to