more changes to fix packaging on FreeBSD. runtime.json now contains freebsd-x64 and...
authorTomas Weinfurt <tweinfurt@yahoo.com>
Wed, 31 Oct 2018 21:58:06 +0000 (14:58 -0700)
committerGitHub <noreply@github.com>
Wed, 31 Oct 2018 21:58:06 +0000 (14:58 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/2fd737a51724aba6f49e0e06272343f05cc3917e

src/coreclr/build-packages.sh
src/coreclr/buildpipeline/DotNet-CoreClr-Trusted-FreeBSD.json
src/coreclr/src/.nuget/dir.props

index f06024e..71345eb 100755 (executable)
@@ -117,6 +117,8 @@ if [ $__IsPortableBuild == 1 ]; then
         export __DistroRid="linux-$__Arch"
     elif [ "$__BuildOS" == "OSX" ]; then
         export __DistroRid="osx-$__Arch"
+    elif [ "$__BuildOS" == "FreeBSD" ]; then
+        export __DistroRid="freebsd-$__Arch"
     fi
 else
     # init the host distro name
index a9eb7e4..ee2ed7a 100644 (file)
@@ -55,7 +55,7 @@
       },
       "inputs": {
         "filename": "$(Agent.BuildDirectory)/s/build.sh",
-        "arguments": "$(PB_BuildType) $(Architecture) skipnuget -skiprestore stripSymbols -OfficialBuildId=$(OfficialBuildId) -clang6.0 -osgroup FreeBSD -msbuildonunsupportedplatform -portablebuild=false",
+        "arguments": "$(PB_BuildType) $(Architecture) skipnuget -skiprestore stripSymbols -OfficialBuildId=$(OfficialBuildId) -clang6.0",
         "workingFolder": "",
         "failOnStandardError": "false"
       }
@@ -75,7 +75,7 @@
       },
       "inputs": {
         "filename": "$(Agent.BuildDirectory)/s/build-packages.sh",
-        "arguments": "-BuildType=$(PB_BuildType) -BuildArch=$(Architecture) -portablebuild=false -- /p:OfficialBuildId=$(OfficialBuildId)",
+        "arguments": "-BuildType=$(PB_BuildType) -BuildArch=$(Architecture) -- /p:OfficialBuildId=$(OfficialBuildId)",
         "workingFolder": "",
         "failOnStandardError": "false"
       }
index 4893e2f..b97f3d8 100644 (file)
         <PackageRID Condition="'$(PortableBuild)' == 'true'">osx-$(ArchGroup)</PackageRID>
       </PropertyGroup>
     </When>
+    <When Condition="'$(_runtimeOSFamily)' == 'freebsd'">
+      <PropertyGroup>
+        <PackageRID>freebsd.11-$(ArchGroup)</PackageRID>
+        <!-- Set the platform part of the RID if we are doing a portable build -->
+        <PackageRID Condition="'$(PortableBuild)' == 'true'">freebsd-$(ArchGroup)</PackageRID>
+      </PropertyGroup>
+    </When>
     <When Condition="'$(_runtimeOSFamily)' == 'android'">
       <PropertyGroup>
         <PackageRID>android.21-$(ArchGroup)</PackageRID>
   <ItemGroup Condition="$(SupportedPackageOSGroups.Contains(';OSX;'))">
     <OfficialBuildRID Include="osx-x64" />
   </ItemGroup>
+  <ItemGroup Condition="$(SupportedPackageOSGroups.Contains(';FreeBSD;'))">
+    <OfficialBuildRID Include="freebsd-x64" />
+  </ItemGroup>
   <ItemGroup Condition="$(SupportedPackageOSGroups.Contains(';Windows_NT;'))">
     <OfficialBuildRID Include="win-x86">
       <Platform>x86</Platform>