From 692b02d5241002f5a2cabb48042e6714c7a39d4f Mon Sep 17 00:00:00 2001 From: Sam James Date: Sat, 15 Oct 2022 16:36:31 +0100 Subject: dev-go/licenseclassifier: fix VariableScope Closes: https://bugs.gentoo.org/836047 Signed-off-by: Sam James --- dev-go/licenseclassifier/licenseclassifier-0_pre20200402.ebuild | 4 ++-- dev-go/licenseclassifier/licenseclassifier-9999.ebuild | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'dev-go') diff --git a/dev-go/licenseclassifier/licenseclassifier-0_pre20200402.ebuild b/dev-go/licenseclassifier/licenseclassifier-0_pre20200402.ebuild index c666a32af4c5..5152bafd8068 100644 --- a/dev-go/licenseclassifier/licenseclassifier-0_pre20200402.ebuild +++ b/dev-go/licenseclassifier/licenseclassifier-0_pre20200402.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -59,7 +59,7 @@ src_compile() { # Make a binary that will use fixed path for the db cp -v file_system_resources.go{,.bak} || die - local share="${EROOT}/usr/share/licenseclassifier" + local share="${EPREFIX}/usr/share/licenseclassifier" sed -i "s@= lcRoot()@= \"${share}\", error(nil)@" file_system_resources.go || die go build -o build ./... || die diff --git a/dev-go/licenseclassifier/licenseclassifier-9999.ebuild b/dev-go/licenseclassifier/licenseclassifier-9999.ebuild index 84b9056372d5..a2b6303b1b93 100644 --- a/dev-go/licenseclassifier/licenseclassifier-9999.ebuild +++ b/dev-go/licenseclassifier/licenseclassifier-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -59,7 +59,7 @@ src_compile() { # Make a binary that will use fixed path for the db cp -v file_system_resources.go{,.bak} || die - local share="${EROOT}/usr/share/licenseclassifier" + local share="${EPREFIX}/usr/share/licenseclassifier" sed -i "s@= lcRoot()@= \"${share}\", error(nil)@" file_system_resources.go || die go build -o build ./... || die -- cgit v1.2.3-65-gdbad