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

xdeb namespace/sysroot for Void #30

Open
thetredev opened this issue Jul 25, 2024 · 0 comments
Open

xdeb namespace/sysroot for Void #30

thetredev opened this issue Jul 25, 2024 · 0 comments

Comments

@thetredev
Copy link

This one might be a huge one to implement, and it might not even be possible at all.

To overcome all of the "package XYZ might break Void when installed via xdeb" could probably maybe fixed or worked around using a completely separate namespace in the sense of what NixOS does: layers/snapshots you can jump around to. We don't need the snapshot and jumping around functionality, just the "the package isn't installed to your actual sysroot" functionality.

That namespace could be located under /usr/local/xdeb, for example. This directory would represent the "virtual sysroot" for xdeb. So we'd end up with the following structure of an arbitrary package package1:

  • /usr/local/xdeb/package1/etc/package1/my-config-file.conf
  • /usr/local/xdeb/package1/usr/bin/package1

Installing packages to that namespace location might be fairly simple, however the hard part would most likely be to be able to execute installed packages under Void this way. I guess the package1 binary from the example above might not be able to find its config file under the namespace location. A workaround might be to link everything from the actual Void Linux sysroot (/) to the namespace location, like:

  • /etc/package1/usr/local/xdeb/package1/etc/package1
  • /usr/bin/package1/usr/local/xdeb/package1/usr/bin/package1

But... while all this might look and sound great, we might end up breaking packages in the process.

Any thoughs?

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

1 participant