package/nfs-utils: fix unnecessary files removal
authorAngelo Compagnucci <angelo@amarulasolutions.com>
Sun, 28 Apr 2019 09:02:54 +0000 (11:02 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Sun, 5 May 2019 20:37:44 +0000 (22:37 +0200)
The removal of unnecessary files is currently broken by the fact that
the rm command is executed from the buildroot 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>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/nfs-utils/nfs-utils.mk

index 9fa7ae200b578726869b04889c18b17669c7c462..4bb62de1ce7005a10c3990ff05d2d1f7694ef9d0 100644 (file)
@@ -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