[arch-commits] Commit in polymake/repos (3 files)

Felix Yan felixonmars at gemini.archlinux.org
Sun May 29 16:13:55 UTC 2022


    Date: Sunday, May 29, 2022 @ 16:13:55
  Author: felixonmars
Revision: 1214762

archrelease: copy trunk to community-staging-x86_64

Added:
  polymake/repos/community-staging-x86_64/
  polymake/repos/community-staging-x86_64/PKGBUILD
    (from rev 1214761, polymake/trunk/PKGBUILD)
  polymake/repos/community-staging-x86_64/perl-5.36.patch
    (from rev 1214761, polymake/trunk/perl-5.36.patch)

-----------------+
 PKGBUILD        |   39 +++++++++++++++++++++++++++++++++++++++
 perl-5.36.patch |   16 ++++++++++++++++
 2 files changed, 55 insertions(+)

Copied: polymake/repos/community-staging-x86_64/PKGBUILD (from rev 1214761, polymake/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-05-29 16:13:55 UTC (rev 1214762)
@@ -0,0 +1,39 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=polymake
+pkgver=4.6
+pkgrel=4
+_perlver=`perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]).".".($v->[2]);'`
+pkgdesc='Open source software for research in polyhedral geometry'
+arch=(x86_64)
+url='https://polymake.org/'
+license=(GPL)
+depends=(normaliz singular ppl lrs perl-xml-writer perl-xml-libxml perl-xml-libxslt
+         perl-term-readline-gnu perl-term-readkey perl-json sympol perl=$_perlver)
+makedepends=(ninja cddlib ant boost bliss libnsl jdk8-openjdk permlib nauty)
+optdepends=('java-runtime: java module')
+source=(https://polymake.org/lib/exe/fetch.php/download/polymake-${pkgver/.r/r}-minimal.tar.bz2
+        perl-5.36.patch)
+sha256sums=('423a44ddef11eaea8457ab15dd5d86ddb7a8bcc6c9bb11776f9e2958d7dcf9d0'
+            '497d447f3371858382e29b3b1149d09560d7be4847c5709b34cc83c043077c21')
+
+prepare() {
+  cd polymake-$pkgver
+  patch -Np1 -i ../perl-5.36.patch
+}
+
+build() {
+  cd polymake-$pkgver
+  ./configure \
+    --prefix=/usr \
+    --with-cdd=/usr \
+    --with-lrs=/usr \
+    --with-permlib=/usr \
+    --with-sympol=/usr
+  make
+}
+
+package() {
+  cd polymake-$pkgver
+  make DESTDIR="$pkgdir" install
+}

Copied: polymake/repos/community-staging-x86_64/perl-5.36.patch (from rev 1214761, polymake/trunk/perl-5.36.patch)
===================================================================
--- community-staging-x86_64/perl-5.36.patch	                        (rev 0)
+++ community-staging-x86_64/perl-5.36.patch	2022-05-29 16:13:55 UTC (rev 1214762)
@@ -0,0 +1,16 @@
+diff --git a/lib/core/src/perl/RefHash.xxs b/lib/core/src/perl/RefHash.xxs
+index 42ee53cd..5cc3f73f 100644
+--- a/lib/core/src/perl/RefHash.xxs
++++ b/lib/core/src/perl/RefHash.xxs
+@@ -71,7 +71,11 @@ SV* tmp_keysv::set(SV* keysv)
+    Copy(obj.keyp, HEK_KEY(hekp), sizeof(SV*), char);
+    HEK_LEN(hekp) = sizeof(SV*);
+    HEK_HASH(hekp) = U32(obj.keyl >> 4);          // hash value
++#if PerlVersion >= 5360
++   HEK_FLAGS(hekp) = HVhek_NOTSHARED;
++#else
+    HEK_FLAGS(hekp) = HVhek_UNSHARED;
++#endif
+    sv.sv_any = &xpv;
+    sv.sv_refcnt = 1;
+    sv.sv_flags = SVt_PVIV | SVf_IVisUV | SVf_POK | SVp_POK | PmFlagsForHashKey;



More information about the arch-commits mailing list