Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 845369 - sci-libs/gdal-3.5.0-r3: automagically tries to build C# bindings
Summary: sci-libs/gdal-3.5.0-r3: automagically tries to build C# bindings
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sci-geo Project
URL:
Whiteboard:
Keywords:
: 846614 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-05-18 13:14 UTC by Luke A. Guest
Modified: 2022-05-20 20:31 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build logs (gdal-logs.tar.gz,52.75 KB, application/gzip)
2022-05-18 13:16 UTC, Luke A. Guest
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luke A. Guest 2022-05-18 13:14:14 UTC
I  get a build failure with the above error and also nuget failures. I don't know dotnet so cannot help.



Reproducible: Always

Steps to Reproduce:
1. emerge -av gdal

Actual Results:  
1014/1131] cd /var/tmp/portage/sci-libs/gdal-3.5.0-r3/work/gdal-3.5.0_build/swig/csharp && /usr/bin/cmake -E echo "======= Building .NET project OSGeo.GD
AL.Core [Release ]" && /usr/bin/dotnet clean /var/tmp/portage/sci-libs/gdal-3.5.0-r3/work/gdal-3.5.0_build/swig/csharp/osgeo.gdal.core.csproj /p:Directory
BuildPropsPath=/var/tmp/portage/sci-libs/gdal-3.5.0-r3/work/gdal-3.5.0_build/swig/csharp/osgeo.gdal.core.csproj.imports.props && /usr/bin/dotnet build -c 
Release /p:DirectoryBuildPropsPath=/var/tmp/portage/sci-libs/gdal-3.5.0-r3/work/gdal-3.5.0_build/swig/csharp/osgeo.gdal.core.csproj.imports.props /var/tmp
/portage/sci-libs/gdal-3.5.0-r3/work/gdal-3.5.0_build/swig/csharp/osgeo.gdal.core.csproj && /usr/bin/dotnet pack --no-build --no-restore /var/tmp/portage/
sci-libs/gdal-3.5.0-r3/work/gdal-3.5.0_build/swig/csharp/osgeo.gdal.core.csproj -c Release /p:DirectoryBuildPropsPath=/var/tmp/portage/sci-libs/gdal-3.5.0
-r3/work/gdal-3.5.0_build/swig/csharp/osgeo.gdal.core.csproj.imports.props --include-symbols --output /var/tmp/portage/sci-libs/gdal-3.5.0-r3/work/gdal-3.
5.0_build/swig/csharp -p:PackageVersion=3.5.0 && /usr/bin/cmake -E touch /var/tmp/portage/sci-libs/gdal-3.5.0-r3/work/gdal-3.5.0_build/swig/csharp/OSGeo.G
DAL.Core.buildtimestamp
FAILED: swig/csharp/OSGeo.GDAL.Core.buildtimestamp /var/tmp/portage/sci-libs/gdal-3.5.0-r3/work/gdal-3.5.0_build/swig/csharp/OSGeo.GDAL.Core.buildtimestam
p 
cd /var/tmp/portage/sci-libs/gdal-3.5.0-r3/work/gdal-3.5.0_build/swig/csharp && /usr/bin/cmake -E echo "======= Building .NET project OSGeo.GDAL.Core [Rel
ease ]" && /usr/bin/dotnet clean /var/tmp/portage/sci-libs/gdal-3.5.0-r3/work/gdal-3.5.0_build/swig/csharp/osgeo.gdal.core.csproj /p:DirectoryBuildPropsPa
th=/var/tmp/portage/sci-libs/gdal-3.5.0-r3/work/gdal-3.5.0_build/swig/csharp/osgeo.gdal.core.csproj.imports.props && /usr/bin/dotnet build -c Release /p:D
irectoryBuildPropsPath=/var/tmp/portage/sci-libs/gdal-3.5.0-r3/work/gdal-3.5.0_build/swig/csharp/osgeo.gdal.core.csproj.imports.props /var/tmp/portage/sci
-libs/gdal-3.5.0-r3/work/gdal-3.5.0_build/swig/csharp/osgeo.gdal.core.csproj && /usr/bin/dotnet pack --no-build --no-restore /var/tmp/portage/sci-libs/gda
l-3.5.0-r3/work/gdal-3.5.0_build/swig/csharp/osgeo.gdal.core.csproj -c Release /p:DirectoryBuildPropsPath=/var/tmp/portage/sci-libs/gdal-3.5.0-r3/work/gda
l-3.5.0_build/swig/csharp/osgeo.gdal.core.csproj.imports.props --include-symbols --output /var/tmp/portage/sci-libs/gdal-3.5.0-r3/work/gdal-3.5.0_build/sw
ig/csharp -p:PackageVersion=3.5.0 && /usr/bin/cmake -E touch /var/tmp/portage/sci-libs/gdal-3.5.0-r3/work/gdal-3.5.0_build/swig/csharp/OSGeo.GDAL.Core.bui
ldtimestamp
cd /var/tmp/portage/sci-libs/gdal-3.5.0-r3/work/gdal-3.5.0_build/swig/csharp && /usr/bin/cmake -E echo "======= Building .NET project OSGeo.GDAL.Core [Rel
ease ]" && /usr/bin/dotnet clean /var/tmp/portage/sci-libs/gdal-3.5.0-r3/work/gdal-3.5.0_build/swig/csharp/osgeo.gdal.core.csproj /p:DirectoryBuildPropsPa
th=/var/tmp/portage/sci-libs/gdal-3.5.0-r3/work/gdal-3.5.0_build/swig/csharp/osgeo.gdal.core.csproj.imports.props && /usr/bin/dotnet build -c Release /p:D
irectoryBuildPropsPath=/var/tmp/portage/sci-libs/gdal-3.5.0-r3/work/gdal-3.5.0_build/swig/csharp/osgeo.gdal.core.csproj.imports.props /var/tmp/portage/sci
-libs/gdal-3.5.0-r3/work/gdal-3.5.0_build/swig/csharp/osgeo.gdal.core.csproj && /usr/bin/dotnet pack --no-build --no-restore /var/tmp/portage/sci-libs/gda
l-3.5.0-r3/work/gdal-3.5.0_build/swig/csharp/osgeo.gdal.core.csproj -c Release /p:DirectoryBuildPropsPath=/var/tmp/portage/sci-libs/gdal-3.5.0-r3/work/gda
l-3.5.0_build/swig/csharp/osgeo.gdal.core.csproj.imports.props --include-symbols --output /var/tmp/portage/sci-libs/gdal-3.5.0-r3/work/gdal-3.5.0_build/sw
ig/csharp -p:PackageVersion=3.5.0 && /usr/bin/cmake -E touch /var/tmp/portage/sci-libs/gdal-3.5.0-r3/work/gdal-3.5.0_build/swig/csharp/OSGeo.GDAL.Core.bui
ldtimestamp
======= Building .NET project OSGeo.GDAL.Core [Release ]
Microsoft (R) Build Engine version 17.0.0+c9eb9dd64 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 05/18/2022 14:02:34.
     1>Project "/var/tmp/portage/sci-libs/gdal-3.5.0-r3/work/gdal-3.5.0_build/swig/csharp/osgeo.gdal.core.csproj" on node 1 (Clean target(s)).
     1>CoreClean:
         Creating directory "obj/Debug/net5.0/linux-x64/".
     1>Done Building Project "/var/tmp/portage/sci-libs/gdal-3.5.0-r3/work/gdal-3.5.0_build/swig/csharp/osgeo.gdal.core.csproj" (Clean target(s)).

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:00.71
Microsoft (R) Build Engine version 17.0.0+c9eb9dd64 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

  Determining projects to restore...
/opt/dotnet_core/sdk/6.0.102/NuGet.targets(130,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json. [/var/tmp/portage/sci-libs/gdal-3.5.0-r3/work/gdal-3.5.0_build/swig/csharp/osgeo.gdal.core.csproj]
/opt/dotnet_core/sdk/6.0.102/NuGet.targets(130,5): error :   Resource temporarily unavailable (api.nuget.org:443) [/var/tmp/portage/sci-libs/gdal-3.5.0-r3/work/gdal-3.5.0_build/swig/csharp/osgeo.gdal.core.csproj]
/opt/dotnet_core/sdk/6.0.102/NuGet.targets(130,5): error :   Resource temporarily unavailable [/var/tmp/portage/sci-libs/gdal-3.5.0-r3/work/gdal-3.5.0_build/swig/csharp/osgeo.gdal.core.csproj]

Build FAILED.

/opt/dotnet_core/sdk/6.0.102/NuGet.targets(130,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json. [/var/tmp/portage/sci-libs/gdal-3.5.0-r3/work/gdal-3.5.0_build/swig/csharp/osgeo.gdal.core.csproj]
/opt/dotnet_core/sdk/6.0.102/NuGet.targets(130,5): error :   Resource temporarily unavailable (api.nuget.org:443) [/var/tmp/portage/sci-libs/gdal-3.5.0-r3/work/gdal-3.5.0_build/swig/csharp/osgeo.gdal.core.csproj]
/opt/dotnet_core/sdk/6.0.102/NuGet.targets(130,5): error :   Resource temporarily unavailable [/var/tmp/portage/sci-libs/gdal-3.5.0-r3/work/gdal-3.5.0_build/swig/csharp/osgeo.gdal.core.csproj]
    0 Warning(s)
    1 Error(s)


Expected Results:  
Successful merge.
Comment 1 Luke A. Guest 2022-05-18 13:16:53 UTC
Created attachment 779417 [details]
Build logs
Comment 2 Larry the Git Cow gentoo-dev 2022-05-19 22:37:52 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7e2d5d7fbb1b1220a46d73c09f57f6d0a897eec

commit c7e2d5d7fbb1b1220a46d73c09f57f6d0a897eec
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-05-19 22:36:55 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-05-19 22:36:55 +0000

    sci-libs/gdal: disable C# bindings
    
    There's no need for these AFAIK and leaving it as it is would be wrong anyway
    (as it automagically tries to use at least .NET SDK bits to download from internet.
    Not tested with mono though.)
    
    Closes: https://bugs.gentoo.org/845369
    Signed-off-by: Sam James <sam@gentoo.org>

 sci-libs/gdal/gdal-3.5.0-r4.ebuild | 2 ++
 1 file changed, 2 insertions(+)
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-20 20:31:26 UTC
*** Bug 846614 has been marked as a duplicate of this bug. ***