Repository navigation
Commit dba9583
Let ecce-<app> wrappers honour an existing ECCE_HOME
The generated wrappers did "export ECCE_HOME=<builtin>" unconditionally,
overriding whatever the caller had set -- unlike the way the same
wrappers already treat ECCE_REALUSERHOME, DISPLAY and ECCE_HELP. So an
ECCE tree anywhere other than its configured location could not be run
at all, even with ECCE_HOME pointed at it.
Now "${ECCE_HOME:-<builtin>}", so the built-in path is still the default
and nothing changes for a normal install.
Found while trying to test a .deb without installing it: extracting the
package and running its wrappers silently ran the INSTALLED binaries
instead, so the test proved nothing about the package. It now works --
verified via /proc/<pid>/exe that the packaged binary is the one
running:
dpkg-deb -x ecce_8.11.0_amd64.deb /tmp/debcheck
ECCE_HOME=/tmp/debcheck/opt/ecce \
ECCE_TEST_HOME=/tmp/debcheck/opt/ecce \
ECCE_TEST_WRAPPERS=/tmp/debcheck/usr/bin \
tests/apps/run_tests.py
which means a package can be smoke-tested before anyone installs it,
and without root.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFMUNbw2UpRPmgsqviAowb1 parent 29f4d9e commit dba9583
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
645 | 645 | | |
646 | 646 | | |
647 | 647 | | |
648 | | - | |
| 648 | + | |
649 | 649 | | |
650 | 650 | | |
651 | 651 | | |
| |||
675 | 675 | | |
676 | 676 | | |
677 | 677 | | |
678 | | - | |
| 678 | + | |
679 | 679 | | |
680 | 680 | | |
681 | 681 | | |
| |||
863 | 863 | | |
864 | 864 | | |
865 | 865 | | |
866 | | - | |
| 866 | + | |
867 | 867 | | |
868 | 868 | | |
869 | 869 | | |
| |||
917 | 917 | | |
918 | 918 | | |
919 | 919 | | |
920 | | - | |
| 920 | + | |
921 | 921 | | |
922 | 922 | | |
923 | 923 | | |
| |||
0 commit comments