diff options
author | mirror@stealer.net <mirror@stealer.net> | 2025-07-13 07:30:54 +0000 |
---|---|---|
committer | mirror@stealer.net <mirror@stealer.net> | 2025-07-13 07:30:54 +0000 |
commit | 3cdba57b47801b2ae378051c354fbf2142d13406 (patch) | |
tree | a1eaebf1009d5cb8effb11ef74bdb4f2fd067005 /dev-lang | |
parent | b4b6a5611bea0bb1134f6c9a52d4a556f8dbc3fa (diff) |
2025-07-13 07:10:53+00:00
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/Manifest.gz | bin | 22502 -> 22496 bytes | |||
-rw-r--r-- | dev-lang/mono/Manifest | 3 | ||||
-rw-r--r-- | dev-lang/mono/files/mono-6.14.1-disable-automagic-ccache.patch | 17 | ||||
-rw-r--r-- | dev-lang/mono/mono-6.14.1.ebuild | 133 |
4 files changed, 153 insertions, 0 deletions
diff --git a/dev-lang/Manifest.gz b/dev-lang/Manifest.gz Binary files differindex fe64409a07361..b827e25fefd5d 100644 --- a/dev-lang/Manifest.gz +++ b/dev-lang/Manifest.gz diff --git a/dev-lang/mono/Manifest b/dev-lang/mono/Manifest index 57f8ed79ded60..0473e7e9245ff 100644 --- a/dev-lang/mono/Manifest +++ b/dev-lang/mono/Manifest @@ -3,6 +3,9 @@ AUX mono-6.12.0.122-disable-automagic-ccache.patch 513 BLAKE2B ca0f3f1b2d9f3357f AUX mono-6.12.0.199-boringssl-cmake4.patch 678 BLAKE2B 3fd4c773d513de94df6ec2a7983b3f26c3c63926f1e2bc6a99c4c8d6ed52e9a41c93af18160eac0e381f001027e3f0b73fc7d9317bd180b65bf4d9b1756f98de SHA512 28fe652c6a9f5e8dffaac4bd157da78d35f2ba300faf8df14199cdb6f92e8bd1a03a377e7d047b2214a9544f1e512897ee49e42fc1df12bea90bd6c37bd46670 AUX mono-6.12.0.199-cmake4.patch 768 BLAKE2B a7467d10c224759715de75742effd4fdea0ec4b4e789f1dc2d3bdce893977e3dd6fdc989c0d0dea0797c1019eb85b747aabfdf26ee4d997544ed2add9ea8c596 SHA512 6fb1e401ba038ae7a3f7c6f90d8acfc3a000da872e65284a1bdad04e3b7219a822d377fa8ea0a1f71be1a6f5810c22bcdb4e8e628b3b835187f42ef27eaff607 AUX mono-6.12.0.199-configure-c99.patch 1464 BLAKE2B 2123b6c51c47578c6ab574d82debe381af8b8bfebf3ffa1724fd72cc6a620040a4612febbba61a52bbe80f4850569b919f08e3e820ebb283451610cc52f96c9d SHA512 b7e2cd76880a4dba829cc554d6f1d3444edce953efec17f14ccbc5a49f2727205d54bfadba5a680814087d0a070e200288ab5bf2ad418ed6d4317d06fbde0259 +AUX mono-6.14.1-disable-automagic-ccache.patch 452 BLAKE2B 1aebf43b138c0cd54251685c69347302ece83312f189b8449ef9a23546d28ac24670dc4836511c31851778ac30012182cd038925a7a46900f8b89c6a3e49e7e6 SHA512 c635b891379d408bb36fc3e213bdf80a1b499b559cffe7bd39c4a1a7983efd35fbb8e90e31d2fb49fc071ae16008080fe34b0393c51d84c4d88e2ed7164b5db4 DIST mono-6.12.0.199.tar.xz 304146664 BLAKE2B a38f0f1b80b300132247cee4621fc59bd65845c919ccd0cc55e00928b8a1b85b0695a9bb436c3efc0afd4e7dfa001714485964cf44239bb7c438ca6ed818dabf SHA512 9e379aaeb2e8750edbda74648c0ae9cc8cb9b2d7af85512bf2e729132c2e0322e776ef0b7657da708cbc1ae2a62f5532519d339fa68f465b30a65ca30d4a1e51 +DIST mono-6.14.1.tar.xz 303688164 BLAKE2B 6658d797905bd4fb3f5d2fee42fc1bb39916a0a6ccb6247bed70e36bba21353420303f7fa630b63c3e730f8a91b014d391bd1db39905f86f5250489617d16a5b SHA512 c16a2ecbfce93db20a7a6d11b6406c8764f5694355c1ce82081399cd7ab6d8b22e7f8fb21f7af78967b34ef54dcb682917b8cf22d61f1b72be996d1a42e9f1b9 EBUILD mono-6.12.0.199-r2.ebuild 3722 BLAKE2B 20eadef05b9106ade0f58c9f691e6045ceeb7bbe678ea8d73b14f32760539fc264600f7d58b213e7a7a8b6b5d7719bc5cabd2f3502b29e98d20389338f9c53b8 SHA512 2ccdc4c073697325f966ee701fa62685142983bcbd41245294fbd1d0b6bffd9d2936f896f76d4be5781a5a87b8bf66a588a24272ec2b7736fee364cd39f31dfa +EBUILD mono-6.14.1.ebuild 3733 BLAKE2B 863756ec4a732b3b7cc22fdd23c5518eb33aaaf39fe0b10d819d1960e3f3eaba0e72d59e8ed385efddad49f8faf9b6576ffe7e19007e8ae447caa16c3be2a09d SHA512 bdfa3c97a081e47430082561e9657840f845f6fb36c0b8b4b850787eff29d61fa41c907ab0aa9b6644f4f7d4726d5a184c9450a28c34c42cbd7c116424ec64da MISC metadata.xml 643 BLAKE2B f0fd2de7a1abf76c572f13550e6b6f82d03d66c016cf9be691710d5e8057c164dc3cf3e73d271ecfa64ccc80f0993c913d7806d1dab542ca935ed524b0e9d9a4 SHA512 8be588953da57d228d46281674f9f1e20ae5a9d382e5a5c4251263308a619f18a26f086761c538e375d18b01985dbcc79a0e28e92268ff6da194ff519d00dfd6 diff --git a/dev-lang/mono/files/mono-6.14.1-disable-automagic-ccache.patch b/dev-lang/mono/files/mono-6.14.1-disable-automagic-ccache.patch new file mode 100644 index 0000000000000..466bc6623d141 --- /dev/null +++ b/dev-lang/mono/files/mono-6.14.1-disable-automagic-ccache.patch @@ -0,0 +1,17 @@ +diff --git a/mono/btls/CMakeLists.txt b/mono/btls/CMakeLists.txt +index dbad836fc27..e36ee5e0a8a 100644 +--- a/mono/btls/CMakeLists.txt ++++ b/mono/btls/CMakeLists.txt +@@ -5,11 +5,6 @@ project (mono-btls) + enable_language(C) + enable_language(CXX) + +-find_program(CCACHE_PROGRAM ccache) +-if(CCACHE_PROGRAM) +- set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}") +-endif() +- + if (MSVC OR CYGWIN) + set(BTLS_HOST_WIN32 1) + endif () + diff --git a/dev-lang/mono/mono-6.14.1.ebuild b/dev-lang/mono/mono-6.14.1.ebuild new file mode 100644 index 0000000000000..7d9d4d0aa7939 --- /dev/null +++ b/dev-lang/mono/mono-6.14.1.ebuild @@ -0,0 +1,133 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHECKREQS_DISK_BUILD="4500M" +inherit autotools check-reqs flag-o-matic linux-info mono-env pax-utils multilib-minimal + +DESCRIPTION="Mono open source ECMA CLI, C# and .NET implementation" +HOMEPAGE="https://gitlab.winehq.org/mono/mono" +SRC_URI="https://dl.winehq.org/mono/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 -riscv ~x86 ~amd64-linux" +IUSE="doc minimal nls pax-kernel selinux 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}] + !minimal? ( >=dev-dotnet/libgdiplus-6.0.2 ) + nls? ( sys-devel/gettext ) +" +RDEPEND=" + ${DEPEND} + app-misc/ca-certificates + selinux? ( sec-policy/selinux-mono ) +" +# CMake is used for bundled deps +BDEPEND=" + dev-build/cmake + app-alternatives/bc + app-alternatives/yacc + pax-kernel? ( sys-apps/elfix ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-6.14.1-disable-automagic-ccache.patch + "${FILESDIR}"/${PN}-6.12.0.199-configure-c99.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 + + # Does nothing other than spam "git command not found" + sed -e '/^LLVM_VERSION :=/d' -i llvm/build.mk || die + + # PATCHES contains configure.ac patch + eautoreconf + multilib_copy_sources +} + +multilib_src_configure() { + # Many, many unsafe warnings. Miscompiled with -O3 too: bug #915985. + append-flags -O2 -fno-strict-aliasing + filter-lto + + local myeconfargs=( + $(use_with xen xen_opt) + --without-ikvm-native + --disable-dtrace + --enable-system-aot + $(multilib_native_use_with doc mcs-docs) + $(use_enable nls) + ) + + # Workaround(?) for bug #779025 + # May be able to do a real fix by adjusting path used? + if multilib_is_native_abi ; then + myeconfargs+=( --enable-system-aot ) + else + myeconfargs+=( --disable-system-aot ) + fi + + econf "${myeconfargs[@]}" +} + +multilib_src_test() { + emake -C mcs/tests 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 + + find "${ED}" -name '*.la' -delete || die +} + +pkg_postinst() { + # bug #762265 + cert-sync "${EROOT}"/etc/ssl/certs/ca-certificates.crt +} |