lib32-postgresql-libs

MEDIUM
maintainer ChrisTX 0 votes scanned 2026-11-05 20:10:15.251681
View on AUR
Why flagged

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

Triggered rules

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:32 source=("https://ftp.postgresql.org/pub/source/v$pkgver/$_name-$pkgver.tar.bz2"
Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Christian Pfeiffer <cpfeiffer at rev-crew dot info>
2# shellcheck disable=SC2034,SC2154
3# shellcheck shell=bash
4
5pkgname=lib32-postgresql-libs
6_name=postgresql
7pkgver=18.6
8pkgrel=1
9pkgdesc="PostgreSQL's client library, libpq, with its OAuth module (32-bit)"
10arch=(x86_64)
11url="https://www.postgresql.org/"
12license=(PostgreSQL)
13# postgresql-libs: the headers and libpq's translations; curl: the OAuth module
14depends=(lib32-curl lib32-gcc-libs lib32-glibc lib32-krb5 lib32-libldap lib32-openssl postgresql-libs)
15# The features of Arch's postgresql that multilib has 32-bit libraries for (the server's, built for
16# libpq's tests); llvm: LLVM's headers, which lib32-llvm shares
17makedepends=(
18 clang
19 lib32-icu
20 lib32-libxml2
21 lib32-llvm
22 lib32-readline
23 lib32-systemd
24 lib32-util-linux
25 lib32-zlib
26 lib32-zstd
27 llvm
28 perl
29)
30checkdepends=(perl-ipc-run)
31provides=(libpq.so)
32source=("https://ftp.postgresql.org/pub/source/v$pkgver/$_name-$pkgver.tar.bz2"
33 0001-Set-DEFAULT_PGSOCKET_DIR-to-run-postgresql.patch)
34sha512sums=('5855d11be61a594e4dcdfa4ab4de1432caa86a8d50e1b1334ea2989439b46139612c53d00ba6330cba4d7d8b78a9e2176e1a2b6c5454814b5fa49dd54de72eb1'
35 'b1878c68d72d37cb26486f02bee1491ec3050200f39c50b14df27e3f7820421cd221ea0217dae187cdd108215c690e5f93138632dcee0a4315198993a6ef9d30')
36b2sums=('657fd161eb581608cf73f6f649b6a35dbf034ff64c578c17f94d49c72ac9cd8ea7280425dd24ba4d7550c044bfebe78f0ebc534a1df4cfe2b634a6e4f765aa51'
37 '057e65b1e5a1fd82c7fa9da1c4e2fef39321ee59f74f54d9864e8ab4d7db4862c8fb6353f6006e1a9e1f5132543cf0c12b388963487a09b1465447b3ff6d7321')
38
39prepare() {
40 cd "$_name-$pkgver" || exit
41 # The server's socket folder of Arch's postgresql, as in postgresql-libs
42 patch -Np1 -i "$srcdir/0001-Set-DEFAULT_PGSOCKET_DIR-to-run-postgresql.patch"
43}
44
45build() {
46 cd "$_name-$pkgver" || exit
47 export CC="gcc -m32" CXX="g++ -m32" CLANG="clang -m32" LLVM_CONFIG=/usr/bin/llvm-config32
48 export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
49 # The options of Arch's postgresql, without the features multilib has no 32-bit libraries for
50 # (libnuma, liburing, libxslt, lz4, PAM, Perl, Python, Tcl). The whole server is built, as
51 # libpq's tests run against one; libpq itself uses OpenSSL, GSSAPI, LDAP and NLS, its OAuth
52 # module curl.
53 local _configure_options=(
54 --prefix=/usr
55 --libdir=/usr/lib32
56 --sysconfdir=/etc
57 --mandir=/usr/share/man
58 --datadir=/usr/share/postgresql
59 --disable-rpath
60 --enable-nls
61 --enable-tap-tests
62 --with-gssapi
63 --with-icu
64 --with-ldap
65 --with-libcurl
66 --with-libxml
67 --with-llvm
68 --with-openssl
69 --with-readline
70 --with-system-tzdata=/usr/share/zoneinfo
71 --with-systemd
72 --with-uuid=e2fs
73 --with-zstd
74 )
75 ./configure "${_configure_options[@]}"
76 make
77}
78
79check() {
80 cd "$_name-$pkgver" || exit
81 # libpq's tests: connection URIs, connections and their options against a temporary server
82 make -C src/interfaces/libpq check
83}
84
85package() {
86 cd "$_name-$pkgver" || exit
87 make -C src/interfaces/libpq DESTDIR="$pkgdir" install
88 make -C src/interfaces/libpq-oauth DESTDIR="$pkgdir" install
89
90 # The headers, translations and pg_service.conf's sample are postgresql-libs'
91 rm -r "${pkgdir:?}"/usr/{include,share/locale,share/postgresql}
92 install -Dm644 COPYRIGHT -t "$pkgdir/usr/share/licenses/$pkgname"
93}
94

Scan history

Scanned at (UTC)SeverityRules
2026-11-05 20:10:15 Medium 2
2026-11-03 12:09:28 Clean 3
2026-11-03 12:04:35 Medium 2

Report a package

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

0 / 4000
Your suggestion