fix(util-linux)

closes #5716
This commit is contained in:
Jacob Heider 2024-03-27 14:52:42 -04:00 committed by Jacob Heider
parent beafd62319
commit 235ccd31b5

View file

@ -8,7 +8,6 @@ versions:
provides: provides:
darwin: darwin:
- bin/cal - bin/cal
- bin/col
- bin/colcrt - bin/colcrt
- bin/colrm - bin/colrm
- bin/column - bin/column
@ -27,8 +26,6 @@ provides:
- bin/rev - bin/rev
- bin/scriptreplay - bin/scriptreplay
- bin/setsid - bin/setsid
- bin/uuidgen
- bin/uuidparse
- bin/wall - bin/wall
- bin/whereis - bin/whereis
linux: linux:
@ -99,6 +96,7 @@ provides:
dependencies: dependencies:
gnu.org/gettext: ^0 gnu.org/gettext: ^0
sqlite.org: ^3
build: build:
dependencies: dependencies:
@ -106,6 +104,8 @@ build:
freedesktop.org/pkg-config: '*' freedesktop.org/pkg-config: '*'
gnu.org/patch: '*' gnu.org/patch: '*'
crates.io/semverator: '*' crates.io/semverator: '*'
linux:
linux-pam.org: '*'
script: script:
# thanks to MacPorts # thanks to MacPorts
- | - |
@ -125,25 +125,33 @@ build:
- | - |
cd "{{prefix}}/include" cd "{{prefix}}/include"
for x in $HEADERS; do for x in $HEADERS; do
mv "$x/$x.h" . if test -f "$x/$x.h"; then
ln -s "../$x.h" "$x/" mv "$x/$x.h" .
ln -s "../$x.h" "$x/"
fi
done done
env: env:
ARGS: ARGS:
- --prefix={{prefix}} - --prefix={{prefix}}
- --disable-makeinstall-chown - --disable-makeinstall-chown
- --disable-makeinstall-setuid - --disable-makeinstall-setuid
- --disable-liblastlog2 # appears not to compile in 2.40
HEADERS: HEADERS:
- blkid - blkid
- libfdisk - libfdisk
- libsmartcols - libsmartcols
- uuid - uuid
darwin:
ARGS:
- --disable-pam-lastlog2
- --disable-libuuid # error: aliases are not supported on darwin
linux: linux:
HEADERS: HEADERS:
- libmount - libmount
# undefined symbol errors in newer llvms prevent building shared libs
CFLAGS: $CFLAGS -Wl,--undefined-version
test: test:
dependencies: dependencies:
stedolan.github.io/jq: '*' stedolan.github.io/jq: '*'
script: script: test "$(echo 5 6 7 | column -tJN first,second,third | jq .table[0].second)" = '"6"'
test "$(echo 5 6 7 | column -tJN first,second,third | jq .table[0].second)" = '"6"'