From ca877f01a331bd239db8b6878c7f92fa85e02dae Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Wed, 3 Jan 2024 23:14:53 +0100 Subject: [PATCH 1/6] cmake.eclass: Set FETCHCONTENT_FULLY_DISCONNECTED=ON Closes: https://bugs.gentoo.org/920846 Signed-off-by: Andreas Sturmlechner --- eclass/cmake.eclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass index 10749e9a2f31f..7ba22ce5f4317 100644 --- a/eclass/cmake.eclass +++ b/eclass/cmake.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: cmake.eclass @@ -541,6 +541,7 @@ cmake_src_configure() { set(CMAKE_INSTALL_DOCDIR "${EPREFIX}/usr/share/doc/${PF}" CACHE PATH "") set(BUILD_SHARED_LIBS ON CACHE BOOL "") set(Python3_FIND_UNVERSIONED_NAMES FIRST CACHE STRING "") + set(FETCHCONTENT_FULLY_DISCONNECTED ON CACHE BOOL "") _EOF_ if [[ -n ${_ECM_ECLASS} ]]; then From 3867345f8c2d9f24157508bc6372f479a82cf33f Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Wed, 3 Jan 2024 23:17:05 +0100 Subject: [PATCH 2/6] cmake.eclass: Set CMAKE_DISABLE_PRECOMPILE_HEADERS=ON Closes: https://bugs.gentoo.org/920845 Signed-off-by: Andreas Sturmlechner --- eclass/cmake.eclass | 1 + 1 file changed, 1 insertion(+) diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass index 7ba22ce5f4317..ef5e6dd678a15 100644 --- a/eclass/cmake.eclass +++ b/eclass/cmake.eclass @@ -542,6 +542,7 @@ cmake_src_configure() { set(BUILD_SHARED_LIBS ON CACHE BOOL "") set(Python3_FIND_UNVERSIONED_NAMES FIRST CACHE STRING "") set(FETCHCONTENT_FULLY_DISCONNECTED ON CACHE BOOL "") + set(CMAKE_DISABLE_PRECOMPILE_HEADERS ON CACHE BOOL "") _EOF_ if [[ -n ${_ECM_ECLASS} ]]; then From 4896a20cd4bafc0f724f739e03a455260d17fe6c Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Mon, 1 Jan 2024 20:00:27 +0100 Subject: [PATCH 3/6] qt5-build.eclass: Move append-ldflags and filter-lto to src_prepare Closes: https://bugs.gentoo.org/919789 Signed-off-by: Andreas Sturmlechner --- eclass/qt5-build.eclass | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass index 0e416e253cc2c..76a089b2908dc 100644 --- a/eclass/qt5-build.eclass +++ b/eclass/qt5-build.eclass @@ -179,6 +179,15 @@ fi qt5-build_src_prepare() { qt5_prepare_env + # Workaround for bug #915203 + # Upstream: https://bugreports.qt.io/browse/QTBUG-111514 + if [[ ${PN} != qtcore ]]; then + append-ldflags $(test-flags-CCLD -Wl,--undefined-version) + fi + + # many bugs, no one to fix + filter-lto + if [[ ${QT5_BUILD_TYPE} == live ]] || [[ -n ${KDE_ORG_COMMIT} ]]; then if [[ -n ${KDE_ORG_COMMIT} ]]; then einfo "Preparing KDE Qt5PatchCollection snapshot at ${KDE_ORG_COMMIT}" @@ -231,15 +240,6 @@ qt5-build_src_configure() { qt5_tools_configure fi - # Workaround for bug #915203 - # Upstream: https://bugreports.qt.io/browse/QTBUG-111514 - if [[ ${PN} != qtcore ]] ; then - append-ldflags $(test-flags-CCLD -Wl,--undefined-version) - fi - - # many bugs, no one to fix - filter-lto - qt5_foreach_target_subdir qt5_qmake } From 2455f4d30364e65eccbcfee4d8edd6bd8742cba2 Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Wed, 1 Apr 2020 15:56:48 +0200 Subject: [PATCH 4/6] dev-qt/qtcore: Add wall of blockers against <${QT5_PV} Revdeps can drop dev-qt/* dependencies on version bumps at any time, which then may lead to Portage disregarding these dev-qt/* packages for upgrade if nothing is left depending on them. When these packages contain Qt5 plugins it breaks runtime hard - broken screenlocker, blank login manager, ... -, with: `Cannot mix incompatible Qt library (5.15.10) with this library (5.15.11)` We've had this happen with dev-qt/qtvirtualkeyboard and dev-qt/qtcharts already and gradual porting to Qt6 ensures it will happen more often in the future. Package groups (https://bugs.gentoo.org/918873) are not effective here as it concerns ::installed package set. For lack of a better mechanism from the package manager, these blockers make sure dep calculation will take care of the necessary cleanup of dangling Qt5 packages, even if it will not improve our backtracking situation. Signed-off-by: Andreas Sturmlechner --- dev-qt/qtcore/qtcore-5.15.12-r1.ebuild | 162 +++++++++++++++++++++++++ 1 file changed, 162 insertions(+) create mode 100644 dev-qt/qtcore/qtcore-5.15.12-r1.ebuild diff --git a/dev-qt/qtcore/qtcore-5.15.12-r1.ebuild b/dev-qt/qtcore/qtcore-5.15.12-r1.ebuild new file mode 100644 index 0000000000000..fc74cab8e8077 --- /dev/null +++ b/dev-qt/qtcore/qtcore-5.15.12-r1.ebuild @@ -0,0 +1,162 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +if [[ ${PV} != *9999* ]]; then + QT5_KDEPATCHSET_REV=1 + KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" +fi + +QT5_MODULE="qtbase" +inherit linux-info flag-o-matic toolchain-funcs qt5-build + +DESCRIPTION="Cross-platform application development framework" +SLOT=5/${QT5_PV} + +IUSE="icu old-kernel" + +DEPEND=" + dev-libs/double-conversion:= + dev-libs/glib:2 + dev-libs/libpcre2[pcre16,unicode] + sys-libs/zlib:= + icu? ( dev-libs/icu:= ) + !icu? ( virtual/libiconv ) +" +RDEPEND="${DEPEND} + != -O2, so we need + # to unset F_S first, then explicitly set 2, to negate any default + # and anything set by the user if they're choosing 3 (or if they've + # modified GCC to set 3). + # + # Refs: + # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105078 + # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105709 + # https://bugreports.qt.io/browse/QTBUG-103782 + # bug #847145 + if tc-enables-fortify-source ; then + # We can't unconditionally do this b/c we fortify needs + # some level of optimisation. + filter-flags -D_FORTIFY_SOURCE=3 + # (Qt doesn't seem to respect CPPFLAGS?) + append-flags -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 + fi + + qt5-build_src_prepare + + # workaround for a79a370c (...Annotate-QMutex-...patch) adding a header + qt5_syncqt_version +} + +src_configure() { + local myconf=( + $(qt_use icu) + $(qt_use !icu iconv) + ) + use old-kernel && myconf+=( + -no-feature-renameat2 # needs Linux 3.16, bug 669994 + -no-feature-getentropy # needs Linux 3.17, bug 669994 + -no-feature-statx # needs Linux 4.11, bug 672856 + ) + qt5-build_src_configure +} + +src_install() { + qt5-build_src_install + qt5_symlink_binary_to_path qmake 5 + + local flags=( + DBUS FREETYPE IMAGEFORMAT_JPEG IMAGEFORMAT_PNG + OPENGL OPENSSL SSL WIDGETS + ) + + for flag in ${flags[@]}; do + cat >> "${D}"/${QT5_HEADERDIR}/QtCore/qconfig.h <<- _EOF_ || die + + #if defined(QT_NO_${flag}) && defined(QT_${flag}) + # undef QT_NO_${flag} + #elif !defined(QT_NO_${flag}) && !defined(QT_${flag}) + # define QT_NO_${flag} + #endif + _EOF_ + done +} From a95deee20f28d4fa11803c0941c34d2c091d0dfe Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Wed, 10 Jan 2024 10:25:44 +0100 Subject: [PATCH 5/6] dev-qt/qtcore: drop 5.15.12 Signed-off-by: Andreas Sturmlechner --- dev-qt/qtcore/qtcore-5.15.12.ebuild | 119 ---------------------------- 1 file changed, 119 deletions(-) delete mode 100644 dev-qt/qtcore/qtcore-5.15.12.ebuild diff --git a/dev-qt/qtcore/qtcore-5.15.12.ebuild b/dev-qt/qtcore/qtcore-5.15.12.ebuild deleted file mode 100644 index a5a67b73e2a59..0000000000000 --- a/dev-qt/qtcore/qtcore-5.15.12.ebuild +++ /dev/null @@ -1,119 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -if [[ ${PV} != *9999* ]]; then - QT5_KDEPATCHSET_REV=1 - KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" -fi - -QT5_MODULE="qtbase" -inherit linux-info flag-o-matic toolchain-funcs qt5-build - -DESCRIPTION="Cross-platform application development framework" -SLOT=5/${QT5_PV} - -IUSE="icu old-kernel" - -DEPEND=" - dev-libs/double-conversion:= - dev-libs/glib:2 - dev-libs/libpcre2[pcre16,unicode] - sys-libs/zlib:= - icu? ( dev-libs/icu:= ) - !icu? ( virtual/libiconv ) -" -RDEPEND="${DEPEND}" - -QT5_TARGET_SUBDIRS=( - src/tools/bootstrap - src/tools/moc - src/tools/rcc - src/corelib - src/tools/qlalr - doc -) - -QT5_GENTOO_PRIVATE_CONFIG=( - !:network - !:sql - !:testlib - !:xml -) - -pkg_pretend() { - use kernel_linux || return - get_running_version - if kernel_is -lt 4 11 && ! use old-kernel; then - ewarn "The running kernel is older than 4.11. USE=old-kernel is needed for" - ewarn "dev-qt/qtcore to function on this kernel properly. Bugs #669994, #672856" - fi -} - -src_prepare() { - # don't add -O3 to CXXFLAGS, bug 549140 - sed -i -e '/CONFIG\s*+=/s/optimize_full//' src/corelib/corelib.pro || die - - # fix missing qt_version_tag symbol w/ LTO, bug 674382 - sed -i -e 's/^gcc:ltcg/gcc/' src/corelib/global/global.pri || die - - # Broken with FORTIFY_SOURCE=3 - # - # Our toolchain sets F_S=2 by default w/ >= -O2, so we need - # to unset F_S first, then explicitly set 2, to negate any default - # and anything set by the user if they're choosing 3 (or if they've - # modified GCC to set 3). - # - # Refs: - # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105078 - # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105709 - # https://bugreports.qt.io/browse/QTBUG-103782 - # bug #847145 - if tc-enables-fortify-source ; then - # We can't unconditionally do this b/c we fortify needs - # some level of optimisation. - filter-flags -D_FORTIFY_SOURCE=3 - # (Qt doesn't seem to respect CPPFLAGS?) - append-flags -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 - fi - - qt5-build_src_prepare - - # workaround for a79a370c (...Annotate-QMutex-...patch) adding a header - qt5_syncqt_version -} - -src_configure() { - local myconf=( - $(qt_use icu) - $(qt_use !icu iconv) - ) - use old-kernel && myconf+=( - -no-feature-renameat2 # needs Linux 3.16, bug 669994 - -no-feature-getentropy # needs Linux 3.17, bug 669994 - -no-feature-statx # needs Linux 4.11, bug 672856 - ) - qt5-build_src_configure -} - -src_install() { - qt5-build_src_install - qt5_symlink_binary_to_path qmake 5 - - local flags=( - DBUS FREETYPE IMAGEFORMAT_JPEG IMAGEFORMAT_PNG - OPENGL OPENSSL SSL WIDGETS - ) - - for flag in ${flags[@]}; do - cat >> "${D}"/${QT5_HEADERDIR}/QtCore/qconfig.h <<- _EOF_ || die - - #if defined(QT_NO_${flag}) && defined(QT_${flag}) - # undef QT_NO_${flag} - #elif !defined(QT_NO_${flag}) && !defined(QT_${flag}) - # define QT_NO_${flag} - #endif - _EOF_ - done -} From b6b044504b9fed0a3b1ba9c65113696606603dbb Mon Sep 17 00:00:00 2001 From: Andrey Grozin Date: Wed, 10 Jan 2024 18:01:20 +0700 Subject: [PATCH 6/6] sci-mathematics/form: remove old version Signed-off-by: Andrey Grozin --- sci-mathematics/form/Manifest | 1 - sci-mathematics/form/form-4.3.0-r1.ebuild | 100 ---------------------- 2 files changed, 101 deletions(-) delete mode 100644 sci-mathematics/form/form-4.3.0-r1.ebuild diff --git a/sci-mathematics/form/Manifest b/sci-mathematics/form/Manifest index 9066a4b62e67c..d0a67bee26d0a 100644 --- a/sci-mathematics/form/Manifest +++ b/sci-mathematics/form/Manifest @@ -1,4 +1,3 @@ -DIST form-4.3.0.tar.gz 1457721 BLAKE2B 029c62b0e1d92cf66be0290e45467e9de47f8ac9a593e7d012c13d877fb84aa1a212bb99b7a1a7b8b5b04c4cb056b58da80812faf5f0af5d33629c7632768ae6 SHA512 3f7f9cabf37d33fce0dcb7e091ac5ce60412ebe840fcea432655ab7f0c86c620200d60df085af3011d92d8057d9501583f16686257e5d097f6d0571d7f1b6742 DIST form-4.3.1.tar.gz 1470480 BLAKE2B 210ff3b97a18a495c2d81de0cba7945d9c5a8e5e2ab3dc833ed01fedf701c15f459f0e1b171597d1997b892916a571295407eea75a631b83ce49c0b52e343c85 SHA512 7fdf925b4843e2a853340fc74cc9cf1b603100ddcab2c6ac3752a18e646296761e2c9ee3036a098e2168800f10b4e9a8512b6c871d6d61b5505c3403be9bbdad DIST form-5.0.0_beta1.tar.gz 1415449 BLAKE2B c919442941366488520b1ba0c058261de0261096548e752308f14db2dd0416172f8a6ccabe9a0e7ddccbb6f6ad605ba6ee4f15fbcd1fc9539ea9ab116bc27cbe SHA512 5bbdbdb3ccc865b33bc346d458d1927af13825320ad1ad795b3a5562732338ed119dc3a2ae5981d1bc8d89dd55c46febc66b7632560d27843aacc6e42f8904eb DIST form-mode.el.gz 6657 BLAKE2B 41d014e4ca8036249d53f5361012095e2ed2ef5e43543ba809a058f0ed241bd3ec984d9b61ab13a5b447faf07decf4e696362f24cacea3af5870cccdf43b1415 SHA512 aa81cc9c45a90af982179d56b874de0d152538653242ea028450675ab8421df2e0d53988c7efa3527845dae145c8047b71574191eedd90511fa89ad812851e25 diff --git a/sci-mathematics/form/form-4.3.0-r1.ebuild b/sci-mathematics/form/form-4.3.0-r1.ebuild deleted file mode 100644 index d3d5800ac1e25..0000000000000 --- a/sci-mathematics/form/form-4.3.0-r1.ebuild +++ /dev/null @@ -1,100 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit autotools flag-o-matic toolchain-funcs elisp-common - -DESCRIPTION="Symbolic Manipulation System" -HOMEPAGE="https://www.nikhef.nl/~form/ https://github.com/vermaseren/form/" -SRC_URI="https://github.com/vermaseren/${PN}/releases/download/v${PV}/${P}.tar.gz - emacs? ( https://dev.gentoo.org/~grozin/form-mode.el.gz )" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="devref doc doxygen emacs gmp mpi threads zlib" - -RDEPEND=" - gmp? ( dev-libs/gmp:0= ) - mpi? ( virtual/mpi ) - zlib? ( sys-libs/zlib )" -DEPEND="${RDEPEND} - devref? ( dev-texlive/texlive-latexrecommended ) - doc? ( dev-texlive/texlive-latexrecommended ) - doxygen? ( app-doc/doxygen ) - emacs? ( app-editors/emacs:* )" - -SITEFILE="64${PN}-gentoo.el" - -src_prepare() { - default - sed -i 's/LINKFLAGS = -s/LINKFLAGS =/' sources/Makefile.am || die - eautoreconf -} - -src_configure() { - # Workaround for GCC -fchecking ICE, bug #904339 - append-cxxflags $(test-flags-CXX -Wno-uninitialized) - - econf \ - --enable-scalar \ - --enable-largefile \ - --disable-debug \ - --disable-static-link \ - --with-api=posix \ - $(use_with gmp ) \ - $(use_enable mpi parform ) \ - $(use_enable threads threaded ) \ - $(use_with zlib ) \ - CC="$(tc-getCC)" \ - CXX="$(tc-getCXX)" \ - CFLAGS="${CFLAGS}" \ - LDFLAGS="${LDFLAGS}" \ - CXXFLAGS="${CXXFLAGS}" -} - -src_compile() { - default - if use devref; then - pushd doc/devref > /dev/null || die "doc/devref does not exist" - LANG=C VARTEXFONTS="${T}/fonts" emake pdf - popd > /dev/null - fi - if use doc; then - pushd doc/manual > /dev/null || die "doc/manual does not exist" - LANG=C VARTEXFONTS="${T}/fonts" emake pdf - popd > /dev/null - fi - if use doxygen; then - pushd doc/doxygen > /dev/null || die "doc/doxygen does not exist" - emake html - popd > /dev/null - fi -} - -src_install() { - default - if use devref; then - dodoc doc/devref/devref.pdf - fi - if use doc; then - dodoc doc/manual/manual.pdf - fi - if use doxygen; then - docinto html - dodoc -r doc/doxygen/html/. - fi - if use emacs; then - elisp-install ${PN} "${WORKDIR}"/*.el - elisp-site-file-install "${FILESDIR}/${SITEFILE}" - fi -} - -pkg_postinst() { - use emacs && elisp-site-regen -} - -pkg_postrm() { - use emacs && elisp-site-regen -}