From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3AE4D158089 for ; Sat, 21 Oct 2023 11:08:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 148302BC037; Sat, 21 Oct 2023 11:08:55 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EA80D2BC037 for ; Sat, 21 Oct 2023 11:08:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7A56B335CDF for ; Sat, 21 Oct 2023 11:08:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AAD5912B2 for ; Sat, 21 Oct 2023 11:08:50 +0000 (UTC) From: "David Roman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Roman" Message-ID: <1697820474.7d626fa31706272569a312176d42b2569a6deb74.davidroman@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: sci-electronics/kactus2/files/, sci-electronics/kactus2/ X-VCS-Repository: repo/proj/guru X-VCS-Files: sci-electronics/kactus2/files/kactus2-3.12.0-fix-missing-qsharedpointer.patch sci-electronics/kactus2/kactus2-3.12.0.ebuild sci-electronics/kactus2/kactus2-9999.ebuild X-VCS-Directories: sci-electronics/kactus2/ sci-electronics/kactus2/files/ X-VCS-Committer: davidroman X-VCS-Committer-Name: David Roman X-VCS-Revision: 7d626fa31706272569a312176d42b2569a6deb74 X-VCS-Branch: master Date: Sat, 21 Oct 2023 11:08:50 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: bb23d6df-4d0b-42b6-8413-e485a586d84c X-Archives-Hash: 1d507252b5f7cdba53955d1165425963 commit: 7d626fa31706272569a312176d42b2569a6deb74 Author: Huang Rui gmail com> AuthorDate: Fri Oct 20 16:47:54 2023 +0000 Commit: David Roman gmail com> CommitDate: Fri Oct 20 16:47:54 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7d626fa3 sci-electronics/kactus2: fix build with qt6/6.6.0 - fix build problem with qt6/6.6.0, add missing QSharedPointer header - improve ebuild and follow @ceamac 's suggestions, thanks Signed-off-by: Huang Rui gmail.com> ...kactus2-3.12.0-fix-missing-qsharedpointer.patch | 117 +++++++++++++++++++++ sci-electronics/kactus2/kactus2-3.12.0.ebuild | 13 ++- sci-electronics/kactus2/kactus2-9999.ebuild | 45 +++++--- 3 files changed, 155 insertions(+), 20 deletions(-) diff --git a/sci-electronics/kactus2/files/kactus2-3.12.0-fix-missing-qsharedpointer.patch b/sci-electronics/kactus2/files/kactus2-3.12.0-fix-missing-qsharedpointer.patch new file mode 100644 index 0000000000..ff271885f0 --- /dev/null +++ b/sci-electronics/kactus2/files/kactus2-3.12.0-fix-missing-qsharedpointer.patch @@ -0,0 +1,117 @@ +From 1fd0d3cc8a3530a04491e736a673b9fc5092daeb Mon Sep 17 00:00:00 2001 +From: Huang Rui +Date: Fri, 20 Oct 2023 23:41:51 +0800 +Subject: [PATCH] [CORRECTIVE] add missing include to fix + QT6.6.0 build + +- add missing #include to fix incomplete type about QSharedPointer + +Closes: https://github.com/kactus2/kactus2dev/issues/85 +Signed-off-by: Huang Rui +--- + editors/HWDesign/undoCommands/HWComponentAddCommand.h | 5 +++-- + .../SystemDesign/UndoCommands/ApiConnectionDeleteCommand.h | 3 ++- + .../SystemDesign/UndoCommands/ComConnectionDeleteCommand.h | 3 ++- + editors/SystemDesign/UndoCommands/SWInterfaceDeleteCommand.h | 3 ++- + .../SystemDesign/UndoCommands/SystemComponentDeleteCommand.h | 3 ++- + editors/SystemDesign/UndoCommands/SystemDeleteCommands.h | 3 ++- + 6 files changed, 13 insertions(+), 7 deletions(-) + +diff --git a/editors/HWDesign/undoCommands/HWComponentAddCommand.h b/editors/HWDesign/undoCommands/HWComponentAddCommand.h +index fe53209d6..c131ada50 100644 +--- a/editors/HWDesign/undoCommands/HWComponentAddCommand.h ++++ b/editors/HWDesign/undoCommands/HWComponentAddCommand.h +@@ -12,10 +12,11 @@ + #ifndef HWCOMPONENTADDCOMMAND_H + #define HWCOMPONENTADDCOMMAND_H + +-#include + #include +-#include + #include ++#include ++#include ++#include + + class IGraphicsItemStack; + class ComponentItem; +diff --git a/editors/SystemDesign/UndoCommands/ApiConnectionDeleteCommand.h b/editors/SystemDesign/UndoCommands/ApiConnectionDeleteCommand.h +index 02aaea2c1..7173b9dd9 100644 +--- a/editors/SystemDesign/UndoCommands/ApiConnectionDeleteCommand.h ++++ b/editors/SystemDesign/UndoCommands/ApiConnectionDeleteCommand.h +@@ -12,9 +12,10 @@ + #ifndef APICONNECTIONDELETECOMMAND_H + #define APICONNECTIONDELETECOMMAND_H + +-#include + #include + #include ++#include ++#include + + class ApiGraphicsConnection; + +diff --git a/editors/SystemDesign/UndoCommands/ComConnectionDeleteCommand.h b/editors/SystemDesign/UndoCommands/ComConnectionDeleteCommand.h +index 5e86dbdf1..e0676b2ca 100644 +--- a/editors/SystemDesign/UndoCommands/ComConnectionDeleteCommand.h ++++ b/editors/SystemDesign/UndoCommands/ComConnectionDeleteCommand.h +@@ -12,9 +12,10 @@ + #ifndef COMCONNECTIONDELETECOMMAND_H + #define COMCONNECTIONDELETECOMMAND_H + +-#include + #include + #include ++#include ++#include + + class ComGraphicsConnection; + +diff --git a/editors/SystemDesign/UndoCommands/SWInterfaceDeleteCommand.h b/editors/SystemDesign/UndoCommands/SWInterfaceDeleteCommand.h +index d05d3750d..72a1128fd 100644 +--- a/editors/SystemDesign/UndoCommands/SWInterfaceDeleteCommand.h ++++ b/editors/SystemDesign/UndoCommands/SWInterfaceDeleteCommand.h +@@ -12,9 +12,10 @@ + #ifndef SWINTERFACEDELETECOMMAND_H + #define SWINTERFACEDELETECOMMAND_H + +-#include + #include + #include ++#include ++#include + + class IGraphicsItemStack; + class SWInterfaceItem; +diff --git a/editors/SystemDesign/UndoCommands/SystemComponentDeleteCommand.h b/editors/SystemDesign/UndoCommands/SystemComponentDeleteCommand.h +index 36abdda6f..ecfcef7db 100644 +--- a/editors/SystemDesign/UndoCommands/SystemComponentDeleteCommand.h ++++ b/editors/SystemDesign/UndoCommands/SystemComponentDeleteCommand.h +@@ -12,9 +12,10 @@ + #ifndef SYSTEMCOMPONENTDELETECOMMAND_H + #define SYSTEMCOMPONENTDELETECOMMAND_H + +-#include + #include + #include ++#include ++#include + + class ComponentItem; + class IGraphicsItemStack; +diff --git a/editors/SystemDesign/UndoCommands/SystemDeleteCommands.h b/editors/SystemDesign/UndoCommands/SystemDeleteCommands.h +index 7eb0ed694..a3c1748e6 100644 +--- a/editors/SystemDesign/UndoCommands/SystemDeleteCommands.h ++++ b/editors/SystemDesign/UndoCommands/SystemDeleteCommands.h +@@ -12,9 +12,10 @@ + #ifndef SYSTEMDELETECOMMANDS_H + #define SYSTEMDELETECOMMANDS_H + +-#include + #include + #include ++#include ++#include + + class GraphicsConnection; + class GraphicsColumnLayout; diff --git a/sci-electronics/kactus2/kactus2-3.12.0.ebuild b/sci-electronics/kactus2/kactus2-3.12.0.ebuild index 37a6d83439..7812278f3b 100644 --- a/sci-electronics/kactus2/kactus2-3.12.0.ebuild +++ b/sci-electronics/kactus2/kactus2-3.12.0.ebuild @@ -42,17 +42,16 @@ BDEPEND=" PATCHES=( "${FILESDIR}"/${PN}-3.12.0-fix-createhelp.patch + "${FILESDIR}"/${PN}-3.12.0-fix-missing-qsharedpointer.patch ) src_prepare() { default # Fix QA pre-stripped warnings, bug 781674 - while IFS= read -r -d '' i; do - echo "CONFIG+=nostrip" >> "${i}" || die - done < <(find . -type f '(' -name "*.pro" ')' -print0) + find . -type f -name \*.pro -exec sed -e '$a\\nCONFIG+=nostrip' -i '{}' + || die # Fix bug 854081 python_setup - sed -i -e "s|PYTHON_CONFIG=.*|PYTHON_CONFIG=${EPYTHON}-config|" .qmake.conf || die + sed -e "s|PYTHON_CONFIG=.*|PYTHON_CONFIG=${EPYTHON}-config|" -i .qmake.conf || die } src_configure() { @@ -68,14 +67,14 @@ src_compile() { cp -TR "${S}/" "${BUILD_DIR}/" || die # Fix bug 854081 python_setup - sed -i -e "s|PYTHON_CONFIG=.*|PYTHON_CONFIG=${EPYTHON}-config|" .qmake.conf || die + sed -e "s|PYTHON_CONFIG=.*|PYTHON_CONFIG=${EPYTHON}-config|" -i .qmake.conf || die export PYTHON_C_FLAGS="$(python_get_CFLAGS)" export PYTHON_LIBS="$(python_get_LIBS)" pushd "PythonAPI" || die eqmake6 PREFIX="$(python_get_library_path)" emake - rm -rf _pythonAPI.so || die - cp -rf libPythonAPI.so.1.0.0 _pythonAPI.so || die + rm _pythonAPI.so || die + cp libPythonAPI.so.1.0.0 _pythonAPI.so || die popd } python_foreach_impl run_in_build_dir python_compile diff --git a/sci-electronics/kactus2/kactus2-9999.ebuild b/sci-electronics/kactus2/kactus2-9999.ebuild index 5d9feb0745..7812278f3b 100644 --- a/sci-electronics/kactus2/kactus2-9999.ebuild +++ b/sci-electronics/kactus2/kactus2-9999.ebuild @@ -42,33 +42,52 @@ BDEPEND=" PATCHES=( "${FILESDIR}"/${PN}-3.12.0-fix-createhelp.patch + "${FILESDIR}"/${PN}-3.12.0-fix-missing-qsharedpointer.patch ) src_prepare() { default # Fix QA pre-stripped warnings, bug 781674 - while IFS= read -r -d '' i; do - echo "CONFIG+=nostrip" >> "${i}" || die - done < <(find . -type f '(' -name "*.pro" ')' -print0) - # # Fix QTBIN_PATH - # sed -i -e "s|QTBIN_PATH=.*|QTBIN_PATH=\"$(qt6_get_bindir)/\"|" configure || die + find . -type f -name \*.pro -exec sed -e '$a\\nCONFIG+=nostrip' -i '{}' + || die + # Fix bug 854081 + python_setup + sed -e "s|PYTHON_CONFIG=.*|PYTHON_CONFIG=${EPYTHON}-config|" -i .qmake.conf || die +} + +src_configure() { + default + # Fix bug 854075 + # Fix bug 854078 + eqmake6 Kactus2.pro +} + +src_compile() { + default + python_compile() { + cp -TR "${S}/" "${BUILD_DIR}/" || die + # Fix bug 854081 + python_setup + sed -e "s|PYTHON_CONFIG=.*|PYTHON_CONFIG=${EPYTHON}-config|" -i .qmake.conf || die + export PYTHON_C_FLAGS="$(python_get_CFLAGS)" + export PYTHON_LIBS="$(python_get_LIBS)" + pushd "PythonAPI" || die + eqmake6 PREFIX="$(python_get_library_path)" + emake + rm _pythonAPI.so || die + cp libPythonAPI.so.1.0.0 _pythonAPI.so || die + popd + } + python_foreach_impl run_in_build_dir python_compile } src_install() { # Can't use default, set INSTALL_ROOT and workaround parallel install bug emake -j1 INSTALL_ROOT="${D}" install python_install() { - export PYTHON_C_FLAGS="$(python_get_CFLAGS)" - export PYTHON_LIBS="$(python_get_LIBS)" pushd "PythonAPI" || die - emake clean - eqmake5 PREFIX="$(python_get_library_path)" - emake - rm -rf _pythonAPI.so || die - cp -rf libPythonAPI.so.1.0.0 _pythonAPI.so || die python_domodule _pythonAPI.so python_domodule pythonAPI.py popd } - python_foreach_impl python_install + python_foreach_impl run_in_build_dir python_install }