Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 522836 - dev-lang/mono-4.0.2.5 version bump
Summary: dev-lang/mono-4.0.2.5 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: dotnet project
URL:
Whiteboard:
Keywords: EBUILD, InOverlay
: 529232 529234 539980 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-09-15 07:21 UTC by Daniel Shafer
Modified: 2015-08-13 07:22 UTC (History)
8 users (show)

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


Attachments
build 3.10.0 on odroid (build.log.tar.bz2,72.28 KB, application/x-bzip2)
2014-12-05 15:07 UTC, gentooer
Details
emerge --info on odroid (emerge.log,6.15 KB, text/plain)
2014-12-05 15:08 UTC, gentooer
Details
mono-3.12.0.ebuild (mono-3.12.0.ebuild,3.38 KB, text/plain)
2015-02-11 13:33 UTC, LE GARREC Vincent
Details
mono-4.0.0.ebuild (mono-4.0.0.ebuild,3.11 KB, text/plain)
2015-05-10 14:32 UTC, Alex Xu (Hello71)
Details
mono-4.0.0.ebuild v2 (mono-4.0.0.ebuild,3.06 KB, text/plain)
2015-05-16 12:31 UTC, Alex Xu (Hello71)
Details
failed build log (builds-4.0.1.28.tar.xz,92.40 KB, application/x-xz)
2015-05-20 16:39 UTC, LE GARREC Vincent
Details
mono-4.0.2.5.ebuild (mono-4.0.2.5.ebuild,1.67 KB, text/plain)
2015-07-30 11:27 UTC, Ron MacNeil
Details
mono-4.0.2.5-fix-decimal-ms-on-big-endian.patch (mono-4.0.2.5-fix-decimal-ms-on-big-endian.patch,1.12 KB, patch)
2015-07-30 11:28 UTC, Ron MacNeil
Details | Diff
mono-4.0.2.5-fix-mono-dis-makefile-am-when-disable-sgen.patch (mono-4.0.2.5-fix-mono-dis-makefile-am-when-disable-sgen.patch,552 bytes, patch)
2015-07-30 11:29 UTC, Ron MacNeil
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Shafer 2014-09-15 07:21:48 UTC
http://www.mono-project.com/docs/about-mono/releases/3.8.0/

Reproducible: Always
Comment 1 Daniel Shafer 2014-09-15 07:22:49 UTC
Related to similar of this: https://bugs.gentoo.org/show_bug.cgi?id=501130

We are currently 6 releases behind in portage.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-14 12:11:27 UTC
*** Bug 529234 has been marked as a duplicate of this bug. ***
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-14 12:11:51 UTC
*** Bug 529232 has been marked as a duplicate of this bug. ***
Comment 4 Alex Xu (Hello71) 2014-11-29 19:18:43 UTC
version bump tested working. needs DEPEND=!<dev-lang/mono-3.4.0 or something around that, the build automagically uses system libraries and fails miserably.
Comment 5 DrSlony 2014-12-04 07:25:54 UTC
Alex do you have a working ebuild?
Comment 6 gentooer 2014-12-05 15:05:01 UTC
The 3.10.0 ebuild of dotnet does not build on my odroid u2 (arm hardfp, keyworded system):

It apparently builds, but seems to have some problems with the make system.

[...]
Compilation succeeded - 1 warning(s)
caspol.cs(724,20): warning CS0612: `System.Security.SecurityManager.SavePolicyLevel(System.Security.Policy.PolicyLevel)' is obsolete
caspol.cs(745,20): warning CS0612: `System.Security.SecurityManager.SavePolicyLevel(System.Security.Policy.PolicyLevel)' is obsolete
caspol.cs(765,20): warning CS0612: `System.Security.SecurityManager.SavePolicyLevel(System.Security.Policy.PolicyLevel)' is obsolete
caspol.cs(778,21): warning CS0612: `System.Security.SecurityManager.SavePolicyLevel(System.Security.Policy.PolicyLevel)' is obsolete
caspol.cs(790,22): warning CS0612: `System.Security.SecurityManager.SavePolicyLevel(System.Security.Policy.PolicyLevel)' is obsolete
caspol.cs(804,20): warning CS0618: `System.Security.SecurityManager.SecurityEnabled' is obsolete: `The security manager cannot be turned off on MS runtime'
caspol.cs(815,20): warning CS0612: `System.Security.SecurityManager.CheckExecutionRights' is obsolete
caspol.cs(847,36): warning CS0612: `System.Security.SecurityManager.PolicyHierarchy()' is obsolete
caspol.cs(921,34): warning CS0612: `System.Security.SecurityManager.LoadPolicyLevelFromFile(string, System.Security.PolicyLevelType)' is obsolete
caspol.cs(927,34): warning CS0612: `System.Security.SecurityManager.LoadPolicyLevelFromFile(string, System.Security.PolicyLevelType)' is obsolete
caspol.cs(83,15): warning CS0414: The private field `Mono.Tools.CasPol.forcePolicyChanges' is assigned but its value is never used
Compilation succeeded - 21 warning(s)
MCS     [net_4_5] mdbrebase.exe
MCS     [net_4_5] ikdasm.exe
../../../external/ikdasm/Disassembler.cs(2152,69): warning CS0618: `System.Security.Permissions.SecurityAction.RequestMinimum' is obsolete: `This requests should not be used'
../../../external/ikdasm/Disassembler.cs(2155,69): warning CS0618: `System.Security.Permissions.SecurityAction.RequestRefuse' is obsolete: `This requests should not be used'
../../../external/ikdasm/Disassembler.cs(2158,69): warning CS0618: `System.Security.Permissions.SecurityAction.RequestOptional' is obsolete: `This requests should not be used'
../../../external/ikvm/reflect/Reader/Authenticode.cs(67,8): warning CS0219: The variable `dwLength' is assigned but its value is never used
Compilation succeeded - 4 warning(s)
Makefile:96: recipe for target 'profiles-do--all' failed
make[3]: *** [profiles-do--all] Error 2
Makefile:564: recipe for target 'all-local' failed
make[2]: *** [all-local] Error 2
make[2]: Leaving directory '/var/tmp/portage/dev-lang/mono-3.10.0/work/mono-3.10.0_build/runtime'
Makefile:518: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/dev-lang/mono-3.10.0/work/mono-3.10.0_build'
Makefile:445: recipe for target 'all' failed
make: *** [all] Error 2
 ^[[33;01m*^[[0m __helpers_die: WARNING: emake failed
 ^[[33;01m*^[[0m autotools-utils_src_compile: WARNING: emake failed
>>> Source compiled.
>>> Test phase [not enabled]: dev-lang/mono-3.10.0
[...]
/usr/bin/install -c -c -m 755 ./../../class/lib/xbuild_12/xbuild.exe /var/tmp/portage/dev-lang/mono-3.10.0/image//usr/lib/mono/xbuild/12.0/bin
test ! -f ./../../class/lib/xbuild_12/xbuild.exe.mdb || /usr/bin/install -c -c -m 755 ./../../class/lib/xbuild_12/xbuild.exe.mdb /var/tmp/portage/dev-lang/mono-3.10.0/image//usr/lib/mono/xbuild/12.0/bin
test ! -f xbuild.exe.so || /usr/bin/install -c -c -m 755 xbuild.exe.so /var/tmp/portage/dev-lang/mono-3.10.0/image//usr/lib/mono/xbuild/12.0/bin
make[6]: Leaving directory '/var/tmp/portage/dev-lang/mono-3.10.0/work/mono-3.10.0/mcs/tools/xbuild'
make[5]: Leaving directory '/var/tmp/portage/dev-lang/mono-3.10.0/work/mono-3.10.0/mcs/tools/xbuild'
make install-local
make[4]: Leaving directory '/var/tmp/portage/dev-lang/mono-3.10.0/work/mono-3.10.0/mcs'
make[3]: Leaving directory '/var/tmp/portage/dev-lang/mono-3.10.0/work/mono-3.10.0/mcs'
Makefile:96: recipe for target 'profiles-do--install' failed
make[2]: *** [profiles-do--install] Error 2
make[2]: Leaving directory '/var/tmp/portage/dev-lang/mono-3.10.0/work/mono-3.10.0/mcs'
Makefile:572: recipe for target 'install-exec' failed
make[1]: *** [install-exec] Error 2
make[1]: Leaving directory '/var/tmp/portage/dev-lang/mono-3.10.0/work/mono-3.10.0_build/runtime'
Makefile:518: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
 * ERROR: dev-lang/mono-3.10.0::dotnet failed (install phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-lang/mono-3.10.0::dotnet'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/mono-3.10.0::dotnet'`.
 * The complete build log is located at '/var/tmp/portage/dev-lang/mono-3.10.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/mono-3.10.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/mono-3.10.0/work/mono-3.10.0_build'
 * S: '/var/tmp/portage/dev-lang/mono-3.10.0/work/mono-3.10.0'

Full logs are attached as files.
Comment 7 gentooer 2014-12-05 15:07:59 UTC
Created attachment 391016 [details]
build 3.10.0 on odroid
Comment 8 gentooer 2014-12-05 15:08:20 UTC
Created attachment 391018 [details]
emerge --info on odroid
Comment 9 gentooer 2014-12-05 15:08:30 UTC
log files
Comment 10 Alex Xu (Hello71) 2014-12-05 21:48:50 UTC
if you are using -j then you need to scroll up (sometimes very far) to find the real error:

Error: Cannot load support for ResX format: Could not load file or assembly 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies
. The system cannot find the file specified.Error: Cannot load support for ResX format: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=
b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.

Error: Cannot load support for ResX format: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies
. The system cannot find the file specified.

ensure that you have completely removed the old mono version before starting the build of the new (emerge --unmerge mono).
Comment 11 DrSlony 2014-12-06 00:02:09 UTC
Again, where are you getting the 3.10.0 ebuild from?
Comment 12 LE GARREC Vincent 2015-02-11 13:33:12 UTC
Created attachment 396182 [details]
mono-3.12.0.ebuild

I just tried to compile mono with 3.12.0 based on the ebuild 3.2.8 and it worked. I had to remove what's about bug#504108 and force USE="-doc".

Please find enclosed the ebuild I used.
Comment 13 Jeroen Roovers (RETIRED) gentoo-dev 2015-02-13 19:11:40 UTC
*** Bug 539980 has been marked as a duplicate of this bug. ***
Comment 14 Joakim 2015-02-22 00:59:01 UTC
When bringing mono up-to-date with version-3.12.0 I think mod_mono also should be bumped to 3.12, right? Possibly this should go in it's own bug but I still take it up here as they are connected and as a solution works together. 

I was able to emerge mono-3.12.0 with this ebuild and mod_mono-3.12 by simply renaming mod_mono-2.10 + this hack by change in the ebuild:

IUSE="debug"

-DEPEND="=dev-dotnet/xsp-${GO_MONO_REL_PV}*"
+DEPEND=">=dev-dotnet/xsp-2.10"
RDEPEND="${DEPEND}"

and this in /usr/portage/eclass/go-mono.eclass:

else
        GO_MONO_P=${P}
-        SRC_URI="http://download.mono-project.com/sources/${PN}/${P}.tar.bz2"
+        SRC_URI="http://download.mono-project.com/sources/${PN}/${P}.tar.gz"
fi
-----
the tarball format for mod_mono changed from bz2 to gz starting with mod_mono-3.8

while the ebuild change works permanently placed in my local portage overlay, the eclass change will of course be overwritten on sync, but it's probably not the best way to do it as my aim was just to get it to work. I haven't done any testing yet.
Comment 15 Thibaud CANALE 2015-05-01 13:53:58 UTC
Hello,

Sorry if it's not the right place, but the release of the version 4.0 arrived April 29th.
http://www.mono-project.com/docs/about-mono/releases/4.0.0/

Have a nice day.
Comment 16 Steffen Hau 2015-05-05 11:48:43 UTC
According to https://fedoraproject.org/wiki/Changes/Mono_4 support for versions older then 4 has been discontinued. But in contrary, building Mono from source does not require a working mono, this is only true for git installs. This would also fix #548042.
Comment 17 Alex Xu (Hello71) 2015-05-10 14:32:41 UTC
Created attachment 402964 [details]
mono-4.0.0.ebuild
Comment 18 Alex Xu (Hello71) 2015-05-10 17:02:18 UTC
people CC'd and reporter, please test. important cases are all combinations of USE=-*, USE=*, with and without mono-2.x, 3.x installed. I do not have enough CPU power to check all of these.

if there is no response from dotnet within 14 days (either accept or reject), I will get proxy-maint to commit.
Comment 19 jospezial 2015-05-16 01:15:29 UTC
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U  ] dev-lang/mono-4.0.0::gentoo [3.2.8::gentoo] USE="llvm%* nls -debug -doc -minimal -pax_kernel -xen" 0 KiB

Total: 1 package (1 upgrade), Size of downloads: 0 KiB

checking for llvm-config... /usr/bin/llvm-config
llvm-config: unknown component name: jit
checking LLVM version... 3.6.0
configure: error: Compiling with stock LLVM is not supported, please use the Mono LLVM repo at https://github.com/mono/llvm, with the GIT branch which matches this version of mono, i.e. 'mono-2-10' for Mono 2.10.


sys-devel/llvm-3.6.0::gentoo was built with the following:
USE="clang libffi ncurses python static-analyzer xml -debug -doc -gold -libedit -multitarget -ocaml -test" ABI_X86="32 64 -x32" PYTHON_TARGETS="python2_7 -pypy" VIDEO_CARDS="radeon"
Comment 20 Alex Xu (Hello71) 2015-05-16 12:31:50 UTC
Created attachment 403376 [details]
mono-4.0.0.ebuild v2
Comment 21 jospezial 2015-05-16 19:47:41 UTC
(In reply to Alex Xu (Hello71) from comment #20)
> Created attachment 403376 [details]
> mono-4.0.0.ebuild v2

after renaming your ebuild I was able to emerge dev-lang/mono-4.0.1

at http://download.mono-project.com/sources/mono/ there is a mono-4.0.1.34.tar.bz2

I tried to emerge that version but get an error:

>>> Unpacking source...
>>> Unpacking mono-4.0.1.34.tar.bz2 to /var/tmp/portage/dev-lang/mono-4.0.1.34/work
>>> Source unpacked in /var/tmp/portage/dev-lang/mono-4.0.1.34/work
 * ERROR: dev-lang/mono-4.0.1.34::gentoo failed (prepare phase):
 *   The source directory '/var/tmp/portage/dev-lang/mono-4.0.1.34/work/mono-4.0.1.34' doesn't exist

source is in /var/tmp/portage/dev-lang/mono-4.0.1.34/work/mono-4.0.1/
Comment 22 LE GARREC Vincent 2015-05-20 16:39:05 UTC
Created attachment 403690 [details]
failed build log
Comment 23 LE GARREC Vincent 2015-05-20 16:39:46 UTC
I used the ebuild from comment 20. I worked on mono-4.0.1.28. I renamed the ebuild mono-4.0.1.28.ebuild and had to add S="${WORKDIR}/${PN}-4.0.1" to avoid bug in comment 21.

Here is my experimentation :
without mono installed :
dev-lang/mono-4 nls -debug -doc -minimal -pax_kernel -xen : WORK
dev-lang/mono-4 -nls debug -doc -minimal -pax_kernel -xen : WORK
dev-lang/mono-4 -nls -debug doc -minimal -pax_kernel -xen : FAIL
dev-lang/mono-4 -nls -debug -doc minimal -pax_kernel -xen : WORK
dev-lang/mono-4 -nls -debug -doc -minimal pax_kernel -xen : FAIL
dev-lang/mono-4 -nls -debug -doc -minimal -pax_kernel xen : WORK
dev-lang/mono-4 nls debug -doc -minimal -pax_kernel xen : WORK

without mono-2.10.9-r2[-minimal -pax_kernel -xen] installed :
dev-lang/mono-4 -nls -debug -doc -minimal -pax_kernel -xen : FAIL

without mono-3.2.8[nls minimal pax_kernel xen doc debug] installed :
dev-lang/mono-4 -nls -debug -doc -minimal -pax_kernel -xen : FAIL


Portage 2.2.19 (python 3.3.5-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.9.2, glibc-2.20-r2, 3.18.13-gentoo x86_64)
=================================================================
System uname: Linux-3.18.13-gentoo-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:     8130568 total,   1094500 free
KiB Swap:    9767516 total,   9767516 free
Timestamp of repository gentoo: Sun, 17 May 2015 11:00:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.25 p1.0) 2.25
app-shells/bash:          4.3_p33-r2::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2-r1::gentoo
dev-lang/python:          2.7.9-r2::gentoo, 3.3.5-r1::gentoo
dev-util/cmake:           3.2.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.16.3::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25::gentoo
sys-devel/gcc:            4.6.4::gentoo, 4.7.4::gentoo, 4.8.4::gentoo, 4.9.2::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

crossdev
    location: /home/legarrec/info/overlay
    masters: gentoo
    priority: 0

gnome
    location: /var/lib/layman/gnome
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O0 -ggdb2 -g2 -pipe -fno-omit-frame-pointer -frecord-gcc-switches"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O0 -ggdb2 -g2 -pipe -fno-omit-frame-pointer -frecord-gcc-switches"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="-j9 --load-average=9"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news noclean parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O0"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/home/legarrec/info"
USE="X a52 aac accessibility acpi aes alsa amd64 avx berkdb branding bzip2 cairo cdda cdr cjk cli colord cracklib crypt cuda cups cxx dbus declarative dhcpcd djvu doc dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fontconfig fortran gdbm gif gl glamor gnome gnome-keyring gnome-online-accounts gnuplot gpm gstreamer gtk gtk3 gudev iconv introspection ipv6 jabber jpeg jpeg2k kde kdrive kipi lapack lcms ldap libav libnotify libsecret lm_sensors mad mmx mmxext mng modules mp3 mp4 mpeg mpi multilib natspec nautilus ncurses nls nptl ogg opencl opengl openmp pam pango pcre pdf perl phonon plasma png policykit popcnt postscript ppds pulseaudio python qt3support qt4 readline sdl semantic-desktop session spell sqlite sse sse2 sse3 sse4 sse4_1 sse4_2 ssl ssse3 startup-notification svg systemd tcpd threads tiff tracker truetype udev udisks unicode upower usb vorbis webkit wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr en ja" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20 ruby22" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 24 Alex Xu (Hello71) 2015-05-20 17:57:59 UTC
(In reply to LE GARREC Vincent from comment #23)
> I used the ebuild from comment 20. I worked on mono-4.0.1.28. I renamed the
> ebuild mono-4.0.1.28.ebuild and had to add S="${WORKDIR}/${PN}-4.0.1" to
> avoid bug in comment 21.
> 
> Here is my experimentation :
> without mono installed :
> dev-lang/mono-4 nls -debug -doc -minimal -pax_kernel -xen : WORK
> dev-lang/mono-4 -nls debug -doc -minimal -pax_kernel -xen : WORK
> dev-lang/mono-4 -nls -debug doc -minimal -pax_kernel -xen : FAIL
> dev-lang/mono-4 -nls -debug -doc minimal -pax_kernel -xen : WORK
> dev-lang/mono-4 -nls -debug -doc -minimal pax_kernel -xen : FAIL
> dev-lang/mono-4 -nls -debug -doc -minimal -pax_kernel xen : WORK
> dev-lang/mono-4 nls debug -doc -minimal -pax_kernel xen : WORK
> 
> without mono-2.10.9-r2[-minimal -pax_kernel -xen] installed :
> dev-lang/mono-4 -nls -debug -doc -minimal -pax_kernel -xen : FAIL
> 
> without mono-3.2.8[nls minimal pax_kernel xen doc debug] installed :
> dev-lang/mono-4 -nls -debug -doc -minimal -pax_kernel -xen : FAIL
> 
> 
> Portage 2.2.19 (python 3.3.5-final-0,
> default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.9.2, glibc-2.20-r2,
> 3.18.13-gentoo x86_64)
> =================================================================
> System uname:
> Linux-3.18.13-gentoo-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-
> gentoo-2.2
> KiB Mem:     8130568 total,   1094500 free
> KiB Swap:    9767516 total,   9767516 free
> Timestamp of repository gentoo: Sun, 17 May 2015 11:00:01 +0000
> sh bash 4.3_p33-r2
> ld GNU ld (Gentoo 2.25 p1.0) 2.25
> app-shells/bash:          4.3_p33-r2::gentoo
> dev-java/java-config:     2.2.0::gentoo
> dev-lang/perl:            5.20.2-r1::gentoo
> dev-lang/python:          2.7.9-r2::gentoo, 3.3.5-r1::gentoo
> dev-util/cmake:           3.2.2::gentoo
> dev-util/pkgconfig:       0.28-r2::gentoo
> sys-apps/baselayout:      2.2::gentoo
> sys-apps/openrc:          0.16.3::gentoo
> sys-apps/sandbox:         2.6-r1::gentoo
> sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
> sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo,
> 1.15::gentoo
> sys-devel/binutils:       2.25::gentoo
> sys-devel/gcc:            4.6.4::gentoo, 4.7.4::gentoo, 4.8.4::gentoo,
> 4.9.2::gentoo
> sys-devel/gcc-config:     1.8::gentoo
> sys-devel/libtool:        2.4.6-r1::gentoo
> sys-devel/make:           4.1-r1::gentoo
> sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
> sys-libs/glibc:           2.20-r2::gentoo
> Repositories:
> 
> gentoo
>     location: /usr/portage
>     sync-type: rsync
>     sync-uri: rsync://rsync.gentoo.org/gentoo-portage
>     priority: -1000
> 
> crossdev
>     location: /home/legarrec/info/overlay
>     masters: gentoo
>     priority: 0
> 
> gnome
>     location: /var/lib/layman/gnome
>     masters: gentoo
>     priority: 50
> 
> steam-overlay
>     location: /var/lib/layman/steam-overlay
>     masters: gentoo
>     priority: 50
> 
> ACCEPT_KEYWORDS="amd64 ~amd64"
> ACCEPT_LICENSE="*"
> CBUILD="x86_64-pc-linux-gnu"
> CFLAGS="-march=native -O0 -ggdb2 -g2 -pipe -fno-omit-frame-pointer
> -frecord-gcc-switches"
> CHOST="x86_64-pc-linux-gnu"
> CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc
> /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
> CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d
> /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release
> /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/
> /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d
> /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d
> /etc/texmf/updmap.d /etc/texmf/web2c"
> CXXFLAGS="-march=native -O0 -ggdb2 -g2 -pipe -fno-omit-frame-pointer
> -frecord-gcc-switches"
> DISTDIR="/usr/portage/distfiles"
> EMERGE_DEFAULT_OPTS="-j9 --load-average=9"
> FCFLAGS="-O2 -pipe"
> FEATURES="assume-digests binpkg-logs compressdebug
> config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news
> noclean parallel-fetch preserve-libs protect-owned sandbox sfperms
> splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans
> userfetch userpriv usersandbox usersync"
> FFLAGS="-O2 -pipe"
> GENTOO_MIRRORS="http://distfiles.gentoo.org"
> LANG="fr_FR.UTF-8"
> LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O0"
> MAKEOPTS="-j9"
> PKGDIR="/usr/portage/packages"
> PORTAGE_CONFIGROOT="/"
> PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
> --omit-dir-times --compress --force --whole-file --delete --stats
> --human-readable --timeout=180 --exclude=/distfiles --exclude=/local
> --exclude=/packages"
> PORTAGE_TMPDIR="/home/legarrec/info"
> USE="X a52 aac accessibility acpi aes alsa amd64 avx berkdb branding bzip2
> cairo cdda cdr cjk cli colord cracklib crypt cuda cups cxx dbus declarative
> dhcpcd djvu doc dri dts dvd dvdr eds emboss encode evo exif fam firefox flac
> fontconfig fortran gdbm gif gl glamor gnome gnome-keyring
> gnome-online-accounts gnuplot gpm gstreamer gtk gtk3 gudev iconv
> introspection ipv6 jabber jpeg jpeg2k kde kdrive kipi lapack lcms ldap libav
> libnotify libsecret lm_sensors mad mmx mmxext mng modules mp3 mp4 mpeg mpi
> multilib natspec nautilus ncurses nls nptl ogg opencl opengl openmp pam
> pango pcre pdf perl phonon plasma png policykit popcnt postscript ppds
> pulseaudio python qt3support qt4 readline sdl semantic-desktop session spell
> sqlite sse sse2 sse3 sse4 sse4_1 sse4_2 ssl ssse3 startup-notification svg
> systemd tcpd threads tiff tracker truetype udev udisks unicode upower usb
> vorbis webkit wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv
> xvid zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem
> bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel
> intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
> APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias
> auth_basic authn_alias authn_anon authn_dbm authn_default authn_file
> authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user
> autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env
> expires ext_filter file_cache filter headers include info log_config logio
> mem_cache mime mime_magic negotiation rewrite setenvif speling status
> unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow
> plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2"
> COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
> CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4 sse4_1 sse4_2
> ssse3" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm
> earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip
> navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2
> timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev"
> KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216
> lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console
> presenter-minimizer" LINGUAS="fr en ja" OFFICE_IMPLEMENTATION="libreoffice"
> PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7"
> PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20 ruby22"
> USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan
> length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq
> steal rawnat logmark ipmark dhcpmac delude chaos account"
> Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND,
> PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS,
> USE_PYTHON

src_install phase needs to be run as root in sandbox for chown/chmod to work.
Comment 25 LE GARREC Vincent 2015-05-20 18:22:40 UTC
(In reply to Alex Xu (Hello71) from comment #24)
> 
> src_install phase needs to be run as root in sandbox for chown/chmod to work.

If I look inside the build of mono[+pax_kernel] : there's 2 problems :

/usr/bin/install: cannot change permissions of '/home/legarrec/info/portage/dev-lang/mono-4.0.1.28/image//usr/lib/mono/xbuild/Microsoft/VisualStudio/v9.0/WebApplications/Microsoft.WebApplication.targets': No such file or directory
Here, you're right, the file really exists. I'm not an expert in ebuild. Can you tell me what's the modification I need to apply to solve this bug ? Thanks.

/usr/bin/install -c -c -m 644 targets/Microsoft.WebApplication.targets /home/legarrec/info/portage/dev-lang/mono-4.0.1.28/image//usr/lib/mono/xbuild/Microsoft/VisualStudio/v9.0/WebApplications
cannot create regular file '/home/legarrec/info/portage/dev-lang/mono-4.0.1.28/image//usr/lib/mono/xbuild-frameworks/.NETFramework/v4.5/RedistList/FrameworkList.xml': File exists
Here, this is because there's twice the same install :
/usr/bin/install -c -c -m 644 frameworks/net_4.5.xml /home/legarrec/info/portage/dev-lang/mono-4.0.1.28/image//usr/lib/mono/xbuild-frameworks/.NETFramework/v4.5/RedistList/FrameworkList.xml
/usr/bin/install -c -c -m 644 frameworks/net_4.5.xml /home/legarrec/info/portage/dev-lang/mono-4.0.1.28/image//usr/lib/mono/xbuild-frameworks/.NETFramework/v4.5/RedistList/FrameworkList.xml
So, to make pax_kernel works, I think a patch is needed. But first, I would like to work with first bug solved.

PS : I forget to test without mono installed :
dev-lang/mono-4 -nls -debug -doc -minimal -pax_kernel -xen : FAIL
Comment 26 Thibaud CANALE 2015-05-22 19:57:53 UTC
Hello,

Sorry, I don't have the resources nor the knowledges to test it, but as a request could you please for hardened systems avoid the `--with-jit` line 86 of the attachment 403376 [details] (and checking other improvements I may not know)? Thank you.
Comment 27 Alex Xu (Hello71) 2015-05-22 20:59:16 UTC
(In reply to Thibaud "thican" CANALE from comment #26)
> Hello,
> 
> Sorry, I don't have the resources nor the knowledges to test it, but as a
> request could you please for hardened systems avoid the `--with-jit` line 86
> of the attachment 403376 [details] (and checking other improvements I may
> not know)? Thank you.

--with-jit has been in since 2.10.9-r2.
Comment 28 Alex Xu (Hello71) 2015-05-31 23:19:28 UTC
(In reply to LE GARREC Vincent from comment #25)
> (In reply to Alex Xu (Hello71) from comment #24)
> > 
> > src_install phase needs to be run as root in sandbox for chown/chmod to work.
> 
> If I look inside the build of mono[+pax_kernel] : there's 2 problems :
> 
> /usr/bin/install: cannot change permissions of
> '/home/legarrec/info/portage/dev-lang/mono-4.0.1.28/image//usr/lib/mono/
> xbuild/Microsoft/VisualStudio/v9.0/WebApplications/Microsoft.WebApplication.
> targets': No such file or directory
> Here, you're right, the file really exists. I'm not an expert in ebuild. Can
> you tell me what's the modification I need to apply to solve this bug ?
> Thanks.
> 
> /usr/bin/install -c -c -m 644 targets/Microsoft.WebApplication.targets
> /home/legarrec/info/portage/dev-lang/mono-4.0.1.28/image//usr/lib/mono/
> xbuild/Microsoft/VisualStudio/v9.0/WebApplications
> cannot create regular file
> '/home/legarrec/info/portage/dev-lang/mono-4.0.1.28/image//usr/lib/mono/
> xbuild-frameworks/.NETFramework/v4.5/RedistList/FrameworkList.xml': File
> exists
> Here, this is because there's twice the same install :
> /usr/bin/install -c -c -m 644 frameworks/net_4.5.xml
> /home/legarrec/info/portage/dev-lang/mono-4.0.1.28/image//usr/lib/mono/
> xbuild-frameworks/.NETFramework/v4.5/RedistList/FrameworkList.xml
> /usr/bin/install -c -c -m 644 frameworks/net_4.5.xml
> /home/legarrec/info/portage/dev-lang/mono-4.0.1.28/image//usr/lib/mono/
> xbuild-frameworks/.NETFramework/v4.5/RedistList/FrameworkList.xml
> So, to make pax_kernel works, I think a patch is needed. But first, I would
> like to work with first bug solved.
> 
> PS : I forget to test without mono installed :
> dev-lang/mono-4 -nls -debug -doc -minimal -pax_kernel -xen : FAIL

try -j1.
Comment 29 Ron MacNeil 2015-07-30 11:27:43 UTC
Created attachment 407978 [details]
mono-4.0.2.5.ebuild

mono-4.0.2.5.ebuild

- Based off of in-tree mono-3.12.1.ebuild
- Remove unused debug use flag
- Use versionator.eclass to compute ${S} because the name of the top-level subdirectory in the source distribution (now) only includes 3 of the 4 version number components
- Strip out all special src_prepare() steps.  Some may still be necessary under some circumstances, but none were necessary in my case.
- Update configure args to reflect those that actually exist
- Don't need --without-sgen on ppc anymore (confirmed by me)
- Eliminate unnecessary --with-libgdiplus configure arg, both previous use-flag-controlled settings are a) synonyms and b) the default.
- Remove obsolete 3.4.0 fix in src_configure()
- Remove unnecessary (in my case, anyway) src_compile() retry
- Patch to fix build on ppc (and other big-endian probably) mono-4.0.2.5-fix-decimal-ms-on-big-endian.patch from https://bugzilla.xamarin.com/show_bug.cgi?id=31779
- Patch to fix build if --disable-sgen mono-4.0.2.5-fix-mono-dis-makefile-am-when-disable-sgen.patch from https://bugzilla.xamarin.com/show_bug.cgi?id=32015
- doc use-flag breaks build, not sure how to fix https://bugzilla.xamarin.com/show_bug.cgi?id=23799
Comment 30 Ron MacNeil 2015-07-30 11:28:39 UTC
Created attachment 407980 [details, diff]
mono-4.0.2.5-fix-decimal-ms-on-big-endian.patch
Comment 31 Ron MacNeil 2015-07-30 11:29:05 UTC
Created attachment 407982 [details, diff]
mono-4.0.2.5-fix-mono-dis-makefile-am-when-disable-sgen.patch
Comment 32 Alex Xu (Hello71) 2015-07-30 12:15:45 UTC
fyi there are ebuilds in dotnet overlay.
Comment 33 Ron MacNeil 2015-07-30 20:48:56 UTC
Hi Alex, are you suggesting I try to contribute to that overlay instead?  The 4.0.2.5 ebuild there is problematic for a number of reasons, not least of which is it doesn't build on ppc...
Comment 34 Alex Xu (Hello71) 2015-07-30 21:12:17 UTC
(In reply to Ron MacNeil from comment #33)
> Hi Alex, are you suggesting I try to contribute to that overlay instead? 
> The 4.0.2.5 ebuild there is problematic for a number of reasons, not least
> of which is it doesn't build on ppc...

not necessarily. just a note.
Comment 36 Alex Xu (Hello71) 2015-08-13 00:54:48 UTC
and it only took... 11 months.
Comment 37 Cynede (RETIRED) gentoo-dev 2015-08-13 07:22:30 UTC
I'm sorry for delay. As you see dotnet team needs help now, so in future you can try also contact me via dotnet overlay on github for example, providing pull request there - so I will react faster