From 1a18a2ced45bae5370faecedd842c3ab215b015e Mon Sep 17 00:00:00 2001 From: John Date: Sat, 20 Feb 2021 12:17:25 +0100 Subject: [PATCH] rspamd: fix build changing to ninja in cmake build-style broke the sed calls --- srcpkgs/rspamd/template | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/srcpkgs/rspamd/template b/srcpkgs/rspamd/template index a4c2e4a697..10a2681fc1 100644 --- a/srcpkgs/rspamd/template +++ b/srcpkgs/rspamd/template @@ -32,15 +32,15 @@ if [ "$CROSS_BUILD" ]; then pre_build() { make -C build_native/contrib/snowball - sed -i "s#\./snowball#../../../build_native/contrib/snowball/snowball#g" \ - build/contrib/snowball/CMakeFiles/stemmer.dir/build.make + vsed -e "s#${wrksrc}/build/contrib/snowball/snowball#${wrksrc}/build_native/contrib/snowball/snowball#g" \ + -i build/build.ninja } fi pre_configure() { case "$XBPS_TARGET_MACHINE" in *-musl) # Remove non existing library nsl - sed -i CMakeLists.txt -e "/LIST(APPEND CMAKE_REQUIRED_LIBRARIES nsl)/d" + vsed -i CMakeLists.txt -e "/LIST(APPEND CMAKE_REQUIRED_LIBRARIES nsl)/d" esac if [ "$CROSS_BUILD" ]; then configure_args+=" -C ${FILESDIR}/TryRunResults.cmake"