From 44f4cad4ec1ab1679f2f1de9fd04aed19790b500 Mon Sep 17 00:00:00 2001 From: q66 Date: Sun, 20 Jun 2021 17:54:31 +0200 Subject: [PATCH] build-style/void-cross: fix after patch -Np1 transition --- common/build-style/void-cross.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/common/build-style/void-cross.sh b/common/build-style/void-cross.sh index d1e1ffef2d6..ee2c6aaf7c2 100644 --- a/common/build-style/void-cross.sh +++ b/common/build-style/void-cross.sh @@ -20,9 +20,9 @@ # _void_cross_apply_patch() { - local args="$1" pname="$(basename $2)" + local pname="$(basename $1)" if [ ! -f ".${pname}_done" ]; then - patch -N $args -i $2 + patch -Np1 $args -i $1 touch .${pname}_done fi } @@ -38,7 +38,7 @@ _void_cross_build_binutils() { cd ${wrksrc}/binutils-${ver} if [ -d "${XBPS_SRCPKGDIR}/binutils/patches" ]; then for f in ${XBPS_SRCPKGDIR}/binutils/patches/*.patch; do - _void_cross_apply_patch -p1 "$f" + _void_cross_apply_patch "$f" done fi cd .. @@ -92,11 +92,11 @@ _void_cross_build_bootstrap_gcc() { sed -i 's@./fixinc.sh@-c true@' Makefile.in for f in ${XBPS_SRCPKGDIR}/gcc/patches/*.patch; do - _void_cross_apply_patch -p0 "$f" + _void_cross_apply_patch "$f" done if [ -f ${wrksrc}/.musl_version ]; then for f in ${XBPS_SRCPKGDIR}/gcc/files/*-musl.patch; do - _void_cross_apply_patch -p0 "$f" + _void_cross_apply_patch "$f" done fi cd .. @@ -168,7 +168,7 @@ _void_cross_build_kernel_headers() { cd ${wrksrc}/linux-${ver} for f in ${XBPS_SRCPKGDIR}/kernel-libc-headers/patches/*.patch; do - _void_cross_apply_patch -p0 $f + _void_cross_apply_patch "$f" done cd .. @@ -207,7 +207,7 @@ _void_cross_build_glibc_headers() { cd ${wrksrc}/glibc-${ver} if [ -d "${XBPS_SRCPKGDIR}/glibc/patches" ]; then for f in ${XBPS_SRCPKGDIR}/glibc/patches/*.patch; do - _void_cross_apply_patch -p1 "$f" + _void_cross_apply_patch "$f" done fi cd .. @@ -291,7 +291,7 @@ _void_cross_build_musl() { cd ${wrksrc}/musl-${ver} if [ -d "${XBPS_SRCPKGDIR}/musl/patches" ]; then for f in ${XBPS_SRCPKGDIR}/musl/patches/*.patch; do - _void_cross_apply_patch -p0 "$f" + _void_cross_apply_patch "$f" done fi cd ..