Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
5a5dca4
chore(ci): import libs
nevermarine Oct 7, 2025
66daac4
fix rdma-core
nevermarine Oct 7, 2025
364af5c
fix libgcrypt
nevermarine Oct 7, 2025
ef92e43
merge libgpg-error output directories
nevermarine Oct 7, 2025
af341e5
glibc tree
nevermarine Oct 7, 2025
b9a5ab4
add tree
nevermarine Oct 7, 2025
5a60909
fix glibc
nevermarine Oct 7, 2025
7b41e3b
remove glibc for now
nevermarine Oct 7, 2025
c96878e
remove glibc from gcc
nevermarine Oct 7, 2025
1dfe7a4
add e2fsprogs to libtirpc
nevermarine Oct 7, 2025
603267d
add e2fsprogs to libgsasl
nevermarine Oct 7, 2025
a1d1429
add nghttp3
nevermarine Oct 7, 2025
cf2d35b
add ngtcp2
nevermarine Oct 7, 2025
f12eebb
add nghttp2
nevermarine Oct 7, 2025
552a526
add libldap
nevermarine Oct 7, 2025
446ca02
add libgsasl
nevermarine Oct 7, 2025
40ef754
add cyrus-sasl
nevermarine Oct 8, 2025
a2bad4c
fix libvirt import
nevermarine Oct 8, 2025
e149198
tree libdir
nevermarine Oct 8, 2025
b2e1a32
fix tree
nevermarine Oct 8, 2025
7a11830
debug
nevermarine Oct 8, 2025
2c9b5ac
fix
nevermarine Oct 8, 2025
78fd862
fix tree build
nevermarine Oct 8, 2025
8c256f8
f
nevermarine Oct 8, 2025
631caeb
fix libvirt pkgconfig
nevermarine Oct 8, 2025
af6e000
tree
nevermarine Oct 8, 2025
5f5f4ef
add libvirt
nevermarine Oct 8, 2025
63d623c
add more pc files
nevermarine Oct 8, 2025
3a92ec1
header
nevermarine Oct 8, 2025
1260615
debug
nevermarine Oct 9, 2025
4ff0ee4
change to /BINS
nevermarine Oct 9, 2025
169fefd
strip and remove var
nevermarine Oct 10, 2025
b29fb4a
add libs
nevermarine Oct 10, 2025
8d9c7fe
tirpc and md
nevermarine Oct 10, 2025
535a037
add util-linux
nevermarine Oct 10, 2025
4066a17
test glibc
nevermarine Oct 10, 2025
16ff486
add configparams
nevermarine Oct 10, 2025
c05cee2
debug
nevermarine Oct 10, 2025
0607ba1
fix
nevermarine Oct 10, 2025
4732fa8
fix libdir
nevermarine Oct 10, 2025
b28c344
add slibdir
nevermarine Oct 10, 2025
a37a4e3
install_root
nevermarine Oct 10, 2025
53606d5
play
nevermarine Oct 13, 2025
351bdd5
debug
nevermarine Oct 13, 2025
b38ee3f
Revert "debug"
nevermarine Oct 13, 2025
00ddb42
add glibc to libtinfo
nevermarine Oct 13, 2025
f0e4d43
add patch to glibc
nevermarine Oct 13, 2025
fb6b610
update version
nevermarine Oct 13, 2025
7ac8f2a
revision
nevermarine Oct 13, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/components/versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ package:
file: FILE5_45
gcc: releases/gcc-13.2.0
glib2: 2.84.2
glibc: glibc-2.38
glibc: 650a0aaaffa9ddb44732fa6156b31c5f30ee596f
libgmp: 6.3.0
gnutls: 3.8.10
libattr: v2.5.2
Expand Down
3 changes: 2 additions & 1 deletion images/base-alt-p11-binaries/werf.inc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
{{- define "$name" -}}
altPackages:
- glibc-utils
- mount xfsprogs xfstests util-linux
- xfsprogs xfstests
packages:
- libssh libssh2
- libffi e2fsprogs
- util-linux
{{- end -}}

{{ $builderDependencies := include "$name" . | fromYaml }}
Expand Down
1 change: 0 additions & 1 deletion images/dvcr/werf.inc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ secrets:
shell:
install:
- |
mkdir -p ~/.ssh && echo "StrictHostKeyChecking accept-new" > ~/.ssh/config
echo "Git clone CDI repository..."
git clone --depth 1 $(cat /run/secrets/SOURCE_REPO)/{{ $gitRepoUrl }} --branch v{{ $version }} /distribution

Expand Down
7 changes: 4 additions & 3 deletions images/edk2/werf.inc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{{- define "$name" -}}
altPackages:
- gcc gcc-c++
- git curl
- git
- bash-completion
- clang
- ccache
Expand All @@ -19,12 +19,13 @@ altPackages:
- dosfstools mtools genisoimage binutils-devel
- qemu-kvm-core
- iasl
- python3-modules-sqlite3 python3-module-virt-firmware libuuid-devel
- libdwarf-devel libuuid-devel
- python3-modules-sqlite3 python3-module-virt-firmware
- libdwarf-devel
- bc perl-PathTools perl-IPC-Cmd perl-JSON
packages:
- zlib libisoburn libburn libisofs
- openssl
- libcurl util-linux
{{- end -}}

{{ $builderDependencies := include "$name" . | fromYaml }}
Expand Down
10 changes: 5 additions & 5 deletions images/libvirt/install-libvirt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ $SRC_BASE/include/libvirt/libvirt-event.h to /usr/include/libvirt
$SRC_BASE/include/libvirt/libvirt.h to /usr/include/libvirt
$SRC_BASE/include/libvirt/libvirt-host.h to /usr/include/libvirt
$SRC_BASE/include/libvirt/libvirt-interface.h to /usr/include/libvirt
# $SRC_BASE/include/libvirt/libvirt-lxc.h to /usr/include/libvirt
$SRC_BASE/include/libvirt/libvirt-lxc.h to /usr/include/libvirt
$SRC_BASE/include/libvirt/libvirt-network.h to /usr/include/libvirt
$SRC_BASE/include/libvirt/libvirt-nodedev.h to /usr/include/libvirt
$SRC_BASE/include/libvirt/libvirt-nwfilter.h to /usr/include/libvirt
Expand Down Expand Up @@ -541,10 +541,10 @@ $SRC_BUILD/tools/libvirt-guests.sh to /usr/libexec
# $SRC_BUILD/tools/bash-completion/virsh to /usr/share/bash-completion/completions
# $SRC_BUILD/tools/bash-completion/virt-admin to /usr/share/bash-completion/completions
# $SRC_BUILD/tools/ssh-proxy/30-libvirt-ssh-proxy.conf to /etc/ssh/ssh_config.d
# $SRC_BUILD/libvirt.pc to /usr/lib64/pkgconfig
# $SRC_BUILD/libvirt-qemu.pc to /usr/lib64/pkgconfig
# $SRC_BUILD/libvirt-lxc.pc to /usr/lib64/pkgconfig
# $SRC_BUILD/libvirt-admin.pc to /usr/lib64/pkgconfig
$SRC_BUILD/libvirt.pc to /usr/lib64/pkgconfig
$SRC_BUILD/libvirt-qemu.pc to /usr/lib64/pkgconfig
$SRC_BUILD/libvirt-lxc.pc to /usr/lib64/pkgconfig
$SRC_BUILD/libvirt-admin.pc to /usr/lib64/pkgconfig
EOF
)

Expand Down
32 changes: 22 additions & 10 deletions images/libvirt/werf.inc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,28 +56,25 @@ altPackages:
- parted
- qemu-img open-iscsi
- xml-utils xsltproc
- systemd-container polkit
- polkit
- glibc-utils
- python3 python3-devel
- python3-module-pytest python3-module-docutils
- python3-tools python3-module-pip
- python3-module-black
- mdevctl tshark
- dmsetup pm-utils
altLibraries:
- libudev-devel
- libpciaccess-devel
- libyajl-devel sanlock-devel
- libpcap-devel libnl-devel
- libpcap-devel
- libparted-devel
- libdevmapper-devel
- ceph-devel
- libiscsi-devel libglusterfs-devel
- libsystemd-devel
- systemtap-sdt-devel
- glibc-utils
- wireshark-devel
- libclocale
- libslirp-devel
- libyajl-devel
packages:
- dmidecode lvm2 libattr libbsd libmd util-linux
Expand All @@ -92,6 +89,7 @@ packages:
- libtasn1 libtirpc
- glib2 acl libunistring libxml2
- gnutls
- systemd libnl3 libslirp
{{- end -}}

{{ $builderDependencies := include "$name" . | fromYaml }}
Expand Down Expand Up @@ -205,7 +203,21 @@ shell:

setup:
- |
/install-libvirt.sh --version-num "{{ $version }}" \
-s /{{ $gitRepoName }}-{{ $version }} \
-d /BINS \
-b build
{{- include "alt packages proxy" . | nindent 2 }}
- apt-get install -y tree
{{- include "alt packages clean" . | nindent 2 }}
- echo 'TREE OF SRC'
- tree /{{ $gitRepoName }}-{{ $version }}
- echo 'TREE OF BUILD'
- tree /{{ $gitRepoName }}-{{ $version }}/build
- |
cd /{{ $gitRepoName }}-{{ $version }}
DESTDIR=/BINS ninja -C build install
rm -rf /BINS/var
find /BINS -type f -executable | while read -r execfile; do
if strip "$execfile"; then
echo "Stripped: $execfile"
fi
done
- echo 'TREE OF BINS'
- tree /BINS
20 changes: 13 additions & 7 deletions images/packages/acl/werf.inc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,18 @@ secrets:
value: {{ $.SOURCE_REPO_GIT }}
shell:
install:
- |
mkdir -p ~/.ssh && echo "StrictHostKeyChecking accept-new" > ~/.ssh/config
- git clone --depth=1 $(cat /run/secrets/SOURCE_REPO)/{{ $gitRepoUrl }} --branch {{ $version }} /src

git clone --depth=1 $(cat /run/secrets/SOURCE_REPO)/{{ $gitRepoUrl }} --branch {{ $version }} /src

---

{{- $name := print $.ImageName "-dependencies" -}}
{{- define "$name" -}}
packages:
altPackages:
- gcc
- git gettext-tools autoconf libtool gcc make
- libattr-devel
- tree
packages:
- libattr
{{- end -}}

{{ $builderDependencies := include "$name" . | fromYaml }}
Expand All @@ -46,17 +44,25 @@ import:
add: /src
to: /src
before: install
{{- include "importPackageImages" (list . $builderDependencies.packages "install") -}}
shell:
beforeInstall:
{{- include "alt packages proxy" . | nindent 2 }}
- |
apt-get install -y \
{{ $builderDependencies.packages | join " " }}
{{ $builderDependencies.altPackages | join " " }}

{{- include "alt packages clean" . | nindent 2 }}

install:
- |
# Install packages
PKGS="{{ $builderDependencies.packages | join " " }}"
for pkg in $PKGS; do
cp -a /$pkg/. /
rm -rf /$pkg
done

OUTDIR=/out

cd /src
Expand Down
9 changes: 3 additions & 6 deletions images/packages/bzip2/werf.inc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,16 @@ secrets:
value: {{ $.SOURCE_REPO_GIT }}
shell:
install:
- |
mkdir -p ~/.ssh && echo "StrictHostKeyChecking accept-new" > ~/.ssh/config
- git clone --depth=1 $(cat /run/secrets/SOURCE_REPO)/{{ $gitRepoUrl }} --branch {{ $version }} /src

git clone --depth=1 $(cat /run/secrets/SOURCE_REPO)/{{ $gitRepoUrl }} --branch {{ $version }} /src

---

{{- $name := print $.ImageName "-dependencies" -}}
{{- define "$name" -}}
altPackages:
- gcc git libtool
- make automake autoconf makeinfo
- glibc-devel
- glibc-utils
- meson ninja-build
- pkg-config
- tree
Expand Down Expand Up @@ -63,7 +60,7 @@ shell:
mkdir -p $OUTDIR/usr/lib64

cd /src

sed -i \
-e 's:\$(PREFIX)/man:\$(PREFIX)/share/man:g' \
-e 's:ln -s -f \$(PREFIX)/bin/:ln -s :' \
Expand Down
8 changes: 4 additions & 4 deletions images/packages/cyrus-sasl2/werf.inc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ altPackages:
- meson ninja-build flex
- libsphinxclient-devel libsphinxclient
- libsphinxbase-devel libgdbm-devel
- libdb4-devel libkrb5-devel
- libdb4-devel
- groff-base
- perl-Pod-POM-View-Restructured
- python3-module-sphinx
Expand All @@ -42,14 +42,14 @@ altPackages:
- m4
- groff-base gettext-tools
- libdb4-devel
- libkrb5-devel
- libsqlite3-devel
- tree
packages:
- libxcrypt
- zlib
- linux-pam
- openssl e2fsprogs
- krb5
{{- end -}}

{{ $builderDependencies := include "$name" . | fromYaml }}
Expand Down Expand Up @@ -80,7 +80,7 @@ shell:
cp -a /$pkg/. /
rm -rf /$pkg
done

OUTDIR=/out

cd /src
Expand All @@ -103,7 +103,7 @@ shell:
--with-dblib=berkeley \
--with-sqlite3 \
--disable-macos-framework

make -j$(nproc)
make DESTDIR=$OUTDIR install

Expand Down
5 changes: 1 addition & 4 deletions images/packages/dmidecode/werf.inc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,8 @@ secrets:
value: {{ $.SOURCE_REPO_GIT }}
shell:
install:
- |
mkdir -p ~/.ssh && echo "StrictHostKeyChecking accept-new" > ~/.ssh/config
- git clone --depth=1 $(cat /run/secrets/SOURCE_REPO)/{{ $gitRepoUrl }} --branch {{ $version }} /src

git clone --depth=1 $(cat /run/secrets/SOURCE_REPO)/{{ $gitRepoUrl }} --branch {{ $version }} /src


---

Expand Down
5 changes: 1 addition & 4 deletions images/packages/dtc/werf.inc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,8 @@ secrets:
value: {{ $.SOURCE_REPO_GIT }}
shell:
install:
- |
mkdir -p ~/.ssh && echo "StrictHostKeyChecking accept-new" > ~/.ssh/config
- git clone --depth=1 $(cat /run/secrets/SOURCE_REPO)/{{ $gitRepoUrl }} --branch {{ $version }} /src

git clone --depth=1 $(cat /run/secrets/SOURCE_REPO)/{{ $gitRepoUrl }} --branch {{ $version }} /src


---
image: {{ .ModuleNamePrefix }}{{ .PackagePath }}/{{ .ImageName }}-builder
Expand Down
2 changes: 1 addition & 1 deletion images/packages/e2fsprogs/werf.inc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ shell:
{{- define "$name" -}}
altPackages:
- gcc git make libtool gettext-tools
- libuuid-devel libarchive-devel
- libarchive-devel
- tree
packages:
- glib2 util-linux acl
Expand Down
10 changes: 4 additions & 6 deletions images/packages/file/werf.inc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ secrets:
value: {{ $.SOURCE_REPO_GIT }}
shell:
install:
- |
mkdir -p ~/.ssh && echo "StrictHostKeyChecking accept-new" > ~/.ssh/config

git clone --depth=1 $(cat /run/secrets/SOURCE_REPO)/{{ $gitRepoUrl }} --branch {{ $version }} /src
- git clone --depth=1 $(cat /run/secrets/SOURCE_REPO)/{{ $gitRepoUrl }} --branch {{ $version }} /src
---

{{- $name := print $.ImageName "-dependencies" -}}
Expand All @@ -32,10 +29,11 @@ altPackages:
- make automake autoconf libtool makeinfo
- pkg-config
- bison
- bzlib-devel liblzma-devel libseccomp-devel libcap-devel lzip ncompress strace
- lzip ncompress strace
- tree
packages:
- zlib zstd xz
- bzip2 libseccomp libcap
{{- end -}}


Expand Down Expand Up @@ -67,7 +65,7 @@ shell:
cp -a /$pkg/. /
rm -rf /$pkg
done

OUTDIR=/out
cd /src

Expand Down
2 changes: 1 addition & 1 deletion images/packages/gcc/werf.inc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ altPackages:
- git gcc-c++ flex make makeinfo libtool autoconf_2.60
- libelf-devel libmpc-devel libmpfr-devel perl-Pod-Parser
- libgc-devel coreutils
- autogen dejagnu glibc-devel-static
- autogen dejagnu
- tree
packages:
- zlib
Expand Down
Loading
Loading