Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions component_versions/version_map.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ package:
libgcrypt: libgcrypt-1.10.2
libgpg-error: libgpg-error-1.55
libhogweed: nettle_3.10.1_release_20241230
libibverbs: 1.0.0
65 changes: 65 additions & 0 deletions images/packages/binaries/libibverbs/werf.inc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
---
image: {{ $.ImageType }}/{{ $.ImageName }}
final: false
fromImage: builder/scratch
import:
- image: {{ $.ImageType }}/{{ $.ImageName }}-builder
add: /out
to: /libibverbs
includePaths:
- usr/lib64/libibverbs.so
- usr/lib64/libibverbs.so.1
- usr/lib64/libibverbs.so.1.0.0
before: setup
- image: {{ $.ImageType }}/{{ $.ImageName }}-builder
add: /out
to: /rdma-core-devel
includePaths:
- usr/include
- usr/lib64/libibverbs.la
before: setup

---
{{- $version := get $.Package $.ImageName }}
{{- $gitRepoUrl := "gpudirect/libibverbs.git" }}

{{- $name := print $.ImageName "-dependencies" -}}
{{- define "$name" -}}
packages:
- gcc git make libtool libnl-devel
{{- end -}}

{{ $builderDependencies := include "$name" . | fromYaml }}

image: {{ $.ImageType }}/{{ $.ImageName }}-builder
final: false
fromImage: builder/alt
secrets:
- id: SOURCE_REPO
value: {{ $.SOURCE_REPO_GIT }}
shell:
beforeInstall:
{{- include "alt packages proxy" . | nindent 2 }}
- |
apt-get install -y \
{{ $builderDependencies.packages | join " " }}

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

install:
- |
OUTDIR=/out
mkdir -p ~/.ssh && echo "StrictHostKeyChecking accept-new" > ~/.ssh/config

git clone --depth=1 $(cat /run/secrets/SOURCE_REPO)/{{ $gitRepoUrl }} /src
cd /src
./autogen.sh
./configure \
--prefix=/usr \
--libdir=/usr/lib64 \
--disable-doc \
--disable-static \
CFLAGS="-Wno-error"
make -j$(nproc)
make DESTDIR=/out install-libLTLIBRARIES install-libibverbsincludeHEADERS

Loading