gcc5

MEDIUM
maintainer severach 16 votes scanned 2026-09-24 01:41:16.165362
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:24 "https://libisl.sourceforge.io/isl-${_islver}.tar.bz2"

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com
2# Contributor: Sebastiaan Lokhorst <sebastiaanlokhorst@gmail.com>
3# Contributor: Sven-Hendrik Haase <svenstaro@gmail.com>
4# Contributor: Ruben Van Boxem <vanboxem.ruben@gmail.com>
5# Contributor: Allan McRae <allan@archlinux.org>
6
7set -u
8pkgver='5.5.0'
9_majorver="${pkgver: 0:1}"
10pkgname="gcc${_majorver//./}"
11_islver='0.18'
12pkgrel='3'
13pkgdesc="The GNU Compiler Collection (${_majorver}.x)"
14arch=('x86_64')
15arch+=('i686')
16url='https://gcc.gnu.org/gcc-5/'
17license=('GPL-2.0-only' 'LGPL-2.1-only' 'GPL-3.0-only' 'LGPL-3.0-only' 'GFDL-1.3-only' 'custom')
18depends=('glibc' 'gcc-libs' 'bash' 'binutils' 'libmpc' 'zlib')
19options=('!emptydirs' '!strip' '!buildflags')
20options+=('!lto')
21source=(
22 "https://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.xz"
23 #"http://isl.gforge.inria.fr/isl-${_islver}.tar.bz2"
24 "https://libisl.sourceforge.io/isl-${_islver}.tar.bz2"
25 # Fix build with glibc 2.28, which removes <sys/ustat.h>
26 'glibc2.28-ustat.patch'
27 'glibc2.30-ipc_perm.patch'
28 '78_all-libsanitizer-Fix-build-with-glibc-2.42.patch'
29 '79_all-sanitizer_common-Remove-reference-to-obsolete-termio.patch'
30 '0000-kernel-7.1-remove-linux-scc.patch'
31)
32md5sums=('0f70424213b4a1113c04ba66ddda0c1f'
33 '11436d6b205e516635b666090b94ab32'
34 'c0426ff7146e4fb5bf7f25d7b753afb9'
35 '24d6c1b1cc6e0cc59e9de9ebe7b843dc'
36 '448ca18637c7f91aaceb7ac8fef67943'
37 '529b03e5fb9fb4e4da85a9ee672d869a'
38 '63cea3f3613b837d327a1ddfcda38e1c')
39sha256sums=('530cea139d82fe542b358961130c69cfde8b3d14556370b65823d2f91f0ced87'
40 '6b8b0fd7f81d0a957beb3679c81bbb34ccc7568d5682844d8924424a0dadcb1b'
41 'c2abe9f166502120eabc8701160e52f06c24ef73673239a0532bc55a158cc550'
42 '66a0885262fe49dc318b58f629c3fe8324bd234f97f99316284aefb95fca555f'
43 '3dea145005227f24b3d357c7627e5848b9e575b2cc255175339970c601698709'
44 '4253e09721286bfb038b377f4dc98947657feb628b3c7c872a1991c1d78f46cf'
45 '7c3bdc5f194ce01a1fd8766e8be2e2ab550a3d2e1ed4ab067525f73971b3c66a')
46
47 _basedir="gcc-${pkgver}"
48
49prepare() {
50 local -
51 set -u
52 cd "${_basedir}"
53
54 # link isl for in-tree build
55 ln -s "../isl-${_islver}" 'isl'
56
57 # Do not run fixincludes
58 sed -e 's@\./fixinc\.sh@-c true@' -i 'gcc/Makefile.in'
59
60 # Arch Linux installs x86_64 libraries /lib
61 case "${CARCH}" in
62 'x86_64') sed -e '/m64=/ s/lib64/lib/' -i 'gcc/config/i386/t-linux64' ;;
63 esac
64
65 # Apply patches
66 local _pt
67 for _pt in "${source[@]%%::*}"; do
68 _pt="${_pt##*/}"
69 case "${_pt}" in
70 *.patch)
71 set +u; msg2 "*** Applying patch ${_pt}"; set -u
72 patch --no-backup-if-mismatch -Np1 -i "${srcdir}/${_pt}"
73 ;;
74 esac
75 done
76 #cd ..; cp -pr "${_basedir}" 'a'; ln -sr "${_basedir}" 'b'; false
77 # diff -pNaru5 'a' 'b' > "0000-$RANDOM.patch"
78
79 echo "${pkgver}" > 'gcc/BASE-VER'
80
81 rm -rf 'gcc-build'
82 mkdir 'gcc-build'
83}
84
85build() {
86 local -
87 set -u
88 cd "${_basedir}/gcc-build"
89
90 if [ ! -s 'Makefile' ]; then
91 # The following options are one per line, mostly sorted so they are easy to diff compare to other gcc packages.
92 local _conf=(
93 --build="${CHOST}"
94 --disable-libssp
95 --disable-libstdcxx-pch
96 --disable-libunwind-exceptions
97 --disable-multilib
98 --disable-werror
99 --enable-__cxa_atexit
100 --enable-checking='release'
101 --enable-clocale='gnu'
102 --enable-gnu-indirect-function
103 --enable-gnu-unique-object
104 --enable-languages='c,c++,fortran,lto'
105 --enable-libmpx
106 --enable-linker-build-id
107 --enable-lto
108 --enable-plugin
109 --enable-shared
110 --enable-threads='posix'
111 --enable-version-specific-runtime-libs
112 --infodir='/usr/share/info'
113 --libdir='/usr/lib'
114 --libexecdir='/usr/lib'
115 --mandir='/usr/share/man'
116 --program-suffix="-${_majorver}"
117 --with-bugurl="https://aur.archlinux.org/packages/${pkgname}/"
118 --with-isl
119 --with-linker-hash-style='gnu'
120 --with-system-zlib
121 --prefix='/usr'
122 #CXX='g++ -std=c++14'
123 #CXX='g++-6.3' CC='gcc-6.3'
124 )
125 ../configure "${_conf[@]}"
126
127 sed -e 's/^STAGE1_CXXFLAGS.*$/& -std=gnu++11/' -i 'Makefile'
128 fi
129
130 # without LD_PRELOAD, the build fails for some people with:
131 # [Makefile:605: libstdc++.la] Error 139
132 LD_PRELOAD='/usr/lib/libstdc++.so' \
133 nice -n1 make -s
134}
135
136package() {
137 local -
138 set -u
139 cd "${_basedir}/gcc-build"
140
141 LD_PRELOAD='/usr/lib/libstdc++.so' \
142 make -j1 -s DESTDIR="${pkgdir}" install
143
144 ## Lazy way of dealing with conflicting man and info pages and locales...
145 rm -rf "${pkgdir}/usr/share"/{info,locale,man}
146
147 # Move potentially conflicting stuff to version specific subdirectory
148 [[ -d "${pkgdir}/usr/lib" ]] && mv "${pkgdir}/usr/lib"/lib* "${pkgdir}/usr/lib/gcc/${CHOST}/${pkgver}/"
149 [[ -d "${pkgdir}/usr/lib/gcc/${CHOST}/lib/" ]] && mv "${pkgdir}/usr/lib/gcc/${CHOST}/lib"/lib* "${pkgdir}/usr/lib/gcc/${CHOST}/${pkgver}/"
150
151 # Install Runtime Library Exception
152 install -Dpm644 '../COPYING.RUNTIME' \
153 "${pkgdir}/usr/share/licenses/${pkgname}/RUNTIME.LIBRARY.EXCEPTION" || :
154}
155set +u
156

Changes since previous scan

--- PKGBUILD @ 2026-06-19 19:07
+++ PKGBUILD @ 2026-09-24 01:41
@@ -27,23 +27,27 @@
'glibc2.30-ipc_perm.patch'
'78_all-libsanitizer-Fix-build-with-glibc-2.42.patch'
'79_all-sanitizer_common-Remove-reference-to-obsolete-termio.patch'
+ '0000-kernel-7.1-remove-linux-scc.patch'
)
md5sums=('0f70424213b4a1113c04ba66ddda0c1f'
'11436d6b205e516635b666090b94ab32'
'c0426ff7146e4fb5bf7f25d7b753afb9'
'24d6c1b1cc6e0cc59e9de9ebe7b843dc'
'448ca18637c7f91aaceb7ac8fef67943'
- '529b03e5fb9fb4e4da85a9ee672d869a')
+ '529b03e5fb9fb4e4da85a9ee672d869a'
+ '63cea3f3613b837d327a1ddfcda38e1c')
sha256sums=('530cea139d82fe542b358961130c69cfde8b3d14556370b65823d2f91f0ced87'
'6b8b0fd7f81d0a957beb3679c81bbb34ccc7568d5682844d8924424a0dadcb1b'
'c2abe9f166502120eabc8701160e52f06c24ef73673239a0532bc55a158cc550'
'66a0885262fe49dc318b58f629c3fe8324bd234f97f99316284aefb95fca555f'
'3dea145005227f24b3d357c7627e5848b9e575b2cc255175339970c601698709'
- '4253e09721286bfb038b377f4dc98947657feb628b3c7c872a1991c1d78f46cf')
+ '4253e09721286bfb038b377f4dc98947657feb628b3c7c872a1991c1d78f46cf'
+ '7c3bdc5f194ce01a1fd8766e8be2e2ab550a3d2e1ed4ab067525f73971b3c66a')
_basedir="gcc-${pkgver}"
prepare() {
+ local -
set -u
cd "${_basedir}"
@@ -69,16 +73,17 @@
;;
esac
done
+ #cd ..; cp -pr "${_basedir}" 'a'; ln -sr "${_basedir}" 'b'; false
+ # diff -pNaru5 'a' 'b' > "0000-$RANDOM.patch"
echo "${pkgver}" > 'gcc/BASE-VER'
rm -rf 'gcc-build'
mkdir 'gcc-build'
-
- set +u
}
build() {
+ local -
set -u
cd "${_basedir}/gcc-build"
@@ -126,10 +131,10 @@
# [Makefile:605: libstdc++.la] Error 139
LD_PRELOAD='/usr/lib/libstdc++.so' \
nice -n1 make -s
- set +u
}
package() {
+ local -
set -u
cd "${_basedir}/gcc-build"
@@ -146,7 +151,6 @@
# Install Runtime Library Exception
install -Dpm644 '../COPYING.RUNTIME' \
"${pkgdir}/usr/share/licenses/${pkgname}/RUNTIME.LIBRARY.EXCEPTION" || :
- set +u
}
set +u

Scan history

Scanned at (UTC)SeverityRules
2026-09-24 01:41:16 Medium 1
2026-06-19 19:07:35 Clean 2
2026-06-18 16:11:54 Medium 1

Report a package

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

0 / 4000
Your suggestion