Skip to content

user/oniux: new package#4243

Open
breakgimme wants to merge 1 commit intochimera-linux:masterfrom
breakgimme:oniux
Open

user/oniux: new package#4243
breakgimme wants to merge 1 commit intochimera-linux:masterfrom
breakgimme:oniux

Conversation

@breakgimme
Copy link
Copy Markdown
Contributor

@breakgimme breakgimme commented May 19, 2025

Description

Oniux is a tool which provides easy to use Tor isolation for any Linux program with namespaces

example:

chiruno% curl ipv6.icanhazip.com
curl: (7) Failed to connect to ipv6.icanhazip.com port 80 after 7 ms: Could not connect to server
chiruno% oniux curl ipv6.icanhazip.com
2a0b:f4c0:16c:4::1

Checklist

Before this pull request is reviewed, certain conditions must be met.

The following must be true for all changes:

The following must be true for template/package changes:

  • I have read Packaging.md
  • I have built and tested my changes on my machine

The following must be true for new package submissions:

  • I will take responsibility for my template and keep it up to date

pkgver = "0.5.0"
pkgrel = 0
build_style = "cargo"
make_install_args = ["--locked"]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't think this is needed, or?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is, without it it errors out like so:
{C7F9920C-361A-43A0-A9C3-12F9E60CA255}

@breakgimme
Copy link
Copy Markdown
Contributor Author

updated to 0.6.0 and rebased

@breakgimme
Copy link
Copy Markdown
Contributor Author

updated to 0.6.1 and rebased

@jcgruenhage
Copy link
Copy Markdown
Member

Looks good to me except for being outdated. 0.7.0 is out now. If you update, I'll go ahead and merge this.

--- a/user/oniux/template.py
+++ b/user/oniux/template.py
@@ -1,18 +1,18 @@
 pkgname = "oniux"
-pkgver = "0.6.1"
+pkgver = "0.7.0"
 pkgrel = 0
 build_style = "cargo"
-make_install_args = ["--locked"]
 hostmakedepends = ["cargo-auditable", "cmake", "pkgconf", "rust-bindgen"]
 makedepends = ["openssl3-devel", "rust-std", "sqlite-devel", "zstd-devel"]
 pkgdesc = "Kernel-level Tor isolation for Linux applications"
 license = "MIT OR Apache-2.0"
 url = "https://gitlab.torproject.org/tpo/core/oniux"
 source = f"{url}/-/archive/v{pkgver}/oniux-v{pkgver}.tar.gz"
-sha256 = "de8387e2a53ea944d0f368a455661357e5c441ac2cc16b81fb5ce5fbb9d3f532"
+sha256 = "e84e9237e16b6f119ef2c02c05f94161fdd903727f9bf6038ccd2418228e8473"
 # no tests
 options = ["!check"]
 
 
-def post_install(self):
+def install(self):
+    self.install_bin(f"target/{self.profile().triplet}/release/oniux")
     self.install_license("LICENSE-MIT")

Built and tested it locally rebased on master with these changes applied, works just fine.

Co-authored-by: JC Grünhage <jan.christian@gruenhage.xyz>
@breakgimme
Copy link
Copy Markdown
Contributor Author

@jcgruenhage thanks
(double force push because forgot to do git add while figuring out how to add a co author smh...)

@jcgruenhage
Copy link
Copy Markdown
Member

fyi, I've not merged this yet because it's broken on big endian at the moment. zkcrypto/merlin#5 fixes this, and I've locally applied it and am testing it now. Running this with emulation for all architectures takes a bit 😅

@breakgimme
Copy link
Copy Markdown
Contributor Author

no worries, thanks for taking the time

@jcgruenhage
Copy link
Copy Markdown
Member

Final problem: it requires 64 bit atomics, which aren't available on ppc. See jcgruenhage@2d5a5ca#diff-f717e60fdd11fff150eb234e9caa2d36c27ab1968ec0731b7bfff5caa347da18R15-R16

With this being somewhat more complex now, I'll ask for feedback from another maintainer before getting this merged.

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

Successfully merging this pull request may close these issues.

3 participants