Skip to content

Commit

Permalink
curl: allow building for multiple architectures again
Browse files Browse the repository at this point in the history
With the `.netrc` fix, two files are created by a patch. When reusing
the same `srcdir` for multiple architectures, this would cause problems.
So let's delete the files in question if the `.netrc` fix is done via a
separate `.patch` file.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed Nov 14, 2024
1 parent 0370166 commit d137911
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mingw-w64-curl/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ prepare() {
cmp "${startdir}/../mingw-w64-pathtools/pathtools.h" "${srcdir}/pathtools.h"
} || exit 1

test ! -f "${srcdir}/netrc-regression-1.patch" ||
rm -f tests/data/test2309 tests/libtest/lib2309.c

cd "${srcdir}/${_realname}-${pkgver}"
cp -fHv "${srcdir}"/pathtools.[ch] lib/

Expand Down

0 comments on commit d137911

Please sign in to comment.