Closed 05nelsonm closed 9 months ago
Error when building openssl
The main
branch of tor-browser-build
does not support linux-arm builds yet (although we've started adding the target to rbm.conf
).
But there is a branch being worked on, which you can try:
Thanks @boklm !
Will hold off on this issue then until it gets merged into main
Added the blocked
label until https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/merge_requests/492 is merged.
Would this support linux aarch64 platforms?
Would this support linux aarch64 platforms?
AFAIK, it would for linux, yes.
macOS aarch64
is already supported via the kmp-tor-binary-macosarm64
library, and available in the kmp-tor
project. The naming is different because Kotlin Multiplatform calls it arm64
which is what I followed when naming the module. You can see HERE though that the tor-browser-build
project is in fact building aarch64
for macOS.
Ackhually, I'm seeing armhf
in the main
branch RBM build script HERE for the linux-arm
run.
Will chat up the Matrix channel about this.
@craigraw , if I opened up the PlatformInstaller class such that you could provide your own binary resources, would that be malleable enough for your project(s) such that you can provide Tor binaries for architectures that aren't currently supported by kmp-tor-binary
?
Yes, I think this would work well. The binaries I am currently using to support Linux aarch64 appear to correspond to the ones in kmp-tor-binary
, albeit earlier versions of Tor, libcrypto
, libevent
and libssl
. I'd be happy to change the packaging of these binaries to more closely match kmp-tor-binary
if that helps. Being able to specify the custom binary as an alternative dependency would be ideal, so it can just be swapped out as the official build becomes available.
Yes, I think this would work well. The binaries I am currently using to support Linux aarch64 appear to correspond to the ones in
kmp-tor-binary
, albeit earlier versions of Tor,libcrypto
,libevent
andlibssl
. I'd be happy to change the packaging of these binaries to more closely matchkmp-tor-binary
if that helps. Being able to specify the custom binary as an alternative dependency would be ideal, so it can just be swapped out as the official build becomes available.
Will get it done :muscle:
See #62
@craigraw
kmp-tor release 4.7.13-1-1.4.0 now includes the ability to package and load your own binary resources.
Both Java and Kotlin javaFX
samples have been updated as an example.
Commits you can reference:
The Java section of kmp-tor-binary README has also been updated with an example.
Thanks @05nelsonm. I've started working on this, will add a separate issue with a problem I've run into.
Closing this issue. Work for supporting aarch64
for linux-libc
and linux-android
(Termux and Android runtime) is complete for Jvm/Js and will roll out with kmp-tor
2.0.0
.
See https://github.com/05nelsonm/kmp-tor-binary/issues/85#issuecomment-1819747564
tor-browser-build
now has reproducible builds for arm../rbm/rbm build tor --target release --target torbrowser-linux-arm
https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/blob/main/rbm.conf#L391