sec / dotnet-core-freebsd-source-build

Collection of script to build .NET Core under FreeBSD OS (with binary releases)
MIT License
53 stars 4 forks source link

build_runtime.sh fails on FreeBSD 13.1-RELEASE #11

Closed ajensenwaud closed 2 years ago

ajensenwaud commented 2 years ago

There seems to be some issues with validity period of some packages, which means that the script will not build .NET runtime on FreeBSD 13.1-RELEASE uname:

aj@dotnet:~/dotnet-core-freebsd-source-build % uname -a
FreeBSD dotnet 13.1-RELEASE FreeBSD 13.1-RELEASE releng/13.1-n250148-fc952ac2212 GENERIC amd64

Output:

aj@dotnet:~/dotnet-core-freebsd-source-build % sudo ./build_runtime.sh
__DistroRid: freebsd-x64
##vso[task.setvariable variable=Artifacts;isSecret=false;isOutput=true]/usr/home/aj/dotnet-core-freebsd-source-build/runtime/artifacts
##vso[task.setvariable variable=Artifacts.Toolset;isSecret=false;isOutput=true]/usr/home/aj/dotnet-core-freebsd-source-build/runtime/artifacts/toolset
##vso[task.setvariable variable=Artifacts.Log;isSecret=false;isOutput=true]/usr/home/aj/dotnet-core-freebsd-source-build/runtime/artifacts/log/Release
##vso[task.setvariable variable=Temp;isSecret=false;isOutput=true]/usr/home/aj/dotnet-core-freebsd-source-build/runtime/artifacts/tmp/Release
##vso[task.setvariable variable=TMP;isSecret=false;isOutput=true]/usr/home/aj/dotnet-core-freebsd-source-build/runtime/artifacts/tmp/Release
Attempting to install dotnet from public_location.
##vso[task.prependpath]/usr/home/aj/dotnet-core-freebsd-source-build/runtime//.dotnet
##vso[task.setvariable variable=DOTNET_MULTILEVEL_LOOKUP;isSecret=false;isOutput=true]0
##vso[task.setvariable variable=DOTNET_SKIP_FIRST_TIME_EXPERIENCE;isSecret=false;isOutput=true]1
##vso[task.setvariable variable=NUGET_PLUGIN_HANDSHAKE_TIMEOUT_IN_SECONDS;isSecret=false;isOutput=true]20
##vso[task.setvariable variable=NUGET_PLUGIN_REQUEST_TIMEOUT_IN_SECONDS;isSecret=false;isOutput=true]20
##vso[task.setvariable variable=NUGET_ENABLE_EXPERIMENTAL_HTTP_RETRY;isSecret=false;isOutput=true]true
##vso[task.setvariable variable=NUGET_EXPERIMENTAL_MAX_NETWORK_TRY_COUNT;isSecret=false;isOutput=true]6
##vso[task.setvariable variable=NUGET_EXPERIMENTAL_NETWORK_RETRY_DELAY_MILLISECONDS;isSecret=false;isOutput=true]1000
/usr/home/aj/dotnet-core-freebsd-source-build/runtime/.dotnet/sdk/6.0.201/MSBuild.dll /nologo -logger:/usr/home/aj/dotnet-core-freebsd-source-build/runtime/.packages/microsoft.dotnet.arcade.sdk/6.0.0-beta.22161.1/tools/netcoreapp3.1/Microsoft.DotNet.ArcadeLogging.dll -maxcpucount /m -verbosity:m /v:minimal /bl:/usr/home/aj/dotnet-core-freebsd-source-build/runtime/artifacts/log/Release/Build.binlog /clp:Summary /nr:false /p:TreatWarningsAsErrors=false /p:ContinuousIntegrationBuild=true /p:Configuration=Release /p:RepoRoot=/usr/home/aj/dotnet-core-freebsd-source-build/runtime/ /p:Restore=true /p:Build=true /p:Rebuild=false /p:Test=false /p:Pack=false /p:IntegrationTest=false /p:PerformanceTest=false /p:Sign=false /p:Publish=false /p:TargetArchitecture=x64 /p:BuildArchitecture=x64 /p:CMakeArgs= /p:OfficialBuildId=20220812.99 /usr/home/aj/dotnet-core-freebsd-source-build/runtime/.packages/microsoft.dotnet.arcade.sdk/6.0.0-beta.22161.1/tools/Build.proj
  Determining projects to restore...
  Restored /usr/home/aj/dotnet-core-freebsd-source-build/runtime/.packages/microsoft.dotnet.arcade.sdk/6.0.0-beta.22161.1/tools/Tools.proj (in 196 ms).
  Determining projects to restore...

 Restored /usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Ports/pkg/runtime.native.System.IO.Ports.proj (in 13.69 sec).                                                             Restored /usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Ports/pkg/runtime.linux-arm64.runtime.native.System.IO.Ports.proj (in 2 ms).
  Restored /usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Ports/pkg/runtime.linux-arm.runtime.native.System.IO.Ports.proj (in 2 ms).
  Restored /usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Ports/pkg/runtime.linux-x64.runtime.native.System.IO.Ports.proj (in 13.69 sec).
/usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Pipes/src/System.IO.Pipes.csproj : error NU3037: Package 'StyleCop.Analyzers.Unstable 1.2.0.304' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The repository primary signature validity period has expired. [/usr/home/aj/dotnet-core-freebsd-source-build/runtime/Build.proj]
##vso[task.logissue type=error;sourcepath=/usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Pipes/src/System.IO.Pipes.csproj;linenumber=0;columnnumber=0;code=NU3037;](NETCORE_ENGINEERING_TELEMETRY=Restore) Package 'StyleCop.Analyzers.Unstable 1.2.0.304' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The repository primary signature validity period has expired.
/usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Pipes/src/System.IO.Pipes.csproj : error NU3037: Package 'StyleCop.Analyzers 1.2.0-beta.304' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The repository primary signature validity period has expired. [/usr/home/aj/dotnet-core-freebsd-source-build/runtime/Build.proj]                  ##vso[task.logissue type=error;sourcepath=/usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Pipes/src/System.IO.Pipes.csproj;linenumber=0;columnnumber=0;code=NU3037;](NETCORE_ENGINEERING_TELEMETRY=Restore) Package 'StyleCop.Analyzers 1.2.0-beta.304' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The repository primary signature validity period has expired.
/usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Pipes/ref/System.IO.Pipes.csproj : error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.10' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The author primary signature validity period has expired. [/usr/home/aj/dotnet-core-freebsd-source-build/runtime/Build.proj]                    ##vso[task.logissue type=error;sourcepath=/usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Pipes/ref/System.IO.Pipes.csproj;linenumber=0;columnnumber=0;code=NU3037;](NETCORE_ENGINEERING_TELEMETRY=Restore) Package 'Microsoft.AspNetCore.App.Ref 3.1.10' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The author primary signature validity period has expired.
/usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Pipes/ref/System.IO.Pipes.csproj : error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.10' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The repository countersignature validity period has expired. [/usr/home/aj/dotnet-core-freebsd-source-build/runtime/Build.proj]                 ##vso[task.logissue type=error;sourcepath=/usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Pipes/ref/System.IO.Pipes.csproj;linenumber=0;columnnumber=0;code=NU3037;](NETCORE_ENGINEERING_TELEMETRY=Restore) Package 'Microsoft.AspNetCore.App.Ref 3.1.10' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The repository countersignature validity period has expired.                                                                                                                                             /usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Pipes/ref/System.IO.Pipes.csproj : error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.10' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The repository countersignature validity period has expired. [/usr/home/aj/dotnet-core-freebsd-source-build/runtime/Build.proj]                 ##vso[task.logissue type=error;sourcepath=/usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Pipes/ref/System.IO.Pipes.csproj;linenumber=0;columnnumber=0;code=NU3037;](NETCORE_ENGINEERING_TELEMETRY=Restore) Package 'Microsoft.AspNetCore.App.Ref 3.1.10' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The repository countersignature validity period has expired.                                                                                                                                                                                          /usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Pipes/ref/System.IO.Pipes.csproj : error NU3037: Package 'Microsoft.AspNetCore.App.Ref 5.0.0' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The author primary signature validity period has expired. [/usr/home/aj/dotnet-core-freebsd-source-build/runtime/Build.proj]
##vso[task.logissue type=error;sourcepath=/usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Pipes/ref/System.IO.Pipes.csproj;linenumber=0;columnnumber=0;code=NU3037;](NETCORE_ENGINEERING_TELEMETRY=Restore) Package 'Microsoft.AspNetCore.App.Ref 5.0.0' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The author primary signature validity
period has expired.
Build FAILED.
                                                                                                                                                                                                                 /usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Pipes/src/System.IO.Pipes.csproj : error NU3037: Package 'StyleCop.Analyzers.Unstable 1.2.0.304' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The repository primary signature validity period has expired. [/usr/home/aj/dotnet-core-freebsd-source-build/runtime/Build.proj]              /usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Pipes/src/System.IO.Pipes.csproj : error NU3037: Package 'StyleCop.Analyzers 1.2.0-beta.304' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The repository primary signature validity period has expired. [/usr/home/aj/dotnet-core-freebsd-source-build/runtime/Build.proj]                  /usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Pipes/ref/System.IO.Pipes.csproj : error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.10' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The author primary signature validity period has expired. [/usr/home/aj/dotnet-core-freebsd-source-build/runtime/Build.proj]                    /usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Pipes/ref/System.IO.Pipes.csproj : error NU3037: Package 'Microsoft.AspNetCore.App.Ref 3.1.10' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The repository countersignature validity period has expired. [/usr/home/aj/dotnet-core-freebsd-source-build/runtime/Build.proj]                 /usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Pipes/ref/System.IO.Pipes.csproj : error NU3037: Package 'Microsoft.AspNetCore.App.Ref 5.0.0' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The author primary signature validity period has expired. [/usr/home/aj/dotnet-core-freebsd-source-build/runtime/Build.proj]                     /usr/home/aj/dotnet-core-freebsd-source-build/runtime/src/libraries/System.IO.Pipes/ref/System.IO.Pipes.csproj : error NU3037: Package 'Microsoft.AspNetCore.App.Ref 5.0.0' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': The repository countersignature validity period has expired. [/usr/home/aj/dotnet-core-freebsd-source-build/runtime/Build.proj]
    0 Warning(s)                                                                                                                                                                                                     6 Error(s)                                                                                                                                                                                                                                                                                                                                                                                                                    Time Elapsed 00:01:04.27                                                                                                                                                                                         Build failed with exit code 1. Check errors above.                                                                                                                                                               ##vso[task.complete result=Failed;]msbuild execution failed.                                                                          
sec commented 2 years ago

Hi, Yes it's known issue, workaround https://github.com/sec/dotnet-core-freebsd-source-build#errors

ajensenwaud commented 2 years ago

Thank you. It seemed to work. BTW, is there a reason it uses .NET 6.0 beta packages in some places? Do some NuGet package version references need to be updated to point to the latest release? Let me know if I can help.