Skip to contentSkip to conversation

openjdk-8: Workaround TOPDIR not getting expanded in configure.ac

PATCH New Mike Looijmans 1 participant 1 message Mar 24, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 openjdk-8: Workaround TOPDIR not getting expanded in configure.ac

Somehow the TOPDIR environment doesn't get expanded in configure.ac. Suspecting a clash with OE's internal TOPDIR variable, I tried replacing it with JDKTOPDIR but that resulted in the same error.

| autoreconf: configure.ac: creating directory $TOPDIR/common/autoconf/build-aux | autoreconf: error: cannot create $TOPDIR/common/autoconf/build-aux: No such file or directory

The workaround implemented here is to replace $TOPDIR in the file by its assigned value ${S}. This makes the error go away and the native build succeed.

---
 recipes-core/openjdk/openjdk-8-common.inc | 1 +
 1 file changed, 1 insertion(+)
recipes-core/openjdk/openjdk-8-common.inc +1 -0
index 70585a6..7d45585 100644
@@ -28,6 +28,7 @@ SRC_URI = "\
 
 do_configure_prepend () {
     export TOPDIR=${S}
+    sed -i 's#\$TOPDIR#${S}#g' ${S}/common/autoconf/configure.ac
 }
 
 do_unpack_extract_submodules () {
Signature · 1 line
2.17.1