qt5-styleplugins Thema ist als GELÖST markiert

User helfen sich hier bei der Manjaro XFCE Edition!
Gesperrt

Themen Author
Allfred
Forum Gott
Forum Gott
Beiträge: 440
Registriert: Samstag 10. November 2018, 16:50
GPU:
Kernel:
Desktop-Variante:
GPU Treiber:
Hat sich bedankt: 66 Mal
Danksagung erhalten: 11 Mal

qt5-styleplugins

#1

Beitrag von Allfred »

Mit dem letzten Update 21.2.3. gibts ein keines Problem: (nicht Pamac, ich nutze Trizen)
Während die qt4 Dateien aus dem AUR auf anderen Rechnern nach einigen Rödeleien umgestellt sind,
habe ich bei einem Rechner ein qt5 Problem:
Unable to build qt5-styleplugins - makepkg exited with code: 4

Code: Alles auswählen

:: Cloning AUR package: qt5-styleplugins

--------------------------------------------------------------------------------
:: Content of /tmp/trizen-o990/qt5-styleplugins/PKGBUILD
--------------------------------------------------------------------------------

# Maintainer: Eli Schwartz <eschwartz@archlinux.org>

pkgname=qt5-styleplugins
pkgver=5.0.0.20170311
_commit=335dbece103e2cbf6c7cf819ab6672c2956b17b3
pkgdesc='Additional style plugins for Qt5'
pkgrel=26
arch=('x86_64' 'aarch64')
url="https://github.com/qt/qtstyleplugins"
license=('LGPL')
depends=('qt5-base' 'gtk2')
source=(
    "${pkgname}-${_commit}.tar.gz::${url}/archive/${_commit}.tar.gz"
    "0001-fix-build-against-Qt-5.15.patch"
    "0002-fix-gtk2-background.patch"
)
sha512sums=(
    'e8c2d0e9c6b0a47cab04ffd2e9384606638905b63a7c1580f9b629bbcc84ebff19743363ffee3dbd31c3de1dcda684211ad3052932b5aa0081e529afd9cbb14d'
    'f5cedadceb7c4243ba69b5041c6c524223ce742ec9c2c483e706f31e32e9e03e4efb6ed54fa2aada867a7c0145a8f3ec1193377d177c6c77066b5f3ec191e9ce'
    'c39b468c93eaada7d49df9547627fbf91d50292523566ef93287ce0e958b29e6c3635f6e77ad42c4f449a062cc63b68e9f2a24c89524165649f776d205fb5382'
)

prepare() {
    cd qtstyleplugins-${_commit}

    for p in "$srcdir"/*.patch; do
        patch -p1 < "$p"
    done
}

build() {
    cd qtstyleplugins-${_commit}

    qmake PREFIX='/usr' \
        CONFIG+='nostrip' \
        QMAKE_CFLAGS_RELEASE="$CFLAGS" \
        QMAKE_CXXFLAGS_RELEASE="$CXXFLAGS"
    make
}

package() {
    cd qtstyleplugins-${_commit}

    make INSTALL_ROOT="${pkgdir}" install
}

=>> Edit qt5-styleplugins/PKGBUILD? [y/N]: 
--------------------------------------------------------------------------------
:: Content of /tmp/trizen-o990/qt5-styleplugins/0001-fix-build-against-Qt-5.15.patch
--------------------------------------------------------------------------------

From 335dbece103e2cbf6c7cf819ab6672c2956b17b3 Mon Sep 17 00:00:00 2001
From: Fabian Vogt <fvogt@suse.de>
Date: Thu, 28 May 2020 12:35:42 +0200
Subject: [PATCH] fix build against Qt 5.15

With 0a93db4d82c051164923a10e4382b12de9049b45 ("Unify application
palette handling between QGuiApplication and QApplication")
QApplicationPrivate::setSystemPalette is no longer used and necessary.
---
 src/plugins/styles/gtk2/qgtkstyle.cpp   | 2 ++
 src/plugins/styles/gtk2/qgtkstyle_p.cpp | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/src/plugins/styles/gtk2/qgtkstyle.cpp b/src/plugins/styles/gtk2/qgtkstyle.cpp
index 36169c9..2544593 100644
--- a/src/plugins/styles/gtk2/qgtkstyle.cpp
+++ b/src/plugins/styles/gtk2/qgtkstyle.cpp
@@ -440,7 +440,9 @@ void QGtkStyle::polish(QApplication *app)
     // not supported as these should be entirely determined by
     // current Gtk settings
     if (app->desktopSettingsAware() && d->isThemeAvailable()) {
+#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
         QApplicationPrivate::setSystemPalette(standardPalette());
+#endif
         QApplicationPrivate::setSystemFont(d->getThemeFont());
         d->applyCustomPaletteHash();
         if (!d->isKDE4Session())
diff --git a/src/plugins/styles/gtk2/qgtkstyle_p.cpp b/src/plugins/styles/gtk2/qgtkstyle_p.cpp
index e57b3d8..e71beb0 100644
--- a/src/plugins/styles/gtk2/qgtkstyle_p.cpp
+++ b/src/plugins/styles/gtk2/qgtkstyle_p.cpp
@@ -508,7 +508,9 @@ void QGtkStyleUpdateScheduler::updateTheme()
       if (oldTheme != QGtkStylePrivate::getThemeName()) {
           oldTheme = QGtkStylePrivate::getThemeName();
           QPalette newPalette = qApp->style()->standardPalette();
+#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
           QApplicationPrivate::setSystemPalette(newPalette);
+#endif
           QApplication::setPalette(newPalette);
           if (!QGtkStylePrivate::instances.isEmpty()) {
               QGtkStylePrivate::instances.last()->initGtkWidgets();
-- 
2.26.2

=>> Edit qt5-styleplugins/0001-fix-build-against-Qt-5.15.patch? [y/N]: 
--------------------------------------------------------------------------------
:: Content of /tmp/trizen-o990/qt5-styleplugins/0002-fix-gtk2-background.patch
--------------------------------------------------------------------------------

From 20b0985a77df913585628d49a3b541fb957ae366 Mon Sep 17 00:00:00 2001
From: gamezelda
Date: Thu, 4 Jun 2020 00:06:50 +0200
Subject: [PATCH] fix setting background palette

---
 src/plugins/styles/gtk2/qgtkstyle.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/plugins/styles/gtk2/qgtkstyle.cpp b/src/plugins/styles/gtk2/qgtkstyle.cpp
index 2544593..6138bd2 100644
--- a/src/plugins/styles/gtk2/qgtkstyle.cpp
+++ b/src/plugins/styles/gtk2/qgtkstyle.cpp
@@ -442,6 +442,8 @@ void QGtkStyle::polish(QApplication *app)
     if (app->desktopSettingsAware() && d->isThemeAvailable()) {
 #if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
         QApplicationPrivate::setSystemPalette(standardPalette());
+#else
+        QApplication::setPalette(standardPalette());
 #endif
         QApplicationPrivate::setSystemFont(d->getThemeFont());
         d->applyCustomPaletteHash();
-- 
2.27.0

=>> Edit qt5-styleplugins/0002-fix-gtk2-background.patch? [y/N]: 
--------------------------------------------------------------------------------
:: Content of /tmp/trizen-o990/qt5-styleplugins/install.sh
--------------------------------------------------------------------------------

_5_0_0_2_changes() {
    echo ':: Upstream added a gtk2 platform theme'
    # shellcheck disable=SC2016
    echo '   unexport `QT_STYLE_OVERRIDE`'
    # shellcheck disable=SC2016
    echo '   export `QT_QPA_PLATFORMTHEME=gtk2`'
}

post_upgrade() {
    local versions=(
        '5.0.0-2'
    )
    local version
    for version in "${versions[@]}"; do
        if [[ "$( vercmp "${version}" "${2}" )" -eq 1 ]]; then
            # shellcheck disable=SC2091
            "$( printf '_%s_changes' "${version}" | perl -p -e 's/\.|-/_/g' )"
        fi
    done
}

=>> Edit qt5-styleplugins/install.sh? [y/N]: 

Repository      : AUR
Name            : qt5-styleplugins
Version         : 5.0.0.20170311-26
Maintainer      : yrlf
URL             : https://github.com/qt/qtstyleplugins
AUR URL         : https://aur.archlinux.org/packages/qt5-styleplugins
License         : LGPL
Votes           : 58
Popularity      : 2.1%
Installed       : Yes
Out Of Date     : No
Depends On      : qt5-base
                  gtk2
Make Deps       : None
Check Deps      : None
Optional Deps   : None
Provides        : None
Conflicts With  : None
Replaces        : None
Package Base    : qt5-styleplugins
Last Update     : Sun Dec 27 21:43:49 2020
Description     : Additional style plugins for Qt5

==> Erstelle Paket: qt5-styleplugins 5.0.0.20170311-26 (Mi 16 Feb 2022 08:31:53 CET)
==> Prüfe Laufzeit-Abhängigkeiten...
==> Prüfe Buildtime-Abhängigkeiten...
==> Empfange Quellen...
  -> Lade qt5-styleplugins-335dbece103e2cbf6c7cf819ab6672c2956b17b3.tar.gz herunter...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   159    0   159    0     0    878      0 --:--:-- --:--:-- --:--:--   883
100  299k  100  299k    0     0   735k      0 --:--:-- --:--:-- --:--:--  735k
  -> 0001-fix-build-against-Qt-5.15.patch gefunden
  -> 0002-fix-gtk2-background.patch gefunden
==> Überprüfe source Dateien mit sha512sums...
    qt5-styleplugins-335dbece103e2cbf6c7cf819ab6672c2956b17b3.tar.gz ... Erfolg
    0001-fix-build-against-Qt-5.15.patch ... Erfolg
    0002-fix-gtk2-background.patch ... Erfolg
==> Entpacke Quellen...
  -> Entpacke qt5-styleplugins-335dbece103e2cbf6c7cf819ab6672c2956b17b3.tar.gz mit bsdtar
==> Beginne prepare()...
/tmp/trizen-o990/qt5-styleplugins/PKGBUILD: Zeile 27: patch: Kommando nicht gefunden.
==> FEHLER: Ein Fehler geschah in prepare().
    Breche ab...
:: Unable to build qt5-styleplugins - makepkg exited with code: 4

Benutzer 1396 gelöscht

Re: qt5-styleplugins

#2

Beitrag von Benutzer 1396 gelöscht »

Teste einfach mal, ob sich beim deinstallieren von qt5-styleplugins bei dir Abhängigkeitsprobleme ergeben würden. Wenn du keine Stilvorlagen aus dem QT5-Konfigurationswerkzeug verwendest, dann kann das ohnehin weg. Die qt5-styleplugins waren früher (vor fast 2 Jahren?) mal Bestandteil der Repos und sind dann rausgeflogen und ins AUR verschoben worden. Soll heißen: Manjaro hat das Ding offiziell lange schon abgekündigt.

Themen Author
Allfred
Forum Gott
Forum Gott
Beiträge: 440
Registriert: Samstag 10. November 2018, 16:50
GPU:
Kernel:
Desktop-Variante:
GPU Treiber:
Hat sich bedankt: 66 Mal
Danksagung erhalten: 11 Mal

Re: qt5-styleplugins

#3

Beitrag von Allfred »

Stimmt - übrig wie ein Kropf.
Schön, wenn man die Historie kennt.
Gesperrt