Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 841896 - dev-dotnet/dotnet-sdk-bin-6.0.201 installs the workload file at wrong location
Summary: dev-dotnet/dotnet-sdk-bin-6.0.201 installs the workload file at wrong location
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Maciej Barć
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2022-04-30 23:34 UTC by Eugene Shalygin
Modified: 2022-07-20 23:26 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Shalygin 2022-04-30 23:34:13 UTC
The file is created at /opt/dotnet-sdk-bin-6.0/metadata/workloads/6.0.100/userlocal, but it has to be 6.0.200

That breaks .NET package builds due to sandbox violation, as per #827712.

Reproducible: Always

Steps to Reproduce:
1. emerge -1 dotnet-sdk-bin




--- /var/portage/gentoo/dev-dotnet/dotnet-sdk-bin/dotnet-sdk-bin-6.0.201.ebuild 2022-03-14 08:58:24.044373837 +0100
+++ dotnet-sdk-bin-6.0.201.ebuild   2022-05-01 01:23:51.424211881 +0200
@@ -39,9 +39,10 @@
    dodir "${dest%/*}"
 
    # 6.0.100 is SDK feature band which will not change between minor increases, so 6.0.101, 6.102
-   # will still have same 6.0.100 SDK feature band in the name. Thus I have to hard code this
+   # will still have same 6.0.100 SDK feature band in the name.
    # https://github.com/dotnet/sdk/pull/18823#issuecomment-915603684
-   local workloads="metadata/workloads/${SLOT}.100"
+   local featureband=$(ver_cut 3 | sed -e 's/[0-9]/0/2g')
+   local workloads="metadata/workloads/${SLOT}.${featureband}"
 
    { mkdir -p "${S}/${workloads}" && touch "${S}/${workloads}/userlocal"; } || die
    { mv "${S}" "${ED}/${dest}" && mkdir "${S}" && fperms 0755 "/${dest}"; } || die
Comment 1 Larry the Git Cow gentoo-dev 2022-07-20 23:26:23 UTC
The bug has been closed via the following commit(s):

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

commit a990931de535384d4d29cb8f48af828b12fa8ad8
Author:     Maciej Barć <xgqt@gentoo.org>
AuthorDate: 2022-07-20 23:26:14 +0000
Commit:     Maciej Barć <xgqt@gentoo.org>
CommitDate: 2022-07-20 23:26:14 +0000

    dev-dotnet/dotnet-sdk-bin: fix location of the workloads file
    
    Closes: https://bugs.gentoo.org/841896
    Signed-off-by: Maciej Barć <xgqt@gentoo.org>

 ...t-sdk-bin-6.0.301.ebuild => dotnet-sdk-bin-6.0.301-r1.ebuild} | 9 ++++-----
 ...t-sdk-bin-6.0.302.ebuild => dotnet-sdk-bin-6.0.302-r1.ebuild} | 9 ++++-----
 2 files changed, 8 insertions(+), 10 deletions(-)