Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 26839 - New Mono .26 release / mcs build problems
Summary: New Mono .26 release / mcs build problems
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: dotnet project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-17 20:21 UTC by Dan Guidara
Modified: 2003-09-29 11:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
mono-0.26 (mono-0.26.ebuild,1.74 KB, text/plain)
2003-08-25 07:01 UTC, Rainer Größlinger (RETIRED)
Details
mono-0.26 ebuild with working mcs compilation (mono-0.26.ebuild,2.13 KB, text/plain)
2003-08-27 12:15 UTC, Benjamin J.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Guidara 2003-08-17 20:21:29 UTC
Mono .26 has been released.  

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Rainer Größlinger (RETIRED) gentoo-dev 2003-08-25 07:00:56 UTC
I started working on a mono-0.26 ebuild but ran into an issue with the new build system some others are experiencing, too (according to the mono mailing lists).

The compilation of mcs always fails with 
error CS0006: Cannot find assembly `System.Xml.dll'
although the path where that assembly is located (${S}/runtime in our case) is in MONO_PATH.

Can someone who is more experienced with mono or has the time to look into this please provide a workaround/fix ? :)
I guess in the end it's just a one liner with some path changes :/


Summarized I changed the following:
- removed the <= of libxml2 (talked to tberman and as I understood this is not an issue anymore [26946 should be closed when mono 0.26 is in the tree]
- removed --with-gc=included from econf because it is default anyway
- changed make -f makefile.gnu to just make because of their new build system
it supports "profiles" now but I didn't use make PROFILE=... because the default profile is the equivalent to what "make -f makefile.gnu" did
Comment 2 Rainer Größlinger (RETIRED) gentoo-dev 2003-08-25 07:01:56 UTC
Created attachment 16597 [details]
mono-0.26
Comment 3 john luke 2003-08-25 15:41:46 UTC
You probably need to set the prefix in mcs with:
echo "prefix=/whatever" > mcs/build/config.make

also, you might want to look into using the make fullbuild target in mono/
Comment 4 Rainer Größlinger (RETIRED) gentoo-dev 2003-08-25 16:09:19 UTC
To my understanding "make fullbuild" is only meant for people who are updating from a tarball and want to issue all make-related things in one rush.

Additionally we may run into problems if we use fullbuild because we can't seperate src_compile() and src_install() anymore.

The default prefix for mono/mcs is always /usr/local if nothing is specified so I doubt it's related to not set a custom prefix, but I will further investigate this  when I have some time...

Otherwise I am of course happy when someone comes up with a working solution ;)
Comment 5 Rainer Größlinger (RETIRED) gentoo-dev 2003-08-25 16:10:13 UTC
ouch, in my last comment I wanted to write:

" ... who are updating from a snapshot ..."
Comment 6 john luke 2003-08-25 16:15:48 UTC
make MCS=${S}/runtime/mcs gets me past System.Xml but into another problem.

Yes, make fullbuild wouldn't allow splitting up the install process.  
Comment 7 Rainer Größlinger (RETIRED) gentoo-dev 2003-08-25 17:37:18 UTC
Comment on attachment 16597 [details]
mono-0.26

PATH=${S}/runtime:${S}/mono/mini:${PATH} MONO_PATH=${S}/runtime:${MONO_PATH}
make MCS=${S}/runtime/mcs || die "MCS compilation failure"
Comment 8 Rainer Größlinger (RETIRED) gentoo-dev 2003-08-25 17:41:50 UTC
indeed, using "make MCS=${S}/runtime/mcs" seems to be a good start and a step that  we need to do.

But now we need to find a way to work around the Unhandled Exception in System.Data.dll...

I wish building mcs/mono would be as easy and painless as building the Portable .NET packages ;-)
Comment 9 foser (RETIRED) gentoo-dev 2003-08-26 02:15:17 UTC
to have a version in portage we can of couse disable the mcs parts for now and then just keep working on it and do a revision bump.
Comment 10 Rainer Größlinger (RETIRED) gentoo-dev 2003-08-26 05:55:37 UTC
would perhaps be the best solution, yes ;)
I just added 0.26 with all the mcs-related things being commented...

I hope we can get this fixed and mark it stable soon, because arch users are lagging behind to mono-0.24
Comment 11 Benjamin J. 2003-08-27 12:15:52 UTC
Created attachment 16696 [details]
mono-0.26 ebuild with working mcs compilation

I was able to compile mono including mcs (without having mono installed) with
this ebuild.
Comment 12 Rainer Größlinger (RETIRED) gentoo-dev 2003-09-29 11:04:34 UTC
committed.

I am sorry it took so long, please remind me or the team next time.
I swear it'll go much faster with the upcoming release of mono within the
next few days ;)
Thank you for your submission!