]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
rust: Drop Cargo home directory after build
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 19 Nov 2021 17:44:53 +0000 (17:44 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Wed, 24 Nov 2021 09:06:55 +0000 (09:06 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/common/suricata
lfs/Config

index 21dbeae64ca7170d74d807b3b4c4511066a6bfd5..7c512b03300117a0570cb094b39d029e3e36e152 100644 (file)
@@ -1,7 +1,5 @@
 etc/suricata
 etc/suricata/suricata.yaml
-#root/.cargo
-#root/.cargo/.package-cache
 usr/bin/suricata
 #usr/share/doc/suricata
 #usr/share/doc/suricata/AUTHORS
index a2d3cddc5ca49e6e251ee6d65adb77d61ab16a7f..8b2e5dabb7494ce6f02bd201b4b57dea8e909f76 100644 (file)
@@ -143,6 +143,9 @@ ifeq "$(BUILD_ARCH)" "aarch64"
        GOARCH = arm64
 endif
 
+# Rust
+export CARGOPATH = $(HOME)/.cargo
+
 ###############################################################################
 # Common Macro Definitions
 ###############################################################################
@@ -184,7 +187,7 @@ define POSTBUILD
        @echo "Updating linker cache..."
        @type -p ldconfig >/dev/null && ldconfig || :
        @echo "Install done; saving file list to $(TARGET) ..."
-       @rm -rf $(GOPATH)
+       @rm -rf $(GOPATH) $(CARGOPATH)
        @$(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