SHA256
1
0
forked from pool/mono-core
Andrew Jorgensen 2010-05-17 17:35:41 +00:00 committed by Git OBS Bridge
parent c22455f2f6
commit 0499007b13
15 changed files with 6207 additions and 12 deletions

7
_constraints Normal file
View File

@ -0,0 +1,7 @@
<constraints>
<hardware>
<disk>
<size unit="G">6</size>
</disk>
</hardware>
</constraints>

View File

@ -1,12 +0,0 @@
--- data/mono.pc.in 2010-04-22 09:37:47.000000000 -0600
+++ data/mono.pc.in 2010-05-10 09:30:04.000000000 -0600
@@ -7,8 +7,6 @@
Name: Mono
Description: Mono Runtime
Version: @VERSION@
-## Commented out because SLE hides devel files in the SLE SDK,
-## which not all customers will have.
-#Requires: glib-2.0 gthread-2.0
+Requires: glib-2.0 gthread-2.0
Libs: -L${libdir} @export_ldflags@ -lmono @libmono_ldflags@
Cflags: -I${includedir} @libmono_cflags@

View File

@ -0,0 +1,26 @@
From 1a739c8dc34ec239ca0ded6a79bb7370f81944da Mon Sep 17 00:00:00 2001
From: Martin Liska <mliska@suse.cz>
Date: Fri, 1 Oct 2021 14:39:37 +0200
Subject: [PATCH] Enable X509_V_FLAG_TRUSTED_FIRST flag.
Fixes: Fix Let's Encrypt DST Root CA X3 certificate expiration.
---
external/boringssl/crypto/x509/x509_vpm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/external/boringssl/crypto/x509/x509_vpm.c b/external/boringssl/crypto/x509/x509_vpm.c
index 02a589888..4bbb1ceed 100644
--- a/external/boringssl/crypto/x509/x509_vpm.c
+++ b/external/boringssl/crypto/x509/x509_vpm.c
@@ -515,7 +515,7 @@ static const X509_VERIFY_PARAM default_table[] = {
(char *)"default", /* X509 default parameters */
0, /* Check time */
0, /* internal flags */
- 0, /* flags */
+ X509_V_FLAG_TRUSTED_FIRST, /* flags */
0, /* purpose */
0, /* trust */
100, /* depth */
--
2.33.0

24
find-deps-fix.patch Normal file
View File

@ -0,0 +1,24 @@
diff -uprN mono-4.2.3.old/scripts/mono-find-provides.in mono-4.2.3/scripts/mono-find-provides.in
--- mono-4.2.3.old/scripts/mono-find-provides.in 2016-03-15 14:31:53.000000000 +0300
+++ mono-4.2.3/scripts/mono-find-provides.in 2016-06-01 09:21:13.028703810 +0300
@@ -24,7 +24,7 @@ libdir=$prefix/@reloc_libdir@
bindir=$prefix/bin
# Bail out if monodis or libmono is missing
-if [ ! -x $bindir/monodis ] || [ ! -f $libdir/libmono-2.0.so.1 ] ; then
+if [ ! -x $bindir/monodis ] ; then
echo "monodis missing or unusable, exiting..." 1>&2
exit 1
fi
diff -uprN mono-4.2.3.old/scripts/mono-find-requires.in mono-4.2.3/scripts/mono-find-requires.in
--- mono-4.2.3.old/scripts/mono-find-requires.in 2016-03-15 14:31:53.000000000 +0300
+++ mono-4.2.3/scripts/mono-find-requires.in 2016-06-01 09:21:25.876703594 +0300
@@ -28,7 +28,7 @@ libdir=$prefix/@reloc_libdir@
bindir=$prefix/bin
# Bail out if monodis or libmono is missing
-if [ ! -x $bindir/monodis ] || [ ! -f $libdir/libmono-2.0.so.1 ] ; then
+if [ ! -x $bindir/monodis ] ; then
echo "monodis missing or unusable, exiting..." 1>&2
exit 1
fi

12
fix-s390x-ucontext.patch Normal file
View File

@ -0,0 +1,12 @@
diff -urp mono-6.8.0.123.orig/mono/utils/mono-context.h mono-6.8.0.123/mono/utils/mono-context.h
--- mono-6.8.0.123.orig/mono/utils/mono-context.h 2020-05-11 12:58:14.000000000 -0500
+++ mono-6.8.0.123/mono/utils/mono-context.h 2020-05-21 15:10:03.209484526 -0500
@@ -879,7 +879,7 @@ typedef struct {
#include <sys/ucontext.h>
-#if __GLIBC_PREREQ(2, 27)
+#if __GLIBC_PREREQ(2, 26)
typedef ucontext_t MonoContext;
#else
typedef struct ucontext MonoContext;

2
gmcs Normal file
View File

@ -0,0 +1,2 @@
#!/bin/sh
exec /usr/bin/mono $MONO_OPTIONS /usr/lib/mono/4.5/mcs.exe -sdk:4 "$@"

3
mono-6.12.0.122.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:29c277660fc5e7513107aee1cbf8c5057c9370a4cdfeda2fc781be6986d89d23
size 292266176

4299
mono-core.changes Normal file

File diff suppressed because it is too large Load Diff

2
mono-core.rpmlintrc Normal file
View File

@ -0,0 +1,2 @@
addFilter("useless-provides mono")
addFilter("hidden-file-or-dir /usr/lib/mono/xbuild-frameworks/.NETFramework")

1637
mono-core.spec Normal file

File diff suppressed because it is too large Load Diff

42
mono-find-provides Normal file
View File

@ -0,0 +1,42 @@
#!/usr/bin/bash
#
# mono-find-provides
#
# Authors:
# Ben Maurer (bmaurer@ximian.com)
#
# (C) 2005 Novell (http://www.novell.com)
#
# Args: builddir buildroot libdir
IFS=$'\n'
filelist=($(grep -Ev '/usr/doc/|/usr/share/doc/'))
monolist=($(printf "%s\n" "${filelist[@]}" | grep -E "\\.(exe|dll)\$"))
# If monodis is in the package being installed, use that one
# This is to support building mono
build_bindir="$2/usr/bin"
build_libdir="$2$3"
if [ -x $build_bindir/monodis ]; then
monodis="$build_bindir/monodis"
export LD_LIBRARY_PATH=$build_libdir${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
elif [ -x /usr/bin/monodis ]; then
monodis="/usr/bin/monodis"
else
exit 0;
fi
export MONO_SHARED_DIR=$1
for i in "${monolist[@]}"; do
($monodis --assembly $i | awk '
BEGIN { LIBNAME=""; VERSION=""; }
/^Version:/ { VERSION=$2 }
/^Name:/ { LIBNAME=$2 }
END {
if (VERSION && LIBNAME)
print "mono(" LIBNAME ") = " VERSION
}
') 2>/dev/null
done

90
mono-find-requires Normal file
View File

@ -0,0 +1,90 @@
#!/usr/bin/bash
#
# mono-find-requires
#
# Authors:
# Ben Maurer (bmaurer@ximian.com)
#
# (C) 2005 Novell (http://www.novell.com)
#
# Args: builddir buildroot libdir
IFS=$'\n'
filelist=($(grep -Ev '/usr/doc/|/usr/share/doc/'))
monolist=($(printf "%s\n" "${filelist[@]}" | grep -E "\\.(exe|dll)\$"))
# If monodis is in the package being installed, use that one
# This is to support building mono
build_bindir="$2/usr/bin"
build_libdir="$2$3"
if [ -x $build_bindir/monodis ]; then
monodis="$build_bindir/monodis"
export LD_LIBRARY_PATH=$build_libdir${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
elif [ -x /usr/bin/monodis ]; then
monodis="/usr/bin/monodis"
else
exit 0;
fi
export MONO_SHARED_DIR=$1
REQUIRES=$(
for i in "${monolist[@]}"; do
($monodis --assemblyref $i | awk '
BEGIN { START=0; LIBNAME=""; VERSION=""; }
(START==0) && /^[0-9]+: Version=/ {
START=1;
sub(/Version=/, "", $2);
VERSION=$2
}
(START==1) && /^\tName=/ {
sub(/Name=/, "", $1);
LIBNAME=$1
# Allow rpm deps to be resolved for 1.0 profile version
if (VERSION=="1.0.3300.0")
OP=">="
else
OP="="
print "mono(" LIBNAME ") " OP " " VERSION
START=0
}
') 2> /dev/null
done
)
PROVIDES=$(
for i in "${monolist[@]}"; do
($monodis --assembly $i | awk '
BEGIN { LIBNAME=""; VERSION=""; }
/^Version:/ { VERSION=$2 }
/^Name:/ { LIBNAME=$2 }
END {
if (VERSION && LIBNAME)
print "mono(" LIBNAME ") = " VERSION
}
') 2>/dev/null
done
)
#
# This is a little magic trick to get all REQUIRES that are not
# in PROVIDES. While RPM functions correctly when such deps exist,
# they make the metadata a bit bloated.
#
# Filter out dups from both lists
REQUIRES=$(echo "$REQUIRES" | sort | uniq)
PROVIDES=$(echo "$PROVIDES" | sort | uniq)
#
# Get a list of elements that exist in exactly one of PROVIDES or REQUIRES
#
UNIQ=$(echo "$PROVIDES
$REQUIRES" | sort | uniq -u)
#
# Of those, only chose the ones that are in REQUIRES
#
echo "$UNIQ
$REQUIRES" | sort | uniq -d

3
mono.attr Normal file
View File

@ -0,0 +1,3 @@
%__mono_provides %{_rpmconfigdir}/mono-find-provides %{_builddir}/%{?buildsubdir} %{buildroot} %{_libdir}
%__mono_requires %{_rpmconfigdir}/mono-find-requires %{_builddir}/%{?buildsubdir} %{buildroot} %{_libdir}
%__mono_magic Mono/.Net assembly

View File

@ -0,0 +1,12 @@
diff -uprN mono-5.0.0.old/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/Csc.cs mono-5.0.0/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/Csc.cs
--- mono-5.0.0.old/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/Csc.cs 2017-05-03 18:45:38.000000000 +0300
+++ mono-5.0.0/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/Csc.cs 2017-05-05 05:05:48.901776264 +0300
@@ -219,7 +219,7 @@ namespace Microsoft.Build.Tasks {
protected override string ToolName {
get {
- return MSBuildUtils.RunningOnWindows ? "csc.bat" : "csc.exe";
+ return MSBuildUtils.RunningOnWindows ? "mcs.bat" : "mcs.exe";
}
}

View File

@ -0,0 +1,48 @@
diff -uprN mono-5.10.1.25.old/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/Vbc.cs mono-5.10.1.25/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/Vbc.cs
--- mono-5.10.1.25.old/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/Vbc.cs 2018-03-30 10:46:30.000000000 +0300
+++ mono-5.10.1.25/mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/Vbc.cs 2018-03-30 18:18:16.455961999 +0300
@@ -326,7 +326,7 @@ namespace Microsoft.Build.Tasks {
[MonoTODO]
protected override string ToolName {
get {
- return MSBuildUtils.RunningOnWindows ? "vbnc.bat" : "vbnc";
+ return MSBuildUtils.RunningOnWindows ? "vbc.bat" : "vbc";
}
}
diff -uprN mono-5.10.1.25.old/mcs/class/System/System/MonoToolsLocator.cs mono-5.10.1.25/mcs/class/System/System/MonoToolsLocator.cs
--- mono-5.10.1.25.old/mcs/class/System/System/MonoToolsLocator.cs 2018-03-30 10:46:33.000000000 +0300
+++ mono-5.10.1.25/mcs/class/System/System/MonoToolsLocator.cs 2018-03-30 18:16:25.336430000 +0300
@@ -55,7 +55,7 @@ namespace System {
//if (!File.Exists (CSharpCompiler))
// throw new FileNotFoundException ("C# compiler not found at " + CSharpCompiler);
- VBCompiler = Path.Combine (GacPath, "4.5\\vbnc.exe");
+ VBCompiler = Path.Combine (GacPath, "4.5\\vbc.exe");
AssemblyLinker = Path.Combine (GacPath, "4.5\\al.exe");
if (!File.Exists (AssemblyLinker)) {
@@ -73,9 +73,9 @@ namespace System {
if (!File.Exists (McsCSharpCompiler))
McsCSharpCompiler = "mcs";
- VBCompiler = Path.GetFullPath (Path.Combine (mscorlibPath, "..", "..", "..", "..", "bin", "vbnc"));
+ VBCompiler = Path.GetFullPath (Path.Combine (mscorlibPath, "..", "..", "..", "..", "bin", "vbc"));
if (!File.Exists (VBCompiler))
- VBCompiler = "vbnc";
+ VBCompiler = "vbc";
AssemblyLinker = Path.GetFullPath (Path.Combine (mscorlibPath, "..", "..", "..", "..", "bin", "al"));
if (!File.Exists (AssemblyLinker))
diff -uprN mono-5.10.1.25.old/mcs/tools/xbuild/data/Microsoft.VisualBasic.targets mono-5.10.1.25/mcs/tools/xbuild/data/Microsoft.VisualBasic.targets
--- mono-5.10.1.25.old/mcs/tools/xbuild/data/Microsoft.VisualBasic.targets 2018-03-30 10:46:35.000000000 +0300
+++ mono-5.10.1.25/mcs/tools/xbuild/data/Microsoft.VisualBasic.targets 2018-03-30 18:19:02.595020000 +0300
@@ -114,7 +114,7 @@
<Import Project="Microsoft.Common.targets" />
<PropertyGroup>
- <VbcToolExe Condition="'$(VbcToolExe)' == ''">vbnc.exe</VbcToolExe>
+ <VbcToolExe Condition="'$(VbcToolExe)' == ''">vbc.exe</VbcToolExe>
</PropertyGroup>
</Project>