From 764e55abdcbfe11c8c25efc141314cd301a63c63 Mon Sep 17 00:00:00 2001 From: Stefan Krah Date: Wed, 10 Feb 2021 17:05:55 +0000 Subject: main/mpdecimal: move from testing --- main/mpdecimal/10-pthreads.patch | 32 ++++++++++++++++++++++++++++++++ main/mpdecimal/APKBUILD | 32 ++++++++++++++++++++++++++++++++ testing/mpdecimal/10-pthreads.patch | 32 -------------------------------- testing/mpdecimal/APKBUILD | 32 -------------------------------- 4 files changed, 64 insertions(+), 64 deletions(-) create mode 100644 main/mpdecimal/10-pthreads.patch create mode 100644 main/mpdecimal/APKBUILD delete mode 100644 testing/mpdecimal/10-pthreads.patch delete mode 100644 testing/mpdecimal/APKBUILD diff --git a/main/mpdecimal/10-pthreads.patch b/main/mpdecimal/10-pthreads.patch new file mode 100644 index 00000000000..2f1c961f19e --- /dev/null +++ b/main/mpdecimal/10-pthreads.patch @@ -0,0 +1,32 @@ +--- a-mpdecimal-2.5.1/tests++/runshort.sh ++++ b-mpdecimal-2.5.1/tests++/runshort.sh +@@ -12,9 +12,11 @@ + export MallocLogFile=/dev/null + export MallocDebugReport=crash + ;; +- AIX) ++ AIX|Linux) + # The thread stack size on AIX (96K) makes std::thread unusable + # for runtest.cc, which needs around 300K. ++ # ++ # The same applies to Alpine Linux (musl). + THREAD="--pthread" + ;; + *) +--- a-mpdecimal-2.5.1/tests++/runshort_alloc.sh ++++ b-mpdecimal-2.5.1/tests++/runshort_alloc.sh +@@ -12,9 +12,11 @@ + export MallocLogFile=/dev/null + export MallocDebugReport=crash + ;; +- AIX) ++ AIX|Linux) + # The thread stack size on AIX (96K) makes std::thread unusable + # for runtest.cc, which needs around 300K. ++ # ++ # The same applies to Alpine Linux (musl). + THREAD="--pthread" + ;; + *) + + diff --git a/main/mpdecimal/APKBUILD b/main/mpdecimal/APKBUILD new file mode 100644 index 00000000000..3db457243c5 --- /dev/null +++ b/main/mpdecimal/APKBUILD @@ -0,0 +1,32 @@ +# Contributor: Stefan Stutz +# Maintainer: Stefan Stutz +pkgname=mpdecimal +pkgver=2.5.1 +pkgrel=1 +pkgdesc="complete implementation of the General Decimal Arithmetic Specification" +url="https://www.bytereef.org/mpdecimal/index.html" +arch="all" +license="BSD-2-Clause" +subpackages="$pkgname-doc $pkgname-dev" +source="https://www.bytereef.org/software/mpdecimal/releases/mpdecimal-$pkgver.tar.gz 10-pthreads.patch" + +build() { + ./configure \ + --build=$CBUILD \ + --target=$CTARGET \ + --prefix=/usr + make +} + +check() { + # The new test target *make check_local* does not attempt to download + # dectest.zip. This is useful for packagers whose infrastructure does + # not allow downloading during the testing phase. + make check_local +} + +package() { + make install DESTDIR="$pkgdir" +} +sha512sums="710cb5cb71dbcf3e170ca15869c148df0547b848400c6b6dd70c67d9961dbe1190af8fb4d1623bfb0ca2afe44f369a42e311ab5225ed89d4031cb49a3bd70f30 mpdecimal-2.5.1.tar.gz +ca22894e5a01c2ad8107a86968692071c7c4dfc6ecad04972d278b45611ea4b5ed02259772a24800da43fbec5bb4335604f6745f599c2cbf0cc452238f7710b3 10-pthreads.patch" diff --git a/testing/mpdecimal/10-pthreads.patch b/testing/mpdecimal/10-pthreads.patch deleted file mode 100644 index 2f1c961f19e..00000000000 --- a/testing/mpdecimal/10-pthreads.patch +++ /dev/null @@ -1,32 +0,0 @@ ---- a-mpdecimal-2.5.1/tests++/runshort.sh -+++ b-mpdecimal-2.5.1/tests++/runshort.sh -@@ -12,9 +12,11 @@ - export MallocLogFile=/dev/null - export MallocDebugReport=crash - ;; -- AIX) -+ AIX|Linux) - # The thread stack size on AIX (96K) makes std::thread unusable - # for runtest.cc, which needs around 300K. -+ # -+ # The same applies to Alpine Linux (musl). - THREAD="--pthread" - ;; - *) ---- a-mpdecimal-2.5.1/tests++/runshort_alloc.sh -+++ b-mpdecimal-2.5.1/tests++/runshort_alloc.sh -@@ -12,9 +12,11 @@ - export MallocLogFile=/dev/null - export MallocDebugReport=crash - ;; -- AIX) -+ AIX|Linux) - # The thread stack size on AIX (96K) makes std::thread unusable - # for runtest.cc, which needs around 300K. -+ # -+ # The same applies to Alpine Linux (musl). - THREAD="--pthread" - ;; - *) - - diff --git a/testing/mpdecimal/APKBUILD b/testing/mpdecimal/APKBUILD deleted file mode 100644 index 3db457243c5..00000000000 --- a/testing/mpdecimal/APKBUILD +++ /dev/null @@ -1,32 +0,0 @@ -# Contributor: Stefan Stutz -# Maintainer: Stefan Stutz -pkgname=mpdecimal -pkgver=2.5.1 -pkgrel=1 -pkgdesc="complete implementation of the General Decimal Arithmetic Specification" -url="https://www.bytereef.org/mpdecimal/index.html" -arch="all" -license="BSD-2-Clause" -subpackages="$pkgname-doc $pkgname-dev" -source="https://www.bytereef.org/software/mpdecimal/releases/mpdecimal-$pkgver.tar.gz 10-pthreads.patch" - -build() { - ./configure \ - --build=$CBUILD \ - --target=$CTARGET \ - --prefix=/usr - make -} - -check() { - # The new test target *make check_local* does not attempt to download - # dectest.zip. This is useful for packagers whose infrastructure does - # not allow downloading during the testing phase. - make check_local -} - -package() { - make install DESTDIR="$pkgdir" -} -sha512sums="710cb5cb71dbcf3e170ca15869c148df0547b848400c6b6dd70c67d9961dbe1190af8fb4d1623bfb0ca2afe44f369a42e311ab5225ed89d4031cb49a3bd70f30 mpdecimal-2.5.1.tar.gz -ca22894e5a01c2ad8107a86968692071c7c4dfc6ecad04972d278b45611ea4b5ed02259772a24800da43fbec5bb4335604f6745f599c2cbf0cc452238f7710b3 10-pthreads.patch" -- cgit v1.2.3