summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2010-10-05 21:22:03 +0000
committerPacho Ramos <pacho@gentoo.org>2010-10-05 21:22:03 +0000
commitca94128b18406002a762b93cba7e7891968fc64d (patch)
tree7a9f1f6b311f91bf3159fd3fd3a112ede8ebef21 /dev-lang/mono
parentx86 stable, bug #337513 (diff)
downloadhistorical-ca94128b18406002a762b93cba7e7891968fc64d.tar.gz
historical-ca94128b18406002a762b93cba7e7891968fc64d.tar.bz2
historical-ca94128b18406002a762b93cba7e7891968fc64d.zip
Update 9999 ebuild for using git (bug #339230), thanks a lot to Alistair Bush for his help.
Package-Manager: portage-2.1.8.3/cvs/Linux x86_64
Diffstat (limited to 'dev-lang/mono')
-rw-r--r--dev-lang/mono/ChangeLog7
-rw-r--r--dev-lang/mono/Manifest11
-rw-r--r--dev-lang/mono/files/mono-9999-libdir.patch69
-rw-r--r--dev-lang/mono/mono-9999.ebuild59
4 files changed, 112 insertions, 34 deletions
diff --git a/dev-lang/mono/ChangeLog b/dev-lang/mono/ChangeLog
index 2140fb612274..bc5efa2214b2 100644
--- a/dev-lang/mono/ChangeLog
+++ b/dev-lang/mono/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-lang/mono
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/mono/ChangeLog,v 1.198 2010/09/23 22:14:59 hwoarang Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/mono/ChangeLog,v 1.199 2010/10/05 21:22:03 pacho Exp $
+
+ 05 Oct 2010; Pacho Ramos <pacho@gentoo.org> mono-9999.ebuild,
+ +files/mono-9999-libdir.patch:
+ Update 9999 ebuild for using git (bug #339230), thanks a lot to Alistair
+ Bush for his help.
23 Sep 2010; Markos Chandras <hwoarang@gentoo.org> mono-2.6.7.ebuild:
Stable on amd64 wrt bug #336851
diff --git a/dev-lang/mono/Manifest b/dev-lang/mono/Manifest
index deff66fefe5a..dbb9547d5eef 100644
--- a/dev-lang/mono/Manifest
+++ b/dev-lang/mono/Manifest
@@ -19,6 +19,7 @@ AUX mono-2.2-uselibdir.patch 714 RMD160 fb0478a9923c5de30b6f71fa1c1cad9703e3dc8c
AUX mono-2.4-openoffice.patch 925 RMD160 37659aa877e5dd9b7a36bf6b2c522762e595747d SHA1 c7fff16e6dd5dced08feb3bd16c9b41342c2d8ab SHA256 cdedb982bd67bba7db1fb8bbf18af2a31f4b9b72caeab290bc74e060116ba627
AUX mono-2.4-ppcbuild-fix.patch 1141 RMD160 3519c930ac57317aa473593ed0962c90c7dea900 SHA1 d86b76af7b246ebefd209e26368a89460d31be67 SHA256 d6ddde4185f8c459a8953cc8a7bd5a1ea5d1eecb7ea4c5cb0c404462ab1ba3ee
AUX mono-2.6.4-require-glib.patch 458 RMD160 312ffe40e55ae726ab2bdb8b323cfb110abf804a SHA1 4c1979a940bf550fcafbaa29a11470fa7e55eac1 SHA256 fc27512f901920a72c5e7744ecef134ed9081d2f2ff689e1af2f48f6fe9a6028
+AUX mono-9999-libdir.patch 2721 RMD160 9a694e1a373fb3f18c79a75e76aaa4abbfbc283f SHA1 4ca811b882b2f9a6045cfe516cace7badb419c2d SHA256 58424336e2ff348fe9ad6f279936cd90e8ad918196382654bfb7fd60b7c928fc
AUX mono-biginteger_overflow.diff 848 RMD160 1f2cb38e577102943399459e2ef0f511dcad5209 SHA1 15203be56015aed4a9b63ca3ade01d3a22f4bae3 SHA256 adc10b8a97cbcb6b4758f7de041eee757259d55e1e2cbaf84a89e5ef83e46806
DIST mono-1.2.5.1.tar.bz2 17492757 RMD160 8000374d9aaa3149599ba83079959303a6bae014 SHA1 c5f843cfdbb1d0114059c7d2d9ba2477529d22a8 SHA256 434f91032e48c03e1202ba3cef1648e2708eeefcf51143d3547e34acc9c68a96
DIST mono-1.2.6.tar.bz2 18163130 RMD160 c6536b008cb73845943956c9ab365589a28c013c SHA1 f51f2e14d05313dba4b2d3fd5a47a9a3361ebeae SHA256 24cc4f396cac3053c7ba3fe68bc1b80359d75dc4f54a85f39a73cabc3d3f560f
@@ -36,13 +37,13 @@ EBUILD mono-2.4.3.1.ebuild 7157 RMD160 63827e3616a2309735957af316de803209c98e04
EBUILD mono-2.4.9999.ebuild 7518 RMD160 418f1ac99aab05b312fc4b29ebdede696f11a825 SHA1 ae4c7a6392f097dd410ffb04d0a0ccba69c30f09 SHA256 10cba6104c6f149ef552f6f29f2daa727f7f010bcf676ad41611621637385660
EBUILD mono-2.6.4-r1.ebuild 7199 RMD160 eb43fbe763657ada61087cde7a09b4ecc4c08be7 SHA1 f794643b791803570f3111a88e9082662ee6294a SHA256 7f20e3595e27fda4539a7dfca07651298873f9c8e441bb5f333db235a6709966
EBUILD mono-2.6.7.ebuild 7564 RMD160 e83f25ce2d6bb38ecba81d86e96958a5ea7567d7 SHA1 a12f62b9decdc1c6ed93b6c6fbe4659d16e8074f SHA256 e8cbfd812e094cdd45149873461e5618be424219b5a6b7251e6f1d4371a09fed
-EBUILD mono-9999.ebuild 7514 RMD160 55cdc9888175ef15226016d5bd38f6e030050c86 SHA1 3288813c56d7042dbe53ebabf3d0209efef20f04 SHA256 87c00e70ed8eb0a34e44d03c5a99b42b69da9617966860bb72ccda2752acb042
-MISC ChangeLog 41431 RMD160 c2bad4da8374191c9361b605763b2206ab4e197a SHA1 a4f328ef245fe3cabd010062d5716670557fb186 SHA256 df0f76971945e8912cce15e309de9b350d7ac699d75de31e36d25935653f2366
+EBUILD mono-9999.ebuild 7853 RMD160 5a838495d09bb4fcdcfc6077c60bc1c7917fd2d2 SHA1 767925f8137f19f156bad600a056a3c6b76b6a15 SHA256 a64eb6185976d027c541a4ef530297441203f8ea23ebfb111630a159d24a176d
+MISC ChangeLog 41622 RMD160 400b3dc7558cbc45745a7904835a38832364edb7 SHA1 87ed9dd7a801ccea3390133763fcefcde7e1315b SHA256 5b16f05315c5ec58fd33a6a6580620ba3621b97370d0245cc21b5d2b7108c17f
MISC metadata.xml 484 RMD160 862882f919ccc94b3fbdcdb6d6218b0969fec187 SHA1 42a61b9a60f03068d6601262f26e5a6fde463022 SHA256 2953e2de5e3ec6d0a69e9b8e145e0b27fb43dc7e3d59ef6a546c15fbc960631d
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
-iEYEARECAAYFAkyb0SoACgkQ9/cejkQaxBAOMwCdHPNqhDeVM5TReK6UxL8lMCiL
-l7EAn1HqPVoufwon/j/NaZXpawCKbc9w
-=J/99
+iEYEARECAAYFAkyrlwQACgkQCaWpQKGI+9R0+gCfSpGhJw5oa7xqb34Bzsk0FvVk
+pm8An1n8dE6zCl/7YoDW7G5WZmxbnM6+
+=/Abw
-----END PGP SIGNATURE-----
diff --git a/dev-lang/mono/files/mono-9999-libdir.patch b/dev-lang/mono/files/mono-9999-libdir.patch
new file mode 100644
index 000000000000..6dd6bb51437b
--- /dev/null
+++ b/dev-lang/mono/files/mono-9999-libdir.patch
@@ -0,0 +1,69 @@
+diff -Naur mono-9999.bak/mono/mcs/tools/gacutil/driver.cs mono-9999/mono/mcs/tools/gacutil/driver.cs
+--- mono-9999.bak/mono/mcs/tools/gacutil/driver.cs 2010-07-03 04:58:15.000000000 +1200
++++ mono-9999/mono/mcs/tools/gacutil/driver.cs 2010-07-03 05:13:01.000000000 +1200
+@@ -808,7 +808,7 @@
+ private static string EnsureLib (string dir)
+ {
+ DirectoryInfo d = new DirectoryInfo (dir);
+- if (d.Name == "lib")
++ if (d.Name == "lib" || d.Name == "@MONOLIBDIR@")
+ return dir;
+ return Path.Combine (dir, "lib");
+ }
+diff -Naur mono-9999.bak/mono/mono/metadata/assembly.c mono-9999/mono/mono/metadata/assembly.c
+--- mono-9999.bak/mono/mono/metadata/assembly.c 2010-07-03 04:58:14.000000000 +1200
++++ mono-9999/mono/mono/metadata/assembly.c 2010-07-03 05:11:47.000000000 +1200
+@@ -542,7 +542,7 @@
+ }
+
+ config = g_build_filename (base, "etc", NULL);
+- lib = g_build_filename (base, "lib", NULL);
++ lib = g_build_filename (base, "@MONOLIBDIR@", NULL);
+ mono = g_build_filename (lib, "mono/1.0", NULL);
+ if (stat (mono, &buf) == -1)
+ fallback ();
+@@ -595,7 +595,7 @@
+
+ bindir = g_path_get_dirname (name);
+ installdir = g_path_get_dirname (bindir);
+- root = g_build_path (G_DIR_SEPARATOR_S, installdir, "lib", NULL);
++ root = g_build_path (G_DIR_SEPARATOR_S, installdir, "@MONOLIBDIR@", NULL);
+
+ config = g_build_filename (root, "..", "etc", NULL);
+ #ifdef HOST_WIN32
+@@ -2066,7 +2066,7 @@
+ if (extra_gac_paths) {
+ paths = extra_gac_paths;
+ while (!res && *paths) {
+- gacpath = g_build_path (G_DIR_SEPARATOR_S, *paths, "lib", "mono", "gac", aname->name, NULL);
++ gacpath = g_build_path (G_DIR_SEPARATOR_S, *paths, "@MONOLIBDIR@", "mono", "gac", aname->name, NULL);
+ res = probe_for_partial_name (gacpath, fullname, aname, status);
+ g_free (gacpath);
+ paths++;
+@@ -2117,7 +2117,7 @@
+ if (*gp != G_DIR_SEPARATOR)
+ continue;
+ gp++;
+- if (strncmp (gp, "lib", 3))
++ if (strncmp (gp, "@MONOLIBDIR@", 3))
+ continue;
+ gp += 3;
+ if (*gp != G_DIR_SEPARATOR)
+@@ -2196,7 +2196,7 @@
+ paths = extra_gac_paths;
+ while (!image && *paths) {
+ fullpath = g_build_path (G_DIR_SEPARATOR_S, *paths,
+- "lib", "mono", "gac", subpath, NULL);
++ "@MONOLIBDIR@", "mono", "gac", subpath, NULL);
+ image = mono_image_open (fullpath, NULL);
+ g_free (fullpath);
+ paths++;
+@@ -2488,7 +2488,7 @@
+ if (extra_gac_paths) {
+ paths = extra_gac_paths;
+ while (!result && *paths) {
+- fullpath = g_build_path (G_DIR_SEPARATOR_S, *paths, "lib", "mono", "gac", subpath, NULL);
++ fullpath = g_build_path (G_DIR_SEPARATOR_S, *paths, "@MONOLIBDIR@", "mono", "gac", subpath, NULL);
+ result = mono_assembly_open_full (fullpath, status, refonly);
+ g_free (fullpath);
+ paths++;
diff --git a/dev-lang/mono/mono-9999.ebuild b/dev-lang/mono/mono-9999.ebuild
index 7f0c3b42d500..f26845939f1f 100644
--- a/dev-lang/mono/mono-9999.ebuild
+++ b/dev-lang/mono/mono-9999.ebuild
@@ -1,10 +1,10 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/mono/mono-9999.ebuild,v 1.3 2010/01/31 19:54:46 tove Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/mono/mono-9999.ebuild,v 1.4 2010/10/05 21:22:03 pacho Exp $
EAPI=2
-inherit linux-info mono eutils flag-o-matic multilib go-mono
+inherit linux-info mono eutils flag-o-matic multilib go-mono pax-utils
DESCRIPTION="Mono runtime and class libraries, a C# compiler/interpreter"
HOMEPAGE="http://www.go-mono.com"
@@ -12,30 +12,28 @@ HOMEPAGE="http://www.go-mono.com"
LICENSE="MIT LGPL-2.1 GPL-2 BSD-4 NPL-1.1 Ms-PL GPL-2-with-linking-exception IDPL"
SLOT="0"
KEYWORDS=""
-IUSE="xen moonlight minimal"
+IUSE="hardened xen moonlight minimal"
#Bash requirement is for += operator
COMMONDEPEND="!<dev-dotnet/pnet-0.6.12
!dev-util/monodoc
- dev-libs/glib:2
+ >=dev-libs/glib-2.4:2
!minimal? ( =dev-dotnet/libgdiplus-${GO_MONO_REL_PV}* )
- ia64? (
- sys-libs/libunwind
- )"
+ ia64? ( sys-libs/libunwind )"
RDEPEND="${COMMONDEPEND}
|| ( www-client/links www-client/lynx )"
DEPEND="${COMMONDEPEND}
sys-devel/bc
- >=app-shells/bash-3.2"
-PDEPEND="dev-dotnet/pe-format"
+ >=app-shells/bash-3.2
+ hardened? ( sys-apps/paxctl )"
MAKEOPTS="${MAKEOPTS} -j1"
RESTRICT="test"
PATCHES=(
- "${WORKDIR}/mono-2.2-libdir126.patch"
+ "${WORKDIR}/${P}-libdir.patch"
"${FILESDIR}/mono-2.2-ppc-threading.patch"
"${FILESDIR}/mono-2.2-uselibdir.patch"
)
@@ -43,10 +41,10 @@ PATCHES=(
pkg_setup() {
if ! has_version dev-lang/mono
then
- eerror "To compile the SVN version of mono, you must first have a working install of"
+ eerror "To compile the GIT version of mono, you must first have a working install of"
eerror "dev-lang/mono. Preferably one that is not too old relative to the branch you're"
eerror "trying to build."
- die "A working install of dev-lang/mono is required for building the SVN version."
+ die "A working install of dev-lang/mono is required for building the GIT version."
fi
if use kernel_linux
then
@@ -69,18 +67,19 @@ pkg_setup() {
fi
}
-src_unpack() {
- subversion_fetch "${ESVN_REPO_URI}" mono || die "subversion_fetch mono failed"
- subversion_fetch "${ESVN_REPO_URI%/mono}/mcs" mono/mcs || die "subversion_fetch mcs failed"
- S="${WORKDIR}/${P}/mono"
-}
-
src_prepare() {
sed -e "s:@MONOLIBDIR@:$(get_libdir):" \
- < "${FILESDIR}"/mono-2.2-libdir126.patch \
- > "${WORKDIR}"/mono-2.2-libdir126.patch ||
+ < "${FILESDIR}"/${P}-libdir.patch \
+ > "${WORKDIR}"/${P}-libdir.patch ||
die "Sedding patch file failed"
go-mono_src_prepare
+
+ # we need to sed in the paxctl -m in the runtime/mono-wrapper.in so it don't
+ # get killed in the build proces when MPROTEC is enable. #286280
+ if use hardened ; then
+ ewarn "We are disabling MPROTECT on the mono binary."
+ sed '/exec/ i\paxctl -m "$r/@mono_runtime@"' -i "${S}"/runtime/mono-wrapper.in
+ fi
}
src_configure() {
@@ -92,18 +91,18 @@ src_configure() {
#NOTE: We need the static libs for now so mono-debugger works.
#See http://bugs.gentoo.org/show_bug.cgi?id=256264 for details
+
+ #--with-glib=system configure: error: --with-glib=system is no longer supported as of Mono 2.8
+ #--static_mono=yes (default anyway)
+
go-mono_src_configure \
- --enable-static \
--disable-quiet-build \
- --with-preview \
- --with-glib=system \
$(use_with moonlight) \
--with-libgdiplus=$(use minimal && printf "no" || printf "installed" ) \
$(use_with xen xen_opt) \
--without-ikvm-native \
--with-jit \
--disable-dtrace
-
}
src_test() {
@@ -126,6 +125,10 @@ src_install() {
"${D}"/usr/bin/mod || die "Failed to fix mod."
find "${D}"/usr/ -name '*nunit-docs*' -exec rm -rf '{}' '+' || die "Removing nunit .docs failed"
+
+ # Remove Jay to avoid colliding with dev-util/jay, the internal
+ # version is only used to build mcs.
+ rm -r "${D}"/usr/share/jay "${D}"/usr/bin/jay "${D}"/usr/share/man/man1/jay.1*
}
#THINK!!!! Before touching postrm and postinst
@@ -149,10 +152,10 @@ pkg_preinst() {
einfo "be advised that this is a known problem, which will now be fixed:"
ebegin "Found broken symlinks created by $(best_version dev-lang/mono), fixing"
for symlink in \
- "${ROOT}/${NUNIT_DIR}" \
- "${ROOT}/usr/$(get_libdir)/pkgconfig/nunit.pc" \
- "${ROOT}/usr/bin/nunit-console" \
- "${ROOT}/usr/bin/nunit-console2"
+ "${ROOT}/${NUNIT_DIR}" \
+ "${ROOT}/usr/$(get_libdir)/pkgconfig/nunit.pc" \
+ "${ROOT}/usr/bin/nunit-console" \
+ "${ROOT}/usr/bin/nunit-console2"
do
if [[ -L "${symlink}" ]]
then