[meta-oe] srecord: build fix

Message ID 20220406113434.533132-1-adrian.freihofer@siemens.com
State New
Headers show
Series [meta-oe] srecord: build fix | expand

Commit Message

Adrian Freihofer April 6, 2022, 11:34 a.m. UTC
build failed with:
ln: failed to create symbolic link '...srecord-1.64/configure.ac': File exists

As expected, the existing file was a symlink pointing to etc/configure.ac

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
---
 meta-oe/recipes-support/srecord/srecord_1.64.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta-oe/recipes-support/srecord/srecord_1.64.bb b/meta-oe/recipes-support/srecord/srecord_1.64.bb
index 85deabde1..5765272ce 100644
--- a/meta-oe/recipes-support/srecord/srecord_1.64.bb
+++ b/meta-oe/recipes-support/srecord/srecord_1.64.bb
@@ -21,7 +21,7 @@  inherit autotools-brokensep
 do_configure:prepend() {
     # To autoreconf we need the script in ${S}, we can't tell autotools to use
     # etc/ because then it can't find the Makefile.in
-    ln -s ${S}/etc/configure.ac ${S}
+    ln -sf ${S}/etc/configure.ac ${S}
 }
 
 PACKAGECONFIG ??= "gcrypt"