[bug#74061] gnu: commit: Use Qt6.

Message ID 70bae7e5b1afe3c445b3da090377c3fc5ae80ed8.1730120096.git.sughosha@disroot.org
State New
Headers
Series [bug#74061] gnu: commit: Use Qt6. |

Commit Message

Sughosha Oct. 28, 2024, 12:54 p.m. UTC
* gnu/packages/kde.scm (kommit): Use Qt6.
[arguments]<qtbase>: New argument.
<configure-flags>: New argument.
[native-inputs]: Replace kdoctools-5 with kdoctools.
[inputs]: Replace kconfigwidgets-5 with kconfigwidgets, kcoreaddons-5 with
kcoreaddons, kcrash-5 with kcrash, kdbusaddons-5 with kdbusaddons, ki18n-5 with
ki18n, kxmlgui-5 with kxmlgui, kio-5 with kio, ktextwidgets-5 with
ktextwidgets, ktexteditor-5 with ktexteditor, ksyntaxhighlighting-5 with
ksyntaxhighlighting. Add dolphin.

Change-Id: I04ad9f42a74b3a21625f85ae8e47df4f5553b6f2
---
 gnu/packages/kde.scm | 34 ++++++++++++++++++++++------------
 1 file changed, 22 insertions(+), 12 deletions(-)


base-commit: f5449685143be0805a8a9b54ddecee94e368c6e9
  

Comments

Z572 Oct. 31, 2024, 7:44 a.m. UTC | #1
Sughosha via Guix-patches via <guix-patches@gnu.org> writes:

> * gnu/packages/kde.scm (kommit): Use Qt6.
> [arguments]<qtbase>: New argument.
> <configure-flags>: New argument.
> [native-inputs]: Replace kdoctools-5 with kdoctools.
> [inputs]: Replace kconfigwidgets-5 with kconfigwidgets, kcoreaddons-5 with
> kcoreaddons, kcrash-5 with kcrash, kdbusaddons-5 with kdbusaddons, ki18n-5 with
> ki18n, kxmlgui-5 with kxmlgui, kio-5 with kio, ktextwidgets-5 with
> ktextwidgets, ktexteditor-5 with ktexteditor, ksyntaxhighlighting-5 with
> ksyntaxhighlighting. Add dolphin.
>
> Change-Id: I04ad9f42a74b3a21625f85ae8e47df4f5553b6f2
> ---
>  gnu/packages/kde.scm | 34 ++++++++++++++++++++++------------
>  1 file changed, 22 insertions(+), 12 deletions(-)
>
> diff --git a/gnu/packages/kde.scm b/gnu/packages/kde.scm
> index 2226230aab..95b44d80d3 100644
> --- a/gnu/packages/kde.scm
> +++ b/gnu/packages/kde.scm
> @@ -83,6 +83,8 @@ (define-module (gnu packages kde)
>    #:use-module (gnu packages kde-frameworks)
>    #:use-module (gnu packages kde-pim)
>    #:use-module (gnu packages kde-plasma)
> +  ;; Including this module breaks the build.
> +  ;#:use-module ((gnu packages kde-systemtools) #:select (dolphin))
>    #:use-module (gnu packages libusb)
>    #:use-module (gnu packages linux)
>    #:use-module (gnu packages llvm)
> @@ -1065,7 +1067,10 @@ (define-public kommit
>                  "09ahnizl5mqdrg583lxkwwnsq8ci95fk49wx9733ah4c39gync5c"))))
>      (build-system qt-build-system)
>      (arguments
> -     (list #:phases
> +     (list #:qtbase qtbase
> +           #:configure-flags
> +           #~(list "-DQT_MAJOR_VERSION=6")
> +           #:phases
>             #~(modify-phases %standard-phases
>                 (replace 'check
>                   (lambda* (#:key tests? #:allow-other-keys)
> @@ -1076,18 +1081,23 @@ (define-public kommit
>  branchestest|configtest|stashtest|filetest|overlaytest|remotetest|clonetest|\
>  submoduletest)")))))))
>      (native-inputs
> -     (list extra-cmake-modules kdoctools-5 pkg-config))
> +     (list extra-cmake-modules kdoctools pkg-config))
>      (inputs
> -     (list kconfigwidgets-5
> -           kcoreaddons-5
> -           kcrash-5
> -           kdbusaddons-5
> -           ki18n-5
> -           kxmlgui-5
> -           kio-5
> -           ktextwidgets-5
> -           ktexteditor-5
> -           ksyntaxhighlighting-5
> +     (list ;; module cyclic referencing
> +            (module-ref
> +             (resolve-interface
> +              '(gnu packages kde-systemtools))
> +             'dolphin)         ;for dolphin plugin
> +           kconfigwidgets
> +           kcoreaddons
> +           kcrash
> +           kdbusaddons
> +           ki18n
> +           kxmlgui
> +           kio
> +           ktextwidgets
> +           ktexteditor
> +           ksyntaxhighlighting
>             libgit2-1.8))
>      (home-page "https://apps.kde.org/kommit/")
>      (synopsis "Git client for KDE")
>
> base-commit: f5449685143be0805a8a9b54ddecee94e368c6e9

push, and fix typo.
  
Z572 Nov. 1, 2024, 7:34 a.m. UTC | #2
Z572 <zhengjunjie@iscas.ac.cn> writes:

> Sughosha via Guix-patches via <guix-patches@gnu.org> writes:
>
>> * gnu/packages/kde.scm (kommit): Use Qt6.
>> [arguments]<qtbase>: New argument.
>> <configure-flags>: New argument.
>> [native-inputs]: Replace kdoctools-5 with kdoctools.
>> [inputs]: Replace kconfigwidgets-5 with kconfigwidgets, kcoreaddons-5 with
>> kcoreaddons, kcrash-5 with kcrash, kdbusaddons-5 with kdbusaddons, ki18n-5 with
>> ki18n, kxmlgui-5 with kxmlgui, kio-5 with kio, ktextwidgets-5 with
>> ktextwidgets, ktexteditor-5 with ktexteditor, ksyntaxhighlighting-5 with
>> ksyntaxhighlighting. Add dolphin.
>>
>> Change-Id: I04ad9f42a74b3a21625f85ae8e47df4f5553b6f2
>> ---
>>  gnu/packages/kde.scm | 34 ++++++++++++++++++++++------------
>>  1 file changed, 22 insertions(+), 12 deletions(-)
>>
>> diff --git a/gnu/packages/kde.scm b/gnu/packages/kde.scm
>> index 2226230aab..95b44d80d3 100644
>> --- a/gnu/packages/kde.scm
>> +++ b/gnu/packages/kde.scm
>> @@ -83,6 +83,8 @@ (define-module (gnu packages kde)
>>    #:use-module (gnu packages kde-frameworks)
>>    #:use-module (gnu packages kde-pim)
>>    #:use-module (gnu packages kde-plasma)
>> +  ;; Including this module breaks the build.
>> +  ;#:use-module ((gnu packages kde-systemtools) #:select (dolphin))
>>    #:use-module (gnu packages libusb)
>>    #:use-module (gnu packages linux)
>>    #:use-module (gnu packages llvm)
>> @@ -1065,7 +1067,10 @@ (define-public kommit
>>                  "09ahnizl5mqdrg583lxkwwnsq8ci95fk49wx9733ah4c39gync5c"))))
>>      (build-system qt-build-system)
>>      (arguments
>> -     (list #:phases
>> +     (list #:qtbase qtbase
>> +           #:configure-flags
>> +           #~(list "-DQT_MAJOR_VERSION=6")
>> +           #:phases
>>             #~(modify-phases %standard-phases
>>                 (replace 'check
>>                   (lambda* (#:key tests? #:allow-other-keys)
>> @@ -1076,18 +1081,23 @@ (define-public kommit
>>  branchestest|configtest|stashtest|filetest|overlaytest|remotetest|clonetest|\
>>  submoduletest)")))))))
>>      (native-inputs
>> -     (list extra-cmake-modules kdoctools-5 pkg-config))
>> +     (list extra-cmake-modules kdoctools pkg-config))
>>      (inputs
>> -     (list kconfigwidgets-5
>> -           kcoreaddons-5
>> -           kcrash-5
>> -           kdbusaddons-5
>> -           ki18n-5
>> -           kxmlgui-5
>> -           kio-5
>> -           ktextwidgets-5
>> -           ktexteditor-5
>> -           ksyntaxhighlighting-5
>> +     (list ;; module cyclic referencing
>> +            (module-ref
>> +             (resolve-interface
>> +              '(gnu packages kde-systemtools))
>> +             'dolphin)         ;for dolphin plugin
>> +           kconfigwidgets
>> +           kcoreaddons
>> +           kcrash
>> +           kdbusaddons
>> +           ki18n
>> +           kxmlgui
>> +           kio
>> +           ktextwidgets
>> +           ktexteditor
>> +           ksyntaxhighlighting
>>             libgit2-1.8))
>>      (home-page "https://apps.kde.org/kommit/")
>>      (synopsis "Git client for KDE")
>>
>> base-commit: f5449685143be0805a8a9b54ddecee94e368c6e9
>
> push, and fix typo.

close.
  

Patch

diff --git a/gnu/packages/kde.scm b/gnu/packages/kde.scm
index 2226230aab..95b44d80d3 100644
--- a/gnu/packages/kde.scm
+++ b/gnu/packages/kde.scm
@@ -83,6 +83,8 @@  (define-module (gnu packages kde)
   #:use-module (gnu packages kde-frameworks)
   #:use-module (gnu packages kde-pim)
   #:use-module (gnu packages kde-plasma)
+  ;; Including this module breaks the build.
+  ;#:use-module ((gnu packages kde-systemtools) #:select (dolphin))
   #:use-module (gnu packages libusb)
   #:use-module (gnu packages linux)
   #:use-module (gnu packages llvm)
@@ -1065,7 +1067,10 @@  (define-public kommit
                 "09ahnizl5mqdrg583lxkwwnsq8ci95fk49wx9733ah4c39gync5c"))))
     (build-system qt-build-system)
     (arguments
-     (list #:phases
+     (list #:qtbase qtbase
+           #:configure-flags
+           #~(list "-DQT_MAJOR_VERSION=6")
+           #:phases
            #~(modify-phases %standard-phases
                (replace 'check
                  (lambda* (#:key tests? #:allow-other-keys)
@@ -1076,18 +1081,23 @@  (define-public kommit
 branchestest|configtest|stashtest|filetest|overlaytest|remotetest|clonetest|\
 submoduletest)")))))))
     (native-inputs
-     (list extra-cmake-modules kdoctools-5 pkg-config))
+     (list extra-cmake-modules kdoctools pkg-config))
     (inputs
-     (list kconfigwidgets-5
-           kcoreaddons-5
-           kcrash-5
-           kdbusaddons-5
-           ki18n-5
-           kxmlgui-5
-           kio-5
-           ktextwidgets-5
-           ktexteditor-5
-           ksyntaxhighlighting-5
+     (list ;; module cyclic referencing
+            (module-ref
+             (resolve-interface
+              '(gnu packages kde-systemtools))
+             'dolphin)         ;for dolphin plugin
+           kconfigwidgets
+           kcoreaddons
+           kcrash
+           kdbusaddons
+           ki18n
+           kxmlgui
+           kio
+           ktextwidgets
+           ktexteditor
+           ksyntaxhighlighting
            libgit2-1.8))
     (home-page "https://apps.kde.org/kommit/")
     (synopsis "Git client for KDE")