From af3e2cd6ba7520c88f8481e81d70765c61f924eb23cf17df89a94a5a5e83f571 Mon Sep 17 00:00:00 2001 From: Avindra Goolcharan Date: Tue, 21 Jun 2022 17:22:56 +0000 Subject: [PATCH] python 3 hack OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/deno?expand=0&rev=73 --- deno.changes | 5 +++++ deno.spec | 12 ++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/deno.changes b/deno.changes index e22769d..c838dd8 100644 --- a/deno.changes +++ b/deno.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 21 17:22:03 UTC 2022 - Avindra Goolcharan + +- apply workaround so that /usr/bin/python resolves to python3 + ------------------------------------------------------------------- Sat Jun 18 21:18:04 UTC 2022 - Avindra Goolcharan diff --git a/deno.spec b/deno.spec index 9209061..fc75e9b 100644 --- a/deno.spec +++ b/deno.spec @@ -30,15 +30,15 @@ Source1: vendor.tar.xz Source99: revendor_source.sh # see https://github.com/denoland/chromium_build/pull/197 Patch0: fix-cflags.patch -BuildRequires: clang # gcc-c++ needed to build SPIRV-Cross +BuildRequires: clang BuildRequires: gcc-c++ BuildRequires: gn BuildRequires: lld BuildRequires: llvm BuildRequires: ninja BuildRequires: pkgconfig -BuildRequires: python +BuildRequires: python3-base BuildRequires: python3-setuptools BuildRequires: rust >= 1.53.0 BuildRequires: rust-packaging @@ -64,7 +64,15 @@ updated with the --reload flag. %define cargo_registry $(pwd)/vendor %{cargo_prep} + %build +# workaround to use python3 +# where "python" is invoked +mkdir -p "$(pwd)/bin" +ln -sf %{_bindir}/python3 "$(pwd)/bin/python" +export PATH="$PATH:$(pwd)/bin" + + export V8_FROM_SOURCE=1 export CLANG_BASE_PATH=%{_prefix} # https://www.chromium.org/developers/gn-build-configuration