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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9B2BB1382C5 for ; Sun, 28 Mar 2021 04:21:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 75878E089A; Sun, 28 Mar 2021 04:21:24 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4A852E089A for ; Sun, 28 Mar 2021 04:21:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 90B4B335D26 for ; Sun, 28 Mar 2021 04:21:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AB3325CF for ; Sun, 28 Mar 2021 04:21:20 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1616905265.3f2ce176977618670a011966317ddfbd72409829.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/mono/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/mono/Manifest dev-lang/mono/mono-6.12.0.122.ebuild X-VCS-Directories: dev-lang/mono/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 3f2ce176977618670a011966317ddfbd72409829 X-VCS-Branch: master Date: Sun, 28 Mar 2021 04:21:20 +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: 04d3611c-597f-4d40-b94e-c616025a9a6c X-Archives-Hash: d85c9cd30f0ec05c1e5578b4692e73f2 commit: 3f2ce176977618670a011966317ddfbd72409829 Author: Sam James gentoo org> AuthorDate: Sun Mar 28 03:45:27 2021 +0000 Commit: Sam James gentoo org> CommitDate: Sun Mar 28 04:21:05 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f2ce176 dev-lang/mono: add 6.12.0.122 * Bumps to 6.12.0.122 * Run cert-sync (regenerate certificate store) in pkg_postinst * Add (preliminary) check-reqs.eclass usage * Fix automagic dependencies on: ** app-crypt/mit-krb5 ** sys-libs/zlib (fallback to bundled previously) Bug: https://bugs.gentoo.org/776667 Bug: https://bugs.gentoo.org/719718 Closes: https://bugs.gentoo.org/687892 Closes: https://bugs.gentoo.org/729328 Closes: https://bugs.gentoo.org/762265 Signed-off-by: Sam James gentoo.org> dev-lang/mono/Manifest | 1 + dev-lang/mono/mono-6.12.0.122.ebuild | 114 +++++++++++++++++++++++++++++++++++ 2 files changed, 115 insertions(+) diff --git a/dev-lang/mono/Manifest b/dev-lang/mono/Manifest index 5263681050b..3b0026bf103 100644 --- a/dev-lang/mono/Manifest +++ b/dev-lang/mono/Manifest @@ -1,2 +1,3 @@ DIST mono-6.10.0.104.tar.xz 292616252 BLAKE2B 705fb45ab280eae0e66b4c0fa0fc0e3ee87ed47164dd5bfa2f11115c30fb7b788bd9b25bfe7d820db88178bf0863b1cc984def94fe291c9924b311454735deed SHA512 73b853e9fc9af2e1bf5e45f7accb8893dd7e48f9723f74b03d99ea11cf565e2c5bb2d6ae4c81c7e7be0cdfa489016da909ed7b12808c8f84d9d25e33e1cb9874 +DIST mono-6.12.0.122.tar.xz 292266176 BLAKE2B 07043c5fbca33edf64ebca0392b47af9b9ab502be772efb5afbe5ec9e8683b7f4e96a305ee906dff617842bdba2819c2abc130d7aff23b12779f403bbd88f3bd SHA512 0fbd4147498cc81e384933147eb6aa5c559d17a794a308af7ffa43dce51e0faefde24fc75e987ed804dcb161b52756944bc3611100fc0a4adcc260ca97ddaecd DIST mono-6.6.0.161.tar.xz 241179396 BLAKE2B 88cb0599cd5698500431dc8a78fa3b44a148bdc11d3067e950f0019c6bbeff9ebf2142e90f3b1023721c982fc4a59605ee969d84ee2137f968dee66b1ea0b55c SHA512 0b0c72daef9e1c10c0d566292997d4a923766390793ec1196a063b885e853b47a12503238632879cf7397f03b34909137e24c53db9300a4f209164e973284186 diff --git a/dev-lang/mono/mono-6.12.0.122.ebuild b/dev-lang/mono/mono-6.12.0.122.ebuild new file mode 100644 index 00000000000..2e2781d0640 --- /dev/null +++ b/dev-lang/mono/mono-6.12.0.122.ebuild @@ -0,0 +1,114 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CHECKREQS_DISK_BUILD="4500M" +inherit autotools check-reqs linux-info mono-env pax-utils multilib-minimal + +DESCRIPTION="Mono runtime and class libraries, a C# compiler/interpreter" +HOMEPAGE="https://mono-project.com" +SRC_URI="https://download.mono-project.com/sources/mono/${P}.tar.xz" + +LICENSE="MIT LGPL-2.1 GPL-2 BSD-4 NPL-1.1 Ms-PL GPL-2-with-linking-exception IDPL" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux" +IUSE="doc minimal nls pax_kernel xen" + +# Note: mono works incorrect with older versions of libgdiplus +# Details on dotnet overlay issue: https://github.com/gentoo/dotnet/issues/429 +DEPEND=" + app-crypt/mit-krb5[${MULTILIB_USEDEP}] + sys-libs/zlib[${MULTILIB_USEDEP}] + ia64? ( sys-libs/libunwind ) + !minimal? ( >=dev-dotnet/libgdiplus-6.0.2 ) + nls? ( sys-devel/gettext ) +" +RDEPEND=" + ${DEPEND} + app-misc/ca-certificates +" +BDEPEND=" + sys-devel/bc + virtual/yacc + pax_kernel? ( sys-apps/elfix ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-5.12-try-catch.patch +) + +pkg_pretend() { + linux-info_pkg_setup + + if use kernel_linux ; then + if linux_config_exists ; then + linux_chkconfig_builtin SYSVIPC || die "SYSVIPC not enabled in the kernel" + else + # https://github.com/gentoo/gentoo/blob/f200e625bda8de696a28338318c9005b69e34710/eclass/linux-info.eclass#L686 + ewarn "kernel config not found" + ewarn "If CONFIG_SYSVIPC is not set in your kernel .config, mono will hang while compiling." + ewarn "See https://bugs.gentoo.org/261869 for more info." + fi + fi + + # bug #687892 + check-reqs_pkg_pretend +} + +pkg_setup() { + mono-env_pkg_setup + check-reqs_pkg_setup +} + +src_prepare() { + # We need to sed in the paxctl-ng -mr in the runtime/mono-wrapper.in so it don't + # get killed in the build proces when MPROTECT is enabled, bug #286280 + # RANDMMAP kills the build process too, bug #347365 + # We use paxmark.sh to get PT/XT logic, bug #532244 + if use pax_kernel ; then + ewarn "We are disabling MPROTECT on the mono binary." + + # issue 9 : https://github.com/Heather/gentoo-dotnet/issues/9 + sed '/exec "/ i\paxmark.sh -mr "$r/@mono_runtime@"' -i "${S}"/runtime/mono-wrapper.in || die "Failed to sed mono-wrapper.in" + fi + + default + + # PATCHES contains configure.ac patch + eautoreconf + multilib_copy_sources +} + +multilib_src_configure() { + local myeconfargs=( + $(use_with xen xen_opt) + --without-ikvm-native + --disable-dtrace + --enable-system-aot + $(use_with doc mcs-docs) + $(use_enable nls) + ) + + econf "${myeconfargs[@]}" +} + +multilib_src_test() { + cd mcs/tests || die + emake check +} + +multilib_src_install() { + default + + # Remove files not respecting LDFLAGS and that we are not supposed to provide, see Fedora + # mono.spec and http://www.mail-archive.com/mono-devel-list@lists.ximian.com/msg24870.html + # for reference. + rm -f "${ED}"/usr/lib/mono/{2.0,4.5}/mscorlib.dll.so || die + rm -f "${ED}"/usr/lib/mono/{2.0,4.5}/mcs.exe.so || die +} + +pkg_postinst() { + # bug #762265 + cert-sync "${EROOT}"/etc/ssl/certs/ca-certificates.crt +}