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