All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][meta-java][master] openjdk-8: Workaround TOPDIR not getting expanded in configure.ac
@ 2021-03-24  8:41 Mike Looijmans
  0 siblings, 0 replies; only message in thread
From: Mike Looijmans @ 2021-03-24  8:41 UTC (permalink / raw)
  To: openembedded-devel; +Cc: richard.leitner, Mike Looijmans

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.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
---
 recipes-core/openjdk/openjdk-8-common.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/recipes-core/openjdk/openjdk-8-common.inc b/recipes-core/openjdk/openjdk-8-common.inc
index 70585a6..7d45585 100644
--- a/recipes-core/openjdk/openjdk-8-common.inc
+++ b/recipes-core/openjdk/openjdk-8-common.inc
@@ -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 () {
-- 
2.17.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-24  8:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-24  8:41 [PATCH][meta-java][master] openjdk-8: Workaround TOPDIR not getting expanded in configure.ac Mike Looijmans

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.