polylib

LOW
maintainer hv15 1 votes scanned 2026-09-17 00:27:14.276658
View on AUR
Why flagged

The source is a tarball from the project's official academic host for building the library itself; this is a normal AUR build pattern, and the host, while not whitelisted, is plausibly the project's own.

Triggered rules

Low AI review downgraded a static finding llm_review

The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-2507) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The source is a tarball from the project's official academic host for building the library itself; this is a normal AUR build pattern, and the host, while not whitelisted, is plausibly the project's own.

1 higher static finding superseded - not the current verdict (shown for transparency)
Medium source=() URL on a non-standard host source_untrusted_domain

One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).

  • PKGBUILD:11 source=("http://icps.u-strasbg.fr/polylib/polylib_src/$pkgname-$pkgver.tar.gz"

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Hans-Nikolai Viessmann <hv15 AT hw.ac.uk>
2# Category: science
3pkgname=('polylib' 'polylib-gmp')
4pkgbase='polylib'
5pkgver='6.01'
6pkgrel=1
7pkgdesc='A library of polyhedral functions'
8arch=('x86_64')
9url='http://icps.u-strasbg.fr/polylib/'
10license=('GPL-3.0-or-later')
11source=("http://icps.u-strasbg.fr/polylib/polylib_src/$pkgname-$pkgver.tar.gz"
12 'fix-tests.patch')
13sha256sums=('ba2f42aa2b342a565c346e717c4a4bdc08c16ca4d113eda6a7d4e95d978343d3'
14 '8c51bb4e15ae4c4685dd53dbb0e0bf8ff89c7a98b79bd85ed3a1f03f821b1215')
15
16prepare() {
17 cd "$srcdir/$pkgbase-$pkgver"
18
19 # resolves issues with testCompressParms functions being
20 # defined after the main function...
21 patch -p1 < $srcdir/fix-tests.patch
22}
23
24build() {
25 cd "$srcdir/$pkgbase-$pkgver"
26
27 msg "compiling normal version of Polylib"
28 [ -d "polylib" ] || mkdir "polylib"
29 cd polylib
30 ../configure --prefix=/usr --without-libgmp
31 make
32
33 cd ..
34 msg "compiling GMP version of Polylib"
35 [ -d "polylibgmp" ] || mkdir "polylibgmp"
36 cd polylibgmp
37 ../configure --prefix=/usr --with-libgmp
38 make
39}
40
41check() {
42 cd "$srcdir/$pkgbase-$pkgver"
43
44 cd polylib
45 make check
46
47 cd ../polylibgmp
48 make check
49}
50
51package_polylib() {
52 depends=('glibc')
53 provides=('libpolylib32.so' 'libpolylib64.so')
54
55 cd "$srcdir/$pkgbase-$pkgver/polylib"
56 make DESTDIR="$pkgdir" install
57}
58
59package_polylib-gmp() {
60 depends=('glibc' 'gmp' "polylib>=$pkgver")
61 provides=('libpolylibgmp.so')
62
63 cd "$srcdir/$pkgbase-$pkgver/polylibgmp"
64 make DESTDIR="$pkgdir" install-exec
65
66 cd "$pkgdir"
67 # Nasty rename to ensure we can co-exist with polylib
68 mv usr/bin/c2p usr/bin/c2p-gmp
69 mv usr/bin/disjoint_union_adj usr/bin/disjoint_union_adj-gmp
70 mv usr/bin/disjoint_union_sep usr/bin/disjoint_union_sep-gmp
71 mv usr/bin/ehrhart_lower_bound usr/bin/ehrhart_lower_bound-gmp
72 mv usr/bin/ehrhart_quick_apx usr/bin/ehrhart_quick_apx-gmp
73 mv usr/bin/ehrhart_upper_bound usr/bin/ehrhart_upper_bound-gmp
74 mv usr/bin/findv usr/bin/findv-gmp
75 mv usr/bin/r2p usr/bin/r2p-gmp
76}
77

Changes since previous scan

--- PKGBUILD @ 2026-09-05 00:16
+++ PKGBUILD @ 2026-09-17 00:27
@@ -2,15 +2,15 @@
# Category: science
pkgname=('polylib' 'polylib-gmp')
pkgbase='polylib'
-pkgver='5.22.8'
-pkgrel=2
+pkgver='6.01'
+pkgrel=1
pkgdesc='A library of polyhedral functions'
arch=('x86_64')
url='http://icps.u-strasbg.fr/polylib/'
license=('GPL-3.0-or-later')
source=("http://icps.u-strasbg.fr/polylib/polylib_src/$pkgname-$pkgver.tar.gz"
'fix-tests.patch')
-sha256sums=('98b7578d13c374b7c88bd41ed753bbdeeb49f7bb71a75f0e8366797ae3dc800d'
+sha256sums=('ba2f42aa2b342a565c346e717c4a4bdc08c16ca4d113eda6a7d4e95d978343d3'
'8c51bb4e15ae4c4685dd53dbb0e0bf8ff89c7a98b79bd85ed3a1f03f821b1215')
prepare() {

Scan history

Scanned at (UTC)SeverityRules
2026-09-17 00:27:14 Low 2
2026-09-16 00:03:17 Low 2
2026-09-15 00:25:31 Low 2
2026-09-14 00:27:57 Low 2
2026-09-13 00:19:54 Low 2
2026-09-12 00:25:17 Low 2
2026-09-11 00:19:22 Low 2
2026-09-10 00:22:44 Low 2
2026-09-09 00:04:09 Low 2
2026-09-08 00:18:08 Low 2
2026-09-07 00:30:15 Low 2
2026-09-06 00:17:06 Low 2
2026-09-05 16:00:23 Medium 1
2026-09-05 00:16:27 Low 2
2026-09-04 00:03:13 Low 2
2026-09-03 00:15:47 Low 2
2026-09-02 00:02:31 Low 2
2026-09-01 00:11:19 Low 2
2026-08-31 00:19:57 Low 2
2026-08-30 00:04:14 Low 2

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion