Nitrux / maui-shell

Maui Shell is a convergent shell for desktops, tablets, and phones.
GNU Lesser General Public License v3.0
1.49k stars 50 forks source link

cask fails to start on postmarketOS #35

Closed u8l-git closed 2 years ago

u8l-git commented 2 years ago

Describe the bug I tried to run cask on postmarketOS oneplus6 but it fails to start.

mipmos:~$ cat cask.log 
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
QSocketNotifier: Can only be used with threads started with QThread
CREATING INSTANCE OF MAUI APP
3 96 160.561 QRect(0,0 432x912) QSize(432, 912) QSize(432, 912)
QCommandLineParser: already having an option named "h"
QCommandLineParser: already having an option named "help-all"
QCommandLineParser: already having an option named "v"
Screen "DSI-1" QRect(0,0 432x912) QSizeF(68, 145) DPI: log 96 phys 160.561 DPR 3
QObject: Cannot create children for a parent that is in a different thread.
(Parent is QGuiApplication(0xfffffda8a860), parent's thread is QThread(0xffff8e93f3a0), current thread is QThread(0xffff8e6878a0)
QObject::installEventFilter(): Cannot filter events for objects in a different thread.
QQmlApplicationEngine failed to load component
qrc:/qml/main.qml:24:5: Type Screen unavailable
qrc:/qml/Screen.qml:113:21: Type Dock unavailable
qrc:/qml/shell/tasksbar/Dock.qml:92:5: Type Launcher unavailable
qrc:/qml/shell/tasksbar/Launcher.qml:51:9: Cannot assign to non-existent property "titleIconSource"
Segmentation fault

To Reproduce Steps to reproduce the behavior:

  1. checkout the maui branch for pmaport
  2. change the content from pmaport/temp/maui-shell/APKBUILD that it looks like following
    
    # Contributor:
    # Maintainer:
    pkgname=maui-shell
    pkgver=0.1
    pkgrel=0
    pkgdesc="Maui Shell is a convergent shell for desktops, tablets, and phones"
    url="https://nxos.org/maui"
    arch="aarch64"
    license="LGPL-3.0"
    depends="mauikit"
    makedepends="
    kded
    kdbusaddons-dev
    kconfig-dev
    kdoctools-dev
    kcoreaddons-doc
    prison-dev
    kunitconversion-dev
    kitemmodels-dev
    kinit-dev
    ktexteditor-dev
    krunner-dev
    knotifyconfig-dev
    kpeople-dev
    kactivities-dev
    kactivities-stats-dev
    kservice-dev
    karchive-dev
    kcrash-dev
    kdeclarative-dev
    kglobalaccel-dev
    kwallet-dev
    kwayland-dev
    kded-dev
    polkit-dev
    polkit-qt-1-dev
    appstream-dev
    kdesu-dev
    phonon-dev
    kcoreaddons-dev
    ki18n-dev
    kio-dev
    kidletime-dev
    knotifications-dev
    qt5-qtsvg-dev
    qt5-qtwayland-dev
    qt5-qtbase-dev
    qt5-qtdeclarative-dev
    qt5-qtquickcontrols2-dev
    qt5-qtxmlpatterns-dev
    qt5-qttools-dev
    mauikit-dev
    mauikit-filebrowsing-dev
    cmake
    extra-cmake-modules
    "
    install=""
    subpackages=""
    source="${pkgname}-master.tar.gz::https://github.com/Nitrux/maui-shell/archive/refs/heads/master.tar.gz
    "
    builddir="$srcdir/${pkgname}-master"

build() { cmake -B build \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_PREFIX_PATH="/usr/lib/cmake/MauiKit;/usr/lib/cmake/MauiKitFileBrowsing" . make -C build -j 1 }

package() { DESTDIR="$pkgdir" make -C build install }

sha512sums="3cc184d204461c745189fdcbedd305964e89e62bd5a455b496ce93eaa9a2c5fc08bfd2cad306d9e055d4817f6c8ee2639dd1794778420c8413cd727ba57bdf78 maui-shell-master.tar.gz"


3. change the content from pmaport/main/postmarketos-ui-maui/APKBUILD that it looks like following

Contributor:

Maintainer:

pkgname=postmarketos-ui-maui pkgver=1 pkgrel=0 pkgdesc="Convergent Qt shell built with Mauikit framework" url="https://nxos.org/maui" arch="aarch64" license="LGPL-3.0" options="!check" depends=" maui-shell dnsmasq elogind tinydm tinydm-openrc postmarketos-base-ui networkmanager modemmanager modemmanager-openrc xorg-server " _pmg_recommends=" discover " install="$pkgname.post-install $pkgname.post-upgrade" source=""

package() { mkdir -p $pkgdir }


4. build the package with `pmbootstrap build postmarketos-ui-maui --force --strict`
5. once it build successfully install it on the oneplus6 with `pmbootstrap sideload --host 172.16.42.1 --port 22 --user <user> --arch aarch64 postmarketos-ui-maui`
6. run `cask` on the phone terminal

**Expected behavior**

the maui-session to start

**Desktop (please complete the following information):**
 - OS: postmarketOS
 - Version [edge]
u8l-git commented 2 years ago

I managed to fix this by building the mauikit and mauikit-filebrowsing in the version 2.1.2 from the alpine linux aport...