Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
using System;
using System.Reflection;
public class GetAssemblyName
{
public static void Main(string [] args)
{
if (args.Length == 0)
throw new Exception("You must supply an assembly name");
Assembly assembly = Assembly.LoadFile(args[0]);
Console.WriteLine("{0}", assembly.FullName);
}
}

View File

@@ -0,0 +1 @@
7

View File

@@ -0,0 +1,67 @@
Source: mono-snapshot-%SNAPVER%
Section: cli-mono
Priority: optional
Maintainer: Jo Shields <directhex@apebox.org>
Build-Depends: debhelper (>= 7),
dpkg-dev (>= 1.13.19),
bison,
libtool,
libxml-dom-perl,
libxslt1-dev,
dc,
lsb-release,
libx11-dev,
libxt-dev,
zlib1g-dev,
autoconf,
automake
Standards-Version: 3.8.4
Homepage: http://www.mono-project.com/
Vcs-Git: git://github.com/directhex/mono-snapshot.git
Vcs-Browser: https://github.com/directhex/mono-snapshot
Package: mono-snapshot-latest
Architecture: all
Depends: mono-snapshot-%SNAPVER%,
${misc:Depends}
Description: Mono runtime snapshot - latest version metapackage
Mono is a platform for running and developing applications based on the
ECMA/ISO Standards. Mono is an open source effort led by Novell.
Mono provides a complete CLR (Common Language Runtime) including compiler and
runtime, which can produce and execute CIL (Common Intermediate Language)
bytecode (aka assemblies), and a class library.
.
This metapackage will force installation of the latest snapshot package
available.
Package: mono-snapshot-%SNAPVER%
Architecture: amd64 armel armhf i386 ia64 kfreebsd-amd64 kfreebsd-i386 powerpc ppc64 s390x sparc
Depends: ${shlibs:Depends},
${misc:Depends},
cli-common (>= 0.4.0),
mono-snapshot-%SNAPVER%-assemblies (= %SNAPVER%),
mono-snapshot-common (>= 00000001)
Description: Mono runtime snapshot - runtime (git commit %GITVER)
Mono is a platform for running and developing applications based on the
ECMA/ISO Standards. Mono is an open source effort led by Novell.
Mono provides a complete CLR (Common Language Runtime) including compiler and
runtime, which can produce and execute CIL (Common Intermediate Language)
bytecode (aka assemblies), and a class library.
.
This package installs the unmanaged components of a snapshot from
Xamarin's MonkeyWrench Continuous Integration server. Use the
mono-snapshot command to set up your environment to actually use it.
Package: mono-snapshot-%SNAPVER%-assemblies
Architecture: all
Depends: ${misc:Depends}
Description: Mono runtime snapshot - assemblies (git commit %GITVER)
Mono is a platform for running and developing applications based on the
ECMA/ISO Standards. Mono is an open source effort led by Novell.
Mono provides a complete CLR (Common Language Runtime) including compiler and
runtime, which can produce and execute CIL (Common Intermediate Language)
bytecode (aka assemblies), and a class library.
.
This package installs the managed components of a snapshot from
Xamarin's MonkeyWrench Continuous Integration server. Use the
mono-snapshot command to set up your environment to actually use it.

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,10 @@
#!/bin/bash
export MONO_PREFIX=/opt/mono-%SNAPVER%
export PATH=$MONO_PREFIX/bin:$PATH
export DYLD_LIBRARY_FALLBACK_PATH=$MONO_PREFIX/lib:$DYLD_LIBRARY_FALLBACK_PATH
export LD_LIBRARY_PATH=$MONO_PREFIX/lib:$LD_LIBRARY_PATH
export C_INCLUDE_PATH=$MONO_PREFIX/include:/usr/include:$C_INCLUDE_PATH
export ACLOCAL_PATH=$MONO_PREFIX/share/aclocal:$ACLOCAL_PATH
export PKG_CONFIG_PATH=$MONO_PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH:/usr/lib/pkgconfig:/usr/share/pkgconfig
export PS1="[mono-%SNAPVER%]$PS1"

144
external/debian-snapshot/debian/gacinstall.in vendored Executable file
View File

@@ -0,0 +1,144 @@
#!/usr/bin/perl
#
# Setup
#
# Directives
use strict;
use warnings;
# Figure out the mode
my $mode = shift @ARGV;
if (!defined $mode)
{
print STDERR "E: You must supply a mode\n";
print STDERR "E: Use: install, remove, or name\n";
exit 1;
}
# Name is simply
if ($mode eq "name")
{
print "Mono git snapshot %SNAPVER% (%GITVER%)\n";
exit 0;
}
# This program gets the name of a file (ending in .installcligac) and
# a list of assemblies to install, as full paths. The ones given are
# the only ones that passed the white/blacklisting.
# Get the base file
my $basename = shift @ARGV;
my $cligac = "/usr/share/cli-common/packages.d/$basename.installcligac";
if (! -f $cligac)
{
print STDERR "E: File does not exist: $cligac\n";
exit 1;
}
# Get the base directory
my $basedir = "/usr/share/cli-common/packages.d/";
# Removing is also simple
if ($mode eq "remove")
{
# Get the uninstall file
my $uninstall = "$basedir/$basename.mono";
if (-f $uninstall)
{
# Go through the file
open UNINSTALL, "<$uninstall" or
die "E: Cannot open uninstall file ($!)";
while (<UNINSTALL>)
{
my $assembly = $_;
chomp($assembly);
my $cmd = "/opt/mono-%SNAPVER%/bin/gacutil -u $assembly > /dev/null";
my $res = system($cmd);
if ($res > 0) {
print STDERR "W: removing assembly: $assembly failed!\n";
}
}
close UNINSTALL;
# Unlike the file
unlink($uninstall);
}
# We are good
exit 0;
}
# The only thing left should be "install"
if ($mode ne "install")
{
print STDERR "E: Unknown mode: $mode\n";
print STDERR "E: Use: install, remove or name\n";
exit 1;
}
# Open up our uninstall file
open UNINSTALL, ">$basedir/$basename.mono"
or die "E: Cannot open uninstall: $basedir/$basename.mono";
# Go through the file
open CLIGAC, "<$cligac" or die "E: Cannot open: $cligac ($!)";
while (@ARGV)
{
# Get the assembly name
my $dll = shift @ARGV;
# Make sure it is there
if (! -f $dll)
{
print STDERR "E: Assembly does not exist: $dll\n";
exit 1;
}
# Figure out the mono's precise name
my $fullname = get_full_name($dll);
# Write out the uninstall file
print UNINSTALL "$fullname\n";
# Install the file. We use the "../../../.." to make it a
# relative path to this program (since gacutil doesn't like
# absolute paths). There isn't a problem of doing too many
# since we typically run from the root context.
my $cmd = "(cd `dirname $dll` && "
. "/opt/mono-%SNAPVER%/bin/gacutil -i `basename $dll`"
. " > /dev/null)";
system($cmd) == 0 or die "E: installing Assembly $dll failed\n";
}
close CLIGAC;
close UNINSTALL;
# Finish up successfully
exit 0;
# Get the name of the assembly in a manner suitable for uninstall
# using gacutil.
sub get_full_name
{
# Get the name
my $dll = shift;
# Open a pipe to monop
my $cmd = "LANG=C /opt/mono-%SNAPVER%/bin/mono /opt/mono-%SNAPVER%/share/mono/MonoGetAssemblyName.exe $dll";
open PIPE, "$cmd |" or die "E: Cannot open pipe to assembly builder $dll";
# This generate a single line that produces the desired results
$_ = <PIPE>;
chomp;
# assembly1, Version=1.0.0.0, Culture=en, PublicKeyToken=0123456789abcdef
return $_;
}

View File

@@ -0,0 +1,30 @@
debian/tmp/opt/mono-%SNAPVER%/lib/monodoc /opt/mono-%SNAPVER%/lib/
debian/tmp/opt/mono-%SNAPVER%/lib/mono-source-libs /opt/mono-%SNAPVER%/lib/
debian/tmp/opt/mono-%SNAPVER%/lib/pkgconfig /opt/mono-%SNAPVER%/lib/
debian/tmp/opt/mono-%SNAPVER%/lib/mono/gac /opt/mono-%SNAPVER%/lib/mono/
debian/tmp/opt/mono-%SNAPVER%/lib/mono/2.0/*.config /opt/mono-%SNAPVER%/lib/mono/2.0/
debian/tmp/opt/mono-%SNAPVER%/lib/mono/2.0/*.dll /opt/mono-%SNAPVER%/lib/mono/2.0/
debian/tmp/opt/mono-%SNAPVER%/lib/mono/2.0/*.exe /opt/mono-%SNAPVER%/lib/mono/2.0/
debian/tmp/opt/mono-%SNAPVER%/lib/mono/2.0/*.mdb /opt/mono-%SNAPVER%/lib/mono/2.0/
debian/tmp/opt/mono-%SNAPVER%/lib/mono/2.0/*.tasks /opt/mono-%SNAPVER%/lib/mono/2.0/
debian/tmp/opt/mono-%SNAPVER%/lib/mono/2.0/*.targets /opt/mono-%SNAPVER%/lib/mono/2.0/
debian/tmp/opt/mono-%SNAPVER%/lib/mono/2.0/*.rsp /opt/mono-%SNAPVER%/lib/mono/2.0/
debian/tmp/opt/mono-%SNAPVER%/lib/mono/2.0/*.xsd /opt/mono-%SNAPVER%/lib/mono/2.0/
debian/tmp/opt/mono-%SNAPVER%/lib/mono/2.0/MSBuild /opt/mono-%SNAPVER%/lib/mono/2.0/
debian/tmp/opt/mono-%SNAPVER%/lib/mono/3.5 /opt/mono-%SNAPVER%/lib/mono/
debian/tmp/opt/mono-%SNAPVER%/lib/mono/4.0 /opt/mono-%SNAPVER%/lib/mono/
debian/tmp/opt/mono-%SNAPVER%/lib/mono/4.5/*.config /opt/mono-%SNAPVER%/lib/mono/4.5/
debian/tmp/opt/mono-%SNAPVER%/lib/mono/4.5/*.dll /opt/mono-%SNAPVER%/lib/mono/4.5/
debian/tmp/opt/mono-%SNAPVER%/lib/mono/4.5/*.exe /opt/mono-%SNAPVER%/lib/mono/4.5/
debian/tmp/opt/mono-%SNAPVER%/lib/mono/4.5/*.mdb /opt/mono-%SNAPVER%/lib/mono/4.5/
debian/tmp/opt/mono-%SNAPVER%/lib/mono/4.5/*.rsp /opt/mono-%SNAPVER%/lib/mono/4.5/
debian/tmp/opt/mono-%SNAPVER%/lib/mono/compat-2.0 /opt/mono-%SNAPVER%/lib/mono/
debian/tmp/opt/mono-%SNAPVER%/lib/mono/mono-configuration-crypto /opt/mono-%SNAPVER%/lib/mono/
debian/tmp/opt/mono-%SNAPVER%/lib/mono/monodoc /opt/mono-%SNAPVER%/lib/mono/
debian/tmp/opt/mono-%SNAPVER%/lib/mono/xbuild /opt/mono-%SNAPVER%/lib/mono/
debian/tmp/opt/mono-%SNAPVER%/lib/mono/xbuild-frameworks /opt/mono-%SNAPVER%/lib/mono/
debian/tmp/opt/mono-%SNAPVER%/include /opt/mono-%SNAPVER%/
debian/tmp/opt/mono-%SNAPVER%/etc /opt/mono-%SNAPVER%/
debian/tmp/opt/mono-%SNAPVER%/share /opt/mono-%SNAPVER%/
debian/MonoGetAssemblyName.exe /opt/mono-%SNAPVER%/share/mono/

View File

@@ -0,0 +1,7 @@
debian/tmp/opt/mono-%SNAPVER%/bin /opt/mono-%SNAPVER%/
debian/tmp/opt/mono-%SNAPVER%/lib/*.so* /opt/mono-%SNAPVER%/lib
debian/tmp/opt/mono-%SNAPVER%/lib/*.a /opt/mono-%SNAPVER%/lib
debian/tmp/opt/mono-%SNAPVER%/lib/mono/2.0/*.so /opt/mono-%SNAPVER%/lib/mono/2.0/
debian/tmp/opt/mono-%SNAPVER%/lib/mono/4.5/*.so /opt/mono-%SNAPVER%/lib/mono/4.5/
debian/runtimes.d/mono-%SNAPVER% /usr/share/cli-common/runtimes.d/
debian/%SNAPVER% /usr/share/mono-snapshot/packages.d/mono/

View File

@@ -0,0 +1,9 @@
#!/bin/sh -e
# Install the GAC
if [ -x /usr/share/cli-common/gac-install ]; then
/usr/share/cli-common/gac-install mono-%SNAPVER%
fi
#DEBHELPER#

View File

@@ -0,0 +1,11 @@
#!/bin/sh -e
if [ "$1" = remove ]; then
# Remove the GAC
if [ -x /usr/share/cli-common/gac-remove ]; then
/usr/share/cli-common/gac-remove mono-%SNAPVER%
fi
fi
#DEBHELPER#

View File

@@ -0,0 +1,22 @@
#!/usr/bin/make -f
RUN_MONO = MONO_PATH=mcs/class/lib/build/ mono/mini/mono
override_dh_auto_test:
# do nothing here
override_dh_auto_configure:
dh_auto_configure -- --prefix=/opt/mono-%SNAPVER% --sysconfdir=/opt/mono-%SNAPVER%/etc
override_dh_auto_build:
dh_auto_build
$(RUN_MONO) mcs/class/lib/build/mcs.exe \
-target:exe \
-out:debian/MonoGetAssemblyName.exe \
debian/MonoGetAssemblyName.cs
override_dh_auto_clean:
dh_auto_clean
rm -f debian/MonoGetAssemblyName.exe
%:
dh $@

View File

@@ -0,0 +1 @@
3.0 (native)

View File

@@ -0,0 +1,3 @@
compression = "bzip2"
compression-level = 9