From 2db072a4cef38831508f7b74882b952cd6821289 Mon Sep 17 00:00:00 2001 From: Tomi Ollila Date: Sat, 2 Nov 2013 23:08:31 +0200 Subject: [PATCH] Re: Build broken on OS X 10.9 --- 82/d63bcdae021b2aa6c722312aee15658e4c882c | 141 ++++++++++++++++++++++ 1 file changed, 141 insertions(+) create mode 100644 82/d63bcdae021b2aa6c722312aee15658e4c882c diff --git a/82/d63bcdae021b2aa6c722312aee15658e4c882c b/82/d63bcdae021b2aa6c722312aee15658e4c882c new file mode 100644 index 000000000..ebd971fd6 --- /dev/null +++ b/82/d63bcdae021b2aa6c722312aee15658e4c882c @@ -0,0 +1,141 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 34852431FBF + for ; Sat, 2 Nov 2013 14:08:46 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id c81vtZTMegph for ; + Sat, 2 Nov 2013 14:08:39 -0700 (PDT) +Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) + by olra.theworths.org (Postfix) with ESMTP id 994AB431FAF + for ; Sat, 2 Nov 2013 14:08:39 -0700 (PDT) +Received: from guru.guru-group.fi (localhost [IPv6:::1]) + by guru.guru-group.fi (Postfix) with ESMTP id DE07210005D; + Sat, 2 Nov 2013 23:08:31 +0200 (EET) +From: Tomi Ollila +To: Rainer M Krug , notmuch@notmuchmail.org +Subject: Re: Build broken on OS X 10.9 +In-Reply-To: +References: + + + + + + +User-Agent: Notmuch/0.16+119~g219c55f (http://notmuchmail.org) Emacs/24.3.1 + (x86_64-unknown-linux-gnu) +X-Face: HhBM'cA~ +MIME-Version: 1.0 +Content-Type: text/plain +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Sat, 02 Nov 2013 21:08:46 -0000 + +On Sat, Nov 02 2013, Tomi Ollila wrote: + +> On Sat, Nov 02 2013, Rainer M Krug wrote: +> +>> Tomi Ollila writes: +>> +>>> On Fri, Nov 01 2013, Michael Phillips wrote: +>>> +>>>> On Fri, Nov 1, 2013 at 1:44 AM, Tomi Ollila wrote: +>>>>> Hmm, it seems the rule doing that says @mkdir -p .deps/$(@D) ... +>>>>> +>>>>> does `mkdir -p xyzdir/.` fail in OS X 10.9 (Mavericks) ? +>>>> +>>>> $ mkdir -p xyzdir/. +>>>> +>>>> mkdir: xyzdir/.: No such file or directory +>>>> +>>>> Good catch! So mkdir changed between 10.8 and 10.9. +>>> +>>> Quick(&dirty?) solution would be to change the in quetsion recipes to format: +>>> +>>> @-mkdir -p .deps/$(@D) +>>> +>>> I.e. add dash (-) to make Make ignore failure there. +>> +>> Any progress on this front and instructions how I can install notmuch +>> via homebrew? After the update to Maverick I am "notmuch-less"... +> +> This could work. I don't have Mac so I cannot test +> +> diff --git a/Makefile.local b/Makefile.local +> index 72524eb..b59e063 100644 +> --- a/Makefile.local +> +++ b/Makefile.local +> @@ -236,11 +236,11 @@ endif +> quiet ?= $($(shell echo $1 | sed -e s'/ .*//')) +> +> %.o: %.cc $(global_deps) +> - @mkdir -p .deps/$(@D) +> + @-mkdir -p .deps .deps/$(@D) +> $(call quiet,CXX $(CPPFLAGS) $(CXXFLAGS)) -c $(FINAL_CXXFLAGS) $< -o $@ -MD -MP -MF .deps/$*.d +> +> %.o: %.c $(global_deps) +> - @mkdir -p .deps/$(@D) +> + @-mkdir -p .deps .deps/$(@D) +> $(call quiet,CC $(CPPFLAGS) $(CFLAGS)) -c $(FINAL_CFLAGS) $< -o $@ -MD -MP -MF .deps/$*.d +> +> .PHONY : clean +> + +Actually @-mkdir -p .deps/$(@D) should do as .deps should be done before +.deps/., but what Austin suggested in IRC are much better options: + +@mkdir -p .deps/$(@D:/.=) + +or + +@mkdir -p .deps/$(patsubst %/.,%,$(@D)) + + +Disclaimer: I copied the substution parts directly from IRC buffer (without +testing but these looks sound), I am to blame suggesting these if these did +not work. I.e. what ever you paid me for getting these suggestions are +refunded ;) + +>> Rainer + +Tomi + +>> +>>> +>>>> Michael +>>> +>>> Tomi +>> +>> +>> -- +>> Rainer M. Krug +>> +>> email: RMKruggmailcom +>> +>> _______________________________________________ +>> notmuch mailing list +>> notmuch@notmuchmail.org +>> http://notmuchmail.org/mailman/listinfo/notmuch -- 2.26.2