X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id B5A33DC09B3 for ; Thu, 31 Mar 2016 01:23:33 +0000 (UTC) Received: from mail-pa0-f65.google.com (mail-pa0-f65.google.com [209.85.220.65]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 8601DDC0235 for ; Thu, 31 Mar 2016 01:23:32 +0000 (UTC) Received: by mail-pa0-f65.google.com with SMTP id hj7so8238249pac.1 for ; Wed, 30 Mar 2016 18:23:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=1Bha9oD0iNF5tUothggYBJ47GVVREVn9lpOu7UJA9a0=; b=zXPG6yF+1cAeDbiQ9jwhOu6CD4KCsCM97DlWcjtNpQPIHrUkuQsImZDzX7BGzOEovF mgHZYZ+Q5brKoOSEIimlNpBENCXI2/4C6MVMLSBba+2NO5fRKTKxFQHXD0wQME8NVSaT SSS/GL4f/dJhzrgtr43rgj1Qf69KjT0Ye+OOpY+FhmE8wQu14ZnzDpFGCSriUXwnTEq6 zUlYH0Dg2/wdLJq+nAbW0IApcO7tTZ2TDzBNK4CbIkHAur8zlx8d82pEnoPaZmbvxt07 dZy1MctcT3pfdHZ+HGnNKjCKTsybMzzoHg832j/ubXC4lOAPdzjVc5M1UHigoGXvYXuH FrrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=1Bha9oD0iNF5tUothggYBJ47GVVREVn9lpOu7UJA9a0=; b=DCGtrRVUX+ERF4WXDUbMDw7GhQnTXGUuC8nkw+UGaxtJGshtsT0NgeTqoTNYhuCdNq KgwzRot6PoY20vIlfo50ZLKkQpersFzAudA9FPeL6zXVsMoGs/pNAr7G1Qd2bJLrT+40 CbuXzQzbnz7ptbaVRFx2N3AmZQPdHAj/4lLnUVjKIYwLIKtbPcTxE2BSt3eMRJSGxcpy okKV+vXSzeW3Vybr7HbjAYQJQdQzwX5SG9oLrsyORGpER6eBEVgHFmryi4LerqGVyYV2 UtwqeF9UTJqCarl7djqKvgH3kr2KaPj0XRfSOLFD928PzZA8Cx90Bf+8LrZnmPw/IToD /9qQ== X-Gm-Message-State: AD7BkJLBH4zWeH7KFxZAqQ7ZoJLtuErIfilZSN/95eUctl2snQrOfwbGxc8CLOVFdEzutQ== X-Received: by 10.66.148.232 with SMTP id tv8mr9669990pab.21.1459314189470; Tue, 29 Mar 2016 22:03:09 -0700 (PDT) Received: from newbook ([50.0.225.136]) by smtp.gmail.com with ESMTPSA id y7sm2045466pfa.82.2016.03.29.22.03.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Mar 2016 22:03:08 -0700 (PDT) Date: Tue, 29 Mar 2016 22:03:04 -0700 From: Isaac Dunham To: alpine-aports@lists.alpinelinux.org Subject: [alpine-aports] [PATCH v2] testing/openblas: update to 0.2.17 Message-ID: <20160330050303.GA6380@newbook> X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="V0207lvV8h4k8FAm" Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-Virus-Scanned: ClamAV using ClamSMTP --V0207lvV8h4k8FAm Content-Type: multipart/mixed; boundary="fUYQa+Pmc3FrFX/N" Content-Disposition: inline --fUYQa+Pmc3FrFX/N Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Attached is a patch to update testing/openblas to 0.2.17. This required replacing one use of sys_siglist[] with strsignal(). Also, due to some convolutions of the build system, setting CFLAGS in the environment rather than passing it to make caused repeated definitions of CNAME/ASMNAME/ASMFNAME/... in the gcc invocation, making for a very noisy build. Thanks, Isaac Dunham --fUYQa+Pmc3FrFX/N Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-testing-openblas-update-to-0.2.17.patch" Content-Transfer-Encoding: quoted-printable =46rom a629abe4458599ab57041e5158430e4db4736308 Mon Sep 17 00:00:00 2001 =46rom: Isaac Dunham Date: Fri, 25 Mar 2016 12:05:29 -0700 Subject: [PATCH] testing/openblas: update to 0.2.17 Use strsignal() instead of sys_siglist[]. While here, pass CFLAGS on the command line rather than in the environment because the latter confuses make. (This fixes all the warnings about CNAME/ASMNAME/... getting defined multiple times.) --- ...0001-Use-strsignal-instead-of-sys_siglist.patch | 35 ++++++++++++++++++= ++++ testing/openblas/APKBUILD | 20 ++++++++----- 2 files changed, 48 insertions(+), 7 deletions(-) create mode 100644 testing/openblas/0001-Use-strsignal-instead-of-sys_sigl= ist.patch diff --git a/testing/openblas/0001-Use-strsignal-instead-of-sys_siglist.pat= ch b/testing/openblas/0001-Use-strsignal-instead-of-sys_siglist.patch new file mode 100644 index 0000000..6032fc0 --- /dev/null +++ b/testing/openblas/0001-Use-strsignal-instead-of-sys_siglist.patch @@ -0,0 +1,35 @@ +From 518435f376fb7b1a1972ea44cd932f1314f34cbf Mon Sep 17 00:00:00 2001 +From: Isaac Dunham +Date: Sat, 26 Mar 2016 21:37:36 -0700 +Subject: [PATCH] Use strsignal() instead of sys_siglist[]. + +musl libc only implements strsignal(). +POSIX 2008 requires strsignal() but not sys_siglist[], and glibc, +the BSDs, Solaris, and OS X support both. +I'm not sure about the status on mingw; as far as I can tell, they +define strsignal(x) as sys_siglist[x]. + +Also use snprintf() because it's not strictly guaranteed that signal +descriptions be any particular length. +I'm not aware of any signal descriptions over 114 bytes long, so this +is mostly paranoia. +--- + utest/ctest.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/utest/ctest.h b/utest/ctest.h +index a62103f..1deea32 100644 +--- a/utest/ctest.h ++++ b/utest/ctest.h +@@ -637,7 +637,7 @@ static void *find_symbol(struct ctest *test, const cha= r *fname) + static void sighandler(int signum) + { + char msg[128]; +- sprintf(msg, "[SIGNAL %d: %s]", signum, sys_siglist[signum]); ++ snprintf(msg, sizeof(msg), "[SIGNAL %d: %s]", signum, strsignal(signu= m)); + color_print(ANSI_BRED, msg); + fflush(stdout); +=20 +--=20 +2.7.4 + diff --git a/testing/openblas/APKBUILD b/testing/openblas/APKBUILD index 654219f..b2233c3 100644 --- a/testing/openblas/APKBUILD +++ b/testing/openblas/APKBUILD @@ -1,8 +1,8 @@ # Contributor: Isaac Dunham # Maintainer: Isaac Dunham pkgname=3Dopenblas -pkgver=3D0.2.15 -pkgrel=3D1 +pkgver=3D0.2.17 +pkgrel=3D0 pkgdesc=3D"A fast BSD-licensed BLAS based on gotoBLAS2, with LAPACK" url=3D"http://www.openblas.net" arch=3D"all" @@ -12,7 +12,9 @@ depends_dev=3D"gfortran" makedepends=3D"$depends_dev perl linux-headers" install=3D"" subpackages=3D"$pkgname-dev $pkgname-doc" -source=3D"$pkgname-$pkgver.tar.gz::http://github.com/xianyi/OpenBLAS/archi= ve/v$pkgver.tar.gz" +source=3D"$pkgname-$pkgver.tar.gz::http://github.com/xianyi/OpenBLAS/archi= ve/v$pkgver.tar.gz + 0001-Use-strsignal-instead-of-sys_siglist.patch + " =20 _builddir=3D"$srcdir"/OpenBLAS-$pkgver prepare() { @@ -39,7 +41,8 @@ FLAGS=3D"USE_OPENMP=3D0 NO_LAPACK=3D0 NUM_THREADS=3D32 MA= JOR_VERSION=3D3 \ =20 build() { cd "$_builddir" - make $FLAGS PREFIX=3D/usr || return 1 +#=20 + CFLAGS=3D make CFLAGS=3D"$CFLAGS" $FLAGS PREFIX=3D/usr TOPDIR=3D"$_buildd= ir" || return 1 } =20 package() { @@ -51,6 +54,9 @@ package() { install -m 0644 $FILE "$pkgdir/usr/share/doc/$pkgname" || return 1 done } -md5sums=3D"b1190f3d3471685f17cfd1ec1d252ac9 openblas-0.2.15.tar.gz" -sha256sums=3D"73c40ace5978282224e5e122a41c8388c5a19e65a6f2329c2b7c0b61bacc= 9044 openblas-0.2.15.tar.gz" -sha512sums=3D"5b61556a9bd2c622bc31ec7a1b4cbab67740e40c4f0717670b16987d687e= fdd83d3bd8b2c0b158a8da956ef04665cf9a00b6b1f1619b6353a206a31a5e5d6c9a openb= las-0.2.15.tar.gz" +md5sums=3D"664a12807f2a2a7cda4781e3ab2ae0e1 openblas-0.2.17.tar.gz +ddce6ae8c2af85ebdd14e9150960d1c6 0001-Use-strsignal-instead-of-sys_siglis= t.patch" +sha256sums=3D"0fe836dfee219ff4cadcc3567fb2223d9e0da5f60c7382711fb9e2c35ecf= 0dbf openblas-0.2.17.tar.gz +4e662d5dd5d03e0067c856d3c359d4306a8fb1ad66c2a70a7cf851decf5fdea3 0001-Use= -strsignal-instead-of-sys_siglist.patch" +sha512sums=3D"ae49294e0d4903d5f385c256956ac950a75cbc4f828a31c7c324e2512831= afa955c22d71e965256c355d38e45cde1987ee2babb12ba9ab9e99323e476790b507 openb= las-0.2.17.tar.gz +d3dd7cad2c0bc5414642cf51a46bc57e681c4449bd829bf304c743c44c53f29d90ba0c4323= 3bf5a7cce3e6b057d1c1cef27d0ccffecb50125993b34c913477c8 0001-Use-strsignal-= instead-of-sys_siglist.patch" --=20 2.7.4 --fUYQa+Pmc3FrFX/N-- --V0207lvV8h4k8FAm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJW+14EAAoJEEQFgbMMxjof4soIAInI+e/7KjW+Dttw+ciG27Be qtto2XwDwUwwYCZiHNJCaG3UNobEAf2xjvIIfQy1iAYRSA5TUCIeqg1gEzYS9JaG WMrHH0WqPKwNESa6tpopWgAEPnrvWkAxyG4nzkSPA70h06cWSfl00tsFDHN3yNpl iGwbJ0dS5R3cS7509Eu7kBqEiCN0JFesf+uaUZ2pYrLLFhK4kIcoPtlBvmZjnUVz B9IBXppfAl5lTZJ3F/cletZUiTbW+S+yKJABZTbb8Lg7nAjOAsjhz2W5KXN/p5/Y ghaiomOptpEsrDS12lelpmLfCvZG50rlvivS9G9jWu5KHlJyK6zNFPfZZ+BPu9c= =T0Xc -----END PGP SIGNATURE----- --V0207lvV8h4k8FAm-- --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---