kexec-tools: drop custom do_extract
This commit is contained in:
parent
2deec738e1
commit
a1d3f7de1d
2 changed files with 6 additions and 11 deletions
|
@ -30,7 +30,12 @@ vextract() {
|
||||||
local archive="$1"
|
local archive="$1"
|
||||||
local ret=0
|
local ret=0
|
||||||
|
|
||||||
TAR_CMD="$(command -v bsdtar)"
|
# When tar is explicitly put *first* in hostmakedepends
|
||||||
|
# Some packages require tar to build but not for extraction
|
||||||
|
case "$hostmakedepends " in
|
||||||
|
"tar "*) TAR_CMD="tar" ;;
|
||||||
|
esac
|
||||||
|
[ -z "$TAR_CMD" ] && TAR_CMD="$(command -v bsdtar)"
|
||||||
[ -z "$TAR_CMD" ] && TAR_CMD="$(command -v tar)"
|
[ -z "$TAR_CMD" ] && TAR_CMD="$(command -v tar)"
|
||||||
[ -z "$TAR_CMD" ] && msg_error "xbps-src: no suitable tar cmd (bsdtar, tar)\n"
|
[ -z "$TAR_CMD" ] && msg_error "xbps-src: no suitable tar cmd (bsdtar, tar)\n"
|
||||||
case "$archive" in
|
case "$archive" in
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
pkgname=kexec-tools
|
pkgname=kexec-tools
|
||||||
version=2.0.26
|
version=2.0.26
|
||||||
revision=1
|
revision=1
|
||||||
create_wrksrc=yes
|
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
hostmakedepends="tar xz"
|
hostmakedepends="tar xz"
|
||||||
makedepends="zlib-devel liblzma-devel"
|
makedepends="zlib-devel liblzma-devel"
|
||||||
|
@ -12,7 +11,6 @@ license="GPL-2.0-only"
|
||||||
homepage="http://kernel.org/pub/linux/utils/kernel/kexec/"
|
homepage="http://kernel.org/pub/linux/utils/kernel/kexec/"
|
||||||
distfiles="${KERNEL_SITE}/utils/kernel/kexec/${pkgname}-${version}.tar.xz"
|
distfiles="${KERNEL_SITE}/utils/kernel/kexec/${pkgname}-${version}.tar.xz"
|
||||||
checksum=7fe36a064101cd5c515e41b2be393dce3ca88adce59d6ee668e0af7c0c4570cd
|
checksum=7fe36a064101cd5c515e41b2be393dce3ca88adce59d6ee668e0af7c0c4570cd
|
||||||
skip_extraction="${pkgname}-${version}.tar.xz"
|
|
||||||
|
|
||||||
CFLAGS="-fcommon"
|
CFLAGS="-fcommon"
|
||||||
|
|
||||||
|
@ -20,14 +18,6 @@ case "$XBPS_TARGET_MACHINE" in
|
||||||
ppc-musl) nopie=yes;; # textrels not supported
|
ppc-musl) nopie=yes;; # textrels not supported
|
||||||
esac
|
esac
|
||||||
|
|
||||||
do_extract() {
|
|
||||||
# bsdtar fails to extract version 2.0.20 tarball which
|
|
||||||
# contains (buggy) hard links from files to themselves.
|
|
||||||
tar --strip-components 1 --no-same-owner --extract --file \
|
|
||||||
${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}-${version}.tar.xz \
|
|
||||||
--directory ${wrksrc}
|
|
||||||
}
|
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
rm ${XBPS_WRAPPERDIR}/strip
|
rm ${XBPS_WRAPPERDIR}/strip
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue