[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] utils: Clean trailing whitespace at end of SHELL
From: |
Ludovic Courtès |
Subject: |
Re: [PATCH] utils: Clean trailing whitespace at end of SHELL |
Date: |
Fri, 05 Sep 2014 10:11:33 +0200 |
User-agent: |
Gnus/5.130011 (Ma Gnus v0.11) Emacs/24.3 (gnu/linux) |
Eric Bavier <address@hidden> skribis:
> Ludovic Courtès writes:
>
>> Eric Bavier <address@hidden> skribis:
>>
>>> I found an unfortunate bug in the last patch I made to
>>> patch-makefile-SHELL that would leave a trailing ' ' at the end of SHELL
>>> assignments. This is fine for most packages, but caused
>>> gobject-introspection to fail building for me just now (for the curious:
>>> it effectively does an "(apply system* (string-split (string-append SHELL
>>> " " "./libtool") #\space))" which causes sh to try to execute "")
>>
>> AFAIK trailing whitespace in assignments is ignored by ‘make’.
>>
>> I grepped gobject-introspection out of curiosity and couldn’t find any
>> suspicious SHELL assignment. Do you still have it around?
>
> E.g. gobject-introspection-1.38.0/giscanner/utils.py:124
Oh, I see.
>> The (string=? args "\n") seems specific and non-obvious.
>
> I thought so too. Your suggestion does work. With this patch, I was
> able to bootstrap and build gobject-introspection.
>
>
> From 11459384968f654c42ad7dba4443dada35191f5b Mon Sep 17 00:00:00 2001
> From: Eric Bavier <address@hidden>
> Date: Thu, 4 Sep 2014 09:19:24 -0500
> Subject: [PATCH] utils: Clean trailing whitespace at end of SHELL
>
> * guix/build/utils.scm (patch-makefile-SHELL): Remove trailing whitespace.
OK to commit!
Thanks,
Ludo’.