omniORB cross-compilation issue

"Yurkov, Vyacheslav via omniORB-list" <[email protected]>
Newsgroups gmane.comp.corba.omniorb.user
Message-ID <[email protected]>
Hi guys,
I use omniORB in our Yocto Linux based SDK. Unfortunately omniidl script is wrong after cross-compilation. When cross-compilation is done @PYTHON@ variable is replaced with an absolute path to python in sysroot location, which is wrong, because that path won't be available when SDK is installed. I came up with a patch (attached) fixing that.
Please take a look and comment/merge if needed.

Regards,
Vyacheslav

_______________________________________________
omniORB-list mailing list
[email protected]
http://www.omniorb-support.com/mailman/listinfo/omniorb-list
env_python.patch (application/octet-stream, 1010 B)
diff -ur omniORB-4.2.0/src/tool/omniidl/python/scripts/omniidl.in omniORB-4.2.0.patched/src/tool/omniidl/python/scripts/omniidl.in
--- omniORB-4.2.0/src/tool/omniidl/python/scripts/omniidl.in	2014-03-25 16:22:12.000000000 +0100
+++ omniORB-4.2.0.patched/src/tool/omniidl/python/scripts/omniidl.in	2017-11-03 14:41:34.409812000 +0100
@@ -1,4 +1,4 @@
-#!@PYTHON@
+#!/usr/bin/env python
 # -*- python -*-
 #                           Package   : omniidl
 # omniidl.in                Created on: 1999/10/29
diff -ur omniORB-4.2.0/src/tool/omniidl/python3/scripts/omniidl.in omniORB-4.2.0.patched/src/tool/omniidl/python3/scripts/omniidl.in
--- omniORB-4.2.0/src/tool/omniidl/python3/scripts/omniidl.in	2014-03-25 16:22:12.000000000 +0100
+++ omniORB-4.2.0.patched/src/tool/omniidl/python3/scripts/omniidl.in	2017-11-03 14:41:48.870674423 +0100
@@ -1,4 +1,4 @@
-#!@PYTHON@
+#!/usr/bin/env python
 # -*- python -*-
 #                           Package   : omniidl
 # omniidl.in                Created on: 1999/10/29
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.