[Buildroot] [PATCH] infra: indent the Config.in source-ing of packages
Peter Korsgaard
jacmet at uclibc.org
Wed Jun 11 20:34:57 UTC 2014
>>>>> "Arnout" == Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be> writes:
> This makes sure that a patch adding a package shows in which menu the
> package is added.
> Before this commit, the patch has something like this:
>> diff --git a/package/Config.in b/package/Config.in
>> index 7800f23..433312e 100644
>> --- a/package/Config.in
>> +++ b/package/Config.in
>> @@ -864,6 +864,7 @@ source "package/googlefontdirectory/Config.in"
>> source "package/haveged/Config.in"
>> source "package/mcrypt/Config.in"
>> source "package/mobile-broadband-provider-info/Config.in"
>> +source "package/mypackage/Config.in"
>> source "package/shared-mime-info/Config.in"
>> source "package/snowball-init/Config.in"
>> source "package/sound-theme-borealis/Config.in"
> [> added to avoid git-am recognizing this as the patch]
> After this commit, the function marker shows in which menu the new
> package was added:
>> diff --git a/package/Config.in b/package/Config.in
>> index b1111c8..7e6e1a4 100644
>> --- a/package/Config.in
>> +++ b/package/Config.in
>> @@ -864,6 +864,7 @@ menu "Miscellaneous"
>> source "package/haveged/Config.in"
>> source "package/mcrypt/Config.in"
>> source "package/mobile-broadband-provider-info/Config.in"
>> + source "package/mypackage/Config.in"
>> source "package/shared-mime-info/Config.in"
>> source "package/snowball-init/Config.in"
>> source "package/sound-theme-borealis/Config.in"
> To keep things consistent, this is done for Config.in.host there, even
> though we don't have sub-menus there at the moment.
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
> ---
> Obviously, this patch is very fragile: it will be broken if any new
> package is added. Therefore, please don't apply it as is, but use:
> sed -i "/^source/s//$(printf \\t)source/" package/Config.in package/Config.in.host
> (printf for easy cut&paste).
> Verify that nothing important changed with
> git diff --ignore-all-change
Committed (regenerated), thanks!
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list