From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/isl/files/, dev-libs/isl/
Date: Sun, 10 Oct 2021 23:02:58 +0000 (UTC) [thread overview]
Message-ID: <1633906645.d19a7f9d9ba8362f9e12a28805957bf17c0b6cb2.sam@gentoo> (raw)
commit: d19a7f9d9ba8362f9e12a28805957bf17c0b6cb2
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 10 22:57:25 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Oct 10 22:57:25 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d19a7f9d
dev-libs/isl: respect CFLAGS
Drop the fun (and aggressive) AX_CC_MAXOPT macro call
which was causing us to not respect the user's CFLAGS.
Note that 0.24 seemed to be triggering maintainer mode;
have chucked eautoreconf into the ebuild for 0.24-r1
given it seemingly wasn't doing any harm to be doing
it informally in 0.24 anyway, but will keep an eye on
it.
Revbump because of the aforementioned churn in a
critical dependency.
Bug: https://bugs.gentoo.org/815700
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-libs/isl/files/isl-0.24-gdb-autoload-dir.patch | 35 ++++++++++++++++++++++
dev-libs/isl/files/isl-0.24-respect-flags.patch | 14 +++++++++
.../isl/{isl-0.24.ebuild => isl-0.24-r1.ebuild} | 19 ++++++++----
dev-libs/isl/isl-0.24.ebuild | 6 ++--
4 files changed, 67 insertions(+), 7 deletions(-)
diff --git a/dev-libs/isl/files/isl-0.24-gdb-autoload-dir.patch b/dev-libs/isl/files/isl-0.24-gdb-autoload-dir.patch
new file mode 100644
index 00000000000..6751d5755fb
--- /dev/null
+++ b/dev-libs/isl/files/isl-0.24-gdb-autoload-dir.patch
@@ -0,0 +1,35 @@
+diff -Naur isl-0.19.orig/Makefile.in isl-0.19/Makefile.in
+--- isl-0.19.orig/Makefile.in 2018-03-03 11:32:15.000000000 -0500
++++ isl-0.19/Makefile.in 2018-03-10 17:29:30.039182728 -0500
+@@ -2269,10 +2269,10 @@
+ case $$libisl in \
+ '') echo Cannot find isl library name. GDB bindings not installed.;; \
+ *) echo $(INSTALL_DATA) $(srcdir)/libisl-gdb.py \
+- $(DESTDIR)$(libdir)/$$libisl-gdb.py; \
+- test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"; \
++ $(DESTDIR)$(prefix)/share/gdb/auto-load$(libdir)/$$libisl-gdb.py; \
++ test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(prefix)/share/gdb/auto-load$(libdir)"; \
+ $(INSTALL_DATA) $(srcdir)/libisl-gdb.py \
+- $(DESTDIR)$(libdir)/$$libisl-gdb.py; \
++ $(DESTDIR)$(prefix)/share/gdb/auto-load$(libdir)/$$libisl-gdb.py; \
+ esac
+
+ uninstall-local:
+diff --git a/Makefile.am b/Makefile.am
+index 96cac65..8bb6aa2 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -639,10 +639,10 @@ install-data-local: $(srcdir)/libisl-gdb.py
+ case $$libisl in \
+ '') echo Cannot find isl library name. GDB bindings not installed.;; \
+ *) echo $(INSTALL_DATA) $(srcdir)/libisl-gdb.py \
+- $(DESTDIR)$(libdir)/$$libisl-gdb.py; \
+- test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"; \
++ $(DESTDIR)$(prefix)/share/gdb/auto-load$(libdir)/$$libisl-gdb.py; \
++ test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(prefix)/share/gdb/auto-load$(libdir)"; \
+ $(INSTALL_DATA) $(srcdir)/libisl-gdb.py \
+- $(DESTDIR)$(libdir)/$$libisl-gdb.py; \
++ $(DESTDIR)$(prefix)/share/gdb/auto-load$(libdir)/$$libisl-gdb.py; \
+ esac
+
+ uninstall-local:
diff --git a/dev-libs/isl/files/isl-0.24-respect-flags.patch b/dev-libs/isl/files/isl-0.24-respect-flags.patch
new file mode 100644
index 00000000000..e00748b2433
--- /dev/null
+++ b/dev-libs/isl/files/isl-0.24-respect-flags.patch
@@ -0,0 +1,14 @@
+https://bugs.gentoo.org/815700
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -22,7 +22,6 @@ AC_PROG_CC
+ AC_PROG_CXX
+ AX_PROG_CC_FOR_BUILD
+
+-AX_CC_MAXOPT
+ AX_GCC_WARN_UNUSED_RESULT
+ AX_C___ATTRIBUTE__
+
+--
+
diff --git a/dev-libs/isl/isl-0.24.ebuild b/dev-libs/isl/isl-0.24-r1.ebuild
similarity index 79%
copy from dev-libs/isl/isl-0.24.ebuild
copy to dev-libs/isl/isl-0.24-r1.ebuild
index 9b5ae94248d..17e0ea9fca5 100644
--- a/dev-libs/isl/isl-0.24.ebuild
+++ b/dev-libs/isl/isl-0.24-r1.ebuild
@@ -1,9 +1,9 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI="7"
+EAPI=7
-inherit multilib-minimal preserve-libs toolchain-funcs
+inherit autotools multilib-minimal preserve-libs toolchain-funcs
DESCRIPTION="A library for manipulating integer points bounded by linear constraints"
HOMEPAGE="http://isl.gforge.inria.fr/"
@@ -11,7 +11,7 @@ SRC_URI="http://isl.gforge.inria.fr/${P}.tar.xz"
LICENSE="LGPL-2.1"
SLOT="0/23"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE="static-libs"
RDEPEND=">=dev-libs/gmp-5.1.3-r1[${MULTILIB_USEDEP}]"
@@ -23,10 +23,17 @@ BDEPEND="
DOCS=( ChangeLog AUTHORS doc/manual.pdf )
PATCHES=(
- "${FILESDIR}"/${PN}-0.19-gdb-autoload-dir.patch
+ "${FILESDIR}"/${PN}-0.24-gdb-autoload-dir.patch
"${FILESDIR}"/${PN}-0.24-nobash.patch
+ "${FILESDIR}"/${PN}-0.24-respect-flags.patch
)
+src_prepare() {
+ default
+
+ eautoreconf
+}
+
multilib_src_configure() {
local econf_opts=(
$(use_enable static-libs static)
@@ -35,6 +42,7 @@ multilib_src_configure() {
# https://wiki.gentoo.org/wiki/Project:Toolchain/use_native_symlinks
CC_FOR_BUILD="$(tc-getBUILD_CC)"
)
+
if ! tc-is-cross-compiler; then
# Incorrect CFLAGS handling as CFLAGS_FOR_BUILD
# even for native builds. As a result -O3 is being used
@@ -49,7 +57,8 @@ multilib_src_configure() {
multilib_src_install_all() {
einstalldocs
- find "${ED}" -type f -name '*.la' -delete
+
+ find "${ED}" -type f -name '*.la' -delete || die
}
pkg_preinst() {
diff --git a/dev-libs/isl/isl-0.24.ebuild b/dev-libs/isl/isl-0.24.ebuild
index 9b5ae94248d..ad2782f9d7c 100644
--- a/dev-libs/isl/isl-0.24.ebuild
+++ b/dev-libs/isl/isl-0.24.ebuild
@@ -1,7 +1,7 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI="7"
+EAPI=7
inherit multilib-minimal preserve-libs toolchain-funcs
@@ -35,6 +35,7 @@ multilib_src_configure() {
# https://wiki.gentoo.org/wiki/Project:Toolchain/use_native_symlinks
CC_FOR_BUILD="$(tc-getBUILD_CC)"
)
+
if ! tc-is-cross-compiler; then
# Incorrect CFLAGS handling as CFLAGS_FOR_BUILD
# even for native builds. As a result -O3 is being used
@@ -49,7 +50,8 @@ multilib_src_configure() {
multilib_src_install_all() {
einstalldocs
- find "${ED}" -type f -name '*.la' -delete
+
+ find "${ED}" -type f -name '*.la' -delete || die
}
pkg_preinst() {
next reply other threads:[~2021-10-10 23:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-10 23:02 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-05-02 21:31 [gentoo-commits] repo/gentoo:master commit in: dev-libs/isl/files/, dev-libs/isl/ Sergei Trofimovich
2019-11-10 22:20 Sergei Trofimovich
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=1633906645.d19a7f9d9ba8362f9e12a28805957bf17c0b6cb2.sam@gentoo \
--to=sam@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