Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Sep 24 2020 17:29
    @xeffyr banned @zhonjarlby
  • Aug 31 2020 07:55
    @xeffyr banned @HackGod-RS
  • Aug 26 2020 10:48
    @xeffyr banned @Tisaba
  • Jun 21 2020 13:11
    @xeffyr banned @irem347
  • Jun 14 2020 09:25
    @xeffyr banned @Rishabhjn7102
  • Jun 14 2020 09:25
    User @xeffyr unbanned @Anarkista
  • Jun 02 2020 10:29
    @xeffyr banned @Anarkista
  • Dec 22 2019 14:04
    User @xeffyr unbanned @httpRooLz
  • Dec 22 2019 14:04
    User @xeffyr unbanned @sdrausty
  • Sep 14 2019 10:52
    @xeffyr banned @httpRooLz
  • Jan 20 2019 16:28
    @xeffyr banned @sdrausty
GrimlerBot
@GrimlerBot
<Archenoth> The game in question was a closed source but "freely distributable" game that has a statically compiled Raspberri Pi version that can run on arm and aarch64 phones with a wrapper, and a version for i386 too
<Archenoth> And part of the reason for the second part of my question is because I can release the wrapper as its own GPL package that downloads the binary
<Archenoth> (Though I would need to double-check that is okay with the author of the game)
<Archenoth> Since that would be its own package with 100% free software in it, I wasn't 100% sure if that would be an acceptable workaround, or if the fact it's acting as a proxy for a nonfree game would mean it wouldn't be a good idea
<Archenoth> (The game in question is ADOM, which is a pretty popular free, but closed-source Roguelike)
Leonid Pliushch
@xeffyr
Archenoth: last thing - it shouldn't cause "bad system call" errors when executed on Android 8+. If binary is for RPI, then it is probably compiled with GNU libc or Musl which are not compatible with Android.
GrimlerBot
@GrimlerBot
<Archenoth> That's actually exactly what this wrapper does
Leonid Pliushch
@xeffyr
Ok
GrimlerBot
@GrimlerBot
<Archenoth> It ptraces a couple syscalls that would otherwise get SECCOMP'd
<Archenoth> And since it's statically compiled, the rest of the library issues that would normally stop this from working are actually completely absent
<Archenoth> The wrapper, strictly speaking isn't even required since you can use proot with it directly to get past seccomp, but it's a heck of a lot nicer on battery life
Prakhar Shukla
@imprakharshukla
@xeffyr Can you elaborate on the play store or basically package installation userflow with both the ways so I can add that? I'm free for a couple of hours.
Leonid Pliushch
@xeffyr
Refer to this:
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=net.termux.{package name}")));
As I wrote before, installing packages from Google Play is basically opening a Google Play page with intent.
You can't do more, i.e. force Google Play to automatically install package.
Prakhar Shukla
@imprakharshukla
@xeffyr I know I how I can use intents but I was asking the userflow i.e. will the user decide every time if they want to install the package from PS or the repo?
or will there be a settings page or something similar
Leonid Pliushch
@xeffyr
Something like pkg install --source google-play package-name. Option source should be passed as extra data in am startservice ....
Option --source may accept either google-play (likely will be default for Google Play Termux build) or just HTTP(s) URL.
Later pkg script can be extended to read source from environment variable or config file.
Prakhar Shukla
@imprakharshukla
@xeffyr The package should be download to the root of /data/data/com.termux/cache/ ?
or any sub-folder?
Leonid Pliushch
@xeffyr
Better in subfolder, like /data/data/com.termux/cache/pkg.
Prakhar Shukla
@imprakharshukla
@xeffyr Pushed some changes. Also do read the associated comment.
Leonid Pliushch
@xeffyr
@fornwall Could you upload the v0.99 update for Termux app?
to Google Play?
GrimlerBot
@GrimlerBot
<live_the_dream> odd number is android 5 if i remember
<live_the_dream> ?
Leonid Pliushch
@xeffyr
ive_the_dream: not anymore. Android 5 no longer receives app updates.
tomty89
@tomty89
@xeffyr Does f-droid only try to build once for a version? Or is there a way to make it retry?
Hmm, or is everything handled manually like a distro...
ihsakashi
@ihsakashi
From what I understand, moving to APK style package manager will make installing dependencies super tedious
Could there be a flag to install packages in background with Sudo? Like Lucky patcher?
We can even set termux as device manager but I don't see that happening
Leonid Pliushch
@xeffyr

Could there be a flag to install packages in background with Sudo?

We can do that, but not now.

We can even set termux as device manager but I don't see that happening

That won't happen.

GrimlerBot
@GrimlerBot
<live_the_dream> rust update is broken
<live_the_dream> can't find crate for std
<live_the_dream> so rust package is mising rustc
Prakhar Shukla
@imprakharshukla
@xeffyr Any updates for the PR?
Leonid Pliushch
@xeffyr
ihsakashi
@ihsakashi
Yea that sounded super unlikely
So i've got termux bootstrap on android itself, everything works it installs from ramdisk.
Only problem is apt runs with the no root patch. so now i've added an override option to generate-bootstraps.sh and plan to add apt myself
last thing, if i remove the patch from termux-packages is that all i have to do?
i still dont understand how patching works in termux..
Leonid Pliushch
@xeffyr

Only problem is apt runs with the no root patch. so now i've added an override option to generate-bootstraps.sh and plan to add apt myself

Bootstraps and no-root apt patch have no relation. One can be changed without other and vice-versa. Apt is already part of bootstrap installation.

last thing, if i remove the patch from termux-packages is that all i have to do?

  1. Remove patch.
  2. Compile package and copy to device.
  3. Install package with dpkg -i.
ihsakashi
@ihsakashi
ah so all i have to do is remove the patch!
that seemed too easy..
ihsakashi
@ihsakashi
yea the bootstrap part i wanted to replace the apt included so after i compile im making it include my apt