mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-28 00:12:56 +02:00
tcsh: fix memory issue on musl
This commit is contained in:
parent
66b57259af
commit
96ac13d32e
1 changed files with 8 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'tcsh'
|
# Template file for 'tcsh'
|
||||||
pkgname=tcsh
|
pkgname=tcsh
|
||||||
version=6.20.00
|
version=6.20.00
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
register_shell="/bin/tcsh /bin/csh"
|
register_shell="/bin/tcsh /bin/csh"
|
||||||
conf_files="/etc/csh.login /etc/csh.cshrc"
|
conf_files="/etc/csh.login /etc/csh.cshrc"
|
||||||
|
@ -16,6 +16,13 @@ checksum=b89de7064ab54dac454a266cfe5d8bf66940cb5ed048d0c30674ea62e7ecef9d
|
||||||
post_extract() {
|
post_extract() {
|
||||||
sed -i '/define BSDWAIT/d' sh.proc.c
|
sed -i '/define BSDWAIT/d' sh.proc.c
|
||||||
}
|
}
|
||||||
|
pre_configure() {
|
||||||
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
*-musl)
|
||||||
|
sed -e ';s/# undef SYSMALLOC/# define SYSMALLOC/g' -i config_f.h
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
pre_build() {
|
pre_build() {
|
||||||
make CC_FOR_GETHOST="${BUILD_CC}" CFLAGS="${BUILD_CFLAGS}" gethost
|
make CC_FOR_GETHOST="${BUILD_CC}" CFLAGS="${BUILD_CFLAGS}" gethost
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue