1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-15 20:25:17 +03:00
aports/testing/zig/zig.pre-upgrade

11 lines
289 B
Bash

#!/bin/sh
ver_old=$2
if [ "$(apk version -t "$ver_old" '0.10.0-r2')" = '<' ]; then
# zig 0.10 upgrades libcxx which renames the __string header to a directory
# https://gitlab.alpinelinux.org/alpine/apk-tools/-/issues/10856
rm -r /usr/lib/zig/libcxx/include/__string
fi
exit 0