-
Notifications
You must be signed in to change notification settings - Fork 2
chore(ci): build more libs #1375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
eofff
wants to merge
64
commits into
main
Choose a base branch
from
chore/ci/build-zlo
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
64 commits
Select commit
Hold shift + click to select a range
bbbb145
pre
dc95f65
fox capture
7db8240
fix versions
0b20ecb
fox fox fox
f4957d2
static and readme
ae01170
lzo, lz4, libkrb5, openldap, xz use
3c7f710
openldap dynamic
eba7ef5
xz dynamic
b93d08d
dynamic liblz4
5785654
lzo dynamic
1c533ef
ttt
f5aab2b
ttt
b87a03d
tttt
a43c1eb
qemu fix
fd83422
lzo && lz4
21a1620
build build build
7a80955
t
ae427c7
new template
fc7c181
fix virt-launcher
cba2853
fix qemu build
831029a
virt-launcher fix
b123a51
clean krb5
45bc12f
change krb5 tree
bdd0b5c
thin images
9747ca4
change readme
3dbbef6
Update images/packages/xz/werf.inc.yaml
eofff 4c64e50
Update images/cdi-importer/werf.inc.yaml
eofff e655f09
Update images/packages/lz4/werf.inc.yaml
eofff 1eba41a
remove not used
174413e
back cdi-importer
4e214c0
fix file
9f573be
fix libcurl
030ea01
fix qemu
1d59ecb
file refactoring
8e11ec7
qemu fix
5c204c0
virt-launcher fix
3172cf1
improve tree output
9c81137
update readme output
4d8f496
add params
4d71919
fix krb5
3e62ca2
update readme
54808de
Update images/packages/krb5/werf.inc.yaml
eofff 8ed3068
Update images/packages/xz/werf.inc.yaml
eofff 346cf5e
Update images/packages/lz4/werf.inc.yaml
eofff 5c33324
update lz4 readme
df92912
try to libdir
77d07a0
update lz4 readme
97074a7
Update images/packages/lz4/werf.inc.yaml
eofff be99813
update lz4 readme
558b268
Update images/qemu/werf.inc.yaml
eofff b2a9bb7
Update images/packages/libnbd/werf.inc.yaml
eofff 23cf545
Update images/packages/libnbd/werf.inc.yaml
eofff 41f2ed0
Update images/packages/krb5/werf.inc.yaml
eofff a452ef9
Update images/packages/krb5/werf.inc.yaml
eofff 1cb761e
Update images/packages/krb5/werf.inc.yaml
eofff 4229dc3
fix krb build
37e4ab7
fix libxml build
45e6bec
fix dvcr
1ec9b9c
fix cdi
a9db4d1
t
ebb204d
tt
9d6b2ee
virt-launcher werf
f512bc4
t
f633b3e
t
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
└── [drwxr-xr-x 4096] usr | ||
├── [drwxr-xr-x 4096] include | ||
│ ├── [drwxr-xr-x 4096] gssapi | ||
│ │ ├── [-rw-r--r-- 30083] gssapi.h | ||
│ │ ├── [-rw-r--r-- 2640] gssapi_alloc.h | ||
│ │ ├── [-rw-r--r-- 21165] gssapi_ext.h | ||
│ │ ├── [-rw-r--r-- 2217] gssapi_generic.h | ||
│ │ ├── [-rw-r--r-- 12027] gssapi_krb5.h | ||
│ │ └── [-rw-r--r-- 1652] mechglue.h | ||
│ ├── [-rw-r--r-- 181] gssapi.h | ||
│ ├── [drwxr-xr-x 4096] gssrpc | ||
│ │ ├── [-rw-r--r-- 6441] auth.h | ||
│ │ ├── [-rw-r--r-- 4840] auth_gss.h | ||
│ │ ├── [-rw-r--r-- 4333] auth_gssapi.h | ||
│ │ ├── [-rw-r--r-- 2896] auth_unix.h | ||
│ │ ├── [-rw-r--r-- 9654] clnt.h | ||
│ │ ├── [-rw-r--r-- 2442] netdb.h | ||
│ │ ├── [-rw-r--r-- 3429] pmap_clnt.h | ||
│ │ ├── [-rw-r--r-- 3841] pmap_prot.h | ||
│ │ ├── [-rw-r--r-- 2303] pmap_rmt.h | ||
│ │ ├── [-rw-r--r-- 10034] rename.h | ||
│ │ ├── [-rw-r--r-- 3143] rpc.h | ||
│ │ ├── [-rw-r--r-- 5107] rpc_msg.h | ||
│ │ ├── [-rw-r--r-- 11402] svc.h | ||
│ │ ├── [-rw-r--r-- 3976] svc_auth.h | ||
│ │ ├── [-rw-r--r-- 3628] types.h | ||
│ │ └── [-rw-r--r-- 11781] xdr.h | ||
│ ├── [drwxr-xr-x 4096] kadm5 | ||
│ │ ├── [-rw-r--r-- 20688] admin.h | ||
│ │ ├── [-rw-r--r-- 1548] chpass_util_strings.h | ||
│ │ └── [-rw-r--r-- 4345] kadm_err.h | ||
│ ├── [-rw-r--r-- 64259] kdb.h | ||
│ ├── [-rw-r--r-- 8933] krad.h | ||
│ ├── [drwxr-xr-x 4096] krb5 | ||
│ │ ├── [-rw-r--r-- 4213] ccselect_plugin.h | ||
│ │ ├── [-rw-r--r-- 5864] certauth_plugin.h | ||
│ │ ├── [-rw-r--r-- 15529] clpreauth_plugin.h | ||
│ │ ├── [-rw-r--r-- 5460] hostrealm_plugin.h | ||
│ │ ├── [-rw-r--r-- 12482] kadm5_auth_plugin.h | ||
│ │ ├── [-rw-r--r-- 6161] kadm5_hook_plugin.h | ||
│ │ ├── [-rw-r--r-- 5320] kdcpolicy_plugin.h | ||
│ │ ├── [-rw-r--r-- 18241] kdcpreauth_plugin.h | ||
│ │ ├── [-rw-r--r-- 348689] krb5.h | ||
│ │ ├── [-rw-r--r-- 5881] localauth_plugin.h | ||
│ │ ├── [-rw-r--r-- 2686] locate_plugin.h | ||
│ │ ├── [-rw-r--r-- 2090] plugin.h | ||
│ │ ├── [-rw-r--r-- 1774] preauth_plugin.h | ||
│ │ └── [-rw-r--r-- 4426] pwqual_plugin.h | ||
│ ├── [-rw-r--r-- 402] krb5.h | ||
│ ├── [-rw-r--r-- 12154] profile.h | ||
│ ├── [-rw-r--r-- 6640] verto-module.h | ||
│ └── [-rw-r--r-- 19437] verto.h | ||
└── [drwxr-xr-x 4096] lib64 | ||
├── [drwxr-xr-x 4096] krb5 | ||
│ └── [drwxr-xr-x 4096] plugins | ||
│ ├── [drwxr-xr-x 4096] authdata | ||
│ ├── [drwxr-xr-x 4096] kdb | ||
│ │ └── [-rwxr-xr-x 112496] db2.so | ||
│ ├── [drwxr-xr-x 4096] libkrb5 | ||
│ ├── [drwxr-xr-x 4096] preauth | ||
│ │ ├── [-rwxr-xr-x 32520] otp.so | ||
│ │ ├── [-rwxr-xr-x 154992] pkinit.so | ||
│ │ ├── [-rwxr-xr-x 93936] spake.so | ||
│ │ └── [-rwxr-xr-x 21824] test.so | ||
│ └── [drwxr-xr-x 4096] tls | ||
│ └── [-rwxr-xr-x 29120] k5tls.so | ||
├── [lrwxrwxrwx 21] libgssapi_krb5.so -> libgssapi_krb5.so.2.2 | ||
├── [lrwxrwxrwx 21] libgssapi_krb5.so.2 -> libgssapi_krb5.so.2.2 | ||
├── [-rwxr-xr-x 392192] libgssapi_krb5.so.2.2 | ||
├── [lrwxrwxrwx 16] libgssrpc.so -> libgssrpc.so.4.2 | ||
├── [lrwxrwxrwx 16] libgssrpc.so.4 -> libgssrpc.so.4.2 | ||
├── [-rwxr-xr-x 145832] libgssrpc.so.4.2 | ||
├── [lrwxrwxrwx 18] libk5crypto.so -> libk5crypto.so.3.1 | ||
├── [lrwxrwxrwx 18] libk5crypto.so.3 -> libk5crypto.so.3.1 | ||
├── [-rwxr-xr-x 201744] libk5crypto.so.3.1 | ||
├── [lrwxrwxrwx 19] libkadm5clnt.so -> libkadm5clnt_mit.so | ||
├── [lrwxrwxrwx 24] libkadm5clnt_mit.so -> libkadm5clnt_mit.so.12.0 | ||
├── [lrwxrwxrwx 24] libkadm5clnt_mit.so.12 -> libkadm5clnt_mit.so.12.0 | ||
├── [-rwxr-xr-x 105088] libkadm5clnt_mit.so.12.0 | ||
├── [lrwxrwxrwx 18] libkadm5srv.so -> libkadm5srv_mit.so | ||
├── [lrwxrwxrwx 23] libkadm5srv_mit.so -> libkadm5srv_mit.so.12.0 | ||
├── [lrwxrwxrwx 23] libkadm5srv_mit.so.12 -> libkadm5srv_mit.so.12.0 | ||
├── [-rwxr-xr-x 137216] libkadm5srv_mit.so.12.0 | ||
├── [lrwxrwxrwx 15] libkdb5.so -> libkdb5.so.10.0 | ||
├── [lrwxrwxrwx 15] libkdb5.so.10 -> libkdb5.so.10.0 | ||
├── [-rwxr-xr-x 96008] libkdb5.so.10.0 | ||
├── [lrwxrwxrwx 14] libkrad.so -> libkrad.so.0.0 | ||
├── [lrwxrwxrwx 14] libkrad.so.0 -> libkrad.so.0.0 | ||
├── [-rwxr-xr-x 44456] libkrad.so.0.0 | ||
├── [lrwxrwxrwx 14] libkrb5.so -> libkrb5.so.3.3 | ||
├── [lrwxrwxrwx 14] libkrb5.so.3 -> libkrb5.so.3.3 | ||
├── [-rwxr-xr-x 1054216] libkrb5.so.3.3 | ||
├── [lrwxrwxrwx 21] libkrb5support.so -> libkrb5support.so.0.1 | ||
├── [lrwxrwxrwx 21] libkrb5support.so.0 -> libkrb5support.so.0.1 | ||
├── [-rwxr-xr-x 63408] libkrb5support.so.0.1 | ||
├── [lrwxrwxrwx 15] libverto.so -> libverto.so.0.0 | ||
├── [lrwxrwxrwx 15] libverto.so.0 -> libverto.so.0.0 | ||
├── [-rwxr-xr-x 47696] libverto.so.0.0 | ||
└── [drwxr-xr-x 4096] pkgconfig | ||
├── [-rw-r--r-- 241] gssrpc.pc | ||
├── [-rw-r--r-- 262] kadm-client.pc | ||
├── [-rw-r--r-- 258] kadm-server.pc | ||
├── [-rw-r--r-- 293] kdb.pc | ||
├── [-rw-r--r-- 199] krb5-gssapi.pc | ||
├── [-rw-r--r-- 324] krb5.pc | ||
├── [-rw-r--r-- 249] mit-krb5-gssapi.pc | ||
└── [-rw-r--r-- 396] mit-krb5.pc | ||
|
||
16 directories, 92 files |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
--- | ||
image: {{ .ModuleNamePrefix }}{{ .PackagePath }}/{{ $.ImageName }} | ||
final: false | ||
fromImage: builder/scratch | ||
import: | ||
- image: {{ .ModuleNamePrefix }}{{ .PackagePath }}/{{ $.ImageName }}-builder | ||
add: /out | ||
to: /{{ $.ImageName }} | ||
before: setup | ||
|
||
--- | ||
{{- $version := get $.PackageVersion $.ImageName }} | ||
{{- $gitRepoUrl := "krb5/krb5.git" }} | ||
|
||
image: {{ .ModuleNamePrefix }}{{ .PackagePath }}/{{ .ImageName }}-src-artifact | ||
final: false | ||
fromImage: builder/src | ||
secrets: | ||
- id: SOURCE_REPO | ||
value: {{ $.SOURCE_REPO_GIT }} | ||
shell: | ||
install: | ||
- git clone --depth=1 $(cat /run/secrets/SOURCE_REPO)/{{ $gitRepoUrl }} --branch {{ $version }} /src | ||
|
||
--- | ||
{{- $name := print $.ImageName "-dependencies" -}} | ||
{{- define "$name" -}} | ||
altPackages: | ||
- git gcc automake make tree | ||
- flex libcom_err-devel libkeyutils-devel bison | ||
- libncurses-devel libss-devel libtinfo-devel | ||
packages: | ||
- linux-pam openssl | ||
{{- end -}} | ||
|
||
{{ $builderDependencies := include "$name" . | fromYaml }} | ||
|
||
image: {{ .ModuleNamePrefix }}{{ .PackagePath }}/{{ $.ImageName }}-builder | ||
final: false | ||
fromImage: builder/alt | ||
import: | ||
- image: {{ .ModuleNamePrefix }}{{ .PackagePath }}/{{ .ImageName }}-src-artifact | ||
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.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/src | ||
export YACC="bison -y" | ||
export CFLAGS="-O2 -fcommon" | ||
|
||
autoreconf | ||
|
||
./configure \ | ||
--prefix=/usr \ | ||
--libdir=/usr/lib64 \ | ||
--exec-prefix=/usr \ | ||
--enable-shared --disable-static \ | ||
--enable-dns-for-realm \ | ||
--enable-pkinit \ | ||
--with-system-et \ | ||
--with-system-ss \ | ||
--with-pkinit-crypto-impl=openssl \ | ||
--with-tls-impl=openssl | ||
|
||
make -j$(nproc) | ||
make DESTDIR=$OUTDIR install | ||
|
||
rm -rf $OUTDIR/usr/share | ||
rm -rf $OUTDIR/usr/var | ||
tree -sp $OUTDIR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# lz4 | ||
eofff marked this conversation as resolved.
Show resolved
Hide resolved
|
||
└── [drwxr-xr-x 4096] usr | ||
├── [drwxr-xr-x 4096] bin | ||
│ ├── [-rwxr-xr-x 324192] lz4 | ||
│ ├── [lrwxrwxrwx 3] lz4c -> lz4 | ||
│ ├── [lrwxrwxrwx 3] lz4cat -> lz4 | ||
│ └── [lrwxrwxrwx 3] unlz4 -> lz4 | ||
├── [drwxr-xr-x 4096] include | ||
│ ├── [-rw-r--r-- 43263] lz4.h | ||
│ ├── [-rw-r--r-- 32749] lz4frame.h | ||
│ ├── [-rw-r--r-- 2044] lz4frame_static.h | ||
│ └── [-rw-r--r-- 20179] lz4hc.h | ||
└── [drwxr-xr-x 4096] lib64 | ||
├── [-rw-r--r-- 263272] liblz4.a | ||
├── [lrwxrwxrwx 15] liblz4.so -> liblz4.so.1.9.4 | ||
├── [lrwxrwxrwx 15] liblz4.so.1 -> liblz4.so.1.9.4 | ||
├── [-rwxr-xr-x 237024] liblz4.so.1.9.4 | ||
└── [drwxr-xr-x 4096] pkgconfig | ||
└── [-rw-r--r-- 391] liblz4.pc | ||
|
||
6 directories, 13 files | ||
``` |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.