mirror of
https://github.com/ivabus/pantry
synced 2024-11-25 18:05:07 +03:00
+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 <jacob@pkgx.dev>
This commit is contained in:
parent
e8f42a72b2
commit
f57bf0d7dd
1 changed files with 46 additions and 0 deletions
46
projects/sourceware.org/dm/package.yml
Normal file
46
projects/sourceware.org/dm/package.yml
Normal file
|
@ -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 <libdevmapper.h>
|
||||
|
||||
int main() {
|
||||
if (DM_STATS_REGIONS_ALL != UINT64_MAX)
|
||||
exit(1);
|
||||
}
|
||||
extname: c
|
Loading…
Reference in a new issue