Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55393 - mono-0.97 ebuild is broken?
Summary: mono-0.97 ebuild is broken?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major
Assignee: dotnet project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-28 02:14 UTC by Richard Torkar
Modified: 2004-06-29 10:11 UTC (History)
0 users

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


Attachments
Fixed mono ebuild (mono-0.97.ebuild,1.76 KB, text/plain)
2004-06-28 08:40 UTC, Peter Johanson (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Torkar 2004-06-28 02:14:49 UTC
It's added but it bails during the make install part...

I did an "emerge unmerge mono" first and then "emerge mono" and at the end of the compilation it starts to do a make install and this happens:

make[3]: Entering directory `/var/tmp/portage/mono-0.97/work/mono-0.97/runtime'
make[3]: Nothing to be done for `install-exec-am'.
/bin/sh ../mkinstalldirs /var/tmp/portage/mono-0.97/image//usr/bin
 /bin/install -c -m 644 monoresgen.exe /var/tmp/portage/mono-0.97/image//usr/bin/monoresgen.exe
 /bin/install -c -m 644 secutil.exe /var/tmp/portage/mono-0.97/image//usr/bin/secutil.exe
 /bin/install -c -m 644 ilasm.exe /var/tmp/portage/mono-0.97/image//usr/bin/ilasm.exe
 /bin/install -c -m 644 cilc.exe /var/tmp/portage/mono-0.97/image//usr/bin/cilc.exe
 /bin/install -c -m 644 xsd.exe /var/tmp/portage/mono-0.97/image//usr/bin/xsd.exe
 /bin/install -c -m 644 wsdl.exe /var/tmp/portage/mono-0.97/image//usr/bin/wsdl.exe
 /bin/install -c -m 644 genxs.exe /var/tmp/portage/mono-0.97/image//usr/bin/genxs.exe
 /bin/install -c -m 644 al.exe /var/tmp/portage/mono-0.97/image//usr/bin/al.exe
 /bin/install -c -m 644 disco.exe /var/tmp/portage/mono-0.97/image//usr/bin/disco.exe
 /bin/install -c -m 644 sqlsharp.exe /var/tmp/portage/mono-0.97/image//usr/bin/sqlsharp.exe
 /bin/install -c -m 644 signcode.exe /var/tmp/portage/mono-0.97/image//usr/bin/signcode.exe
 /bin/install -c -m 644 chktrust.exe /var/tmp/portage/mono-0.97/image//usr/bin/chktrust.exe
 /bin/install -c -m 644 soapsuds.exe /var/tmp/portage/mono-0.97/image//usr/bin/soapsuds.exe
 /bin/install -c -m 644 monop.exe /var/tmp/portage/mono-0.97/image//usr/bin/monop.exe
 /bin/install -c -m 644 mono-find-provides.exe /var/tmp/portage/mono-0.97/image//usr/bin/mono-find-provides.exe
 /bin/install -c -m 644 mono-find-requires.exe /var/tmp/portage/mono-0.97/image//usr/bin/mono-find-requires.exe
 /bin/install -c -m 644 setreg.exe /var/tmp/portage/mono-0.97/image//usr/bin/setreg.exe
 /bin/install -c -m 644 cert2spc.exe /var/tmp/portage/mono-0.97/image//usr/bin/cert2spc.exe
 /bin/install -c -m 644 certmgr.exe /var/tmp/portage/mono-0.97/image//usr/bin/certmgr.exe
 /bin/install -c -m 644 MakeCert.exe /var/tmp/portage/mono-0.97/image//usr/bin/MakeCert.exe
 /bin/install -c -m 644 gacutil.exe /var/tmp/portage/mono-0.97/image//usr/bin/gacutil.exe
 /bin/install -c -m 644 sn.exe /var/tmp/portage/mono-0.97/image//usr/bin/sn.exe
/bin/sh ../mkinstalldirs /var/tmp/portage/mono-0.97/image//usr/lib/mono/1.0/
mkdir -p -- /var/tmp/portage/mono-0.97/image//usr/lib/mono/1.0/
 /bin/install -c -m 644 mcs.exe /var/tmp/portage/mono-0.97/image//usr/lib/mono/1.0//mcs.exe
 /bin/install -c -m 644 mbas.exe /var/tmp/portage/mono-0.97/image//usr/lib/mono/1.0//mbas.exe
/bin/sh ../mkinstalldirs /var/tmp/portage/mono-0.97/image//usr/lib/mono/2.0/
mkdir -p -- /var/tmp/portage/mono-0.97/image//usr/lib/mono/2.0/
 /bin/install -c -m 644 gmcs.exe /var/tmp/portage/mono-0.97/image//usr/lib/mono/2.0//gmcs.exe
make[3]: Leaving directory `/var/tmp/portage/mono-0.97/work/mono-0.97/runtime'
make[2]: Leaving directory `/var/tmp/portage/mono-0.97/work/mono-0.97/runtime'
Making install in net_1_1
make[2]: Entering directory `/var/tmp/portage/mono-0.97/work/mono-0.97/runtime/net_1_1'
make[3]: Entering directory `/var/tmp/portage/mono-0.97/work/mono-0.97/runtime/net_1_1'
make[3]: Nothing to be done for `install-exec-am'.
/bin/sh ../../mkinstalldirs /var/tmp/portage/mono-0.97/image//usr/lib
 /bin/install -c -m 644 mscorlib.dll /var/tmp/portage/mono-0.97/image//usr/lib/mscorlib.dll
MONO_PATH=. /var/tmp/portage/mono-0.97/image//usr/bin/mono ./../gacutil.exe /i ./Accessibility.dll /f /package 1.0 /gacdir /var/tmp/portage/mono-0.97/image//usr/lib /root /var/tmp/portage/mono-0.97/image//usr/lib
/var/tmp/portage/mono-0.97/image//usr/bin/mono: error while loading shared libraries: libmono.so.0: cannot open shared object file: No such file or directory
make[3]: *** [install-data-local] Error 1
make[3]: Leaving directory `/var/tmp/portage/mono-0.97/work/mono-0.97/runtime/net_1_1'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/var/tmp/portage/mono-0.97/work/mono-0.97/runtime/net_1_1'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/mono-0.97/work/mono-0.97/runtime'
make: *** [install-recursive] Error 1

!!! ERROR: dev-dotnet/mono-0.97 failed.
!!! Function src_install, Line 45, Exitcode 2
!!! (no error message)


Is it my system only that behaves this way?
Comment 1 Richard Torkar 2004-06-28 02:51:47 UTC
Since nothing has changed (more or less) between the previous ebuild and this one I believe that either:
a) mono has changed something in the install routine or,
b) the previous installations worked since I perhaps did _not_ do an "emerge unmerge mono" before installing a new version of mono.

Regarding b), mono probably used the libmono.so.0 that was installed on the system, while in this case there was no libmono.so.0 installed.
Comment 2 Richard Torkar 2004-06-28 03:12:29 UTC
The mono-0.96 ebuild works on a clean system (i.e. doing "emerge unmerge mono" first). Something has changed in the mono makefile stuff?

If I have 0.96 installed and then simply do a: emerge -u mono (to install 0.97) it compiles and installs correctly.

So a quick fix is to make sure you have 0.96 installed before upgrading to 0.97.
Comment 3 Peter Johanson (RETIRED) gentoo-dev 2004-06-28 04:47:02 UTC
Well ugh. Definitely sounds like some of the makefiles changed. I'll dig through some diffs and try to find where the breakage was introduced.
Comment 4 Richard Torkar 2004-06-28 06:39:45 UTC
Peter, I saw the the mail on mono-devel-list regarding this.
(http://lists.ximian.com/archives/public/mono-devel-list/2004-June/006675.html)

A simple patch to fix this in this ebuild maybe? 
Comment 5 Peter Johanson (RETIRED) gentoo-dev 2004-06-28 08:15:57 UTC
Yeah, i'm testing a fix now, but mono takes a bit to build on my thinkpad. (:
Comment 6 Peter Johanson (RETIRED) gentoo-dev 2004-06-28 08:40:23 UTC
Created attachment 34334 [details]
Fixed mono ebuild

Okay, here is a fixed ebuild that uses the mono runtime from the included
package like 0.96 used to do. WORKSFORME, but i want one more confirmation
before commiting it.
Comment 7 Richard Torkar 2004-06-28 08:59:47 UTC
Works for me[tm].

Good work Peter.
Comment 8 Peter Johanson (RETIRED) gentoo-dev 2004-06-28 09:05:25 UTC
Okay, the fix is commited. Marking FIXED, please reopen if people continue to experience problems.
Comment 9 Sebastian Bergmann (RETIRED) gentoo-dev 2004-06-29 09:26:14 UTC
Fresh installation, current ebuild:

Making install in net_1_1
make[2]: Entering directory `/var/tmp/portage/mono-0.97/work/mono-0.97/runtime/net_1_1'
make[3]: Entering directory `/var/tmp/portage/mono-0.97/work/mono-0.97/runtime/net_1_1'
make[3]: Nothing to be done for `install-exec-am'.
/bin/sh ../../mkinstalldirs /var/tmp/portage/mono-0.97/image//usr/lib
 /bin/install -c -m 644 mscorlib.dll /var/tmp/portage/mono-0.97/image//usr/lib/mscorlib.dll
MONO_PATH=. ../../mono/mini/mono ./../gacutil.exe /i ./Accessibility.dll /f /package 1.0 /gacdir /var/tmp/portage/mono-0.97/image//usr/lib /root /var/tmp/portage/mono-0.97/image//usr/lib

Unhandled Exception: System.DllNotFoundException: libc
in <0x00053> (wrapper managed-to-native) Mono.Tools.Driver:symlink (string,string)
in <0x0001b> Mono.Tools.Driver:Symlink (string,string)
in <0x005ef> Mono.Tools.Driver:Install (bool,string,string,string,string,string,string)
in <0x0063e> Mono.Tools.Driver:Main (string[])

make[3]: *** [install-data-local] Error 1
make[3]: Leaving directory `/var/tmp/portage/mono-0.97/work/mono-0.97/runtime/net_1_1'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/var/tmp/portage/mono-0.97/work/mono-0.97/runtime/net_1_1'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/mono-0.97/work/mono-0.97/runtime'
make: *** [install-recursive] Error 1

!!! ERROR: dev-dotnet/mono-0.97 failed.
!!! Function src_install, Line 50, Exitcode 2
!!! (no error message)
Comment 10 Peter Johanson (RETIRED) gentoo-dev 2004-06-29 10:11:25 UTC
Re: libc

See bug #55229. I just fixed this now. Please test and report back to *that* bug if it works/fails. Thanks.