public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Matt Thode" <prometheanfire@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/mono/
Date: Wed, 30 Nov 2016 02:13:30 +0000 (UTC)	[thread overview]
Message-ID: <1480471908.99d34f88dcb8a1d465e476497c127039dcc17f0b.prometheanfire@gentoo> (raw)

commit:     99d34f88dcb8a1d465e476497c127039dcc17f0b
Author:     Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 30 01:33:47 2016 +0000
Commit:     Matt Thode <prometheanfire <AT> gentoo <DOT> org>
CommitDate: Wed Nov 30 02:11:48 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99d34f88

dev-lang/mono: make kernel config checking not need a kernel to be installed

Change to linux_chkconfig_builtin as the value can only be 'y' and even if the
kernel config value could be 'm' we don't have a way of checking if it is
loaded.

Package-Manager: portage-2.3.0

 dev-lang/mono/mono-4.6.1.5-r1.ebuild   | 119 ++++++++++++++++++++++++++++++++
 dev-lang/mono/mono-4.9.0.729-r1.ebuild | 120 +++++++++++++++++++++++++++++++++
 2 files changed, 239 insertions(+)

diff --git a/dev-lang/mono/mono-4.6.1.5-r1.ebuild b/dev-lang/mono/mono-4.6.1.5-r1.ebuild
new file mode 100644
index 00000000..9232a04
--- /dev/null
+++ b/dev-lang/mono/mono-4.6.1.5-r1.ebuild
@@ -0,0 +1,119 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit eutils linux-info mono-env flag-o-matic pax-utils versionator multilib-minimal
+
+DESCRIPTION="Mono runtime and class libraries, a C# compiler/interpreter"
+HOMEPAGE="http://www.mono-project.com/Main_Page"
+SRC_URI="http://download.mono-project.com/sources/${PN}/${P}.tar.bz2"
+
+LICENSE="MIT LGPL-2.1 GPL-2 BSD-4 NPL-1.1 Ms-PL GPL-2-with-linking-exception IDPL"
+SLOT="0"
+
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux"
+
+IUSE="nls minimal pax_kernel xen doc"
+
+COMMONDEPEND="
+	!minimal? ( >=dev-dotnet/libgdiplus-2.10 )
+	ia64? ( sys-libs/libunwind )
+	nls? ( sys-devel/gettext )
+"
+RDEPEND="${COMMONDEPEND}
+	|| ( www-client/links www-client/lynx )
+"
+DEPEND="${COMMONDEPEND}
+	sys-devel/bc
+	virtual/yacc
+	pax_kernel? ( sys-apps/elfix )
+	!dev-lang/mono-basic
+"
+
+S="${WORKDIR}/${PN}-$(get_version_component_range 1-3)"
+
+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 http://bugs.gentoo.org/261869 for more info."
+		fi
+	fi
+}
+
+pkg_setup() {
+	mono-env_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 enable. #286280
+	# RANDMMAP kill the build proces to #347365
+	# use paxmark.sh to get PT/XT logic #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
+
+	# mono build system can fail otherwise
+	strip-flags
+
+	# Fix VB targets
+	# http://osdir.com/ml/general/2015-05/msg20808.html
+	#eapply "${FILESDIR}/add_missing_vb_portable_targets.patch"
+
+	# Fix build when sgen disabled
+	# https://bugzilla.xamarin.com/show_bug.cgi?id=32015
+	#eapply "${FILESDIR}/${PN}-4.0.2.5-fix-mono-dis-makefile-am-when-without-sgen.patch"
+
+	# TODO: update patch
+	# Fix atomic_add_i4 support for 32-bit ppc
+	# https://github.com/mono/mono/compare/f967c79926900343f399c75624deedaba460e544^...8f379f0c8f98493180b508b9e68b9aa76c0c5bdf
+	#epatch "${FILESDIR}/${PN}-4.0.2.5-fix-ppc-atomic-add-i4.patch"
+
+	# TODO: update patch
+	#epatch "${FILESDIR}/systemweb3.patch"
+	#epatch "${FILESDIR}/fix-for-GitExtensions-issue-2710-another-resolution.patch"
+	#epatch "${FILESDIR}/fix-for-bug36724.patch"
+
+	default
+	#eapply_user
+	multilib_copy_sources
+}
+
+multilib_src_configure() {
+	local myeconfargs=(
+		--disable-silent-rules
+		$(use_with xen xen_opt)
+		--without-ikvm-native
+		--disable-dtrace
+		$(use_with doc mcs-docs)
+		$(use_enable nls)
+	)
+
+	econf "${myeconfargs[@]}"
+}
+
+multilib_src_test() {
+	cd mcs/tests || die
+	emake check
+}
+
+multilib_src_install() {
+	default_src_install
+
+	# 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
+}

diff --git a/dev-lang/mono/mono-4.9.0.729-r1.ebuild b/dev-lang/mono/mono-4.9.0.729-r1.ebuild
new file mode 100644
index 00000000..b97f86a
--- /dev/null
+++ b/dev-lang/mono/mono-4.9.0.729-r1.ebuild
@@ -0,0 +1,120 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit eutils linux-info mono-env flag-o-matic pax-utils versionator multilib-minimal
+
+DESCRIPTION="Mono runtime and class libraries, a C# compiler/interpreter"
+HOMEPAGE="http://www.mono-project.com/Main_Page"
+SRC_URI="http://download.mono-project.com/sources/${PN}/nightly/${P}.tar.bz2"
+
+LICENSE="MIT LGPL-2.1 GPL-2 BSD-4 NPL-1.1 Ms-PL GPL-2-with-linking-exception IDPL"
+SLOT="0"
+
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux"
+
+IUSE="nls minimal pax_kernel xen doc"
+
+COMMONDEPEND="
+	!minimal? ( >=dev-dotnet/libgdiplus-2.10 )
+	ia64? ( sys-libs/libunwind )
+	nls? ( sys-devel/gettext )
+"
+RDEPEND="${COMMONDEPEND}
+	|| ( www-client/links www-client/lynx )
+"
+DEPEND="${COMMONDEPEND}
+	sys-devel/bc
+	virtual/yacc
+	pax_kernel? ( sys-apps/elfix )
+	dev-util/cmake
+	!dev-lang/mono-basic
+"
+
+S="${WORKDIR}/${PN}-$(get_version_component_range 1-3)"
+
+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 http://bugs.gentoo.org/261869 for more info."
+		fi
+	fi
+}
+
+pkg_setup() {
+	mono-env_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 enable. #286280
+	# RANDMMAP kill the build proces to #347365
+	# use paxmark.sh to get PT/XT logic #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
+
+	# mono build system can fail otherwise
+	strip-flags
+
+	# Fix VB targets
+	# http://osdir.com/ml/general/2015-05/msg20808.html
+	#eapply "${FILESDIR}/add_missing_vb_portable_targets.patch"
+
+	# Fix build when sgen disabled
+	# https://bugzilla.xamarin.com/show_bug.cgi?id=32015
+	#eapply "${FILESDIR}/${PN}-4.0.2.5-fix-mono-dis-makefile-am-when-without-sgen.patch"
+
+	# TODO: update patch
+	# Fix atomic_add_i4 support for 32-bit ppc
+	# https://github.com/mono/mono/compare/f967c79926900343f399c75624deedaba460e544^...8f379f0c8f98493180b508b9e68b9aa76c0c5bdf
+	#epatch "${FILESDIR}/${PN}-4.0.2.5-fix-ppc-atomic-add-i4.patch"
+
+	# TODO: update patch
+	#epatch "${FILESDIR}/systemweb3.patch"
+	#epatch "${FILESDIR}/fix-for-GitExtensions-issue-2710-another-resolution.patch"
+	#epatch "${FILESDIR}/fix-for-bug36724.patch"
+
+	default
+	#eapply_user
+	multilib_copy_sources
+}
+
+multilib_src_configure() {
+	local myeconfargs=(
+		--disable-silent-rules
+		$(use_with xen xen_opt)
+		--without-ikvm-native
+		--disable-dtrace
+		$(use_with doc mcs-docs)
+		$(use_enable nls)
+	)
+
+	econf "${myeconfargs[@]}"
+}
+
+multilib_src_test() {
+	cd mcs/tests || die
+	emake check
+}
+
+multilib_src_install() {
+	default_src_install
+
+	# 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
+}


             reply	other threads:[~2016-11-30  2:13 UTC|newest]

Thread overview: 80+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-30  2:13 Matt Thode [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-03-02  4:39 [gentoo-commits] repo/gentoo:master commit in: dev-lang/mono/ Sam James
2024-02-27 10:32 Joonas Niilola
2024-02-27 10:32 Joonas Niilola
2023-12-04  8:33 Sam James
2023-10-10  9:04 Joonas Niilola
2023-10-10  7:09 Joonas Niilola
2023-09-04 14:06 Andrew Ammerlaan
2023-07-26  2:53 Sam James
2023-06-28  7:19 Sam James
2023-06-17  2:59 Sam James
2023-06-17  2:25 Sam James
2023-06-07  4:10 Sam James
2021-04-29  0:38 Sam James
2021-04-26 10:34 Sam James
2021-03-29 20:59 Sam James
2021-03-28  4:21 Sam James
2021-03-28  4:21 Sam James
2021-03-28  4:21 Sam James
2021-03-28  4:21 Sam James
2020-08-03 12:34 Mikhail Pukhlikov
2020-07-03 23:22 Aaron Bauman
2020-03-31  8:28 Mikle Kolyada
2020-03-27 16:31 Agostino Sarubbo
2019-12-13  9:06 Mikhail Pukhlikov
2019-10-07 13:42 Mikhail Pukhlikov
2019-09-16 10:20 Mikhail Pukhlikov
2019-07-27 12:54 Aaron Bauman
2019-07-22  6:43 Mikhail Pukhlikov
2019-06-10  7:00 Mikhail Pukhlikov
2019-06-09  2:08 Aaron Bauman
2019-06-07 11:37 Mikhail Pukhlikov
2019-04-22 13:48 Mikhail Pukhlikov
2019-03-19 12:15 Mikhail Pukhlikov
2019-03-05 14:03 Mikhail Pukhlikov
2019-02-14  7:05 Mikhail Pukhlikov
2019-02-01 12:23 Mikhail Pukhlikov
2019-01-09 15:16 Mikhail Pukhlikov
2018-12-07 22:06 Anthony G. Basile
2018-12-05 14:30 Mikhail Pukhlikov
2018-10-12  7:27 Sergei Trofimovich
2018-10-11  6:42 Mikhail Pukhlikov
2018-08-09  9:18 Mikhail Pukhlikov
2018-07-02  6:47 Mikhail Pukhlikov
2018-05-25 21:13 Mikle Kolyada
2018-05-08  6:37 Mikhail Pukhlikov
2018-04-20  0:25 Aaron Bauman
2018-04-03 19:20 Aaron Bauman
2017-06-26 10:21 Alexis Ballier
2017-04-02 14:14 Mikhail Pukhlikov
2017-03-01 12:01 Mikhail Pukhlikov
2017-01-24 10:35 Mikhail Pukhlikov
2017-01-11 10:10 Mikhail Pukhlikov
2016-12-23 11:04 Mikhail Pukhlikov
2016-12-08 10:23 Mikhail Pukhlikov
2016-11-30  8:52 Mikhail Pukhlikov
2016-11-24  7:16 Mikhail Pukhlikov
2016-11-10  8:28 Mikhail Pukhlikov
2016-10-25 19:49 Mikhail Pukhlikov
2016-10-07 20:29 Mikhail Pukhlikov
2016-09-29 12:35 Agostino Sarubbo
2016-09-26 12:32 Mikhail Pukhlikov
2016-08-25 17:39 Mikhail Pukhlikov
2016-08-15  7:26 Mikhail Pukhlikov
2016-07-29 20:09 Mikhail Pukhlikov
2016-07-29 20:09 Mikhail Pukhlikov
2016-07-28 14:08 Agostino Sarubbo
2016-07-28  8:43 Agostino Sarubbo
2016-07-08 18:50 Heather Cynede
2016-05-10  6:41 Heather Cynede
2016-03-25 15:28 Manuel Rüger
2016-02-06 22:14 Manuel Rüger
2015-12-22  9:09 Jason Zaman
2015-12-22  8:16 Heather Cynede
2015-11-25 22:37 Manuel Rüger
2015-11-23 11:36 Jason Zaman
2015-08-17  9:20 Heather Cynede
2015-08-16  8:01 Heather Cynede
2015-08-13  9:14 Heather Cynede
2015-08-12 14:05 Heather Cynede

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1480471908.99d34f88dcb8a1d465e476497c127039dcc17f0b.prometheanfire@gentoo \
    --to=prometheanfire@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox