From patchwork Fri Mar 2 22:17:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 144365 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 8951BB6F62 for ; Sat, 3 Mar 2012 09:19:32 +1100 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1S3anh-0008Oa-Rt; Fri, 02 Mar 2012 22:18:09 +0000 Received: from mail-pz0-f49.google.com ([209.85.210.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1S3ane-0008OM-Gq for linux-mtd@lists.infradead.org; Fri, 02 Mar 2012 22:18:07 +0000 Received: by dakp5 with SMTP id p5so2956060dak.36 for ; Fri, 02 Mar 2012 14:18:04 -0800 (PST) Received-SPF: pass (google.com: domain of computersforpeace@gmail.com designates 10.68.196.201 as permitted sender) client-ip=10.68.196.201; Authentication-Results: mr.google.com; spf=pass (google.com: domain of computersforpeace@gmail.com designates 10.68.196.201 as permitted sender) smtp.mail=computersforpeace@gmail.com; dkim=pass header.i=computersforpeace@gmail.com Received: from mr.google.com ([10.68.196.201]) by 10.68.196.201 with SMTP id io9mr5825648pbc.86.1330726684509 (num_hops = 1); Fri, 02 Mar 2012 14:18:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=/iEAFamhtfvoONK/bjUP/ZkLHe3HYHXr0sYvvDp+t+8=; b=Akf0tbyw4P137kR59tBPKxIfmdL4NxhInDgsckSU2AivJkvXuinvRrqBU3VX9rfs94 XMeaKtLrF3XtlmpP5zQVcVkYEKvF3Bv6Jrwqntkl/tKyOArejWDoZtEZlnUKKarIjS04 fxUkdGjSi7dfvOydELGMElsEBxD6o8t4LWVf+jiBvtv7C34aU3WGCT82/bsNg6BYYI84 kNvQurtvqfSzKr2c4MXrYx54Mc99sNqtAGVdYqQSQzC+Qt1oclEqBxTCmNal5+6+IU87 nSULnVkpXi+kGiLR6wNKIQREblsSWHET+xrCDJb9GABhyZWKg2aw0NAoeIzMVBwzrD0U B4vw== Received: by 10.68.196.201 with SMTP id io9mr4912087pbc.86.1330726684431; Fri, 02 Mar 2012 14:18:04 -0800 (PST) Received: from localhost.localdomain (5520-maca-inet1-outside.broadcom.com. [216.31.211.11]) by mx.google.com with ESMTPS id g3sm6033556pbt.41.2012.03.02.14.18.01 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 02 Mar 2012 14:18:02 -0800 (PST) From: Brian Norris To: Artem Bityutskiy Subject: [PATCH (mtd-utils)] Makefile: fix "make clean" for old GNU find Date: Fri, 2 Mar 2012 14:17:53 -0800 Message-Id: <1330726673-9860-1-git-send-email-computersforpeace@gmail.com> X-Mailer: git-send-email 1.7.5.4.2.g519b1 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.210.49 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (computersforpeace[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Brian Norris , linux-mtd@lists.infradead.org, Mike Frysinger X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org findutils v4.1.x does not have the `-exec CMD {} +' syntax. We can just as easily use the `-exec CMD {} \;' syntax. However, it will launch a lot more `rm' processes... RHEL 4 still uses findutils 4.1.20 and gets errors like this: $ make clean rm -f /XXX/mtd-utils/*.o /XXX/mtd-utils/ftl_format ... find: missing argument to `-exec' make: *** [clean] Error 1 Signed-off-by: Brian Norris --- Makefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index 17a1216..0cbbecc 100644 --- a/Makefile +++ b/Makefile @@ -53,7 +53,7 @@ endif @if test -d "$(BUILDDIR)/"; then \ find $(BUILDDIR)/ -xdev \ '(' -name '*.[ao]' -o -name '.*.c.dep' ')' \ - -exec rm -f {} + ; \ + -exec rm -f {} \; ; \ fi rm -f $(BUILDDIR)/include/version.h $(MAKE) -C $(TESTS) clean