armdevvel / mxe-SHARED

MXE (M cross environment) for ARM32 Windows development (shared libraries)
Other
6 stars 3 forks source link

Configuration lookup logic for Rakko/Rita #42

Open treeswift opened 9 months ago

treeswift commented 9 months ago

Goals

Suggested behavior

Let's use the package openssh as an example. Then:

The wording ("binary file" rather than "executable file") is deliberate. Once the above logic is extracted into a dedicated component for sharing across other components, it can be embodied in a dedicated DLL or a dedicated executable (i.e. sysroot.exe or sysroot.dll). Then it becomes possible to specify the distro implicitly with PATH, canceling out the need for a special environment variable.

The client package will have to provide two relative paths: /etc-relative and %HOME%-relative. The latter should be optional; if it is not provided, it can be inferred by prepending . to the former (i.e. ssh -> .ssh).

treeswift commented 9 months ago

Some early specification: https://github.com/armdevvel/prefix

treeswift commented 8 months ago

Addressed in https://github.com/armdevvel/mxe-SHARED/pull/50

treeswift commented 8 months ago

Will close once openssh-portable uses <paths.h> API.