python36
MEDIUM
maintainer Techcable
36 votes
scanned 2026-10-05 23:40:58.404909
Why flagged
This package was orphaned and re-adopted within the last 30 days — a window where ownership transfers can introduce malicious changes.
Triggered rules
Medium
Recently orphaned & re-adopted
orphaned_readopted
This package was orphaned and re-adopted within the last 30 days — a window where ownership transfers can introduce malicious changes.
PKGBUILD
1
# Maintainer: Tobias Kunze <r@rixx.de>
2
# Maintained at https://github.com/rixx/pkgbuilds, feel free to submit patches
3
4
pkgname=python36
5
pkgver=3.6.15
6
pkgrel=6
7
_pybasever=3.6
8
_pymajver=3
9
pkgdesc="Major release 3.6 of the Python high-level programming language"
10
arch=('i686' 'x86_64' 'arm' 'pentium4')
11
license=('custom')
12
url="http://www.python.org/"
13
depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
14
makedepends=('tk' 'sqlite' 'bluez-libs' 'mpdecimal')
15
optdepends=('tk: for tkinter' 'sqlite')
16
source=(http://www.python.org/ftp/python/${pkgver}/Python-${pkgver}.tar.xz alignment.patch)
17
sha256sums=('6e28d7cdd6dd513dd190e49bca3972e20fcf455090ccf2ef3f1a227614135d91' SKIP)
18
19
prepare() {
20
cd "${srcdir}/Python-${pkgver}"
21
22
# FS#23997
23
sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python|" Lib/cgi.py
24
25
msg "fix alignment issue (issue27987)"
26
# via https://github.com/pyenv/pyenv/issues/1889
27
# and https://bugs.python.org/file44413/alignment.patch
28
patch -p1 < ../alignment.patch
29
30
# Ensure that we are using the system copy of various libraries (expat, zlib and libffi),
31
# rather than copies shipped in the tarball
32
rm -rf Modules/expat
33
rm -rf Modules/zlib
34
rm -rf Modules/_ctypes/{darwin,libffi}*
35
rm -rf Modules/_decimal/libmpdec
36
}
37
38
build() {
39
cd "${srcdir}/Python-${pkgver}"
40
41
CFLAGS=-DOPENSSL_NO_SSL2 ./configure --prefix=/usr \
42
--enable-shared \
43
--with-threads \
44
--with-computed-gotos \
45
--enable-ipv6 \
46
--with-system-expat \
47
--with-dbmliborder=gdbm:ndbm \
48
--with-system-libmpdec \
49
--with-system-ffi \
50
--enable-loadable-sqlite-extensions \
51
--without-ensurepip
52
53
make
54
}
55
56
package() {
57
cd "${srcdir}/Python-${pkgver}"
58
# altinstall: /usr/bin/pythonX.Y but not /usr/bin/python or /usr/bin/pythonX
59
make DESTDIR="${pkgdir}" altinstall maninstall
60
61
# Avoid conflicts with the main 'python' package, once Python 3.7 is standard.
62
rm "${pkgdir}/usr/lib/libpython${_pymajver}.so"
63
rm "${pkgdir}/usr/share/man/man1/python${_pymajver}.1"
64
65
# Fix FS#22552
66
ln -sf ../../libpython${_pybasever}m.so \
67
"${pkgdir}/usr/lib/python${_pybasever}/config-${_pybasever}m-${CARCH}-linux-gnu/libpython${_pybasever}m.so"
68
69
# Fix pycairo build
70
ln -sf python${_pybasever}m-config "${pkgdir}/usr/bin/python${_pybasever}-config"
71
72
# Clean-up reference to build directory
73
sed -i "s|$srcdir/Python-${pkgver}:||" "$pkgdir/usr/lib/python${_pybasever}/config-${_pybasever}m-${CARCH}-linux-gnu/Makefile"
74
75
# License
76
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
77
}
78
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-05 23:40:58 | Medium | 1 |
| 2026-06-18 16:11:54 | Clean | 0 |