2018-06-29, 00:28
Hi there,
this post is not really concerning the new build, but i am new here and do not know a better forum...
I am compiling LibreELEC for my own and today i encountered a compiling error(compile_command+=: not found ....) with popt 1.16 after spending some time investigating I have found the problem.. There is a configuration script which tests for available shell syntax (eval "$1+=\$2" causes problems with dash) but this syntax uses /bin/sh to test for syntax... so i have created a patch which sets the shell to ../toolchain/bin/dash which is used for compiling...
Maybe this will help someone. I will attach the patch. You only need to create a new folder: packages/devel/popt/patches and copy the patch there.
Enjoy!
Edit: libdaemon seems to have the same/simular problems but the relative path doesn't help so i hard coded the path... maybe someone knows a better solution
Actually i have no idea how to attach a file xD so here is the plain text (this could remove some formatting and might need a fix before using):
diff --git a/configure b/configure
--- a/configure
+++ b/configure
@@ -1,1 +1,1 @@
-#! /bin/sh
+#! ../toolchain/bin/dash
this post is not really concerning the new build, but i am new here and do not know a better forum...
I am compiling LibreELEC for my own and today i encountered a compiling error(compile_command+=: not found ....) with popt 1.16 after spending some time investigating I have found the problem.. There is a configuration script which tests for available shell syntax (eval "$1+=\$2" causes problems with dash) but this syntax uses /bin/sh to test for syntax... so i have created a patch which sets the shell to ../toolchain/bin/dash which is used for compiling...
Maybe this will help someone. I will attach the patch. You only need to create a new folder: packages/devel/popt/patches and copy the patch there.
Enjoy!
Edit: libdaemon seems to have the same/simular problems but the relative path doesn't help so i hard coded the path... maybe someone knows a better solution
Actually i have no idea how to attach a file xD so here is the plain text (this could remove some formatting and might need a fix before using):
diff --git a/configure b/configure
--- a/configure
+++ b/configure
@@ -1,1 +1,1 @@
-#! /bin/sh
+#! ../toolchain/bin/dash