Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 558910 - =dev-dotnet/log4net-1.2.11: needs missing gmcs
Summary: =dev-dotnet/log4net-1.2.11: needs missing gmcs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: dotnet project
URL: http://logging.apache.org/log4net/
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2015-08-27 12:27 UTC by Markus Rathgeb
Modified: 2015-09-03 19:57 UTC (History)
0 users

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


Attachments
build.log (build.log,2.16 KB, text/plain)
2015-08-27 12:28 UTC, Markus Rathgeb
Details
emerge-info.txt (emerge-info.txt,8.80 KB, text/plain)
2015-08-27 12:30 UTC, Markus Rathgeb
Details
emerge-pqv.txt (emerge-pqv.txt,43 bytes, text/plain)
2015-08-27 12:30 UTC, Markus Rathgeb
Details
fix-compilation.patch (0001-fix-compilation.patch,3.72 KB, patch)
2015-08-27 12:39 UTC, Markus Rathgeb
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Rathgeb 2015-08-27 12:27:26 UTC
>>> Emerging (1 of 10) dev-dotnet/log4net-1.2.11::gentoo
 * log4net-1.2.11-src.zip SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                                                                                                                     [ ok ]
 * log4net.snk SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                                                                                                                                [ ok ]
>>> Unpacking source...
>>> Unpacking log4net-1.2.11-src.zip to /var/tmp/portage/dev-dotnet/log4net-1.2.11/work
>>> Unpacking log4net.snk to /var/tmp/portage/dev-dotnet/log4net-1.2.11/work
unpack log4net.snk: file format not recognized. Ignoring.
>>> Source unpacked in /var/tmp/portage/dev-dotnet/log4net-1.2.11/work
>>> Preparing source in /var/tmp/portage/dev-dotnet/log4net-1.2.11/work/log4net-1.2.11 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-dotnet/log4net-1.2.11/work/log4net-1.2.11 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-dotnet/log4net-1.2.11/work/log4net-1.2.11 ...
/var/tmp/portage/dev-dotnet/log4net-1.2.11/temp/environment: line 2060: /usr/bin/gmcs: No such file or directory
 * ERROR: dev-dotnet/log4net-1.2.11::gentoo failed (compile phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  93:  Called src_compile
 *   environment, line 2060:  Called die
 * The specific snippet of code:
 *       /usr/bin/gmcs -t:library -out:log4net.dll -keyfile:"${DISTDIR}"/log4net.snk -r:System.Data -r:System.Web $(find src -name "*.cs") || die
 *
 * If you need support, post the output of `emerge --info '=dev-dotnet/log4net-1.2.11::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-dotnet/log4net-1.2.11::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-dotnet/log4net-1.2.11/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-dotnet/log4net-1.2.11/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-dotnet/log4net-1.2.11/work/log4net-1.2.11'
 * S: '/var/tmp/portage/dev-dotnet/log4net-1.2.11/work/log4net-1.2.11'


Reproducible: Always
Comment 1 Markus Rathgeb 2015-08-27 12:28:57 UTC
Created attachment 410410 [details]
build.log
Comment 2 Markus Rathgeb 2015-08-27 12:30:01 UTC
Created attachment 410412 [details]
emerge-info.txt
Comment 3 Markus Rathgeb 2015-08-27 12:30:21 UTC
Created attachment 410414 [details]
emerge-pqv.txt
Comment 4 Markus Rathgeb 2015-08-27 12:31:13 UTC
Found this on another site:
It looks to me like gmcs is the C# compiler. Looking around it seems like starting in C# 4.0, dmcs should be used instead.
Comment 5 Markus Rathgeb 2015-08-27 12:39:08 UTC
Created attachment 410416 [details, diff]
fix-compilation.patch

With the attached patch I could compile it on my machine.
It should also work with the old compiler.
Comment 6 Markus Rathgeb 2015-08-27 13:21:12 UTC
This applies to (IMHO) the most dev-dotnet packages.
nini, dbus-sharp, ...
Comment 7 Markus Rathgeb 2015-08-27 13:23:39 UTC
I am using
ln -s dmcs /usr/bin/gmcs
to get all the necessary packages merged, but this is just a workaround.
Comment 8 Cynede (RETIRED) gentoo-dev 2015-09-03 11:46:51 UTC
gmcs is deprecated, should use mcs