commit:     3ea065d5e41b9391d72501db1e56863808de249c
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 12 05:53:42 2021 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Tue Oct 12 05:53:57 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ea065d5

sys-cluster/k3s: fix ebuild.minorsyn

  ebuild.minorsyn               1
   sys-cluster/k3s/k3s-1.19.15.ebuild: line 1472: 'sed' call should be moved to 
src_prepare

Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 sys-cluster/k3s/k3s-1.19.15.ebuild | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/sys-cluster/k3s/k3s-1.19.15.ebuild 
b/sys-cluster/k3s/k3s-1.19.15.ebuild
index 86c414ac83c..d14cbd88c11 100644
--- a/sys-cluster/k3s/k3s-1.19.15.ebuild
+++ b/sys-cluster/k3s/k3s-1.19.15.ebuild
@@ -1465,16 +1465,17 @@ src_unpack() {
        cp "${DISTDIR}/k3s-cni-plugins-${K3S_CNIPLUGINS_VERSION}.tar.gz" cache/ 
|| die
        mv "${WORKDIR}/bin/"* "${S}/bin/" || die
        mv "${WORKDIR}/etc" "${S}/etc" || die
+}
+
+src_prepare() {
+       local filename pattern replacement
+       default
 
        local RUNC_DIR=build/src/github.com/opencontainers/runc
        mkdir -p "${RUNC_DIR}" || die
        tar -x --strip-components=1 -f 
"${DISTDIR}/k3s-runc-${K3S_RUNC_VERSION}.tar.gz" -C "${RUNC_DIR}" || die
        sed -e 's|mod=vendor|mod=readonly|g' -i "${RUNC_DIR}/Makefile" || die
-}
 
-src_prepare() {
-       local filename pattern replacement
-       default
        # Disable download for files fetched via SRC_URI.
        sed -e 's:^curl:#\0:' \
                -e 's:^git:#\0:' \

Reply via email to