gzip: unbreak musl builds.
This commit is contained in:
parent
6f92c5e836
commit
bb1a6569b3
|
@ -1,9 +1,10 @@
|
||||||
# Template file for 'gzip'
|
# Template file for 'gzip'
|
||||||
pkgname=gzip
|
pkgname=gzip
|
||||||
version=1.6
|
version=1.6
|
||||||
revision=3
|
revision=4
|
||||||
bootstrap=yes
|
bootstrap=yes
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
|
configure_args="gl_cv_func_fprintf_posix=yes gl_cv_func_fflush_stdin=yes"
|
||||||
conflicts="chroot-gzip>=0"
|
conflicts="chroot-gzip>=0"
|
||||||
short_desc="GNU compression utility (replacement for compress)"
|
short_desc="GNU compression utility (replacement for compress)"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
|
@ -11,3 +12,13 @@ homepage="http://www.gnu.org/software/gzip/"
|
||||||
license="GPL-3"
|
license="GPL-3"
|
||||||
distfiles="http://ftp.gnu.org/gnu/gzip/$pkgname-$version.tar.gz"
|
distfiles="http://ftp.gnu.org/gnu/gzip/$pkgname-$version.tar.gz"
|
||||||
checksum=97eb83b763d9e5ad35f351fe5517e6b71521d7aac7acf3e3cacdb6b1496d8f7e
|
checksum=97eb83b763d9e5ad35f351fe5517e6b71521d7aac7acf3e3cacdb6b1496d8f7e
|
||||||
|
|
||||||
|
pre_configure() {
|
||||||
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
*-musl)
|
||||||
|
# Special case for musl libc; "fix" issues with gnulib.
|
||||||
|
: > lib/fseeko.c
|
||||||
|
echo "void close_stdin(void) {}" > lib/closein.c
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue