blob: 7d6acb421d9fe596e1639d60338ab70736d09dc0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# upstream git revision: 5b5e6ab5ccc29af668f41d05ec1fb8e9f8f99595
# fail if upstream's .config changes
for ((i=0; i<${#sha256sums[@]}; i++)); do
if [ "${sha256sums[${i}]}" = '26b55bd9f0704615c15a994fdd61f0df8c99d26f9ee97f605155df4d070eba34' ]; then
sha256sums[${i}]='71cc7b4c2cfff5ea941c5868cd3fab84f7e8cf98bf5f06e83bb44b4afad0e4f0'
b2sums[${i}]='e090b028752ae88a3107f96436ff8509126163bdf00e6b7f9d98faa2012aa791c922543d36dcd4e9f6a8c3e0f884e0dfd762905d7343397b54920b3861b61a1b'
fi
done
eval "$(
declare -f package_linux-lts-headers | \
sed '
\,/tools/objtool" ,d
\,arch/x86/Makefile,a install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile_32.cpu
$ i depends+=(gcc-libs=$(_get_gcc_version_from_config))
'
)"
_get_gcc_version_from_config() {
if [ -z "$srcdir" ]; then
gcc --version \
| sed '
s@^.* @@
1!d
'
else
for _config_file in "$srcdir/$_srcname/.config" "$srcdir/config" "${srcdir%/*}/config"; do
[ -f "$_config_file" ] && break
done
sed '
s/^CONFIG_CC_VERSION_TEXT="gcc (GCC) \([0-9.]\+\)"$/\1/
t
d
' "$_config_file"
fi
}
# avoid using zstd compression in ultra mode (exhausts virtual memory)
source+=('no-ultra-zstd.patch')
sha256sums+=('a044d2ed2ac13f0435e94e567f6fd5d8380b694f74e344857ca64ef0c9424a07')
b2sums+=('e7915714b504b92155c983a30df6d97966c14520dc9eb004671003dbdecf454b061138a6d237cabe86be32ae2ea4c598cdb821cb1dd52f6a9bfe5e280bffa321')
# upstream prepare() does already do the *.patch patching
# temporarily disabled documentation due to sphinx_rtd_theme (FS32#163)
pkgname=(
$(
printf '%s\n' "${pkgname[@]}" | \
grep -v '^\$pkgbase-docs'
)
)
eval "$(
declare -f build | \
sed '
s/\bhtmldocs\b//
'
)"
makedepends=(${makedepends[@]//python-sphinx_rtd_theme/})
makedepends=(${makedepends[@]//python-sphinx<6.0.0/})
makedepends=(${makedepends[@]//graphviz/})
makedepends=(${makedepends[@]//imagemagick/})
makedepends=(${makedepends[@]//texlive-latexextra/})
|