All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v4 1/2] package/nfs-utils: fix unnecessary files removal
@ 2019-04-28  9:02 Angelo Compagnucci
  2019-04-28  9:02 ` [Buildroot] [PATCH v4 2/2] package/nfs-utils: making nfs server optional Angelo Compagnucci
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Angelo Compagnucci @ 2019-04-28  9:02 UTC (permalink / raw)
  To: buildroot

Removing of unnecessary files is actually broken by the fact that the rm
command is executed inside build directory and not the target directory.

This patch fixes the problem changing to target directory before
removing files.

Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
---
v3->v4: separate fix patch as requested by Arnout

 package/nfs-utils/nfs-utils.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/nfs-utils/nfs-utils.mk b/package/nfs-utils/nfs-utils.mk
index 9fa7ae2..4bb62de 100644
--- a/package/nfs-utils/nfs-utils.mk
+++ b/package/nfs-utils/nfs-utils.mk
@@ -57,7 +57,7 @@ NFS_UTILS_CONF_OPTS += --disable-tirpc
 endif
 
 define NFS_UTILS_INSTALL_FIXUP
-	rm -f $(NFS_UTILS_TARGETS_)
+	cd $(TARGET_DIR) && rm -f $(NFS_UTILS_TARGETS_)
 	touch $(TARGET_DIR)/etc/exports
 	$(INSTALL) -D -m 644 \
 		$(@D)/utils/mount/nfsmount.conf $(TARGET_DIR)/etc/nfsmount.conf
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-05-10  9:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-28  9:02 [Buildroot] [PATCH v4 1/2] package/nfs-utils: fix unnecessary files removal Angelo Compagnucci
2019-04-28  9:02 ` [Buildroot] [PATCH v4 2/2] package/nfs-utils: making nfs server optional Angelo Compagnucci
2019-05-05 20:44   ` Arnout Vandecappelle
2019-05-05 20:40 ` [Buildroot] [PATCH v4 1/2] package/nfs-utils: fix unnecessary files removal Arnout Vandecappelle
2019-05-10  9:57 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.