Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Sep 14 10:52
    @xeffyr banned @httpRooLz
  • Jan 20 16:28
    @xeffyr banned @sdrausty
RalfWerner
@RalfWerner
Gigaset: ARM and Huawei: AArch64 !
Leonid Plyushch
@xeffyr
And it doesn't work on both ?
RalfWerner
@RalfWerner
as above descibed ARM: music only and AArch64: nothing until ^c
Leonid Plyushch
@xeffyr

nothing until ^c

Even more strange.
More like OS-specific problem. Otherwise binary will have consistent behaviour across all devices with same arch.

ARM is untested, will do this later.
RalfWerner
@RalfWerner

I've now run pkg up again (affects many x11 packages) and mpv-x on AARCH64 now works like on ARM (no video just music and stop after 11 seconds) in logcat is:

--------- beginning of system
11-25 13:19:35.111 25893 25893 V ActivityThread: Finishing stop of ActivityRecord{e7b2128 token=android.os.BinderProxy@661d255 {com.termux/com.termux.app.TermuxActivity}}
11-25 13:20:00.913 25893 25893 V ActivityThread: Handle window ActivityRecord{e7b2128 token=android.os.BinderProxy@661d255 {com.termux/com.termux.app.TermuxActivity}} visibility: false
11-25 13:26:04.960 25893 25893 V ActivityThread: Finishing stop of ActivityRecord{e7b2128 token=android.os.BinderProxy@661d255 {com.termux/com.termux.app.TermuxActivity}}
11-25 13:26:14.416 25893 25893 V ActivityThread: Handle window ActivityRecord{e7b2128 token=android.os.BinderProxy@661d255 {com.termux/com.termux.app.TermuxActivity}} visibility: false
11-25 13:26:25.113 25893 25893 W ViewRootImpl[Toast]: EGLdebug relayoutWindow Surface isSurface(name=null)  (appName =com.termux) ( mSurfaceControllerIsValid =false) (mNativeObject  =0)/@0xcd5c531,viewVisibility is0
11-25 13:26:25.133 25893 25893 W ViewRootImpl[Toast]: EGLdebug relayoutWindow Surface isSurface(name=null)  (appName =com.termux) ( mSurfaceControllerIsValid =true) (mNativeObject  =71c6cb9000)/@0xcd5c531,relayoutResult is7
11-25 13:26:43.133 25893 25893 W ViewRootImpl[Toast]: EGLdebug relayoutWindow Surface isSurface(name=null)  (appName =com.termux) ( mSurfaceControllerIsValid =false) (mNativeObject  =0)/@0xfe7b34c,viewVisibility is0
11-25 13:26:43.157 25893 25893 W ViewRootImpl[Toast]: EGLdebug relayoutWindow Surface isSurface(name=null)  (appName =com.termux) ( mSurfaceControllerIsValid =true) (mNativeObject  =71d13eb000)/@0xfe7b34c,relayoutResult is7
11-25 13:27:43.241 25893 25893 V ActivityThread: Finishing stop of ActivityRecord{e7b2128 token=android.os.BinderProxy@661d255 {com.termux/com.termux.app.TermuxActivity}}
11-25 13:28:50.873 25893 25893 V ActivityThread: Handle window ActivityRecord{e7b2128 token=android.os.BinderProxy@661d255 {com.termux/com.termux.app.TermuxActivity}} visibility: false
11-25 13:29:53.050 25893 25893 V ActivityThread: Finishing stop of ActivityRecord{e7b2128 token=android.os.BinderProxy@661d255 {com.termux/com.termux.app.TermuxActivity}}
--------- beginning of main
11-25 13:32:43.331 26058 26058 W InputMethodManager: startInputReason = 8
11-25 13:32:43.365 26058 26058 V ActivityThread: Finishing stop of ActivityRecord{ef2d32f token=android.os.BinderProxy@c645c3f {com.termux.x11/com.termux.x11.MainActivity}}
11-25 13:33:51.074 26058 26058 V ActivityThread: Handle window ActivityRecord{ef2d32f token=android.os.BinderProxy@c645c3f {com.termux.x11/com.termux.x11.MainActivity}} visibility: false
11-25 13:35:22.886 26058 26058 I Choreographer: Skipped 3341 frames!  The application may be doing too much work on its main thread.

does that help with bug fixing?

Orkspalter
@Orkspalter
Ladys and gents, i want to give a big thank you for your wonderful work on termux and keepin it fresh with all those packages and updates!! Thank you for the clangd and ccls packages, i am having so much fun using them with neovim and coc, feels like having real little IDE on my phone!!
Orkspalter
@Orkspalter
Been playing arround with jupyter notebook and also installed jupyter lab with runs fine with octave, gnuplot and xonsh kernels. As i am studying computer science having c++ courses in the 2 semester, i stumbled across xeus cling, a c++ kernel for jupyter mainly for learning and visualizing data when coding with c++. Any chance to get that as a package?
Jupyter Lab has a extension manager for installing add ons but after installing some it recommends to build lab again which throws an error. As it seems, the nodejs version is too old even if it isn't?
[LabBuildApp] JupyterLab 1.2.3
[LabBuildApp] Building in /data/data/com.termux/files/usr/share/jupyter/lab
[LabBuildApp] Building jupyterlab assets (build:prod:minimize)
An error occured.
RuntimeError: npm dependencies failed to install
See the log file for details: /data/data/com.termux/files/usr/tmp/jupyterlab-debug-ltcdufre.log
Orkspalter
@Orkspalter
' [LabBuildApp] Building in /data/data/com.termux/files
2 [LabBuildApp] Yarn configuration loaded.
3 [LabBuildApp] Node v13.0.0
4
5 [LabBuildApp] Building jupyterlab assets (build:prod:
6 [LabBuildApp] > node /data/data/com.termux/files/usr/
7 [LabBuildApp] yarn install v1.15.2
8 [1/5] Validating package.json...
9 [2/5] Resolving packages...
10 [3/5] Fetching packages...
11 error An unexpected error occurred: "EACCES: permissi
12 info If you think this is a bug, please open a bug re
13 info Visit https://yarnpkg.com/en/docs/cli/install fo
14
15 [LabBuildApp] npm dependencies failed to install
16 [LabBuildApp] Traceback (most recent call last):
17
18 [LabBuildApp] File "/data/data/com.termux/files/usr
19 yield
20
21 [LabBuildApp] File "/data/data/com.termux/files/usr
22 build(name=self.name, version=self.version, '
   24 [LabBuildApp]   File "/data/data/com.termux/files/usr
   25     return handler.build(name=name, version=version,
   26
   27 [LabBuildApp]   File "/data/data/com.termux/files/usr
   28     raise RuntimeError(msg)
   29
   30 [LabBuildApp] RuntimeError: npm dependencies failed t
   31
   32 [LabBuildApp] Exiting application: JupyterLab
Excuse me...one more time...
```
1 [LabBuildApp] Building in /data/data/com.termux/files 2 [LabBuildApp] Yarn configuration loaded. 3 [LabBuildApp] Node v13.0.0 4 5 [LabBuildApp] Building jupyterlab assets (build:prod: 6 [LabBuildApp] > node /data/data/com.termux/files/usr/ 7 [LabBuildApp] yarn install v1.15.2 8 [1/5] Validating package.json... 9 [2/5] Resolving packages... 10 [3/5] Fetching packages... 11 error An unexpected error occurred: "EACCES: permissi 12 info If you think this is a bug, please open a bug re 13 info Visit https://yarnpkg.com/en/docs/cli/install fo 14 15 [LabBuildApp] npm dependencies failed to install 16 [LabBuildApp] Traceback (most recent call last): 17 18 [LabBuildApp] File "/data/data/com.termux/files/usr 19 yield 20 21 [LabBuildApp] File "/data/data/com.termux/files/usr 22 build(name=self.name, version=self.version, 23 24 [LabBuildApp] File "/data/data/com.termux/files/usr 25 return handler.build(name=name, version=version, 26 27 [LabBuildApp] File "/data/data/com.termux/files/usr 28 raise RuntimeError(msg) 29 30 [LabBuildApp] RuntimeError: npm dependencies failed t 31 32 [LabBuildApp] Exiting application: JupyterLab ~
Fredrik Fornwall
@fornwall
hi and welcome to the weekly chat!
Leonid Plyushch
@xeffyr
Hi
GrimlerBot
@GrimlerBot
Grimler Hi
Fredrik Fornwall
@fornwall
"We have one month left before we officially closing support for Android 5 branch.
  • Should we apply latest available/possible updates and then freeze branches and leave it only for bugfixes before support is completely dropped ? - The idea is to leave branch with minimum issues to have most packages usable even without support.
  • Due to change in termux-elf-cleaner, all packages should be rebuilt. See termux/termux-packages#4287 for related issue.
  • After rebuilding, the package "command-not-found" should be updated."
I see that a lot of packages have been bumped - I'm currently rebuilding
anything more to say about the android-5 branch?
GrimlerBot
@GrimlerBot
Grimler I need to bump game-packages and science-packages then as well, should we aim at merging an updated command-not-found next Sunday?
Leonid Plyushch
@xeffyr

should we aim at merging an updated command-not-found next Sunday?

Yes. We should do it once packages are rebuilt.

Fredrik Fornwall
@fornwall
👍

we should probably switch the docker image on the android-5 branch, right?

to something like termux/package-builder-android-5

so we can update the docker image on master without having to adopt the android-5 branch to it
Leonid Plyushch
@xeffyr
Yes. Or just use different tag.
Fredrik Fornwall
@fornwall

aaand, switching from looking back to looking forward :)

"Android 10: experiment with embedding packages into native lib directory failed.

  • Android package installer strips away subdirectories and files not ending with '*.so' making that approach useless even for binaries (with exception when they are named like "libbinary.so").
  • Proot'ed shell is now the best solution, less reliable but easy and working. It also won't require to drastically change package distribution scheme. As side effect, proot can fix unreadable root directory and few FHS-related problems.
  • Sample Android 10 app (works with API 29 but still incomplete): https://github.com/xeffyr/termux-app/releases/tag/v0.84-prooted2"
Leonid Plyushch
@xeffyr
Generally, it is possible to embed package into APK file but will require a lot changes to shells & possibly other things.
Fredrik Fornwall
@fornwall
and not supporting creating executables by compiling code on-device, right?
Leonid Plyushch
@xeffyr
There more issues like impossibility to properly package things like python.
We cannot have symlinks in jni dir too.
Everything that does not look a file or not named like lib{name}.so is stripped away during installation.
Fredrik Fornwall
@fornwall
right, so proot is probably the best way forward
Leonid Plyushch
@xeffyr
You may try APK from https://github.com/xeffyr/termux-app/releases/tag/v0.84-prooted2 - it is built with API 29 and works on Android 10.
No significant changes needed to packages.
Fredrik Fornwall
@fornwall
the apk supports all arches (so I can try it in a i686 or x86_64 emulator)?
Leonid Plyushch
@xeffyr
Should support all arches - I tried on aarch64 Android 8 and i686 Android 10.
ARM & x86_64 untested
Fredrik Fornwall
@fornwall
nice! trying it out now
so ensuring a stable&working proot is a top priority then
Leonid Plyushch
@xeffyr
As I know, proot doesn't work properly on some devices.
Fredrik Fornwall
@fornwall
I'll try to get familiar with the proot code base. let's talk to michalbednarski (who have maintained termux/proot) if he has any opinions or plans
and we could let it be known that proot seems to be the future base for termux, so everyone interested should help out with it

it's a rather complicated and special project...

on the other hand I think it's rather interesting, and work you put into understanding gives valuable insights for linux in general, not just for termux&android

GrimlerBot
@GrimlerBot
Grimler Michal gave some insight on proot with API 29 in https://github.com/termux/termux-app/issues/1072#issuecomment-556288249, though mostly related to "isolatedProcesses"
Wiktor
@wisniewski94
Hey @Orkspalter, would you share neovim config files? I am trying to get LS for JS but no luck
Orkspalter
@Orkspalter
@wisniewski94 Have you checked out COC for Neovim ? Its a great way to get almost IDE features in nvim and theres a coc-javascript extension aswell
RalfWerner
@RalfWerner
My first test of prooted2 and question about it here