maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Flatpak on Sailfish OS (https://talk.maemo.org/showthread.php?t=100909)

coderus 2020-03-02 10:44

Re: Flatpak on Sailfish OS
 
cool, but any ideas? :D

rinigus 2020-03-02 10:57

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by coderus (Post 1565839)
cool, but any ideas? :D

I'll ask on porters channel if someone has any. Should be some missing property or lib in the environment. Would be able to start discussion bit later today...

rinigus 2020-03-02 12:25

Re: Flatpak on Sailfish OS
 
@coderus, would you mind to provide strace for some SFOS app? So, it would be clear which gralloc is used usually on XA2, for example.

edp17 2020-03-02 12:44

Re: Flatpak on Sailfish OS
 
What should be the libhybris version on the XA2? On mine that is 0.0.5.31-1.54.4
According to the Flatpak doc the supported devices should have >= 0.0.5.34

@coderus: Did you get the newer version of libhybris to your XA2 or you tried Flatpak with the same libhybris version that I have got on mine? I am a bit :confused: here. Thanks.

rinigus 2020-03-02 13:55

Re: Flatpak on Sailfish OS
 
@coderus, when you get to it, please generate also logs with HYBRIS_LD_DEBUG=1 in addition to strace.

So, I would like to get

* strace of regular SFOS app on XA2

* output of regular SFOS app on XA2 running with HYBRIS_LD_DEBUG=1 set, no strace for reading simplicity

* output of "flatpak run ... --env=HYBRIS_LD_DEBUG=1 ..." , no strace for reading simplicity

It is possible that I am missing some specific libs in https://github.com/sailfishos-flatpa...tension-hybris and we have to figure out which.

coderus 2020-03-02 15:47

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by edp17 (Post 1565842)
What should be the libhybris version on the XA2? On mine that is 0.0.5.31-1.54.4
According to the Flatpak doc the supported devices should have >= 0.0.5.34

@coderus: Did you get the newer version of libhybris to your XA2 or you tried Flatpak with the same libhybris version that I have got on mine? I am a bit :confused: here. Thanks.

i own future

Quote:

Originally Posted by rinigus (Post 1565845)
@coderus, when you get to it, please generate also logs with HYBRIS_LD_DEBUG=1 in addition to strace.

So, I would like to get

* strace of regular SFOS app on XA2

* output of regular SFOS app on XA2 running with HYBRIS_LD_DEBUG=1 set, no strace for reading simplicity

* output of "flatpak run ... --env=HYBRIS_LD_DEBUG=1 ..." , no strace for reading simplicity

It is possible that I am missing some specific libs in https://github.com/sailfishos-flatpa...tension-hybris and we have to figure out which.

sfos strace: https://gist.github.com/CODeRUS/3db4...6ccc40c689612a
sfos hybris debug: https://gist.github.com/CODeRUS/b988...280f2ce9b8175d
flatpak hybris debug: https://gist.github.com/CODeRUS/7bc3...69a4d8a68f0864

rinigus 2020-03-02 16:28

Re: Flatpak on Sailfish OS
 
@coderus: thanks a lot!

Do you have such folders/files as /plat_property_contexts and /nonplat_property_contexts in /?

It looks like properties (Android) are not loaded properly and that leads to wrong gralloc lib loaded in Flatpak.

Please send "ls /"

If those folders are indeed there, you can test by running flatpak with extra arguments:

--filesystem=/plat_property_contexts:ro --filesystem=/nonplat_property_contexts:ro

coderus 2020-03-02 16:47

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1565848)
@coderus: thanks a lot!

Do you have such folders/files as /plat_property_contexts and /nonplat_property_contexts in /?

It looks like properties (Android) are not loaded properly and that leads to wrong gralloc lib loaded in Flatpak.

Please send "ls /"

If those folders are indeed there, you can test by running flatpak with extra arguments:

--filesystem=/plat_property_contexts:ro --filesystem=/nonplat_property_contexts:ro

files are there for sure:
Code:

[root@Sailfish nemo]# ls -la /
total 336
drwxr-xr-x  32 root    root          4096 Feb 28 21:47 .
drwxr-xr-x  32 root    root          4096 Feb 28 21:47 ..
drwxr-xr-x    3 root    root          4096 May 22  2019 .config
-rw-r--r--    1 root    root            0 Sep  6  1970 .fs-resized
drwxr-xr-x    2 root    root          4096 Feb 28 21:43 bin
drw-------    2 root    root          4096 Feb 28 21:45 boot
dr-xr-x---    3 bluetoot net_bt      16384 Jan  1  1970 bt_firmware
lrwxrwxrwx    1 root    root            50 Feb 16 16:50 bugreports -> /data/user_de/0/com.android.shell/files/bugreports
lrwxrwx---    1 system  cache          11 Feb 16 16:50 cache -> /data/cache
drwxr-xr-x    4 root    root            0 Jan  1  1970 config
lrwxrwxrwx    1 root    root            17 Feb 16 16:50 d -> /sys/kernel/debug
drwxrwx--x  42 system  system        4096 Feb 16 17:52 data
lrwxrwxrwx    1 root    root            23 Feb 16 16:50 default.prop -> system/etc/prop.default
drwxr-xr-x  24 root    root          7860 Mar  2 19:43 dev
drwxr-xr-x    4 root    root          4096 Feb 16 16:50 dsp
drwxr-xr-x  75 root    root          4096 Mar  2 19:43 etc
drwxr-xr-x    2 root    root          4096 May 22  2019 fimage
dr-xr-x---    3 system  system      16384 Jan  1  1970 firmware
drwxr-xr-x  12 root    root          4096 Feb 28 21:47 home
-rwxr-xr-x    1 root    root        12406 Feb 11 14:08 init-debug
-rw-r--r--    1 root    root          1522 Feb 16 17:10 init.environ.rc
-rw-r--r--    1 root    root            98 Feb 16 17:10 init.extraenv.armeabi-v7a.rc
-rw-r--r--    1 root    root        29945 Feb 16 17:10 init.rc
-rw-r--r--    1 root    root          1909 Feb 16 17:10 init.recovery.pioneer.rc
-rw-r--r--    1 root    root          7874 Feb 16 17:10 init.usb.configfs.rc
-rw-r--r--    1 root    root          5721 Feb 16 17:10 init.usb.rc
drwxr-xr-x    7 root    root          4096 Feb 28 21:45 lib
drwx------    2 root    root        16384 May 22  2019 lost+found
drwxr-xr-x    2 root    root          4096 Feb 15 22:17 media
drwxrwxr-x  10 root    system        220 Mar  2 19:43 mnt
-rw-r--r--    1 root    root        18267 Feb 16 16:59 nonplat_file_contexts
-rw-r--r--    1 root    root          103 Feb 16 16:59 nonplat_hwservice_contexts
-rw-r--r--    1 root    root          861 Feb 16 16:59 nonplat_property_contexts
-rw-r--r--    1 root    root            95 Feb 16 16:59 nonplat_seapp_contexts
-rw-r--r--    1 root    root          141 Feb 16 16:59 nonplat_service_contexts
drwxr-xr-x    8 root    root          4096 Mar  5  2019 odm
drwxr-xr-x    5 root    root          4096 Feb 15 22:17 opt
drwxrwx--x  20 system  system        4096 May 22  2019 persist
-rw-r--r--    1 root    root        20703 Feb 16 16:59 plat_file_contexts
-rw-r--r--    1 root    root          5768 Feb 16 16:59 plat_hwservice_contexts
-rw-r--r--    1 root    root          4341 Feb 16 16:59 plat_property_contexts
-rw-r--r--    1 root    root          965 Feb 16 16:59 plat_seapp_contexts
-rw-r--r--    1 root    root        12996 Feb 16 16:59 plat_service_contexts
dr-xr-xr-x  770 root    root            0 Jan  1  1970 proc
drwxr-x---    3 root    root          4096 Feb 15 22:17 root
drwxr-xr-x  34 root    root          780 Mar  2 19:43 run
drwxr-xr-x    2 root    root          4096 Feb 28 21:45 sbin
lrwxrwxrwx    1 root    root            21 Feb 16 16:50 sdcard -> /storage/self/primary
drwxr-xr-x    2 root    root          4096 Feb 15 22:17 srv
dr-xr-xr-x  13 root    root            0 Sep  6  1970 sys
drwxr-xr-x    9 root    root          4096 Oct  1 14:30 system
drwxrwxrwt  14 root    root          460 Mar  2 19:44 tmp
-rw-r--r--    1 root    root          5222 Feb 16 17:10 ueventd.rc
drwxr-xr-x  12 root    root          4096 Feb 28 21:42 usr
drwxr-xr-x  17 root    root          4096 Feb 28 21:42 var
drwxr-xr-x    8 root    root          4096 Oct  1 14:30 vendor
-rw-r--r--    1 root    root          524 Feb 16 16:50 verity_key
-rw-r--r--    1 root    root          136 Feb 16 16:59 vndservice_contexts

with exttra arguments added angelfish started successfully!

rinigus 2020-03-02 18:22

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by coderus (Post 1565849)
files are there for sure:

with exttra arguments added angelfish started successfully!

Excellent news! Sorry, looking at the files I am sure I asked earlier already.

You could use the same arguments with flatpak-runner (before org.kde.mobile.angelfish) until I fix it in the source. Hopefully tonight, but cannot promise as there is a merge request I am finishing for Angelfish.

coderus 2020-03-02 18:45

Re: Flatpak on Sailfish OS
 
cool! regarding angelfish - do you want to distribute offline .flatpak installers of your nightly builds?)


All times are GMT. The time now is 12:22.

vBulletin® Version 3.8.8