Commit Graph
27 Commits
Author SHA1 Message Date
Miguel de Icaza effaf02382 Adjust the path for Mono.Security 2014-05-14 23:25:28 -04:00
Miguel de Icaza 9adb22769b [build] Prevent cyclic targets from being built in parallel
Since we are invoking make recursively to satisfy the dependencies
for any of the cyclic components, we need to inform make to not try
to parallelize any work on any of the cyclic dependencies, otherwise
multiple builds will execute building the same binary, and the result
will be truncated outputs.

For example, System's Makefile would launch all the parallel builds for
the dependencies:

        $(secxml_libdir)/System.dll             \
        $(the_libdir_base)System.Xml.dll        \
        $(the_libdir_base)Mono.Security.dll     \
        $(bare_libdir)/System.dll

They could be launched in parallel, and in turn the makefiles on those
directories might try simultaneously to invoke recursively a component
that has not been built yet.

So we use .NOTPARALLEL to flag all the cyclic dependencies on a given
directory to instruct make to not run those in parallel.
2014-05-09 11:27:53 -04:00
Miguel de Icaza 8cb819d880 Use LOCAL_MCS_FLAGS to prepend the directories 2014-05-09 11:27:53 -04:00
Miguel de Icaza e0e3f3cd4f [build] Staged setup for building assemblies with cyclic dependencies
This patch introduces an infrastructure to stage the builds for the core
assemblies that have cyclic dependencies.   This deals directly with
the following cycle:

    System.dll requires:
	System.Configuration.dll
	Mono.Security.dll
	System.Xml.dll

	They all require System.dll to be built

    System.Xml requires:
	System.dll
	System.Configuration.dll

    System.Security.dll requires:
	System.dll
	Mono.Security.dll
	System.Xml.dll

Principle
=========

The patch works by directing the build infrastructure to place
intermediate build steps on their own directory.  For example the
first System.dll build that only takes a dependency in mscorlib.dll is
placed not under the final directory but on a subdirectory called
"bare".

The second time that System.dll is built (after Mono.Security and
System.Xml have been built) is placed on the "secxml" directory.

The third time is the final build, and that one ends in the profile
directory.

The same principle is applied to System.Xml.

Better Dependency Tracking
==========================

To handle the multiple stages, the new Makefiles for the various
parties involved in this loop are now able to build their
dependencies.  This means that typing "make" on System.Security or
System.Xml or System will build all of the intermediate steps as
required, without needing the toplevel Makefile to perform multiple
build shots to incrementally build the result.

Bug fixes
=========

We must have regressed at some point the build of System.Xml as we
were only doing one build of it, one without System.Configuration
support.  This patch introduces back the changes to build System.Xml
in two steps.

This patch fixes the setup where we end up rebuilding System.dll and
overwriting it two times as the build progresses as a side effect
(this is what required LIBRARY_USE_INTERMEDIATE_FILE).

Details
=======

library.make:

	Introduces a new "the_libdir_base" which is the raw directory
	where the final output will go.   This points to the same location
	that libdir_base previously pointed to.

	The existing libdir_base is modified to contain an optional
	"intermediate" directory, where intermediate builds can be
	placed.

Other cycles
============

The System.Design assembly was listed as having cycles, but while this
cycle exists in theory, in practice we have not implemented any of the
code that brings the cycle in System.Windows.Forms.Design's
ImageListImageEditor and chances are, we wont any time soon.
2014-05-09 11:27:53 -04:00
Marek Safar 3ecb5142f6 Introduce separate .net 4.5 profile 2011-09-23 19:37:04 +01:00
Sebastien Pouliot 29cbc706f4 Fixed decoding of PKCS/CMS message with detached ContentInfo. Pull request from Pablo Ruiz Garcia <[email protected]> 2011-07-25 09:58:14 -04:00
Jb Evain b3f3ef56c8 rename net_2_1 to moonlight
svn path=/trunk/mcs/; revision=153638
2010-03-16 08:32:37 +00:00
Marek Safar 2d36f50709 2009-06-05 Marek Safar <[email protected]>
* Makefile: Fixed NET_2_0 conditional to actually handle Mono.Security
	dependency.


svn path=/trunk/mcs/; revision=135540
2009-06-05 16:27:11 +00:00
Marek Safar 6f667408d9 Add handling of new net_4_0 profile
svn path=/trunk/mcs/; revision=135326
2009-06-03 17:46:12 +00:00
Gert Driesen 19098dd864 * XmlDsigXsltTranformTest.cs: Added test for .ctor (bool).
* XmlDsigEnvelopedTransformTest.cs: Added test for .ctor (bool). Use
Assert class. Improved properties tests.
* XmlDsigC14TransformTest.cs: Added test for .ctor (bool).
* XmlDsigExcC14NTransformTest.cs: Added .ctor tests and added asserts
IncludsiveNamespacesPrefixList
* XmlDsigExcC14NWithCommentsTransformTest.cs: Added basic .ctor and
properties tests.
* XmlDsigC14NWithCommentsTransformTest.cs: Fixed line endings.
* XmlLicenseTransformTest.cs: Added basic .ctor and properties tests.
* XmlDsigBase64Transform.cs: Use constant for Algorithm namespace.
* XmlDsigExcC14NTransform.cs: Fixed ctors to use WithComments
algorithm if includeComments is true. Assign includeNamespacesPrefixList
to instance field.
* XmlDsigExcC14NWithCommentsTransform.cs: Remove unnecessary
assignment to Algorithm now that base ctor is fixed.
* XmlDsigC14NWithCommentsTransform.cs: Remove unnecessary assignment
to Algorithm now that base ctor is fixed.
* XmlDsigC14NTransform.cs: In default ctor, just invoke .ctor (bool).
In .ctor (bool), assign WithComments algorithm if includeComments is
true. Use constants for Algorithm namespace.
* XmlDsigEnvelopedSignatureTransform.cs: Use constant for Algorithm
namespace.
* XmlDsigXPathTransform.cs: Use constant for Algorithm namespace.
* XmlDsigXsltTransform.cs: Use constant for Algorithm namespace.
* XmlLicenseTransform.cs: Assign Algorithm in ctor.
* XmlSignature.cs: Added constant for XmlLicenseTransform algorithm.
* System.Security_test.dll.sources: Added XmlLicenseTransformTest.cs
and XmlDsigExcC14NWithCommentsTransformTest.cs.

svn path=/trunk/mcs/; revision=115803
2008-10-14 18:33:13 +00:00
Marek Safar c078a41672 2008-09-23 Marek Safar <[email protected]>
* Makefile: Don't override global debug flag.


svn path=/trunk/mcs/; revision=113868
2008-09-23 17:47:42 +00:00
Raja R Harinath 264c06c083 In .:
* Makefile (_boot_): Orchestrate the net_2_1 bootstrap.
	(net_2_1_bootstrap_SUBDIRS, net_2_1_raw_SUBDIRS): New.

In build:
	* profiles/net_2_1_bootstrap.make: New.
	* profiles/net_2_1_raw.make: New.  The untuned 2.1 profile.
	* profiles/net_2_1.make: New.  The tuned 2.1 profile.
	* Makefile (PROFILES): Update.

In class:
	* Makefile (net_3_5_dirs): Remove System.Xml.Linq, now that it's
	built in the 2.0 profile.

In class/System:
	* Makefile (CYCLIC_DEPS): New macro.
	(CYCLIC_DEP_FILES): Use it to clean up handling of cyclic dependencies.
	* net_2_1_raw_System.dll.sources: Rename from net_2_1_System.dll.sources.
	* net_2_1_bootstrap_System.dll.sources: New.

In class/corlib:
	* Makefile (LIBRARY_COMPILE) [net_2_1]: Remove special case.

In errors:
	* Makefile: Enable testing net_2_1 profile.

In mcs:
	* Makefile (GMCS_PROFILE): Remove.
	(COMPILER_NAME): New helper.

In tests:
	* Makefile: Enable smcs testing.

In tools:
	* Makefile (net_2_1_raw_SUBDIRS): New.

In tools/compiler-tester:
	* Makefile [PROFILE=net_2_1]: Copy file from net_2_1_raw profile.
	* compiler-tester.cs: Work better with 'net_2_1' profiles.

In tools/tuner:
	* Makefile: Improve.  Update to new net_2_1 profiles.  Specify
	more dependencies.  Do work only when necessary.
	* Descriptors/smcs.xml: Add CompilerCallableEntryPoint.

svn path=/trunk/mcs/; revision=95989
2008-02-17 17:54:22 +00:00
Marek Safar 2bf3bfd6c0 2007-06-12 Marek Safar <[email protected]>
* Makefile: Check only major framework version to do 2.x build.


svn path=/trunk/mcs/; revision=79315
2007-06-12 16:59:23 +00:00
Sebastien Pouliot f9313c73a5 2006-12-15 Sebastien Pouliot <[email protected]>
* Makefile: Execute PKITS tests only if the data is installed locally.
	See System.dll unit tests for details.
	* System.Security_test.dll.sources: Add some PKITS unit tests to the
	build.


svn path=/trunk/mcs/; revision=69543
2006-12-15 19:30:52 +00:00
Atsushi Eno 24da8a2f2a 2006-09-22 Atsushi Enomoto <[email protected]>
* EncryptedXml.cs : use Padding member instead of const ISO10126 (though
	  I doubt it should be there). Use it in DecryptData().

	* EncryptedXmlTest.cs, EncryptedXmlSample3.xml :
	  another decryption test for padding sanity.

	* Makefile:
	  Added Test/S.S.C.Xml/EncryptedXmlSample3.xml to EXTRA_DISTFILES.


svn path=/trunk/mcs/; revision=65804
2006-09-22 04:32:02 +00:00
Atsushi Eno 5fa64e2d8c 2006-09-21 Atsushi Enomoto <[email protected]>
* Makefile: oops, syntax breakage.


svn path=/trunk/mcs/; revision=65767
2006-09-21 14:14:54 +00:00
Atsushi Eno 8d2ce38aae 2006-09-21 Atsushi Enomoto <[email protected]>
* EncryptedXml.cs :
	  Handle orthodox padding (xmlenc spec section 5.2). However, like 
	  EncryptedXmlSample1, it might not exist, so make it optional.

	* EncryptedXmlTest.cs, EncryptedXmlSample2.xml :
	  Added another case that expects correct padding processing which is 
	  specified in W3C xmlenc spec section 5.2.

	* Makefile:
	  Added Test/S.S.C.Xml/EncryptedXmlSample2.xml to EXTRA_DISTFILES.


svn path=/trunk/mcs/; revision=65766
2006-09-21 14:10:41 +00:00
Atsushi Eno eb9e570294 2006-09-21 Atsushi Enomoto <[email protected]>
* EncryptedXml.cs : True fix for DecryptData(). It indeed uses block size
	  (or possibly IV size) in Transform(), but only for stripping the heading
	  n bytes garbage.

	* EncryptedXmlTest.cs : new file. Added practical example.
	* EncryptedXmlSample1.xml, sample.pfx : support files for the above test.

	* System.Security_test.dll.sources: added EncryptedXmlTest.cs.
	* Makefile: added some extra test support files as EXTRA_DISTFILES.


svn path=/trunk/mcs/; revision=65750
2006-09-21 07:25:48 +00:00
Sebastien Pouliot 79edec6fa6 Added new unit/CAS tests for System.Security.Cryptography namespace. Ignore some warnings during tests compilation. Added internal ManagedProtection class to the build.
svn path=/trunk/mcs/; revision=52001
2005-10-20 19:15:32 +00:00
Raja R Harinath c7a3756a9c Prettier commandlines
svn path=/trunk/mcs/; revision=49461
2005-09-05 10:28:32 +00:00
Miguel de Icaza b0f15ee596 Bring a wave of decency to these Makefiles
svn path=/trunk/mcs/; revision=47762
2005-07-27 17:44:56 +00:00
Sebastien Pouliot 8b5df6f80f reduce warnings when compiling unit tests
svn path=/trunk/mcs/; revision=43114
2005-04-16 19:04:13 +00:00
Raja R Harinath 0d10422236 * Makefile (LIB_MCS_FLAGS): Add reference to Mono.Security.dll
only in the NET 2.0 profile.  See 2004-07-07 entry.

svn path=/trunk/mcs/; revision=38416
2005-01-06 06:31:17 +00:00
Sebastien Pouliot 6eec88875f 2005-01-05 Sebastien Pouliot <[email protected]>
* Makefile: Don't ignore the CS0119 warnings (private field not used) 
	when building the assembly (the code is already clean for this).
	* System.Security.dll.sources: Add DataProtectionPermission, Attribute
	and Flags to the assembly (moved from corlib).
	* System.Security_test.dll.sources: Add DataProtectionPermission
	Attribute unit tests (moved from corlib unit tests).


svn path=/trunk/mcs/; revision=38362
2005-01-05 15:42:50 +00:00
Sebastien Pouliot 677b25b099 2004-07-07 Sebastien Pouliot <[email protected]>
* Makefile: Added a reference to Mono.Security because we'll require
	many class from it for the NET_2_0 profile - but it would be better
	not to have the dependency for NET_1_1.
	* System.Security.dll.sources: Added a lot of existing classes (from
	1.2 documentation) that	were never compiled.

svn path=/trunk/mcs/; revision=30857
2004-07-07 19:48:25 +00:00
Sebastien Pouliot 980cad64ca 2004-03-22 Sebastien Pouliot <[email protected]>
* Makefile: Added /nowarn to cleanup display when building.

svn path=/trunk/mcs/; revision=24435
2004-03-22 20:52:45 +00:00
Gonzalo Paniagua Javier 3f761fefe4 New build system from Peter Williams ([email protected])
svn path=/trunk/mcs/; revision=16195
2003-07-14 11:38:40 +00:00