Build broken on OS X 10.9

Tomi Ollila tomi.ollila at iki.fi
Sat Nov 2 14:08:31 PDT 2013


On Sat, Nov 02 2013, Tomi Ollila <tomi.ollila at iki.fi> wrote:

> On Sat, Nov 02 2013, Rainer M Krug <Rainer at krugs.de> wrote:
>
>> Tomi Ollila <tomi.ollila at iki.fi> writes:
>>
>>> On Fri, Nov 01 2013, Michael Phillips <michaelalanphillips at gmail.com> wrote:
>>>
>>>> On Fri, Nov 1, 2013 at 1:44 AM, Tomi Ollila <tomi.ollila at iki.fi> 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: RMKrug<at>gmail<dot>com
>>
>> _______________________________________________
>> notmuch mailing list
>> notmuch at notmuchmail.org
>> http://notmuchmail.org/mailman/listinfo/notmuch


More information about the notmuch mailing list