From f57bf0d7dda811e25510a4ff54483a03d0b91235 Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Sun, 25 Feb 2024 16:21:54 +0200 Subject: [PATCH] +sourceware.org/dm (#5357) * new file: projects/sourceware.org/dm/package.yml * modified: projects/sourceware.org/dm/package.yml * --undefined-version * explicit clang * Update package.yml * it's too early in the morning * fix test --------- Co-authored-by: Jacob Heider --- projects/sourceware.org/dm/package.yml | 46 ++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 projects/sourceware.org/dm/package.yml diff --git a/projects/sourceware.org/dm/package.yml b/projects/sourceware.org/dm/package.yml new file mode 100644 index 00000000..b13276a3 --- /dev/null +++ b/projects/sourceware.org/dm/package.yml @@ -0,0 +1,46 @@ +distributable: + url: https://gitlab.com/lvmteam/lvm2/-/archive/{{version.tag}}/lvm2-{{version.tag}}.tar.gz + strip-components: 1 + +display-name: device-mapper + +platforms: + - linux + +versions: + gitlab: lvmteam/lvm2/tags + +dependencies: + pagure.io/libaio: ^0.3 + +build: + script: + # the make file uses sed over the bindir, our +brewing messes that up. + - TMP_PREFIX=$(mktemp -d) + - ./configure $ARGS --prefix="$TMP_PREFIX" + - make device-mapper + - make install_device-mapper + - mkdir -p "{{prefix}}" + - cp -a "$TMP_PREFIX"/* "{{prefix}}" + env: + ARGS: + - --disable-debug + - --disable-dependency-tracking + - --disable-silent-rules + - --enable-pkgconfig + linux: + # undefined symbol errors in newer llvms prevent building shared libs + CFLAGS: $CFLAGS -Wl,--undefined-version + CC: clang + LD: clang +test: + - run: cc $FIXTURE -ldevmapper -o test && ./test + fixture: + content: | + #include + + int main() { + if (DM_STATS_REGIONS_ALL != UINT64_MAX) + exit(1); + } + extname: c