Self-contained executable for any Linux x86_64 distribution

Lubomir I. Ivanov neolit123 at gmail.com
Sun Mar 3 11:07:06 PST 2013


On 3 March 2013 19:39, Lutz Vieweg <lvml at 5t9.de> wrote:
>
> Are you sure you invoked ".../subsurface/start_scripts/subsurface" ?
>

that gives me:
./subsurface/start_scripts/subsurface: line 2: startme: command not found

> If so, can you please add "set -x" to the top of that script so
> we might get an idea what's going wrong in your case?
> What does "$D2/bin/$E" expand to?
>

using startme gives:

lubo at lubo-pc:~$ ./subsurface/start_scripts/startme
++ tail -n 1
++ head -n 2
++ xargs -0 -i echo '{}'
+ THISSCRIPT=./subsurface/start_scripts/startme
++ basename ./subsurface/start_scripts/startme
+ E=startme
++ readlink -f ./subsurface/start_scripts/startme
+ THISSCRIPT=/home/lubo/subsurface/start_scripts/startme
+++ dirname /home/lubo/subsurface/start_scripts/startme
++ dirname /home/lubo/subsurface/start_scripts
+ INSTALLDIR=/home/lubo/subsurface
++ basename /home/lubo/subsurface
+ D=subsurface
+ mkdir -p -m 777 /tmp/applink
+ chmod o+t /tmp/applink
+ [[ ! -w /tmp/applink ]]
+ D2=/tmp/applink/subsurface
+ [[ -h /tmp/applink/subsurface ]]
++ readlink -f /tmp/applink/subsurface
+ [[ /home/lubo/subsurface != \/\h\o\m\e\/\l\u\b\o\/\s\u\b\s\u\r\f\a\c\e ]]
++ readlink -f /tmp/applink/subsurface
+ [[ /home/lubo/subsurface != \/\h\o\m\e\/\l\u\b\o\/\s\u\b\s\u\r\f\a\c\e ]]
+ . /tmp/applink/subsurface/env.sh
++ THISSCRIPT=/tmp/applink/subsurface/env.sh
+++ readlink -f /tmp/applink/subsurface/env.sh
++ THISSCRIPT=/home/lubo/subsurface/env.sh
+++ dirname /home/lubo/subsurface/env.sh
++ INSTALLDIR=/home/lubo/subsurface
+++ basename /home/lubo/subsurface
++ D=subsurface
++ unset THISSCRIPT
++ unset INSTALLDIR
++ export CPATH=/tmp/applink/subsurface/include
++ CPATH=/tmp/applink/subsurface/include
++ export LIBRARY_PATH=/tmp/applink/subsurface/lib
++ LIBRARY_PATH=/tmp/applink/subsurface/lib
++ export LD_RUN_PATH=/tmp/applink/subsurface/lib
++ LD_RUN_PATH=/tmp/applink/subsurface/lib
++ export PATH=/tmp/applink/subsurface/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
++ PATH=/tmp/applink/subsurface/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
++ export PKG_CONFIG_PATH=/tmp/applink/subsurface/lib/pkgconfig:/usr/lib64/pkgconfig
++ PKG_CONFIG_PATH=/tmp/applink/subsurface/lib/pkgconfig:/usr/lib64/pkgconfig
++ export LADSPA_PATH=/tmp/applink/subsurface/lib/ladspa:/usr/lib64/ladspa
++ LADSPA_PATH=/tmp/applink/subsurface/lib/ladspa:/usr/lib64/ladspa
++ export XML_CATALOG_FILE=/tmp/applink/subsurface/share/sgml/docbook-xsl-1.78.0/catalog.xml
++ XML_CATALOG_FILE=/tmp/applink/subsurface/share/sgml/docbook-xsl-1.78.0/catalog.xml
++ export SGML_CATALOG_FILE=/tmp/applink/subsurface/share/sgml/docbook-xsl-1.78.0/catalog
++ SGML_CATALOG_FILE=/tmp/applink/subsurface/share/sgml/docbook-xsl-1.78.0/catalog
+ exec /tmp/applink/subsurface/bin/startme
./subsurface/start_scripts/startme: line 47:
/tmp/applink/subsurface/bin/startme: No such file or directory

>
>>> in another thread i pointed out that this is a waste of energy and i
>>> still think it is.
>
>
> I still consider it an interesting experiment. So far, the idiotic
> idea of the glibc developers to have a human-editable configuration
> file - /etc/nsswitch.conf - optionally contain arbitrary names
> of shared object files that are then loaded is the only real obstacle.
>

there are many bad decisions, which work against this type of
packaging, which you are attempting here.
the most potable kernel / OS is wrapped in a way where software isn't
portable from one distribution to another.

lubomir
--


More information about the subsurface mailing list