summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2024-02-01 14:34:19 +0100
committerMaciej Barć <xgqt@gentoo.org>2024-02-02 10:36:47 +0100
commit496b76180f0ac22c810ccd55bc062df4d3151464 (patch)
tree4debbbc33fbecfbee684eb5194a10dd69fe9dee9 /dev-dotnet/dotnet-sdk
parentmedia-libs/netpbm: drop 11.2.5 (diff)
downloadgentoo-496b76180f0ac22c810ccd55bc062df4d3151464.tar.gz
gentoo-496b76180f0ac22c810ccd55bc062df4d3151464.tar.bz2
gentoo-496b76180f0ac22c810ccd55bc062df4d3151464.zip
dev-dotnet/dotnet-sdk: update build process
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-dotnet/dotnet-sdk')
-rw-r--r--dev-dotnet/dotnet-sdk/dotnet-sdk-8.0.100-r2.ebuild43
1 files changed, 26 insertions, 17 deletions
diff --git a/dev-dotnet/dotnet-sdk/dotnet-sdk-8.0.100-r2.ebuild b/dev-dotnet/dotnet-sdk/dotnet-sdk-8.0.100-r2.ebuild
index 75ac94521502..2132c04306d6 100644
--- a/dev-dotnet/dotnet-sdk/dotnet-sdk-8.0.100-r2.ebuild
+++ b/dev-dotnet/dotnet-sdk/dotnet-sdk-8.0.100-r2.ebuild
@@ -28,7 +28,9 @@ DESCRIPTION=".NET is a free, cross-platform, open-source developer platform"
HOMEPAGE="https://dotnet.microsoft.com/
https://github.com/dotnet/dotnet/"
SRC_URI="
- amd64? ( https://dev.gentoo.org/~xgqt/distfiles/repackaged/${P}-prepared-gentoo-amd64.tar.xz )
+amd64? (
+ https://dev.gentoo.org/~xgqt/distfiles/repackaged/${P}-prepared-gentoo-amd64.tar.xz
+)
"
SDK_SLOT="$(ver_cut 1-2)"
@@ -36,14 +38,14 @@ RUNTIME_SLOT="${SDK_SLOT}.0"
SLOT="${SDK_SLOT}/${RUNTIME_SLOT}"
# SDK reports it is version "8.0.100" but the tag .NET SDK team had given
-# it is "8.0.100". I feel that the pattern is to tag based on "RUNTIME_SLOT".
+# it is "8.0.0". I feel that the pattern is to tag based on "RUNTIME_SLOT".
S="${WORKDIR}/${PN}-${RUNTIME_SLOT}"
LICENSE="MIT"
KEYWORDS="amd64"
-# STRIP="llvm-strip" corrupts some executables when using the patchelf hack,
-# bug https://bugs.gentoo.org/923430
+# STRIP="llvm-strip" corrupts some executables when using the patchelf hack.
+# Be safe and restrict it for source-built too, bug https://bugs.gentoo.org/923430
RESTRICT="splitdebug strip"
CURRENT_NUGETS_DEPEND="
@@ -87,17 +89,22 @@ pkg_setup() {
python-any-r1_pkg_setup
if [[ "${MERGE_TYPE}" != binary ]] ; then
- local locales="$(locale -a)"
-
- if has en_US.utf8 ${locales} ; then
- LC_ALL=en_US.utf8
- elif has en_US.UTF-8 ${locales} ; then
- LC_ALL=en_US.UTF-8
+ if use elibc_glibc ; then
+ local locales
+ locales="$(locale -a)"
+
+ if has en_US.utf8 ${locales} ; then
+ LC_ALL=en_US.utf8
+ elif has en_US.UTF-8 ${locales} ; then
+ LC_ALL=en_US.UTF-8
+ else
+ eerror "The locale en_US.utf8 or en_US.UTF-8 is not available."
+ eerror "Please generate en_US.UTF-8 before building ${CATEGORY}/${P}."
+
+ die "Could not switch to the en_US.UTF-8 locale."
+ fi
else
- eerror "The locale en_US.utf8 or en_US.UTF-8 is not available."
- eerror "Please generate en_US.UTF-8 before building ${CATEGORY}/${P}."
-
- die "Could not switch to the en_US.UTF-8 locale."
+ LC_ALL=en_US.UTF-8
fi
export LC_ALL
@@ -139,10 +146,12 @@ src_compile() {
local source_repository="https://github.com/dotnet/dotnet"
ebegin "Building the .NET SDK ${SDK_SLOT}"
- bash ./build.sh \
- --clean-while-building \
- --source-repository "${source_repository}" \
+ local -a buildopts=(
+ --clean-while-building
+ --source-repository "${source_repository}"
--source-version "${COMMIT}"
+ )
+ bash ./build.sh "${buildopts[@]}"
eend ${?} || die "build failed"
}