Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support configurable PREFIX #15

Open
michaelforney opened this issue Apr 16, 2020 · 1 comment
Open

Support configurable PREFIX #15

michaelforney opened this issue Apr 16, 2020 · 1 comment

Comments

@michaelforney
Copy link
Collaborator

This will allow users to install oasis alongside their existing operating system by setting config.prefix=os.getenv('HOME')..'/oasis'.

@Intensity
Copy link

@michaelforney : I'm wondering if this functionality is known to work at this time. I see an entry for "prefix" in the config.lua file but it seems to be framed as an "install" prefix, rather than a base prefix from which the packages look for any related dependencies and files.

Is there a means to rebuild the system in a way that all binaries, configuration files, and any other package specific data is fully hosted under a user-defined path? In that case I'd imagine that the packages built would need to know to add this prefix in front of the usual paths they're used to using, so that Oasis prefixed can fully co-exist alongside another distribution. For example, instead of a package referencing /etc/somewhere, it would have to reference /opt/oasis/etc/somewhere (if /opt/oasis is the user's choice for prefix).

Perhaps it's available but I'm not aware of a step-by-step guide. I've been following the (re)build process given in the README that's packaged with the latest qemu image file, but since I less understand the build tool I'm not sure if there's a separate "make install" counterpart command involving git or samu.

rnpnr added a commit to rnpnr/oasis that referenced this issue Oct 4, 2023
see oasislinux#15: Support configurable PREFIX
rnpnr added a commit to rnpnr/oasis that referenced this issue Oct 4, 2023
from @michaelforney:
> It looks like all of those paths (`GIT_*_PATH`, `DEFAULT_GIT_TEMPLATE_DIR`)
> are used with the `system_path()` function, which prefixes them
> with `system_prefix()`.
>
> `system_prefix()` works in one of two ways, depending on whether
> RUNTIME_PREFIX is defined. If it is, it looks of the executable
> path using `/proc/self/exe`, finding the prefix dynamically similar
> to a relocatable gcc toolchain, otherwise it uses
> `FALLBACK_RUNTIME_PREFIX`.

see oasislinux#15: Support configurable PREFIX
michaelforney pushed a commit that referenced this issue Oct 5, 2023
see #15: Support configurable PREFIX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants