Gentoo Archives: gentoo-commits

From: "Pacho Ramos (pacho)" <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/mono: mono-2.10.1-r1.ebuild ChangeLog mono-2.10.1.ebuild
Date: Sun, 27 Feb 2011 14:52:57
Message-Id: 20110227145248.756C320057@flycatcher.gentoo.org
1 pacho 11/02/27 14:52:48
2
3 Modified: ChangeLog
4 Added: mono-2.10.1-r1.ebuild
5 Removed: mono-2.10.1.ebuild
6 Log:
7 Build again against internal gc as boehm causes banshee to crash a lot.
8
9 (Portage version: 2.1.9.41/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.212 dev-lang/mono/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mono/ChangeLog?rev=1.212&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mono/ChangeLog?rev=1.212&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mono/ChangeLog?r1=1.211&r2=1.212
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-lang/mono/ChangeLog,v
21 retrieving revision 1.211
22 retrieving revision 1.212
23 diff -u -r1.211 -r1.212
24 --- ChangeLog 27 Feb 2011 12:52:41 -0000 1.211
25 +++ ChangeLog 27 Feb 2011 14:52:48 -0000 1.212
26 @@ -1,6 +1,12 @@
27 # ChangeLog for dev-lang/mono
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/mono/ChangeLog,v 1.211 2011/02/27 12:52:41 pacho Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/mono/ChangeLog,v 1.212 2011/02/27 14:52:48 pacho Exp $
31 +
32 +*mono-2.10.1-r1 (27 Feb 2011)
33 +
34 + 27 Feb 2011; Pacho Ramos <pacho@g.o> -mono-2.10.1.ebuild,
35 + +mono-2.10.1-r1.ebuild:
36 + Build again against internal gc as boehm causes banshee to crash a lot.
37
38 *mono-2.10.1 (27 Feb 2011)
39
40
41
42
43 1.1 dev-lang/mono/mono-2.10.1-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mono/mono-2.10.1-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mono/mono-2.10.1-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: mono-2.10.1-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-lang/mono/mono-2.10.1-r1.ebuild,v 1.1 2011/02/27 14:52:48 pacho Exp $
53
54 EAPI="2"
55
56 inherit linux-info mono eutils flag-o-matic multilib go-mono pax-utils
57
58 DESCRIPTION="Mono runtime and class libraries, a C# compiler/interpreter"
59 HOMEPAGE="http://www.mono-project.com/Main_Page"
60
61 LICENSE="MIT LGPL-2.1 GPL-2 BSD-4 NPL-1.1 Ms-PL GPL-2-with-linking-exception IDPL"
62 SLOT="0"
63 KEYWORDS="~amd64 ~ppc ~x86"
64
65 IUSE="hardened minimal xen"
66
67 #Bash requirement is for += operator
68 COMMONDEPEND="!<dev-dotnet/pnet-0.6.12
69 !dev-util/monodoc
70 !minimal? ( =dev-dotnet/libgdiplus-${GO_MONO_REL_PV}* )
71 ia64? ( sys-libs/libunwind )
72 dev-libs/boehm-gc"
73 RDEPEND="${COMMONDEPEND}
74 || ( www-client/links www-client/lynx )"
75
76 DEPEND="${COMMONDEPEND}
77 sys-devel/bc
78 >=app-shells/bash-3.2
79 hardened? ( sys-apps/paxctl )"
80
81 MAKEOPTS="${MAKEOPTS} -j1"
82
83 RESTRICT="test"
84
85 PATCHES=(
86 "${WORKDIR}/${PN}-2.10.1-libdir.patch"
87 "${FILESDIR}/${PN}-2.2-ppc-threading.patch"
88 "${FILESDIR}/${PN}-2.2-uselibdir.patch"
89 )
90
91 pkg_setup() {
92 if use kernel_linux
93 then
94 get_version
95 if linux_config_exists
96 then
97 if linux_chkconfig_present SYSVIPC
98 then
99 einfo "CONFIG_SYSVIPC is set, looking good."
100 else
101 eerror "If CONFIG_SYSVIPC is not set in your kernel .config, mono will hang while compiling."
102 eerror "See http://bugs.gentoo.org/261869 for more info."
103 die "Please set CONFIG_SYSVIPC in your kernel .config"
104 fi
105 else
106 ewarn "Was unable to determine your kernel .config"
107 ewarn "Please note that if CONFIG_SYSVIPC is not set in your kernel .config, mono will hang while compiling."
108 ewarn "See http://bugs.gentoo.org/261869 for more info."
109 fi
110 fi
111 }
112
113 src_prepare() {
114 sed -e "s:@MONOLIBDIR@:$(get_libdir):" \
115 < "${FILESDIR}"/${PN}-2.10.1-libdir.patch \
116 > "${WORKDIR}"/${PN}-2.10.1-libdir.patch ||
117 die "Sedding patch file failed"
118 go-mono_src_prepare
119
120 # we need to sed in the paxctl -m in the runtime/mono-wrapper.in so it don't
121 # get killed in the build proces when MPROTEC is enable. #286280
122 if use hardened ; then
123 ewarn "We are disabling MPROTECT on the mono binary."
124 sed '/exec/ i\paxctl -m "$r/@mono_runtime@"' -i "${S}"/runtime/mono-wrapper.in
125 fi
126 }
127
128 src_configure() {
129 # mono's build system is finiky, strip the flags
130 strip-flags
131
132 #Remove this at your own peril. Mono will barf in unexpected ways.
133 append-flags -fno-strict-aliasing
134
135 # NOTE: We need the static libs for now so mono-debugger works.
136 # See http://bugs.gentoo.org/show_bug.cgi?id=256264 for details
137 #
138 # --without-moonlight since www-plugins/moonlight is not the only one
139 # using mono: https://bugzilla.novell.com/show_bug.cgi?id=641005#c3
140 #
141 # --with-profile4 needs to be always enabled since it's used by default
142 # and, otherwise, problems like bug #340641 appear.
143
144 go-mono_src_configure \
145 --enable-static \
146 --disable-quiet-build \
147 --without-moonlight \
148 --with-libgdiplus=$(use minimal && printf "no" || printf "installed" ) \
149 $(use_with xen xen_opt) \
150 --without-ikvm-native \
151 --with-jit \
152 --disable-dtrace \
153 --with-profile4
154 }
155
156 src_test() {
157 echo ">>> Test phase [check]: ${CATEGORY}/${PF}"
158
159 export MONO_REGISTRY_PATH="${T}/registry"
160 export XDG_DATA_HOME="${T}/data"
161 export MONO_SHARED_DIR="${T}/shared"
162 export XDG_CONFIG_HOME="${T}/config"
163 export HOME="${T}/home"
164
165 emake -j1 check
166 }
167
168 src_install() {
169 go-mono_src_install
170
171 # Remove files not respecting LDFLAGS and that we are not supposed to provide, see Fedora
172 # mono.spec and http://www.mail-archive.com/mono-devel-list@××××××××××××.com/msg24870.html
173 # for reference.
174 rm -f "${D}"/usr/$(get_libdir)/mono/2.0/mscorlib.dll.so
175 rm -f "${D}"/usr/$(get_libdir)/mono/2.0/mcs.exe.so
176 }
177
178 #THINK!!!! Before touching postrm and postinst
179 #Reference phase order:
180 #pkg_preinst
181 #pkg_prerm
182 #pkg_postrm
183 #pkg_postinst
184
185 pkg_preinst() {
186 local symlink
187 local NUNIT_DIR="/usr/$(get_libdir)/mono/nunit"
188 local pv_atom
189 if [[ "$(readlink "${ROOT}"/${NUNIT_DIR})" == *"mono-nunit"* ]]
190 then
191 for pv_atom in 2.2{,-r1,-r2,-r3,-r4} '2.4_pre*' '2.4_rc*' 2.4
192 do
193 if has_version "=dev-lang/mono-${pv_atom}"
194 then
195 einfo "If you just received a file collision warning message,"
196 einfo "be advised that this is a known problem, which will now be fixed:"
197 ebegin "Found broken symlinks created by $(best_version dev-lang/mono), fixing"
198 for symlink in \
199 "${ROOT}/${NUNIT_DIR}" \
200 "${ROOT}/usr/$(get_libdir)/pkgconfig/nunit.pc" \
201 "${ROOT}/usr/bin/nunit-console" \
202 "${ROOT}/usr/bin/nunit-console2"
203 do
204 if [[ -L "${symlink}" ]]
205 then
206 rm -f "${symlink}" &> /dev/null
207 fi
208 done
209 eend 0
210 break
211 fi
212 done
213 fi
214 }
215
216 pkg_postinst() {
217 elog "PLEASE TAKE NOTE!"
218 elog ""
219 elog "Some of the namespaces supported by Mono require extra packages to be installed."
220 elog "Below is a list of namespaces and the corresponding package you must install:"
221 elog ""
222 elog ">=x11-libs/cairo-1.6.4"
223 elog " Mono.Cairo"
224 elog "Also read:"
225 elog "http://www.mono-project.com/Mono.Cairo"
226 elog ""
227 elog ">=dev-db/firebird-2.0.4.13130.1"
228 elog " FirebirdSql.Data.Firebird"
229 elog "Also read:"
230 elog "http://www.mono-project.com/Firebird_Interbase"
231 elog ""
232 elog "=dev-dotnet/gluezilla-${GO_MONO_REL_PV}*"
233 elog " Mono.Mozilla"
234 elog " Mono.Mozilla.WebBrowser"
235 elog " Mono.Mozilla.Widget"
236 elog " Interop.SHDocVw"
237 elog " AxInterop.SHDocVw"
238 elog " Interop.mshtml.dll"
239 elog " System.Windows.Forms.WebBrowser"
240 elog " Microsoft.IE"
241 elog "Also read:"
242 elog "http://www.mono-project.com/WebBrowser"
243 elog ""
244 elog "dev-db/sqlite:3"
245 elog " Mono.Data.Sqlite"
246 elog "Also read:"
247 elog "http://www.mono-project.com/SQLite"
248 elog ""
249 elog ">=dev-db/oracle-instantclient-basic-10.2"
250 elog " System.Data.OracleClient"
251 elog "Also read:"
252 elog "http://www.mono-project.com/Oracle"
253 elog ""
254 elog "Mono also has support for packages that are not included in portage:"
255 elog ""
256 elog "No ebuild available:"
257 elog " IBM.Data.DB2"
258 elog "Also read: http://www.mono-project.com/IBM_DB2"
259 elog ""
260 elog "No ebuild needed:"
261 elog " Mono.Data.SybaseClient"
262 elog "Also read: http://www.mono-project.com/Sybase"
263 }
264
265 # NOTICE: THE COPYRIGHT FILES IN THE TARBALL ARE UNCLEAR!
266 # WHENEVER YOU THINK SOMETHING IS GPL-2+, IT'S ONLY GPL-2
267 # UNLESS MIGUEL DE ICAZA HIMSELF SAYS OTHERWISE.
268
269 # mono
270 # The code we use is LGPL, but contributions must be made under the MIT/X11
271 # license, so Novell can serve its paying customers. Exception is mono/man.
272 # LICENSE="LGPL-2.1"
273
274 # mono/man
275 # LICENSE="MIT"
276
277 # mcs/mcs
278 # mcs/gmcs
279 # LICENSE="GPL-2 MIT"
280
281 # tests
282 # LICENSE="MIT"
283
284 # mcs/class
285 # Except the listed exceptions:
286 # LICENSE="MIT"
287
288 # mcs/class/ByteFX.Data
289 # mcs/class/Npgsql
290 # LICENSE="LGPL-2.1"
291
292 # mcs/class/FirebirdSql.Data.Firebird
293 # LICENSE="IDPL"
294
295 # mcs/class/ICSharpCode.SharpZipLib
296 # LICENSE="GPL-2-with-linking-exception"
297
298 # mcs/class/MicrosoftAjaxLibrary
299 # LICENSE="Ms-Pl"
300
301 # mcs/class/Microsoft.JScript/Microsoft.JScript/TokenStream.cs
302 # mcs/class/Microsoft.JScript/Microsoft.JScript/Token.cs
303 # mcs/class/Microsoft.JScript/Microsoft.JScript/Parser.cs
304 # mcs/class/Microsoft.JScript/Microsoft.JScript/Decompiler.cs
305 # LICENSE="|| ( NPL-1.1 GPL-2 )"
306
307 # mcs/jay
308 # LICENSE="BSD-4"
309
310 # mcs/tools
311 # Except the listed exceptions:
312 # LICENSE="MIT"
313
314 # mcs/tools/mdoc/Mono.Documentation/monodocs2html.cs
315 # LICENSE="GPL-2"
316
317 # mcs/tools/sqlsharp/SqlSharpCli.cs
318 # LICENSE="GPL-2"
319
320 # mcs/tools/csharp/repl.cs
321 # LICENSE="|| ( MIT GPL-2 )"
322
323 # mcs/tools/mono-win32-setup.nsi
324 # LICENSE="GPL-2"
325
326 # samples
327 # LICENSE="MIT"