From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 8KR3JbPObmKaTQAAbAwnHQ (envelope-from ) for ; Sun, 01 May 2022 20:17:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 8N+IJLPObmKrDQAAG6o9tA (envelope-from ) for ; Sun, 01 May 2022 20:17:23 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 04D29353DB for ; Sun, 1 May 2022 20:17:23 +0200 (CEST) Received: from localhost ([::1]:43594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nlE8I-0003xX-4H for larch@yhetil.org; Sun, 01 May 2022 14:17:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37554) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nlE83-0003xN-Rl for guix-devel@gnu.org; Sun, 01 May 2022 14:17:08 -0400 Received: from mail-m973.mail.163.com ([123.126.97.3]:40757) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nlE7z-0000lo-QT for guix-devel@gnu.org; Sun, 01 May 2022 14:17:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=1oAWU M52b2xGL3JmWD+tkH1U4UdDKBEEGjoY/CXSq8g=; b=TajiniqLd2HX0Z6fWty2v enFCDPYgSuSNsx1GeL4kI8rCBfqRA/gSuy99CPNL/bgOJZFjakRhpFmLgRbA+gyX WnsfTNLXIijc3CITEbrlxV1WYY8kPTsidww/0a6WR97qS7gxOM/MxZbZ0mihHe5H +48RGGgByr1IHTS6HC+liU= Received: from asus-laptop (unknown [112.95.114.235]) by smtp3 (Coremail) with SMTP id G9xpCgD3lJaSzm5iFt2RAQ--.2381S2; Mon, 02 May 2022 02:16:51 +0800 (CST) References: User-agent: mu4e 1.6.10; emacs 27.2 From: Zhu Zihao To: Anthony Wang Subject: Build failure of extra-cmake-modules 5.91.0 (was: Status of KDE Plasma) Date: Mon, 02 May 2022 02:03:45 +0800 In-reply-to: Message-ID: <86bkwh5dac.fsf@163.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-CM-TRANSID: G9xpCgD3lJaSzm5iFt2RAQ--.2381S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7ur17tFy7GFW7Kw13try8Grg_yoW8ZF4UpF Z5t3sIqF43AFZ5Ga1ktr15WF15W3ykGa1Utw45Wws5Jr15WF10vFs7try0gFWrAwn5Z342 gF48JFWUCFWjvwUanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07j42NtUUUUU= X-Originating-IP: [112.95.114.235] X-CM-SenderInfo: pdoosuxxwbztlvw6il2tof0z/1tbiKRPzr1Xl3CKtZwAAsi Received-SPF: pass client-ip=123.126.97.3; envelope-from=all_but_last@163.com; helo=mail-m973.mail.163.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651429043; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=1oAWUM52b2xGL3JmWD+tkH1U4UdDKBEEGjoY/CXSq8g=; b=VVV6HqmxmeGyEcuH2Nw0CmM36jdENEr9bVLahlr/JRU2cQ8VBBO3mtSoyvE0BmOeyuvpIh Jo5FMt5wORXxkPNm9WQ6ZuznAr/UsLgbMwFtCUnoN3izXL87lONTxNlmOg57XRr0IBx6vF PVS1oRPZEzgykUefVrU3WCx+jSv47/xvyYStVVKGiLwpJVEkjqtqEtufmEiaMtDbIX5pat RL2/6du2i7RAOs1K2YDLOEVPtIjd4CZVvTguXWhnRXRKl9JmDRtmJoje8n926v7mn2zVSn kRP0R6UHRq1iJVOsRRDJ+DtGfI/QMfWMUuiIvn/GVKbCvAgGhgPZuuZJWIAsDA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651429043; a=rsa-sha256; cv=none; b=BBtMRWBlX6L3XMuhUSF2w5goGtfgIeZgL1Dge8iNn6QZzGu1qOS6A8xOmmWWq4/fRqS55z r19nzLOslAHB5CbE48AbAZ0pI1pu4Pt/YNSpjdUF4jMp2vSGXC8pmam3KLFojeSMcF0DUy 9BxQkvpYmS6QIE9o17HMaRblQ3803ThfFvC8c9XwKIcgFMEitVXHW/TPS5TNZBTyWfplp1 HbPFSljh4wuZ6ZNedvoV/74lKh6cJS2EsunYCpwdNIowipyTZr1VbuT1k/Oj6MeDpQDPk6 bXGebweRinXIDB1iKa+ZuEcD9x5yixvsbohHc1BlA3ExQH0Er61u/J3XONXbBw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=163.com header.s=s110527 header.b=TajiniqL; dmarc=pass (policy=none) header.from=163.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -6.09 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=163.com header.s=s110527 header.b=TajiniqL; dmarc=pass (policy=none) header.from=163.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 04D29353DB X-Spam-Score: -6.09 X-Migadu-Scanner: scn1.migadu.com X-TUID: B27db0CSSLyx --=-=-= Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" --==-=-= Content-Type: text/plain Hi. I'm creating a patch that updates ECM to 5.91.0 but it failed the check. The build log reports the KDEFetchTranslations test failed, with following log ``` 3/86 Test #3: KDEFetchTranslations .........................................................***Failed 0.34 sec Internal cmake changing into directory: /tmp/guix-build-extra-cmake-modules-5.91.0.drv-0/build/tests/KDEFetchTranslations Error: cmake execution failed The C compiler identification is GNU 10.3.0 The CXX compiler identification is GNU 10.3.0 Detecting C compiler ABI info Detecting C compiler ABI info - done Check for working C compiler: /gnu/store/069aq2v993kpc41yabp5b6vm4wb9jkhg-gcc-10.3.0/bin/gcc - skipped Detecting C compile features Detecting C compile features - done Detecting CXX compiler ABI info Detecting CXX compiler ABI info - done Check for working CXX compiler: /gnu/store/069aq2v993kpc41yabp5b6vm4wb9jkhg-gcc-10.3.0/bin/c++ - skipped Detecting CXX compile features Detecting CXX compile features - done module: KDEInstallDirs Installing in . Run /tmp/guix-build-extra-cmake-modules-5.91.0.drv-0/build/tests/KDEFetchTranslations/prefix.sh to set the environment for extra-cmake-modules. module: KDECMakeSettings Could not set up the appstream test. appstreamcli is missing. module: ECMMarkNonGuiExecutable CMake Error at CMakeLists.txt:22 (message): Wrong repository name: extra-cmake-modules, should be 'frameworks/extra-cmake-modules' Configuring incomplete, errors occurred! See also "/tmp/guix-build-extra-cmake-modules-5.91.0.drv-0/build/tests/KDEFetchTranslations/CMakeFiles/CMakeOutput.log". ``` It says that the name of project should equal to `frameworks/extra-cmake-modules`. But I don't see they set the project name to `frameworks/extra-cmake-modules`. I checked the package recipe of Archlinux and Nixpkgs, looks that they don't have this issue. WDYT? --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIsEARYIADMWIQRefA5qkqvnKdl/GTlmOX+E92aT+QUCYm7OexUcYWxsX2J1dF9s YXN0QDE2My5jb20ACgkQZjl/hPdmk/n6kAD/fUa7NLfyUNCypdD9R13W2djqdFdX tpci75xNwIzPpUYBAI8pWZMJXumG6CIhd3jM3vjUoJzHfB/5YBK36hVGcV4L =/n/u -----END PGP SIGNATURE----- --==-=-=-- --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=ecm-update.patch diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm index e914499541..e57e9e1d0a 100644 --- a/gnu/packages/kde-frameworks.scm +++ b/gnu/packages/kde-frameworks.scm @@ -85,48 +85,64 @@ (define-module (gnu packages kde-frameworks) #:use-module (srfi srfi-1)) (define-public extra-cmake-modules - (package - (name "extra-cmake-modules") - (version "5.70.0") - (source (origin - (method url-fetch) - (uri (string-append - "mirror://kde/stable/frameworks/" - (version-major+minor version) "/" - name "-" version ".tar.xz")) - (sha256 - (base32 - "10c5xs5shk0dcshpdxg564ay5y8hgmvfvmlhmhjf0dy79kcah3c3")))) - (build-system cmake-build-system) - (native-inputs - ;; Add test dependency, except on armhf where building it is too - ;; expensive. - (if (and (not (%current-target-system)) - (string=? (%current-system) "armhf-linux")) - '() - `(("qtbase" ,qtbase-5)))) ;for tests (needs qmake) - (arguments - `(#:tests? ,(and (not (%current-target-system)) - (not (null? (package-native-inputs this-package)))) - #:phases - (modify-phases %standard-phases + (package + (name "extra-cmake-modules") + (version "5.91.0") + (source (origin + (method url-fetch) + (uri (string-append + "mirror://kde/stable/frameworks/" + (version-major+minor version) "/" + name "-" version ".tar.xz")) + (sha256 + (base32 + "0k65rvxh926ya6qahzk2ns7g1fya1429648mlx7iipxa61g8h5wp")))) + (build-system cmake-build-system) + (native-inputs + ;; Add test dependency, except on armhf where building it is too + ;; expensive. + (if (and (not (%current-target-system)) + (string=? (%current-system) "armhf-linux")) + '() + (list qtbase-5))) ;for tests (needs qmake) + (arguments + (list + #:tests? (and (not (%current-target-system)) + (not (null? (package-native-inputs this-package)))) + #:phases + #~(modify-phases %standard-phases (add-after 'unpack 'fix-lib-path (lambda _ ;; Always install into /lib and not into /lib64. - (substitute* "kde-modules/KDEInstallDirs.cmake" - (("\"lib64\"") "\"lib\"") - ;; TODO: Base the following on values taken from Qt - ;; Install plugins into lib/qt5/plugins - ;; TODO: Check if this is okay for Android, too - ;; (see comment in KDEInstallDirs.cmake) - (("_define_relative\\(QTPLUGINDIR \"\\$\\{_pluginsDirParent}\" \"plugins\"") - "_define_relative(QTPLUGINDIR \"${_pluginsDirParent}\" \"qt5/plugins\"") - ;; Install imports into lib/qt5/imports - (("_define_relative\\(QTQUICKIMPORTSDIR QTPLUGINDIR \"imports\"") - "_define_relative(QTQUICKIMPORTSDIR LIBDIR \"qt5/imports\"") - ;; Install qml-files into lib/qt5/qml - (("_define_relative\\(QMLDIR LIBDIR \"qml\"") - "_define_relative(QMLDIR LIBDIR \"qt5/qml\"")) + (substitute* "kde-modules/KDEInstallDirsCommon.cmake" + (("\"lib64\"") "\"lib\"")) + + ;; TODO: Base the following on values taken from Qt + ;; Install plugins into lib/qt5/plugins + ;; TODO: Check if this is okay for Android, too + ;; (see comment in KDEInstallDirs.cmake) + (for-each + (lambda (qt-ver) + (define file (string-append "kde-modules/KDEInstallDirs" + qt-ver ".cmake")) + (substitute* file + ;; Fix the installation path of Qt plugins. + (("_define_relative\\(QTPLUGINDIR \"\\$\\{_pluginsDirParent}\" \"plugins\"") + (string-append + "_define_relative(QTPLUGINDIR \"${_pluginsDirParent}\" \"qt" + qt-ver "/plugins\"")) + ;; Fix the installation path of QML files. + (("_define_relative\\(QMLDIR LIBDIR \"qml\"") + (string-append "_define_relative(QMLDIR LIBDIR \"qt" + qt-ver "/qml\""))) + + ;; Qt Quick 1 series is removed in Qt6. + (when (string=? qt-ver "5") + (substitute* file + (("_define_relative\\(QTQUICKIMPORTSDIR QTPLUGINDIR \"imports\"") + "_define_relative(QTQUICKIMPORTSDIR LIBDIR \"qt5/imports\"")))) + '("5" "6")) + (substitute* "modules/ECMGeneratePriFile.cmake" ;; Install pri-files into lib/qt5/mkspecs (("set\\(ECM_MKSPECS_INSTALL_DIR mkspecs/modules") @@ -137,20 +153,20 @@ (define-public extra-cmake-modules (add-after 'install 'check-post-install (assoc-ref %standard-phases 'check)) (delete 'check)))) - ;; optional dependencies - to save space, we do not add these inputs. - ;; Sphinx > 1.2: - ;; Required to build Extra CMake Modules documentation in Qt Help format. - ;; Qt5LinguistTools , Qt5 linguist tools. , - ;; Required to run tests for the ECMPoQmTools module. - ;; Qt5Core - ;; Required to run tests for the ECMQtDeclareLoggingCategory module, - ;; and for some tests of the KDEInstallDirs module. - (home-page "https://community.kde.org/Frameworks") - (synopsis "CMake module files for common software used by KDE") - (description "The Extra CMake Modules package, or ECM, adds to the + ;; optional dependencies - to save space, we do not add these inputs. + ;; Sphinx > 1.2: + ;; Required to build Extra CMake Modules documentation in Qt Help format. + ;; Qt5LinguistTools , Qt5 linguist tools. , + ;; Required to run tests for the ECMPoQmTools module. + ;; Qt5Core + ;; Required to run tests for the ECMQtDeclareLoggingCategory module, + ;; and for some tests of the KDEInstallDirs module. + (home-page "https://community.kde.org/Frameworks") + (synopsis "CMake module files for common software used by KDE") + (description "The Extra CMake Modules package, or ECM, adds to the modules provided by CMake to find common software. In addition, it provides common build settings used in software produced by the KDE community.") - (license license:bsd-3))) + (license license:bsd-3))) (define-public phonon (package --=-=-= Content-Type: text/plain -- Retrieve my PGP public key: gpg --recv-keys D47A9C8B2AE3905B563D9135BE42B352A9F6821F Zihao --=-=-=--