From patchwork Tue Dec 24 12:58:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 2664 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 47hxB444MBz3xXr for ; Tue, 24 Dec 2019 12:59:08 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 47hxB34S6fz2cm; Tue, 24 Dec 2019 12:59:07 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 47hxB32b5wz2yT4; Tue, 24 Dec 2019 12:59:07 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 47hxB14VX7z2xxj for ; Tue, 24 Dec 2019 12:59:05 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 47hxB13Fm0z2cm; Tue, 24 Dec 2019 12:59:05 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=201909ed25519; t=1577192345; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/j8rstiztZxOjv/M9PMMj/onNUPSgvZxTosQFsjByM8=; b=c8aprmolvArFs6EPmY77+5EDwRbElBgHoZtvnpROeuLm43tk00I+91ETo+xBbmUTVF80hB PAlFRFZwDghKqJDA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=201909rsa; t=1577192345; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/j8rstiztZxOjv/M9PMMj/onNUPSgvZxTosQFsjByM8=; b=j0yXTOZlm+vQ+UC2cKD6LG0kYPYbg519pLvOHvtowsjmmI7k1HwDfKll5CnKqSOHySmVom n53xquq3SikfFgnopV80FQuguIezcCP3dKKx8IzkNfbooBDpsIX1dnc6gq5qMRVWG+5SND b6//S2u20j9Sv7IcXa4nqwCX2u0YNJVYLTW8VEPgkwQUHuJ0JqbgVdw9mVgDDxY16C2fej QhBC2jY+nch2nw2D1D9jwnivbUoV1lZjajKikGFaQEgGUK7/p/+MpF3NmVhl91r4/P7c6m hGcURmpeHWaNH1hWqWy3yA7vYX1NftuyjGwJ5EF9u4+gK/3aVLr1E1KpmeRWlQ== From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 2/3] Go: Cleanup Go Path after build Date: Tue, 24 Dec 2019 12:58:53 +0000 Message-Id: <20191224125854.11552-2-michael.tremer@ipfire.org> In-Reply-To: <20191224125854.11552-1-michael.tremer@ipfire.org> References: <20191224125854.11552-1-michael.tremer@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Tremer Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Go leaves temporary build files in the directory which we do not need and we should clean up after every build. Signed-off-by: Michael Tremer --- lfs/Config | 4 ++++ lfs/amazon-ssm-agent | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lfs/Config b/lfs/Config index f597b8c65..d17600820 100644 --- a/lfs/Config +++ b/lfs/Config @@ -115,6 +115,9 @@ ifeq "$(BUILD_ARCH)" "aarch64" GRUB_ARCH = arm64 endif +# Go +export GOPATH = $(HOME)/gopath + ############################################################################### # Common Macro Definitions ############################################################################### @@ -156,6 +159,7 @@ define POSTBUILD @echo "Updating linker cache..." @type -p ldconfig >/dev/null && ldconfig || : @echo "Install done; saving file list to $(TARGET) ..." + @rm -rf $(GOPATH) @$(FIND_FILES) > $(DIR_SRC)/lsalrnew @diff $(DIR_SRC)/lsalr $(DIR_SRC)/lsalrnew | grep '^> ' | sed 's/^> //' > $(TARGET)_diff @cp -f $(DIR_SRC)/lsalrnew $(DIR_SRC)/lsalr diff --git a/lfs/amazon-ssm-agent b/lfs/amazon-ssm-agent index da164ced8..b477690a4 100644 --- a/lfs/amazon-ssm-agent +++ b/lfs/amazon-ssm-agent @@ -37,8 +37,6 @@ PAK_VER = 1 DEPS = "" -export GOPATH = $(HOME)/gopath - DIR_BUILD = $(GOPATH)/src/github.com/aws/amazon-ssm-agent ###############################################################################