-
Notifications
You must be signed in to change notification settings - Fork 312
/
Copy pathbinutils.yaml
155 lines (142 loc) · 3.45 KB
/
binutils.yaml
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
#nolint:git-checkout-must-use-github-updates
package:
name: binutils
version: "2.44"
epoch: 1
description: "GNU binutils"
copyright:
- license: GPL-3.0-or-later
resources:
cpu: 16
memory: 16Gi
environment:
contents:
packages:
- bison
- build-base
- busybox
- ca-certificates-bundle
- flex
- isl
- posix-libc-utils
- texinfo
- wolfi-baselayout
- zstd-dev
var-transforms:
- from: ${{package.version}}
match: \.
replace: _
to: underscore-package-version
pipeline:
- uses: git-checkout
with:
repository: https://sourceware.org/git/binutils-gdb.git
tag: binutils-${{vars.underscore-package-version}}
expected-commit: 815d9a14cbbb3b81843f7566222c87fb22e7255d
- name: 'Configure binutils'
runs: |
./configure \
--prefix=/usr \
--build=$(./config.guess) \
--host=${{host.triplet.gnu}} \
--target=${{host.triplet.gnu}} \
--disable-nls \
--disable-werror \
--disable-multilib \
--disable-gprofng \
--disable-gdb \
--disable-gdbserver \
--enable-deterministic-archives \
--enable-ld=default \
--enable-gold \
--enable-plugins \
--enable-default-execstack=no \
--enable-default-hash-style=gnu \
--enable-textrel-check=error
- uses: autoconf/make
- uses: autoconf/make-install
- name: 'Clean up documentation'
runs: |
rm -rf ${{targets.destdir}}/usr/share/info
- uses: strip
subpackages:
- name: "binutils-dev"
description: "binutils development headers"
pipeline:
- uses: split/dev
- name: "binutils-gold"
description: "binutils (gold linker)"
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}"/usr/bin
mv "${{targets.destdir}}"/usr/bin/ld.gold "${{targets.subpkgdir}}"/usr/bin/
test:
pipeline:
- runs: |
ld.gold --version
ld.gold --help
- name: binutils-doc
description: binutils documentation
pipeline:
- uses: split/manpages
test:
pipeline:
- uses: test/docs
update:
enabled: true
release-monitor:
identifier: 7981
test:
pipeline:
- name: Verify no gdb or gdbserver
runs: |
set +x
fails=""
for p in gdb gdbserver; do
if ! out=$(command -v "$p"); then
echo "PASS: package does not contain '$p'"
continue
fi
echo "FAIL: package contains $p: $out"
fails="$fails $out"
done
[ -z "$fails" ] || exit 1
# AUTOGENERATED
- runs: |
addr2line --version
ar --version
as --version
c++filt --version
dwp --version
elfedit --version
gprof --version
ld --version
ld.bfd --version
nm --version
objcopy --version
objdump --version
ranlib --version
readelf --version
size --version
strings --version
strip --version
addr2line --help
ar --help
as --help
c++filt --help
dwp --help
elfedit --help
gprof --help
ld --help
ld.bfd --help
nm --help
objcopy --help
objdump --help
ranlib --help
readelf --help
size --help
strings --help
strip --help
- uses: test/ldd-check
with:
packages: ${{package.name}}