From b2c78051d780bb1a3cbae6121d9081959582b42f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= Date: Sat, 4 Mar 2023 16:55:16 +0100 Subject: [PATCH] lilypond: fix secondaryArch (x86) build (#7888) When building for a secondaryArch, haikuporter prepends $PATH with the secondaryArch binDir, so just removing the first 2 characters for removing '.' from $PATH doesn't work. This makes that a bit more robust. (Having '.' at the end would still not work though.) --- media-sound/lilypond/lilypond-2.24.1.recipe | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/media-sound/lilypond/lilypond-2.24.1.recipe b/media-sound/lilypond/lilypond-2.24.1.recipe index c1ec597b5..49426b36a 100644 --- a/media-sound/lilypond/lilypond-2.24.1.recipe +++ b/media-sound/lilypond/lilypond-2.24.1.recipe @@ -163,7 +163,7 @@ BUILD() # CPU_COUNT=$jobs is not used because it causes hangs # strip the current directory (.) from PATH, it disallows find -execdir - PATH=${PATH:2} make $jobArgs doc + PATH=${PATH/.:/} make $jobArgs doc } INSTALL() @@ -171,7 +171,7 @@ INSTALL() cd build make install make install-bytecode - PATH=${PATH:2} make install-doc + PATH=${PATH/.:/} make install-doc # language specific doc packages for lang in "${languages[@]}"; do