Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
edit: change
/usr/local/package
by distmaster tovar/pkg
bypkgadmin
, see mariux64/mxtools@0d57d97We start with python3, because it has much less dependencies then python2 and requires not so much prework. We can test the general approach with it.
How it is supposed to work (where FOOBAR is e.g. python-3.6.4-0)
/package/pkg/FOOBAR
(on nfs) is copied to/var/pkg/FOOBAR
(excludingFOOBAR/build
) by/usr/sbin/pkgadmin update
.The script
/usr/sbin/make-automaps
, which builds the automounter map for/pkg
, has been updated to look for local copies in/var/pkg
. If FOOBAR is available from there, the map entry for /pkg/FOOBAR will mount this local directory instead of the remote directory. In any case, the mount will be read-only./usr/sbin/make-automaps
is run during boot, whenever an amd map changes, or manually.After
/usr/local/package/admin/makebin
is run on the distmaster and/usr/local/package
has been pushed around, any command from FOOBAR is automatically available asprun FOOBAR cmd
. Additionally, selected commands and command aliases may be made available in/usr/local/package/bin
by/usr/local/package/config
. Also package aliases can be configured, so thatprun
can be used with a short name (prun python3 python
instead ofprun python-3.6.4-0 python
).bee installations of FOOBAR, which were put into
/usr/bin
,/usr/lib
etc. because we wanted the software to be available locally, can be removed, if we know that FOOBAR is available locally in/var/pkg
. If we want certain commands to be in available in/usr/bin
, e.g. to support often used shebang paths or to make the command available for root, we create a bee package which installs small wrapper scripts into/usr/bin
./var/pkg/python-3.6.4-1
has already been pulled and the maps have been rebuild. Soprun python3
or/usr/local/package/bin/python3
already run the local copy of the so-called scientific python3 on most systems (those which don't have processes locing the nfs-mount and preventing a remount)./usr/bin/python3
, on the other hand, runs the (rather obsolete) bee installed python3 from the system. This pull request would change that.