Package Details: mono-git 6.12.0.205.r1487.89f1d3cc22f-1

Git Clone URL: https://aur.archlinux.org/mono-git.git (read-only, click to copy)
Package Base: mono-git
Description: Free implementation of the .NET platform including runtime and compiler
Upstream URL: http://www.mono-project.com/
Keywords: mono
Licenses: GPL, BSD, MPL, LGPL2.1, custom=MITX11, custom=MSPL
Conflicts: mono, monodoc
Provides: mono, monodoc
Submitter: Ziemas
Maintainer: LinuxUserGD
Last Packager: LinuxUserGD
Votes: 13
Popularity: 0.000000
First Submitted: 2011-03-25 16:52 (UTC)
Last Updated: 2023-12-20 16:02 (UTC)

Required by (201)

Sources (23)

Latest Comments

1 2 3 4 5 Next › Last »

zomgugoff commented on 2025-03-06 04:00 (UTC)

Makefile is missing from bdwgc

Making all in external/bdwgc
make[2]: Entering directory '/home/ugoff/.cache/yay/mono-git/src/mono/external/bdwgc'
make[2]: *** No rule to make target 'all'.  Stop.
make[2]: Leaving directory '/home/ugoff/.cache/yay/mono-git/src/mono/external/bdwgc'
make[1]: *** [Makefile:602: all-recursive] Error 1
make[1]: Leaving directory '/home/ugoff/.cache/yay/mono-git/src/mono'
make: *** [Makefile:530: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: mono-git-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
mono-git - exit status 4

LinuxUserGD commented on 2023-12-20 16:05 (UTC)

Thanks for reporting, build should be fixed now after adding git -c protocol.file.allow=always to the submodule update command.

MarsSeed commented on 2023-11-16 20:20 (UTC)

Please kindly declare all git modules. There are new ones that are needed but missing from source array.

Also please fix the source cloning error:

==> Starting prepare()...
Submodule 'external/aspnetwebstack' (https://github.com/mono/aspnetwebstack.git) registered for path 'external/aspnetwebstack'
Cloning into '/home/user/.cache/makepkg/mono-git/src/mono/external/aspnetwebstack'...
fatal: transport 'file' not allowed
fatal: clone of '/home/user/.cache/makepkg/mono-git/src/aspnetwebstack' into submodule path '/home/user/.cache/makepkg/mono-git/src/mono/external/aspnetwebstack' failed
Failed to clone 'external/aspnetwebstack'. Retry scheduled
Cloning into '/home/user/.cache/makepkg/mono-git/src/mono/external/aspnetwebstack'...
fatal: transport 'file' not allowed
fatal: clone of '/home/user/.cache/makepkg/mono-git/src/aspnetwebstack' into submodule path '/home/user/.cache/makepkg/mono-git/src/mono/external/aspnetwebstack' failed
Failed to clone 'external/aspnetwebstack' a second time, aborting
==> ERROR: A failure occurred in prepare().
    Aborting...
 -> error making: mono-git

moormaster commented on 2022-08-14 09:40 (UTC) (edited on 2022-09-02 23:00 (UTC) by moormaster)

I managed to build it by preventing the includes from sys/* in mono/metadata/w32file-unix.c

This patch might become obsolete as soon as https://sourceware.org/git/?p=glibc.git;a=commit;h=774058d72942249f71d74e7f2b639f77184160a6 will be included in the next glibc release.

diff --git a/PKGBUILD b/PKGBUILD
index 1cba31d..d9d6e61 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -39,11 +39,13 @@ source=(
   'git+https://github.com/dotnet/llvm-project.git'
   'git+https://github.com/Unity-Technologies/bdwgc.git'
   'mono.binfmt.d'
+  'patch_glibc_mount_header_fix.patch'
 )
 sha256sums=(
   'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP'
   'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP'
   '9a657fc153ef4ce23bf5fc369a26bf4a124e9304bde3744d04c583c54ca47425'
+  'SKIP'
 )

 pkgver() {
@@ -95,6 +97,8 @@ prepare() {
 build() {
   cd "${_gitname}"

+  patch -p 1 -i ${srcdir}/patch_glibc_mount_header_fix.patch
+
   # Default prefix is /usr/local/
   # Default sysconfdir is /usr/local/etc/
   # Default sbindir is /usr/local/sbin/
diff --git a/patch_glibc_mount_header_fix.patch b/patch_glibc_mount_header_fix.patch
new file mode 100644
index 0000000..5913c78
--- /dev/null
+++ b/patch_glibc_mount_header_fix.patch
@@ -0,0 +1,11 @@
+--- a/mono/metadata/w32file-unix.c     2022-08-14 04:08:10.879022143 +0200
++++ b/mono/metadata/w32file-unix.c     2022-08-14 11:27:29.887736112 +0200
+@@ -17,7 +17,7 @@
+ #if defined(HAVE_SYS_STATFS_H)
+ #include <sys/statfs.h>
+ #endif
+-#if defined(HAVE_SYS_PARAM_H) && defined(HAVE_SYS_MOUNT_H)
++#if defined(HAVE_SYS_PARAM_H) && defined(HAVE_SYS_MOUNT_H) && !defined(__linux__)
+ #include <sys/param.h>
+ #include <sys/mount.h>
+ #endif

moormaster commented on 2022-08-14 04:14 (UTC)

Build fails for me

Making all in metadata
make[3]: Entering directory '/home/aur_builder/.cache/pikaur/build/mono-git/src/mono/mono/metadata'
  CC       libmonoruntime_la-console-unix.lo
  CC       libmonoruntime_config_la-mono-config-dirs.lo
  CC       libmonoruntime_la-w32semaphore-unix.lo
  CC       libmonoruntime_la-w32mutex-unix.lo
  CC       libmonoruntime_la-w32event-unix.lo
  CC       libmonoruntime_la-w32process-unix.lo
  CC       libmonoruntime_la-w32process-unix-osx.lo
  CC       libmonoruntime_la-w32process-unix-bsd.lo
  CC       libmonoruntime_la-w32process-unix-haiku.lo
  CC       libmonoruntime_la-w32process-unix-default.lo
  CC       libmonoruntime_la-w32socket-unix.lo
  CC       libmonoruntime_la-w32file-unix.lo
In file included from /usr/include/linux/fs.h:19,
                 from w32file-unix.c:31:
/usr/include/linux/mount.h:95:6: error: redeclaration of ‘enum fsconfig_command’
   95 | enum fsconfig_command {
      |      ^~~~~~~~~~~~~~~~
In file included from w32file-unix.c:22:
/usr/include/sys/mount.h:189:6: note: originally defined here
  189 | enum fsconfig_command
      |      ^~~~~~~~~~~~~~~~
/usr/include/linux/mount.h:96:9: error: redeclaration of enumerator ‘FSCONFIG_SET_FLAG’
   96 |         FSCONFIG_SET_FLAG       = 0,    /* Set parameter, supplying no value */
      |         ^~~~~~~~~~~~~~~~~
/usr/include/sys/mount.h:191:3: note: previous definition of ‘FSCONFIG_SET_FLAG’ with type ‘enum fsconfig_command’
  191 |   FSCONFIG_SET_FLAG       = 0,    /* Set parameter, supplying no value */
      |   ^~~~~~~~~~~~~~~~~
/usr/include/linux/mount.h:97:9: error: redeclaration of enumerator ‘FSCONFIG_SET_STRING’
   97 |         FSCONFIG_SET_STRING     = 1,    /* Set parameter, supplying a string value */
      |         ^~~~~~~~~~~~~~~~~~~
/usr/include/sys/mount.h:193:3: note: previous definition of ‘FSCONFIG_SET_STRING’ with type ‘enum fsconfig_command’
  193 |   FSCONFIG_SET_STRING     = 1,    /* Set parameter, supplying a string value */
      |   ^~~~~~~~~~~~~~~~~~~
/usr/include/linux/mount.h:98:9: error: redeclaration of enumerator ‘FSCONFIG_SET_BINARY’
   98 |         FSCONFIG_SET_BINARY     = 2,    /* Set parameter, supplying a binary blob value */
      |         ^~~~~~~~~~~~~~~~~~~
/usr/include/sys/mount.h:195:3: note: previous definition of ‘FSCONFIG_SET_BINARY’ with type ‘enum fsconfig_command’
  195 |   FSCONFIG_SET_BINARY     = 2,    /* Set parameter, supplying a binary blob value */
      |   ^~~~~~~~~~~~~~~~~~~
/usr/include/linux/mount.h:99:9: error: redeclaration of enumerator ‘FSCONFIG_SET_PATH’
   99 |         FSCONFIG_SET_PATH       = 3,    /* Set parameter, supplying an object by path */
      |         ^~~~~~~~~~~~~~~~~
/usr/include/sys/mount.h:197:3: note: previous definition of ‘FSCONFIG_SET_PATH’ with type ‘enum fsconfig_command’
  197 |   FSCONFIG_SET_PATH       = 3,    /* Set parameter, supplying an object by path */
      |   ^~~~~~~~~~~~~~~~~
/usr/include/linux/mount.h:100:9: error: redeclaration of enumerator ‘FSCONFIG_SET_PATH_EMPTY’
  100 |         FSCONFIG_SET_PATH_EMPTY = 4,    /* Set parameter, supplying an object by (empty) path */
      |         ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/sys/mount.h:199:3: note: previous definition of ‘FSCONFIG_SET_PATH_EMPTY’ with type ‘enum fsconfig_command’
  199 |   FSCONFIG_SET_PATH_EMPTY = 4,    /* Set parameter, supplying an object by (empty) path */
      |   ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/linux/mount.h:101:9: error: redeclaration of enumerator ‘FSCONFIG_SET_FD’
  101 |         FSCONFIG_SET_FD         = 5,    /* Set parameter, supplying an object by fd */
      |         ^~~~~~~~~~~~~~~
/usr/include/sys/mount.h:201:3: note: previous definition of ‘FSCONFIG_SET_FD’ with type ‘enum fsconfig_command’
  201 |   FSCONFIG_SET_FD         = 5,    /* Set parameter, supplying an object by fd */
      |   ^~~~~~~~~~~~~~~
/usr/include/linux/mount.h:102:9: error: redeclaration of enumerator ‘FSCONFIG_CMD_CREATE’
  102 |         FSCONFIG_CMD_CREATE     = 6,    /* Invoke superblock creation */
      |         ^~~~~~~~~~~~~~~~~~~
/usr/include/sys/mount.h:203:3: note: previous definition of ‘FSCONFIG_CMD_CREATE’ with type ‘enum fsconfig_command’
  203 |   FSCONFIG_CMD_CREATE     = 6,    /* Invoke superblock creation */
      |   ^~~~~~~~~~~~~~~~~~~
/usr/include/linux/mount.h:103:9: error: redeclaration of enumerator ‘FSCONFIG_CMD_RECONFIGURE’
  103 |         FSCONFIG_CMD_RECONFIGURE = 7,   /* Invoke superblock reconfiguration */
      |         ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/sys/mount.h:205:3: note: previous definition of ‘FSCONFIG_CMD_RECONFIGURE’ with type ‘enum fsconfig_command’
  205 |   FSCONFIG_CMD_RECONFIGURE = 7,   /* Invoke superblock reconfiguration */
      |   ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/linux/mount.h:129:8: error: redefinition of ‘struct mount_attr’
  129 | struct mount_attr {
      |        ^~~~~~~~~~
/usr/include/sys/mount.h:161:8: note: originally defined here
  161 | struct mount_attr
      |        ^~~~~~~~~~
make[3]: *** [Makefile:2115: libmonoruntime_la-w32file-unix.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/home/aur_builder/.cache/pikaur/build/mono-git/src/mono/mono/metadata'
make[2]: *** [Makefile:535: all-recursive] Error 1
make[2]: Leaving directory '/home/aur_builder/.cache/pikaur/build/mono-git/src/mono/mono'
make[1]: *** [Makefile:602: all-recursive] Error 1
make[1]: Leaving directory '/home/aur_builder/.cache/pikaur/build/mono-git/src/mono'
make: *** [Makefile:530: all] Error 2

FabioLolix commented on 2022-03-20 22:38 (UTC)

Thanks!

LinuxUserGD commented on 2022-03-20 22:37 (UTC)

@FabioLolix Ok, updated .SRCINFO to 6.12.0.173.r1404.5977f1ca545 (Mono JIT compiler version 6.13.0)

FabioLolix commented on 2022-03-20 12:36 (UTC)

Would you like to bump the pkgbuild? One pkgbuild I'm working on need a very recent build, solve this problem https://bugs.archlinux.org/task/71007 I had

tsj commented on 2022-02-22 15:41 (UTC)

@FabioLolix Thanks was not familiar with devtools, that worked where yay/makepkg did not

FabioLolix commented on 2022-02-21 21:49 (UTC)

builds fine here both using makepkg and devtools