mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-05 12:22:57 +02:00
sessreg: fix gcc6 build
This commit is contained in:
parent
e446a4aeeb
commit
621d9021ff
1 changed files with 21 additions and 0 deletions
|
@ -21,6 +21,27 @@ case "$XBPS_TARGET_MACHINE" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
post_configure() {
|
||||||
|
local _gccver=$(gcc --version | awk '/^gcc \(GCC\)/ { print $3 }')
|
||||||
|
#
|
||||||
|
# gcc6 cpp fails to generate filenames.sed from filenames.sed.c
|
||||||
|
# thus we remove the buuld rule and provide a filenames.sed file
|
||||||
|
# with the expected output for Void Linux.
|
||||||
|
#
|
||||||
|
if [ "${_gccver%%.*}" -gt 5 ]; then
|
||||||
|
sed -i man/Makefile -e'/filenames.sed: filenames.sed.c/,+4d'
|
||||||
|
cat > man/filenames.sed << EOF
|
||||||
|
/__BEGIN_UTMP_ONLY__/,/__END_UTMP_ONLY__/ d
|
||||||
|
s|__utmp_manpage__|utmpx|g
|
||||||
|
s|__utmp_file__|"/var/run/utmp"|g
|
||||||
|
s|__wtmp_manpage__|wtmpx|g
|
||||||
|
s|__wtmp_file__|"/var/log/wtmp"|g
|
||||||
|
s|__ttys_file__|"/etc/ttys"|g
|
||||||
|
s|__lastlog_file__|"/var/log/lastlog"|g
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense COPYING
|
vlicense COPYING
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue