fix(mergefs) (#5055)

* fix(mergefs)

closes #5047

* wip
This commit is contained in:
Jacob Heider 2024-01-30 15:39:31 -05:00 committed by GitHub
parent 436c90c51a
commit d2e0aa4e73
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,19 +11,24 @@ build:
dependencies:
git-scm.org: '*'
python.org: '>=3<3.12'
script: |
script:
# Set the version
sed -i.bak -e 's/^VERSION=.*/VERSION={{ version }}/' tools/update-version
rm tools/update-version.bak
- run: sed -i -e 's/^VERSION=.*/VERSION={{ version }}/' update-version
if: <2.39
working-directory: tools
- run: sed -i -e 's/^VERSION=.*/VERSION={{ version }}/' update-version
if: '>=2.39'
working-directory: buildtools
# Don't try to chown/chmod on install
sed -i.bak -e '/\(chown\|chmod\)/d' libfuse/Makefile
rm libfuse/Makefile.bak
- sed -i -e '/\(chown\|chmod\)/d' libfuse/Makefile
make --jobs {{ hw.concurrency }}
make install DESTDIR="{{prefix}}" PREFIX=""
- make --jobs {{ hw.concurrency }}
- make install DESTDIR="{{prefix}}" PREFIX=""
env:
CFLAGS: -Wno-implicit-function-declaration
CC: clang
CXX: clang++
provides:
- bin/mergerfs
@ -31,5 +36,4 @@ provides:
- sbin/mount.mergerfs
# FIXME: Maybe? Complicated to test something that mounts filesystems...
test: |
mergerfs --version | grep "{{ version }}"
test: mergerfs --version | grep "{{ version }}"