nwipe: unbreak on glibc (use off_t and _FILE_OFFSET_BITS=64).
This commit is contained in:
parent
350cbac8db
commit
d5e5ef408f
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'nwipe'
|
# Template file for 'nwipe'
|
||||||
pkgname=nwipe
|
pkgname=nwipe
|
||||||
version=0.18
|
version=0.18
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
hostmakedepends="automake pkg-config"
|
hostmakedepends="automake pkg-config"
|
||||||
makedepends="libuuid-devel libparted-devel ncurses-devel"
|
makedepends="libuuid-devel libparted-devel ncurses-devel"
|
||||||
|
@ -12,6 +12,9 @@ homepage="https://github.com/martijnvanbrummelen/nwipe"
|
||||||
distfiles="${homepage}/archive/${version}.tar.gz"
|
distfiles="${homepage}/archive/${version}.tar.gz"
|
||||||
checksum=3074989c4fc9390d84d31d6d32e13955be005d9b4a150542d84259bf6346e3f9
|
checksum=3074989c4fc9390d84d31d6d32e13955be005d9b4a150542d84259bf6346e3f9
|
||||||
|
|
||||||
|
CFLAGS="-D_FILE_OFFSET_BITS=64"
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
|
sed -i 's,off64_t,off_t,g' src/*.[ch]
|
||||||
sh init.sh
|
sh init.sh
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user