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 E267115838C for ; Wed, 24 Jan 2024 20:25:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1E175E29C8; Wed, 24 Jan 2024 20:25:16 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 02879E29A3 for ; Wed, 24 Jan 2024 20:25:15 +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 422C33432FE for ; Wed, 24 Jan 2024 20:25:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D7C391299 for ; Wed, 24 Jan 2024 20:25:13 +0000 (UTC) From: "Horodniceanu Andrei" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Horodniceanu Andrei" Message-ID: <1706121530.585480e834a5740f4d3086b867b7232cb1c1bf63.a.horodniceanu@gentoo> Subject: [gentoo-commits] repo/user/dlang:master commit in: dev-lang/ldc2/ X-VCS-Repository: repo/user/dlang X-VCS-Files: dev-lang/ldc2/ldc2-1.32.2-r1.ebuild dev-lang/ldc2/ldc2-1.33.0-r1.ebuild dev-lang/ldc2/ldc2-1.34.0-r1.ebuild dev-lang/ldc2/ldc2-1.35.0-r1.ebuild dev-lang/ldc2/ldc2-1.35.0-r2.ebuild X-VCS-Directories: dev-lang/ldc2/ X-VCS-Committer: a.horodniceanu X-VCS-Committer-Name: Horodniceanu Andrei X-VCS-Revision: 585480e834a5740f4d3086b867b7232cb1c1bf63 X-VCS-Branch: master Date: Wed, 24 Jan 2024 20:25:13 +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: cb0d41ae-70be-4e30-850f-c2308ac7f580 X-Archives-Hash: ecc0825cf6bb27d13cd5c2aff9bb05a5 commit: 585480e834a5740f4d3086b867b7232cb1c1bf63 Author: Horodniceanu Andrei proton me> AuthorDate: Wed Jan 24 18:37:44 2024 +0000 Commit: Horodniceanu Andrei proton me> CommitDate: Wed Jan 24 18:38:50 2024 +0000 URL: https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=585480e8 dev-lang/ldc2: backport strict-aliasing fixes Bug: https://bugs.gentoo.org/922590 Signed-off-by: Horodniceanu Andrei proton.me> ...ldc2-1.35.0-r1.ebuild => ldc2-1.32.2-r1.ebuild} | 25 ++++++++++------------ ...ldc2-1.35.0-r1.ebuild => ldc2-1.33.0-r1.ebuild} | 25 ++++++++++------------ ...ldc2-1.35.0-r1.ebuild => ldc2-1.34.0-r1.ebuild} | 22 +++++++++---------- ...ldc2-1.35.0-r1.ebuild => ldc2-1.35.0-r2.ebuild} | 4 +++- 4 files changed, 35 insertions(+), 41 deletions(-) diff --git a/dev-lang/ldc2/ldc2-1.35.0-r1.ebuild b/dev-lang/ldc2/ldc2-1.32.2-r1.ebuild similarity index 82% copy from dev-lang/ldc2/ldc2-1.35.0-r1.ebuild copy to dev-lang/ldc2/ldc2-1.32.2-r1.ebuild index 58638e2..f1d5ad7 100644 --- a/dev-lang/ldc2/ldc2-1.35.0-r1.ebuild +++ b/dev-lang/ldc2/ldc2-1.32.2-r1.ebuild @@ -1,9 +1,9 @@ # Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=8 +EAPI=7 -inherit multilib-build cmake llvm +inherit flag-o-matic multilib-build cmake llvm MY_PV="${PV//_/-}" MY_P="ldc-${MY_PV}-src" @@ -18,26 +18,22 @@ SLOT="$(ver_cut 1-2)/$(ver_cut 3)" IUSE="static-libs" -# Upstream supports LLVM 11.0 through 16.0. -DEPEND=" +# Upstream supports LLVM 9.0 through 15.0. +RDEPEND=" || ( - sys-devel/llvm:16 sys-devel/llvm:15 ) - =app-eselect/eselect-dlang-20140709" -RDEPEND=" - ${DEPEND} - ${IDEPEND}" - -LLVM_MAX_SLOT=16 + =app-eselect/eselect-dlang-20140709" +DEPEND="${RDEPEND}" +LLVM_MAX_SLOT=15 PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch" # For now, we support amd64 multilib. Anyone is free to add more support here. MULTILIB_COMPAT=( abi_x86_{32,64} ) # Upstream supports "2.079-" -DLANG_VERSION_RANGE="2.100-2.106" +DLANG_VERSION_RANGE="2.075-2.080 2.082-" DLANG_PACKAGE_TYPE="single" inherit dlang @@ -49,12 +45,13 @@ src_prepare() { d_src_configure() { # Make sure libphobos2 is installed into ldc2's directory. export LIBDIR_${ABI}="${LIBDIR_HOST}" + # https://bugs.gentoo.org/show_bug.cgi?id=922590 + append-flags -fno-strict-aliasing local mycmakeargs=( -DD_VERSION=2 -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2) -DD_COMPILER="${DMD} $(dlang_dmdw_dcflags)" -DLDC_WITH_LLD=OFF - -DCOMPILE_D_MODULES_SEPARATELY=ON ) use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON ) use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON ) diff --git a/dev-lang/ldc2/ldc2-1.35.0-r1.ebuild b/dev-lang/ldc2/ldc2-1.33.0-r1.ebuild similarity index 82% copy from dev-lang/ldc2/ldc2-1.35.0-r1.ebuild copy to dev-lang/ldc2/ldc2-1.33.0-r1.ebuild index 58638e2..f1d5ad7 100644 --- a/dev-lang/ldc2/ldc2-1.35.0-r1.ebuild +++ b/dev-lang/ldc2/ldc2-1.33.0-r1.ebuild @@ -1,9 +1,9 @@ # Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=8 +EAPI=7 -inherit multilib-build cmake llvm +inherit flag-o-matic multilib-build cmake llvm MY_PV="${PV//_/-}" MY_P="ldc-${MY_PV}-src" @@ -18,26 +18,22 @@ SLOT="$(ver_cut 1-2)/$(ver_cut 3)" IUSE="static-libs" -# Upstream supports LLVM 11.0 through 16.0. -DEPEND=" +# Upstream supports LLVM 9.0 through 15.0. +RDEPEND=" || ( - sys-devel/llvm:16 sys-devel/llvm:15 ) - =app-eselect/eselect-dlang-20140709" -RDEPEND=" - ${DEPEND} - ${IDEPEND}" - -LLVM_MAX_SLOT=16 + =app-eselect/eselect-dlang-20140709" +DEPEND="${RDEPEND}" +LLVM_MAX_SLOT=15 PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch" # For now, we support amd64 multilib. Anyone is free to add more support here. MULTILIB_COMPAT=( abi_x86_{32,64} ) # Upstream supports "2.079-" -DLANG_VERSION_RANGE="2.100-2.106" +DLANG_VERSION_RANGE="2.075-2.080 2.082-" DLANG_PACKAGE_TYPE="single" inherit dlang @@ -49,12 +45,13 @@ src_prepare() { d_src_configure() { # Make sure libphobos2 is installed into ldc2's directory. export LIBDIR_${ABI}="${LIBDIR_HOST}" + # https://bugs.gentoo.org/show_bug.cgi?id=922590 + append-flags -fno-strict-aliasing local mycmakeargs=( -DD_VERSION=2 -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2) -DD_COMPILER="${DMD} $(dlang_dmdw_dcflags)" -DLDC_WITH_LLD=OFF - -DCOMPILE_D_MODULES_SEPARATELY=ON ) use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON ) use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON ) diff --git a/dev-lang/ldc2/ldc2-1.35.0-r1.ebuild b/dev-lang/ldc2/ldc2-1.34.0-r1.ebuild similarity index 83% copy from dev-lang/ldc2/ldc2-1.35.0-r1.ebuild copy to dev-lang/ldc2/ldc2-1.34.0-r1.ebuild index 58638e2..9cf71ba 100644 --- a/dev-lang/ldc2/ldc2-1.35.0-r1.ebuild +++ b/dev-lang/ldc2/ldc2-1.34.0-r1.ebuild @@ -1,9 +1,9 @@ # Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=8 +EAPI=7 -inherit multilib-build cmake llvm +inherit flag-o-matic multilib-build cmake llvm MY_PV="${PV//_/-}" MY_P="ldc-${MY_PV}-src" @@ -18,18 +18,15 @@ SLOT="$(ver_cut 1-2)/$(ver_cut 3)" IUSE="static-libs" -# Upstream supports LLVM 11.0 through 16.0. -DEPEND=" +# Upstream supports LLVM 11.0 through 16. +RDEPEND=" || ( sys-devel/llvm:16 sys-devel/llvm:15 ) - =app-eselect/eselect-dlang-20140709" -RDEPEND=" - ${DEPEND} - ${IDEPEND}" - + =app-eselect/eselect-dlang-20140709" +DEPEND="${RDEPEND}" LLVM_MAX_SLOT=16 PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch" @@ -37,7 +34,7 @@ PATCHES="${FILESDIR}/ldc2-1.15.0-link-defaultlib-shared.patch" MULTILIB_COMPAT=( abi_x86_{32,64} ) # Upstream supports "2.079-" -DLANG_VERSION_RANGE="2.100-2.106" +DLANG_VERSION_RANGE="2.075-2.080 2.082-" DLANG_PACKAGE_TYPE="single" inherit dlang @@ -49,12 +46,13 @@ src_prepare() { d_src_configure() { # Make sure libphobos2 is installed into ldc2's directory. export LIBDIR_${ABI}="${LIBDIR_HOST}" + # https://bugs.gentoo.org/show_bug.cgi?id=922590 + append-flags -fno-strict-aliasing local mycmakeargs=( -DD_VERSION=2 -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2) -DD_COMPILER="${DMD} $(dlang_dmdw_dcflags)" -DLDC_WITH_LLD=OFF - -DCOMPILE_D_MODULES_SEPARATELY=ON ) use static-libs && mycmakeargs+=( -DBUILD_SHARED_LIBS=BOTH ) || mycmakeargs+=( -DBUILD_SHARED_LIBS=ON ) use abi_x86_32 && use abi_x86_64 && mycmakeargs+=( -DMULTILIB=ON ) diff --git a/dev-lang/ldc2/ldc2-1.35.0-r1.ebuild b/dev-lang/ldc2/ldc2-1.35.0-r2.ebuild similarity index 93% rename from dev-lang/ldc2/ldc2-1.35.0-r1.ebuild rename to dev-lang/ldc2/ldc2-1.35.0-r2.ebuild index 58638e2..ae28b6e 100644 --- a/dev-lang/ldc2/ldc2-1.35.0-r1.ebuild +++ b/dev-lang/ldc2/ldc2-1.35.0-r2.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit multilib-build cmake llvm +inherit flag-o-matic multilib-build cmake llvm MY_PV="${PV//_/-}" MY_P="ldc-${MY_PV}-src" @@ -49,6 +49,8 @@ src_prepare() { d_src_configure() { # Make sure libphobos2 is installed into ldc2's directory. export LIBDIR_${ABI}="${LIBDIR_HOST}" + # https://bugs.gentoo.org/show_bug.cgi?id=922590 + append-flags -fno-strict-aliasing local mycmakeargs=( -DD_VERSION=2 -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2)