-
Notifications
You must be signed in to change notification settings - Fork 218
Expand file tree
/
Copy pathpkg.yaml
More file actions
46 lines (42 loc) · 1.2 KB
/
pkg.yaml
File metadata and controls
46 lines (42 loc) · 1.2 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
name: elfutils
variant: scratch
shell: /bin/bash
install:
- build-base
- bash
- m4
dependencies:
- image: cgr.dev/chainguard/wolfi-base@{{ .WOLFI_BASE_REF }}
- stage: zlib
from: /rootfs
steps:
- sources:
- url: https://sourceware.org/elfutils/ftp/{{ .ELFUTILS_VERSION }}/elfutils-{{ .ELFUTILS_VERSION }}.tar.bz2
destination: elfutils.tar.bz2
sha256: {{ .ELFUTILS_SHA256 }}
sha512: {{ .ELFUTILS_SHA512 }}
prepare:
- |
tar -xjf elfutils.tar.bz2 --strip-components=1
mkdir build
cd build
export CFLAGS="${CFLAGS} -I/usr/local/glibc/include/ -L/usr/local/glibc/lib"
../configure \
--prefix=/usr/local/glibc \
--with-zstd=no \
--disable-libdebuginfod \
--disable-debuginfod \
CFLAGS="${CFLAGS} -fPIC -Wno-error"
build:
- |
cd build
make -j $(nproc)
install:
- |
cd build
make DESTDIR=/rootfs install
# we only need the libs and headers, remove everything else
find /rootfs/usr/local/ -type d \( -name bin -o -name sbin -o -name share \) -prune -exec rm -rf {} \;
finalize:
- from: /rootfs
to: /rootfs