From patchwork Sun Apr 28 09:02:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angelo Compagnucci X-Patchwork-Id: 1092196 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="jQXj4rqk"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44sMJj1J4kz9s7T for ; Sun, 28 Apr 2019 19:03:17 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 3DDC98491C; Sun, 28 Apr 2019 09:03:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5AoNk+h9WQzs; Sun, 28 Apr 2019 09:03:12 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 409C0848F5; Sun, 28 Apr 2019 09:03:12 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 03D791BF5EA for ; Sun, 28 Apr 2019 09:03:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 0121622056 for ; Sun, 28 Apr 2019 09:03:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WGmCV8X2KtGY for ; Sun, 28 Apr 2019 09:03:03 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by silver.osuosl.org (Postfix) with ESMTPS id 5E5CA21507 for ; Sun, 28 Apr 2019 09:03:03 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id a12so11005028wrq.10 for ; Sun, 28 Apr 2019 02:03:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id; bh=Ed7zvROHI9XSK+3puDKgsryE3rHpbA7JBakc7F3HCpQ=; b=jQXj4rqk2ZN+jkNc2pMxpDLPXke7YBJGJnObLSNtW7JmIvDwU3b3cgtN5Oq1fGO9Do vMxV3Ekaws/YqaQyMU0qUDhtIfH7tg8br0uswctphfMcGHIlCqgZFsdpA9h5RRH2Y5Is pIu9NHJXmUrX72mdJh6I9liiRWz6oSLNJuMVw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Ed7zvROHI9XSK+3puDKgsryE3rHpbA7JBakc7F3HCpQ=; b=hjhMzFZ0bmA0KPts/H9wF3xRqhksX+mJFirDyXnMhlUTx8JQ+bS5rdT13jBGnJU+Yt LzkkdiHTyafmVgIpdxYH+DLGDmT57jCQA0eiFn88/90NuKB+trmkqYKYP9Yf4qkvD8/d tVzK6GRKim0qE/d+QZ0kYRFKlca9kPuVoJ5Ba8hTDtZqB5p2050ef/wOoTgUoGjRWgHM KVbhVKphChQCJ29CCfah9jvBmR0C71F1MJN1m7+VGlW86NG/EqoGzpfoncjtUKDkgvg8 HgAkGnrNhQ+dJbyUHbsA5Usv2zLKOfmhu2XZvEW5oCWxvVtti0FSY8SXjqY1sq1RHwtT FFIg== X-Gm-Message-State: APjAAAUndKajZEzcwuiKTlIWXNK///dTFlJw71v5bs2CsWYNwgExNMfA doLRk3S3L0h3MrCV8NxLpDD8uiKSAL0XqszO X-Google-Smtp-Source: APXvYqwvDjXA3zjFd+YgX0ra8imETnm32t5IGK+dXnT4ev+EamXDPL48584h7zvBnfmGCWhZf2jgDA== X-Received: by 2002:adf:f8d0:: with SMTP id f16mr36641486wrq.198.1556442181446; Sun, 28 Apr 2019 02:03:01 -0700 (PDT) Received: from localhost.localdomain ([37.161.249.75]) by smtp.gmail.com with ESMTPSA id w17sm1343055wra.81.2019.04.28.02.02.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 28 Apr 2019 02:03:00 -0700 (PDT) From: Angelo Compagnucci To: buildroot@buildroot.org Date: Sun, 28 Apr 2019 11:02:54 +0200 Message-Id: <1556442175-1494-1-git-send-email-angelo@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 Subject: [Buildroot] [PATCH v4 1/2] package/nfs-utils: fix unnecessary files removal X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Angelo Compagnucci MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "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 --- 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