This repository was archived by the owner on Mar 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathglibc.yaml
More file actions
98 lines (98 loc) · 2.83 KB
/
glibc.yaml
File metadata and controls
98 lines (98 loc) · 2.83 KB
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
package:
name: glibc
version: 2.36
epoch: 0
description: "the GNU C library"
target-architecture:
- all
copyright:
- paths:
- "*"
attestation: TODO
license: GPL-3.0-or-later
dependencies:
runtime:
- wolfi-baselayout
- linux-headers
scriptlets:
trigger:
paths:
- /lib
- /lib64
- /usr/lib
- /usr/lib64
script: |
#!/bin/busybox sh
/sbin/ldconfig
environment:
contents:
repositories:
- https://mirrors.edge.kernel.org/alpine/edge/main
- https://packages.wolfi.dev/bootstrap/stage1
keyring:
- /usr/share/apk/keys/x86_64/alpine-devel@lists.alpinelinux.org-4a6a0840.rsa.pub
- /usr/share/apk/keys/x86_64/alpine-devel@lists.alpinelinux.org-5261cecb.rsa.pub
- /usr/share/apk/keys/x86_64/alpine-devel@lists.alpinelinux.org-6165ee59.rsa.pub
- /usr/share/apk/keys/aarch64/alpine-devel@lists.alpinelinux.org-58199dcc.rsa.pub
- /usr/share/apk/keys/aarch64/alpine-devel@lists.alpinelinux.org-616ae350.rsa.pub
- /usr/share/apk/keys/armv7/alpine-devel@lists.alpinelinux.org-524d27bb.rsa.pub
- /usr/share/apk/keys/armv7/alpine-devel@lists.alpinelinux.org-616adfeb.rsa.pub
- https://packages.wolfi.dev/bootstrap/stage1/wolfi-signing.rsa.pub
packages:
- alpine-baselayout-data
- busybox
- build-base
- scanelf
- ssl_client
- ca-certificates-bundle
- texinfo
- gmp-dev
- mpfr-dev
- mpc1-dev
- zlib-dev
- gawk
- zip
- bison
- flex
- cross-binutils-stage1
- cross-gcc-stage1
- cross-linux-headers
- python3
- grep
pipeline:
- uses: fetch
with:
uri: http://ftp.gnu.org/gnu/libc/glibc-${{package.version}}.tar.gz
expected-sha256: 02efa6ffbbaf3e10e88f16818a862608d04b0ef838c66f6025ae120530792c9c
- name: 'Fix compatibility with GNU make 4.4'
runs: |
sed '/MAKEFLAGS :=/s/)r/) -r/' -i Makerules
- name: 'Set up build directory'
runs: |
mkdir build
- name: 'Configure glibc'
runs: |
cd build
../configure \
--prefix=/ \
--libdir=/lib \
--includedir=/usr/include \
--host=${{cross.triplet.gnu.glibc}} \
--build=$(../config.guess) \
--disable-nls \
--disable-werror \
--enable-kernel=4.9 \
--with-sysroot=/usr/${{cross.triplet.gnu.glibc}} \
--with-headers=/usr/${{cross.triplet.gnu.glibc}}/usr/include \
--disable-nls
- runs: |
make -C build -j$(nproc)
- runs: |
make -C build -j$(nproc) install DESTDIR="${{targets.destdir}}"
- name: "Set up ldconfig"
runs: |
cp vendor/ld.so.conf "${{targets.destdir}}"/etc/ld.so.conf
- name: 'Clean up documentation'
runs: |
rm -rf ${{targets.destdir}}/usr/share/info
- uses: strip