Created attachment 615 [details]
proposed patch for mips/mipsel support
Package sivp fails to build on Debian for mips/mipsel arch with an error:
CI_DISABLE_TK=1 SCI_JAVA_ENABLE_HEADLESS=1 DOCBOOK_ROOT=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh \
/usr/bin/scilab -nw -f builder.sce
Could not create a Scilab main class. Error:
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.scilab.modules.gui.SwingView.<init>(Unknown Source)
at org.scilab.modules.gui.SwingView.registerSwingView(Unknown Source)
at org.scilab.modules.core.Scilab.<init>(Unknown Source)
Caused by: java.lang.RuntimeException: Please port CPU detection to your platform (linux/mipsel)
... 4 more
Scilab cannot create Scilab Java Main-Class (we have not been able to find the main Scilab class. Check if the Scilab and thirdparty packages are available).
debian/rules:9: recipe for target 'build-arch' failed
The reason for this failure is a lack of support for mips/mipsel in Debian package gluegen2, version 2.1.5.
Patch add-mips-support.patch that contains support for mips/mipsel is attached.
After rebuilding gluegen2 with these changes,
I was able to build sivp successfully.
Could you please consider including these changes into gluegen?
If you need any additional logs or info,
please contact me, I am willing to contribute.
'Should' be fixed by changes for Bug 1126.
In case this (or a related) issue still persists,
please reopen this bug and comment.
Note: I don't have MIPS or MIPSLE hardware here.
Semantics of your changes however were added.