postgresql-libs-git
MEDIUM
maintainer a821
1 votes
base
postgresql-git
scanned 2026-10-23 07:37:02.440193
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:50
source=(git+https://git.postgresql.org/git/postgresql.git
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: a821 <a821 mail de>
2
# Contributor: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
3
# Contributor: Felix Golatofski <contact@xdfr.de>
4
# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
5
# Contributor: Dan McGee <dan@archlinux.org>
6
7
pkgbase=postgresql-git
8
pkgname=('postgresql-git' 'postgresql-libs-git' 'postgresql-docs-git')
9
pkgver=19.beta1.r1330.gf52d405113c
10
pkgrel=1
11
pkgdesc='Sophisticated object-relational DBMS'
12
url='https://www.postgresql.org/'
13
arch=('x86_64')
14
license=('PostgreSQL')
15
depends=(
16
'bash'
17
'glibc'
18
'icu' 'libicui18n.so' 'libicuuc.so'
19
'krb5' 'libgssapi_krb5.so'
20
'libgcc' 'libgcc_s.so'
21
'libldap'
22
'libstdc++' 'libstdc++.so'
23
'liburing' 'liburing.so'
24
'libxml2' 'libxml2.so'
25
'libxslt'
26
'llvm-libs'
27
'lz4' 'liblz4.so'
28
'numactl' 'libnuma.so'
29
'openssl' 'libcrypto.so' 'libssl.so'
30
'pam' 'libpam.so'
31
'systemd-libs' 'libsystemd.so'
32
'util-linux-libs'
33
'zlib' 'libz.so'
34
'zstd' 'libzstd.so'
35
)
36
makedepends=(
37
'clang'
38
'docbook-xml'
39
'docbook-xsl'
40
'git'
41
'llvm'
42
'perl'
43
'perl-ipc-run'
44
'python'
45
'readline'
46
'systemd'
47
'tcl'
48
'util-linux'
49
)
50
source=(git+https://git.postgresql.org/git/postgresql.git
51
postgresql-run-socket.patch
52
postgresql-perl-rpath.patch
53
postgresql.pam
54
postgresql.logrotate
55
postgresql.service
56
postgresql-check-db-dir
57
postgresql.sysusers
58
postgresql.tmpfiles)
59
sha512sums=('SKIP'
60
'9f82c8e6982cc1ab4e5048c485a0c5a75fef32bf610bfeaccb8c4c28bb84ff0ebca8de83efc03044cf98275296babdcd9e12119f5320cedd899285e8a6f48b00'
61
'7c38d6b468ad4502b741e72c8e5109c1ef8c561f52d2c4d96a030620659fd4b0e7e3d2438d31273318cef07a6f30f9134e18bb0419e324b40e62c35846b7b6e3'
62
'1e6183ab0eb812b3ef687ac2c26ce78f7cb30540f606d20023669ac00ba04075487fb72e4dc89cc05dab0269ff6aca98fc1167cc75669c225b88b592482fbf67'
63
'9ab4da01337ffbab8faec0e220aaa2a642dbfeccf7232ef2645bdc2177a953f17ee3cc14a4d8f8ebd064e1dae8b3dba6029adbffb8afaabea383963213941ba8'
64
'751f245d213006451d744f1313b29cecd01132bbe0f5b69a7eb522c290db79664d6223422b1adcbcaa6bedfde8f1ca6f59a37ec3a5c53503fde2bcd9bbb900a0'
65
'cad03ac77cf4fe74d4390ca14ca68dbad8d7534c68480e4e61926aa7a1d505c5d0a9d8c75e7f54862d833c21721db7b2eda6d4a29d136ccf3a93b34263eb8d3a'
66
'9c16ce0e1d68cd3a3e133f872586026bfb3f144d483d52b463988738b1c4abd3fc658b2486689112c84365a0e491187ff203460ef3ae2b72a3a5e1f378889bee'
67
'819faa16edb45a01500c3f5d307528648fffe6d22ba4734b8c1951a2a9491962188413f24e754c922830acef0635720ca355459b65142cd4acb29df08d9c222e')
68
69
pkgver() {
70
cd postgresql
71
git describe --tags | sed 's/REL_//;s/_/./;s/-/.r/;s/-/./g' | tr A-Z a-z
72
}
73
74
prepare() {
75
cd postgresql
76
patch -p1 < ../postgresql-run-socket.patch
77
patch -p1 < ../postgresql-perl-rpath.patch
78
}
79
80
build() {
81
local configure_options=(
82
--prefix=/usr
83
--mandir=/usr/share/man
84
--datadir=/usr/share/postgresql
85
--sysconfdir=/etc
86
--with-gssapi
87
--with-libxml
88
--with-openssl
89
--with-perl
90
--with-python
91
--with-tcl
92
--with-pam
93
--with-readline
94
--with-system-tzdata=/usr/share/zoneinfo
95
--with-uuid=e2fs
96
--with-icu
97
--with-systemd
98
--with-ldap
99
--with-llvm
100
--with-libxslt
101
--with-libcurl
102
--with-libnuma
103
--with-liburing
104
--with-lz4
105
--with-zstd
106
--disable-rpath
107
--enable-nls
108
--enable-tap-tests
109
)
110
111
# use fat LTO objects for static libraries
112
CFLAGS+=" -ffat-lto-objects"
113
CXXFLAGS+=" -ffat-lto-objects"
114
115
mkdir -p build ; cd build
116
../postgresql/configure "${configure_options[@]}"
117
make world
118
}
119
120
check() {
121
export LANG=C LC_ALL=C
122
if ! make -C build check-world; then
123
find . -name regression.diffs | while read -r line; do
124
echo "make check-world failure: ${line}"
125
cat -- "${line}" || :
126
done
127
fi
128
}
129
130
_pick() {
131
local p="$1" f d; shift
132
for f; do
133
d="${srcdir}/${p}/${f#${pkgdir}/}"
134
mkdir -p "$(dirname "${d}")"
135
mv "${f}" "${d}"
136
rmdir -p --ignore-fail-on-non-empty "$(dirname "${f}")"
137
done
138
}
139
140
package_postgresql-git() {
141
backup=('etc/pam.d/postgresql' 'etc/logrotate.d/postgresql')
142
depends+=('postgresql-libs-git')
143
optdepends=('python: for PL/Python 3 support'
144
'perl: for PL/Perl support'
145
'tcl: for PL/Tcl support'
146
'logrotate: rotates system logs automatically')
147
provides=('postgresql')
148
conflicts=('postgresql')
149
options+=('staticlibs')
150
151
install=postgresql.install
152
153
make -C build DESTDIR="${pkgdir}" install-world
154
155
pushd "$pkgdir"
156
_pick libs usr/bin/pg_{config,dump,dumpall,isready,restore}
157
_pick libs usr/bin/{cluster,reindex,vacuum}db
158
_pick libs usr/bin/{create,drop}{db,user}
159
_pick libs usr/bin/{ecpg,psql,vacuumlo}
160
161
_pick libs usr/include/{ecpg,libpq,pg,postgres_,sql}*
162
_pick libs usr/include/postgresql/internal
163
164
_pick libs usr/lib/lib*
165
_pick libs usr/lib/pkgconfig
166
167
_pick libs usr/share/locale/*/LC_MESSAGES/{ecpg,libpq,pgscripts,psql}*
168
_pick libs usr/share/locale/*/LC_MESSAGES/pg_{config,dump}-*
169
170
_pick libs usr/share/man/man1/pg_{config,dump,dumpall,isready,restore}.1
171
_pick libs usr/share/man/man1/{cluster,reindex,vacuum}db.1
172
_pick libs usr/share/man/man1/{create,drop}{db,user}.1
173
_pick libs usr/share/man/man1/{ecpg,psql,vacuumlo}.1
174
175
_pick libs usr/share/postgresql/{pg_service.conf,psqlrc}.sample
176
177
_pick docs usr/share/doc
178
popd
179
180
install -Dm 644 postgresql/COPYRIGHT -t "${pkgdir}/usr/share/licenses/${pkgname}"
181
182
install -Dm 755 postgresql-check-db-dir -t "${pkgdir}/usr/bin"
183
184
install -Dm 644 postgresql.pam "${pkgdir}/etc/pam.d/postgresql"
185
install -Dm 644 postgresql.logrotate "${pkgdir}/etc/logrotate.d/postgresql"
186
187
install -Dm 644 postgresql.service -t "${pkgdir}/usr/lib/systemd/system"
188
install -Dm 644 postgresql.sysusers "${pkgdir}/usr/lib/sysusers.d/postgresql.conf"
189
install -Dm 644 postgresql.tmpfiles "${pkgdir}/usr/lib/tmpfiles.d/postgresql.conf"
190
}
191
192
package_postgresql-libs-git() {
193
pkgdesc+=" - client binaries and libraries"
194
depends=(
195
curl libcurl.so
196
glibc
197
krb5 libgssapi_krb5.so
198
libldap
199
lz4 liblz4.so
200
openssl libcrypto.so libssl.so
201
readline libreadline.so
202
zlib libz.so
203
zstd libzstd.so
204
)
205
provides=('postgresql-libs' 'libpq.so' 'libecpg.so' 'libecpg_compat.so' 'libpgtypes.so')
206
conflicts=('postgresql-libs')
207
208
mv libs/* "${pkgdir}"
209
210
install -Dm 644 postgresql/COPYRIGHT -t "${pkgdir}/usr/share/licenses/${pkgname}"
211
}
212
213
package_postgresql-docs-git() {
214
pkgdesc+="- HTML documentation"
215
depends=()
216
provides=('postgresql-docs')
217
conflicts=('postgresql-docs')
218
arch=(any)
219
220
mv docs/* "${pkgdir}"
221
222
install -Dm 644 postgresql/COPYRIGHT -t "${pkgdir}/usr/share/licenses/${pkgname}"
223
}
224
225
# vim: ts=2 sw=2 et:
226
Changes since previous scan
--- PKGBUILD @ 2026-06-19 19:07+++ PKGBUILD @ 2026-10-23 07:37@@ -6,7 +6,7 @@ pkgbase=postgresql-git pkgname=('postgresql-git' 'postgresql-libs-git' 'postgresql-docs-git')-pkgver=18.beta1.r2092.ga1bd0c16157+pkgver=19.beta1.r1330.gf52d405113c pkgrel=1 pkgdesc='Sophisticated object-relational DBMS' url='https://www.postgresql.org/'@@ -63,7 +63,7 @@ '9ab4da01337ffbab8faec0e220aaa2a642dbfeccf7232ef2645bdc2177a953f17ee3cc14a4d8f8ebd064e1dae8b3dba6029adbffb8afaabea383963213941ba8' '751f245d213006451d744f1313b29cecd01132bbe0f5b69a7eb522c290db79664d6223422b1adcbcaa6bedfde8f1ca6f59a37ec3a5c53503fde2bcd9bbb900a0' 'cad03ac77cf4fe74d4390ca14ca68dbad8d7534c68480e4e61926aa7a1d505c5d0a9d8c75e7f54862d833c21721db7b2eda6d4a29d136ccf3a93b34263eb8d3a'- 'c809e1d6307e0686f9e063adc582bcc0bba865f26610be4d8e65ee1b4ddc7908aab6696cd511ccbc54c3ba5963b4640a60e2e5d3e1859239cdb4f3fbaafd8cb2'+ '9c16ce0e1d68cd3a3e133f872586026bfb3f144d483d52b463988738b1c4abd3fc658b2486689112c84365a0e491187ff203460ef3ae2b72a3a5e1f378889bee' '819faa16edb45a01500c3f5d307528648fffe6d22ba4734b8c1951a2a9491962188413f24e754c922830acef0635720ca355459b65142cd4acb29df08d9c222e') pkgver() {Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-23 07:37:02 | Medium | 1 |
| 2026-06-19 19:07:35 | Clean | 2 |
| 2026-06-18 16:11:54 | Medium | 1 |