From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D93E9138350 for ; Wed, 8 Jan 2020 20:30:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1FA54E085D; Wed, 8 Jan 2020 20:30:24 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E6B40E085D for ; Wed, 8 Jan 2020 20:30:23 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 176D634DE97 for ; Wed, 8 Jan 2020 20:30:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C61E837 for ; Wed, 8 Jan 2020 20:30:09 +0000 (UTC) From: "Sergei Trofimovich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" Message-ID: <1578515402.8e310853e6e93153062451b97a0750ccb1c3b419.slyfox@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/isl/, dev-libs/isl/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/isl/files/isl-0.22-bmap-nullderef.patch dev-libs/isl/isl-0.22-r1.ebuild X-VCS-Directories: dev-libs/isl/files/ dev-libs/isl/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 8e310853e6e93153062451b97a0750ccb1c3b419 X-VCS-Branch: master Date: Wed, 8 Jan 2020 20:30:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d92f1cef-e56a-47e8-9c71-2a8b5dab48db X-Archives-Hash: c948ab9fb9706428d0c2ff7d2c0947d1 commit: 8e310853e6e93153062451b97a0750ccb1c3b419 Author: Sergei Trofimovich gentoo org> AuthorDate: Wed Jan 8 20:29:11 2020 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Wed Jan 8 20:30:02 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e310853 dev-libs/isl: fix SIGSEGV for gcc, bug #702968 Picked proposed upstream patch from https://groups.google.com/forum/#!original/isl-development/Otz1QKZDpzA/71GkTvqkCAAJ Reported-by: wolfwood Closes: https://bugs.gentoo.org/702968 Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Sergei Trofimovich gentoo.org> dev-libs/isl/files/isl-0.22-bmap-nullderef.patch | 34 ++++++++++++++++ dev-libs/isl/isl-0.22-r1.ebuild | 52 ++++++++++++++++++++++++ 2 files changed, 86 insertions(+) diff --git a/dev-libs/isl/files/isl-0.22-bmap-nullderef.patch b/dev-libs/isl/files/isl-0.22-bmap-nullderef.patch new file mode 100644 index 00000000000..00104f1f432 --- /dev/null +++ b/dev-libs/isl/files/isl-0.22-bmap-nullderef.patch @@ -0,0 +1,34 @@ +https://groups.google.com/forum/#!original/isl-development/Otz1QKZDpzA/71GkTvqkCAAJ +https://bugs.gentoo.org/702968 + +Subject: [MAINT PATCH] isl_basic_map_underlying_set: fix error handling +Date: Tue, 7 Jan 2020 23:02:42 +0100 +Message-Id: <20200107220242...@kotnet.org> +X-Mailer: git-send-email 2.24.1.591.g12029dc57d +MIME-Version: 1.0 +Content-Transfer-Encoding: 8bit +From: Sven Verdoolaege + +The check for a valid bmap before accessing its n_div field +was inadvertently removed in isl-0.21-230-g6a4c4bbf31 (isl_map.c: +extract out shared isl_basic_map_{take,restore}_space, +Thu Aug 11 10:27:49 2016 +0200). + +Reported-by: Richard Biener +Signed-off-by: Sven Verdoolaege +--- + isl_map.c | 2 ++ + 1 file changed, 2 insertions(+) +--- a/isl_map.c ++++ b/isl_map.c +@@ -5511,6 +5511,8 @@ __isl_give isl_basic_set *isl_basic_map_underlying_set( + !isl_space_is_named_or_nested(bmap->dim, isl_dim_out)) + return bset_from_bmap(bmap); + bmap = isl_basic_map_cow(bmap); ++ if (!bmap) ++ return NULL; + space = isl_basic_map_take_space(bmap); + space = isl_space_underlying(space, bmap->n_div); + bmap = isl_basic_map_restore_space(bmap, space); +-- +2.24.1.591.g12029dc57d diff --git a/dev-libs/isl/isl-0.22-r1.ebuild b/dev-libs/isl/isl-0.22-r1.ebuild new file mode 100644 index 00000000000..807d8300e4a --- /dev/null +++ b/dev-libs/isl/isl-0.22-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit eutils multilib-minimal preserve-libs + +DESCRIPTION="A library for manipulating integer points bounded by linear constraints" +HOMEPAGE="http://isl.gforge.inria.fr/" +SRC_URI="http://isl.gforge.inria.fr/${P}.tar.xz" + +LICENSE="LGPL-2.1" +SLOT="0/22" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86" +IUSE="static-libs" + +RDEPEND=">=dev-libs/gmp-5.1.3-r1[${MULTILIB_USEDEP}]" +DEPEND="${RDEPEND} + app-arch/xz-utils + virtual/pkgconfig" + +DOCS=( ChangeLog AUTHORS doc/manual.pdf ) + +PATCHES=( + "${FILESDIR}"/${PN}-0.19-gdb-autoload-dir.patch + "${FILESDIR}"/${PN}-0.22-bmap-nullderef.patch +) + +multilib_src_configure() { + ECONF_SOURCE="${S}" econf $(use_enable static-libs static) +} + +multilib_src_install_all() { + einstalldocs + find "${ED}" -type f -name '*.la' -delete +} + +pkg_preinst() { + preserve_old_lib \ + /usr/$(get_libdir)/libisl$(get_libname 14) \ + /usr/$(get_libdir)/libisl$(get_libname 15) \ + /usr/$(get_libdir)/libisl$(get_libname 19) \ + /usr/$(get_libdir)/libisl$(get_libname 21) +} + +pkg_postinst() { + preserve_old_lib_notify \ + /usr/$(get_libdir)/libisl$(get_libname 14) \ + /usr/$(get_libdir)/libisl$(get_libname 15) \ + /usr/$(get_libdir)/libisl$(get_libname 19) \ + /usr/$(get_libdir)/libisl$(get_libname 21) +}