All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 0/3] Random updates
@ 2012-02-11  0:04 Felipe Contreras
  2012-02-11  0:04 ` [Buildroot] [PATCH 1/3] gst-dsp: add dependency to pkg-config Felipe Contreras
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Felipe Contreras @ 2012-02-11  0:04 UTC (permalink / raw)
  To: buildroot

Hi,

Here's a bunch of updates. The first one can be consiered a fix, the second one
is convenient, and the third one makes more proper usage of .gitignore.

Cheers.

Felipe Contreras (3):
  gst-dsp: add dependency to pkg-config
  gst-plugins-base: add option to select 'alsa'
  .gitignore: remove wrong entries

 .gitignore                                    |    7 -------
 package/multimedia/gst-dsp/gst-dsp.mk         |    2 +-
 package/multimedia/gst-plugins-base/Config.in |    7 ++++++-
 3 files changed, 7 insertions(+), 9 deletions(-)

-- 
1.7.9.1.g97f7d

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 1/3] gst-dsp: add dependency to pkg-config
  2012-02-11  0:04 [Buildroot] [PATCH 0/3] Random updates Felipe Contreras
@ 2012-02-11  0:04 ` Felipe Contreras
  2012-02-11 14:42   ` Peter Korsgaard
  2012-02-11  0:04 ` [Buildroot] [PATCH 2/3] gst-plugins-base: add option to select 'alsa' Felipe Contreras
  2012-02-11  0:04 ` [Buildroot] [PATCH 3/3] .gitignore: remove wrong entries Felipe Contreras
  2 siblings, 1 reply; 14+ messages in thread
From: Felipe Contreras @ 2012-02-11  0:04 UTC (permalink / raw)
  To: buildroot

It's used in the Makefile.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
 package/multimedia/gst-dsp/gst-dsp.mk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/package/multimedia/gst-dsp/gst-dsp.mk b/package/multimedia/gst-dsp/gst-dsp.mk
index 549c553..b79ccf1 100644
--- a/package/multimedia/gst-dsp/gst-dsp.mk
+++ b/package/multimedia/gst-dsp/gst-dsp.mk
@@ -13,6 +13,6 @@ define GST_DSP_UNINSTALL_TARGET_CMDS
 	$(RM) $(TARGET_DIR)/usr/lib/gstreamer-0.10/libgstdsp.so
 endef
 
-GST_DSP_DEPENDENCIES = gstreamer tidsp-binaries
+GST_DSP_DEPENDENCIES = gstreamer tidsp-binaries host-pkg-config
 
 $(eval $(call GENTARGETS))
-- 
1.7.9.1.g97f7d

^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 2/3] gst-plugins-base: add option to select 'alsa'
  2012-02-11  0:04 [Buildroot] [PATCH 0/3] Random updates Felipe Contreras
  2012-02-11  0:04 ` [Buildroot] [PATCH 1/3] gst-dsp: add dependency to pkg-config Felipe Contreras
@ 2012-02-11  0:04 ` Felipe Contreras
  2012-02-11 16:05   ` Arnout Vandecappelle
  2012-02-11  0:04 ` [Buildroot] [PATCH 3/3] .gitignore: remove wrong entries Felipe Contreras
  2 siblings, 1 reply; 14+ messages in thread
From: Felipe Contreras @ 2012-02-11  0:04 UTC (permalink / raw)
  To: buildroot

It's nice to go straight to GStreamer, and enable all the plug-in
elements without having to go back through the menus to select the
dependencies.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
 package/multimedia/gst-plugins-base/Config.in |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/package/multimedia/gst-plugins-base/Config.in b/package/multimedia/gst-plugins-base/Config.in
index 851337b..a1fa0f1 100644
--- a/package/multimedia/gst-plugins-base/Config.in
+++ b/package/multimedia/gst-plugins-base/Config.in
@@ -94,5 +94,10 @@ config BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_VORBIS
 	bool "vorbis (*.ogg audio)"
 	select BR2_PACKAGE_LIBVORBIS
 
-endif
+config BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_ALSA
+	bool "alsa"
+	select BR2_PACKAGE_ALSA_LIB
+	select BR2_PACKAGE_ALSA_LIB_MIXER
+	select BR2_PACKAGE_ALSA_LIB_PCM
 
+endif
-- 
1.7.9.1.g97f7d

^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 3/3] .gitignore: remove wrong entries
  2012-02-11  0:04 [Buildroot] [PATCH 0/3] Random updates Felipe Contreras
  2012-02-11  0:04 ` [Buildroot] [PATCH 1/3] gst-dsp: add dependency to pkg-config Felipe Contreras
  2012-02-11  0:04 ` [Buildroot] [PATCH 2/3] gst-plugins-base: add option to select 'alsa' Felipe Contreras
@ 2012-02-11  0:04 ` Felipe Contreras
  2012-02-11 16:12   ` Arnout Vandecappelle
       [not found]   ` <CAAXf6LXsQCsdwswHGa=Ei-+DkB7OyJbKnz7MhatTeEgCk5MMWw@mail.gmail.com>
  2 siblings, 2 replies; 14+ messages in thread
From: Felipe Contreras @ 2012-02-11  0:04 UTC (permalink / raw)
  To: buildroot

These should go into a personal file, like:
core.excludesfile=/home/felipec/.gitignore
  .*.sw[nop]

Some people might prefer to see patches, rejects and other files in the
output of 'git status' (e.g. me).

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
 .gitignore |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/.gitignore b/.gitignore
index 685a9c2..1a7d636 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,10 +5,3 @@
 /.config.old
 /..config.tmp
 /.config
-*.depend
-*.o
-/*.patch
-/*.diff
-*.orig
-*.rej
-*~
-- 
1.7.9.1.g97f7d

^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 1/3] gst-dsp: add dependency to pkg-config
  2012-02-11  0:04 ` [Buildroot] [PATCH 1/3] gst-dsp: add dependency to pkg-config Felipe Contreras
@ 2012-02-11 14:42   ` Peter Korsgaard
  0 siblings, 0 replies; 14+ messages in thread
From: Peter Korsgaard @ 2012-02-11 14:42 UTC (permalink / raw)
  To: buildroot

>>>>> "Felipe" == Felipe Contreras <felipe.contreras@gmail.com> writes:

 Felipe> It's used in the Makefile.
 Felipe> Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>

Committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 2/3] gst-plugins-base: add option to select 'alsa'
  2012-02-11  0:04 ` [Buildroot] [PATCH 2/3] gst-plugins-base: add option to select 'alsa' Felipe Contreras
@ 2012-02-11 16:05   ` Arnout Vandecappelle
  2012-02-11 16:58     ` Peter Korsgaard
  0 siblings, 1 reply; 14+ messages in thread
From: Arnout Vandecappelle @ 2012-02-11 16:05 UTC (permalink / raw)
  To: buildroot

On Saturday 11 February 2012 01:04:35 Felipe Contreras wrote:
> It's nice to go straight to GStreamer, and enable all the plug-in
> elements without having to go back through the menus to select the
> dependencies.
> 
> Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
> ---
>  package/multimedia/gst-plugins-base/Config.in |    7 ++++++-
>  1 files changed, 6 insertions(+), 1 deletions(-)
> 
> diff --git a/package/multimedia/gst-plugins-base/Config.in b/package/multimedia/gst-plugins-base/Config.in
> index 851337b..a1fa0f1 100644
> --- a/package/multimedia/gst-plugins-base/Config.in
> +++ b/package/multimedia/gst-plugins-base/Config.in
> @@ -94,5 +94,10 @@ config BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_VORBIS
>  	bool "vorbis (*.ogg audio)"
>  	select BR2_PACKAGE_LIBVORBIS
>  
> -endif
> +config BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_ALSA
> +	bool "alsa"
> +	select BR2_PACKAGE_ALSA_LIB
> +	select BR2_PACKAGE_ALSA_LIB_MIXER
> +	select BR2_PACKAGE_ALSA_LIB_PCM
>  
> +endif

 Keep the config options ordered alphabetically, so put it before OGG.

 Also, if the option exists, it should be used in the mk-file.  So add:

ifeq ($(BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_ALSA),y)
GST_PLUGINS_BASE_CONF_OPT += --enable-alsa
else
GST_PLUGINS_BASE_CONF_OPT += --disable-alsa
endif

(again alphabetically).

 Regards,
 Arnout

-- 
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 3/3] .gitignore: remove wrong entries
  2012-02-11  0:04 ` [Buildroot] [PATCH 3/3] .gitignore: remove wrong entries Felipe Contreras
@ 2012-02-11 16:12   ` Arnout Vandecappelle
  2012-02-11 17:27     ` Felipe Contreras
       [not found]   ` <CAAXf6LXsQCsdwswHGa=Ei-+DkB7OyJbKnz7MhatTeEgCk5MMWw@mail.gmail.com>
  1 sibling, 1 reply; 14+ messages in thread
From: Arnout Vandecappelle @ 2012-02-11 16:12 UTC (permalink / raw)
  To: buildroot

On Saturday 11 February 2012 01:04:36 Felipe Contreras wrote:
> These should go into a personal file, like:
> core.excludesfile=/home/felipec/.gitignore
>   .*.sw[nop]
> 
> Some people might prefer to see patches, rejects and other files in the
> output of 'git status' (e.g. me).

 Agreed on most parts, except for the /*.patch.  It was added because git
format-patch creates them.  If they are not ignored, than git add -A won't
work properly anymore.

 While we're talking about gitignore: I have two more things I'd like to
add to it:

/output* (because I often use parallel output dirs within the buildroot
directory, as it gives me access to git).

/defconfig (since it's a generated file).

 What do the others think?


 Regards,
 Arnout


> 
> Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
> ---
>  .gitignore |    7 -------
>  1 files changed, 0 insertions(+), 7 deletions(-)
> 
> diff --git a/.gitignore b/.gitignore
> index 685a9c2..1a7d636 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -5,10 +5,3 @@
>  /.config.old
>  /..config.tmp
>  /.config
> -*.depend
> -*.o
> -/*.patch
> -/*.diff
> -*.orig
> -*.rej
> -*~
> 

-- 
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 2/3] gst-plugins-base: add option to select 'alsa'
  2012-02-11 16:05   ` Arnout Vandecappelle
@ 2012-02-11 16:58     ` Peter Korsgaard
  0 siblings, 0 replies; 14+ messages in thread
From: Peter Korsgaard @ 2012-02-11 16:58 UTC (permalink / raw)
  To: buildroot

>>>>> "Arnout" == Arnout Vandecappelle <arnout@mind.be> writes:

Hi,

 Arnout>  Keep the config options ordered alphabetically, so put it before OGG.

 Arnout>  Also, if the option exists, it should be used in the mk-file.  So add:

 Arnout> ifeq ($(BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_ALSA),y)
 Arnout> GST_PLUGINS_BASE_CONF_OPT += --enable-alsa
 Arnout> else
 Arnout> GST_PLUGINS_BASE_CONF_OPT += --disable-alsa
 Arnout> endif

Indeed, people expect to be able to disable that option and not have the
alsa plugin built.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 3/3] .gitignore: remove wrong entries
  2012-02-11 16:12   ` Arnout Vandecappelle
@ 2012-02-11 17:27     ` Felipe Contreras
  0 siblings, 0 replies; 14+ messages in thread
From: Felipe Contreras @ 2012-02-11 17:27 UTC (permalink / raw)
  To: buildroot

On Sat, Feb 11, 2012 at 6:12 PM, Arnout Vandecappelle <arnout@mind.be> wrote:
> On Saturday 11 February 2012 01:04:36 Felipe Contreras wrote:
>> These should go into a personal file, like:
>> core.excludesfile=/home/felipec/.gitignore
>> ? .*.sw[nop]
>>
>> Some people might prefer to see patches, rejects and other files in the
>> output of 'git status' (e.g. me).
>
> ?Agreed on most parts, except for the /*.patch. ?It was added because git
> format-patch creates them. ?If they are not ignored, than git add -A won't
> work properly anymore.

Well, I usually do 'git status' to see remnants I would like to
remove, including *.patch.

I wonder why you would want to store those patches in the directory.
You could specify a specific output directory. Moreover, 'git
send-email' can generate the patches and send them at the same time...
So you don't need to call 'git format-patch' directly.

> ?While we're talking about gitignore: I have two more things I'd like to
> add to it:
>
> /output* (because I often use parallel output dirs within the buildroot
> directory, as it gives me access to git).
>
> /defconfig (since it's a generated file).
>
> ?What do the others think?

I agree on those above. And actually, I removed *.o by mistake... I
think they should be there.

-- 
Felipe Contreras

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 3/3] .gitignore: remove wrong entries
       [not found]   ` <CAAXf6LXsQCsdwswHGa=Ei-+DkB7OyJbKnz7MhatTeEgCk5MMWw@mail.gmail.com>
@ 2012-02-11 23:01     ` Felipe Contreras
  2012-02-12 11:05       ` Arnout Vandecappelle
                         ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Felipe Contreras @ 2012-02-11 23:01 UTC (permalink / raw)
  To: buildroot

On Sat, Feb 11, 2012 at 10:08 PM, Thomas De Schampheleire
<patrickdepinguin@gmail.com> wrote:
>
> Op 11 feb. 2012 01:05 schreef "Felipe Contreras"
> <felipe.contreras@gmail.com> het volgende:
>
>
>>
>> These should go into a personal file, like:
>> core.excludesfile=/home/felipec/.gitignore
>> ?.*.sw[nop]
>>
>> Some people might prefer to see patches, rejects and other files in the
>> output of 'git status' (e.g. me).
>>
>> Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
>> ---
>> ?.gitignore | ? ?7 -------
>> ?1 files changed, 0 insertions(+), 7 deletions(-)
>>
>> diff --git a/.gitignore b/.gitignore
>> index 685a9c2..1a7d636 100644
>> --- a/.gitignore
>> +++ b/.gitignore
>> @@ -5,10 +5,3 @@
>> ?/.config.old
>> ?/..config.tmp
>> ?/.config
>> -*.depend
>> -*.o
>> -/*.patch
>> -/*.diff
>> -*.orig
>> -*.rej
>> -*~
>
> I personally don't agree. I don't think such ignores can be in a personal
> gitignore file. Such a personal file will be used for all git repositories,
> and you simply cannot state that no single project will use files with e.g.
> a .orig extension. In my opinion this is project specific.

You can have personal per-project ignore files as well.

> I'm neutral on the .patch and .diff change, but I think that .depend, .o,
> .orig, .rej and ~ backups should remain in .gitignore.

*.o and *.depend should be there, as they are the output of the build system.

*.orig and *.reject and *~ should not, as they depend on the tools.

I suspect *~ comes from vim backups, which many people have disabled,
and many people don't even use vi. Say, I have configured my editor to
save backups with *.bak, should that be on the list? No, that's
_personal_. If you want *~, or *.bak, to be ignored, you can put that
in your global gitignore.

*.orig and *.reject are also not particular to busybox, they can be on
the global gitignore. And some people, like me, want to be able to see
then when typing 'git status'. So this is a _personal_ choice.

Cheers.

-- 
Felipe Contreras

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 3/3] .gitignore: remove wrong entries
  2012-02-11 23:01     ` Felipe Contreras
@ 2012-02-12 11:05       ` Arnout Vandecappelle
  2012-02-13 19:40         ` Felipe Contreras
  2012-02-14  9:50       ` Thomas De Schampheleire
       [not found]       ` <CAAXf6LVq7X9-W7syJKUyaz+VyC3+tzGq6A4XMz96ZUqsrR77=w@mail.gmail.com>
  2 siblings, 1 reply; 14+ messages in thread
From: Arnout Vandecappelle @ 2012-02-12 11:05 UTC (permalink / raw)
  To: buildroot

On Sunday 12 February 2012 00:01:51 Felipe Contreras wrote:
> > I'm neutral on the .patch and .diff change, but I think that .depend, .o,
> > .orig, .rej and ~ backups should remain in .gitignore.
> 
> *.o and *.depend should be there, as they are the output of the build system.

 No they're not.  Maybe in a far and distant past, but now (almost) all
output is in the output directory.

 Regards,
 Arnout

-- 
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 3/3] .gitignore: remove wrong entries
  2012-02-12 11:05       ` Arnout Vandecappelle
@ 2012-02-13 19:40         ` Felipe Contreras
  0 siblings, 0 replies; 14+ messages in thread
From: Felipe Contreras @ 2012-02-13 19:40 UTC (permalink / raw)
  To: buildroot

On Sun, Feb 12, 2012 at 1:05 PM, Arnout Vandecappelle <arnout@mind.be> wrote:
> On Sunday 12 February 2012 00:01:51 Felipe Contreras wrote:
>> > I'm neutral on the .patch and .diff change, but I think that .depend, .o,
>> > .orig, .rej and ~ backups should remain in .gitignore.
>>
>> *.o and *.depend should be there, as they are the output of the build system.
>
> ?No they're not. ?Maybe in a far and distant past, but now (almost) all
> output is in the output directory.

Oh, in that case they should be removed then :)

-- 
Felipe Contreras

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 3/3] .gitignore: remove wrong entries
  2012-02-11 23:01     ` Felipe Contreras
  2012-02-12 11:05       ` Arnout Vandecappelle
@ 2012-02-14  9:50       ` Thomas De Schampheleire
       [not found]       ` <CAAXf6LVq7X9-W7syJKUyaz+VyC3+tzGq6A4XMz96ZUqsrR77=w@mail.gmail.com>
  2 siblings, 0 replies; 14+ messages in thread
From: Thomas De Schampheleire @ 2012-02-14  9:50 UTC (permalink / raw)
  To: buildroot

[resend correctly to the list]

Hi,

On Sun, Feb 12, 2012 at 12:01 AM, Felipe Contreras
<felipe.contreras@gmail.com> wrote:
> On Sat, Feb 11, 2012 at 10:08 PM, Thomas De Schampheleire
> <patrickdepinguin@gmail.com> wrote:
>>
>> Op 11 feb. 2012 01:05 schreef "Felipe Contreras"
>> <felipe.contreras@gmail.com> het volgende:
>>
>>
>>>
>>> These should go into a personal file, like:
>>> core.excludesfile=/home/felipec/.gitignore
>>> ?.*.sw[nop]
>>>
>>> Some people might prefer to see patches, rejects and other files in the
>>> output of 'git status' (e.g. me).
>>>
>>> Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
>>> ---
>>> ?.gitignore | ? ?7 -------
>>> ?1 files changed, 0 insertions(+), 7 deletions(-)
>>>
>>> diff --git a/.gitignore b/.gitignore
>>> index 685a9c2..1a7d636 100644
>>> --- a/.gitignore
>>> +++ b/.gitignore
>>> @@ -5,10 +5,3 @@
>>> ?/.config.old
>>> ?/..config.tmp
>>> ?/.config
>>> -*.depend
>>> -*.o
>>> -/*.patch
>>> -/*.diff
>>> -*.orig
>>> -*.rej
>>> -*~
>>
>> I personally don't agree. I don't think such ignores can be in a personal
>> gitignore file. Such a personal file will be used for all git repositories,
>> and you simply cannot state that no single project will use files with e.g.
>> a .orig extension. In my opinion this is project specific.
>
> You can have personal per-project ignore files as well.

Ok, I wasn't aware of that (not using git).

>
>> I'm neutral on the .patch and .diff change, but I think that .depend, .o,
>> .orig, .rej and ~ backups should remain in .gitignore.
>
> *.o and *.depend should be there, as they are the output of the build system.
>
> *.orig and *.reject and *~ should not, as they depend on the tools.
>
> I suspect *~ comes from vim backups, which many people have disabled,
> and many people don't even use vi.

It's difficult to quantify 'many' here. I can just as safely say that
many people do use vi and many people have not disabled ~ backups.

> Say, I have configured my editor to
> save backups with *.bak, should that be on the list? No, that's
> _personal_. If you want *~, or *.bak, to be ignored, you can put that
> in your global gitignore.
>
> *.orig and *.reject are also not particular to busybox, they can be on
> the global gitignore. And some people, like me, want to be able to see
> then when typing 'git status'. So this is a _personal_ choice.

I'm sure you mean buildroot here.

If you are to remove all these entries from the .gitignore file, you
are basically forcing people to create such a personal .gitignore
file. The defaults of the buildroot project are no longer sane.

To be honest, I'm not sure if your use case of seeing all files with
plain 'git status' is a common one, and thus whether it's worth
changing the experience for all other people just for that. In my
opinion, the default should be ok for most people.
Doesn't git provide an option to git-status to see ignored files? I
know Mercurial does. One could argue that it'd be better to submit a
patch to git for such an option.
Alternatively, you are free the gitignore file on a branch in your repository.

Note that this is just my view on this. I have no authority whatsoever.
I'm looking forward to input from other developers...

Best regards,
Thomas

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] [PATCH 3/3] .gitignore: remove wrong entries
       [not found]       ` <CAAXf6LVq7X9-W7syJKUyaz+VyC3+tzGq6A4XMz96ZUqsrR77=w@mail.gmail.com>
@ 2012-02-14 12:37         ` Felipe Contreras
  0 siblings, 0 replies; 14+ messages in thread
From: Felipe Contreras @ 2012-02-14 12:37 UTC (permalink / raw)
  To: buildroot

On Tue, Feb 14, 2012 at 11:37 AM, Thomas De Schampheleire
<patrickdepinguin@gmail.com> wrote:
> Hi,
>
> On Sun, Feb 12, 2012 at 12:01 AM, Felipe Contreras
> <felipe.contreras@gmail.com> wrote:
>> On Sat, Feb 11, 2012 at 10:08 PM, Thomas De Schampheleire
>> <patrickdepinguin@gmail.com> wrote:
>>>
>>> Op 11 feb. 2012 01:05 schreef "Felipe Contreras"
>>> <felipe.contreras@gmail.com> het volgende:
>>>
>>>
>>>>
>>>> These should go into a personal file, like:
>>>> core.excludesfile=/home/felipec/.gitignore
>>>> ?.*.sw[nop]
>>>>
>>>> Some people might prefer to see patches, rejects and other files in the
>>>> output of 'git status' (e.g. me).
>>>>
>>>> Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
>>>> ---
>>>> ?.gitignore | ? ?7 -------
>>>> ?1 files changed, 0 insertions(+), 7 deletions(-)
>>>>
>>>> diff --git a/.gitignore b/.gitignore
>>>> index 685a9c2..1a7d636 100644
>>>> --- a/.gitignore
>>>> +++ b/.gitignore
>>>> @@ -5,10 +5,3 @@
>>>> ?/.config.old
>>>> ?/..config.tmp
>>>> ?/.config
>>>> -*.depend
>>>> -*.o
>>>> -/*.patch
>>>> -/*.diff
>>>> -*.orig
>>>> -*.rej
>>>> -*~
>>>
>>> I personally don't agree. I don't think such ignores can be in a personal
>>> gitignore file. Such a personal file will be used for all git repositories,
>>> and you simply cannot state that no single project will use files with e.g.
>>> a .orig extension. In my opinion this is project specific.
>>
>> You can have personal per-project ignore files as well.
>
> Ok, I wasn't aware of that (not using git).
>
>>
>>> I'm neutral on the .patch and .diff change, but I think that .depend, .o,
>>> .orig, .rej and ~ backups should remain in .gitignore.
>>
>> *.o and *.depend should be there, as they are the output of the build system.
>>
>> *.orig and *.reject and *~ should not, as they depend on the tools.
>>
>> I suspect *~ comes from vim backups, which many people have disabled,
>> and many people don't even use vi.
>
> It's difficult to quantify 'many' here. I can just as safely say that
> many people do use vi and many people have not disabled ~ backups.

It doesn't matter, what matters is that they are *personal*.

>> Say, I have configured my editor to
>> save backups with *.bak, should that be on the list? No, that's
>> _personal_. If you want *~, or *.bak, to be ignored, you can put that
>> in your global gitignore.
>>
>> *.orig and *.reject are also not particular to busybox, they can be on
>> the global gitignore. And some people, like me, want to be able to see
>> then when typing 'git status'. So this is a _personal_ choice.
>
> I'm sure you mean buildroot here.
>
> If you are to remove all these entries from the .gitignore file, you
> are basically forcing people to create such a personal .gitignore
> file. The defaults of the buildroot project are no longer sane.

No, they don't have to.

> To be honest, I'm not sure if your use case of seeing all files with
> plain 'git status' is a common one, and thus whether it's worth
> changing the experience for all other people just for that. In my
> opinion, the default should be ok for most people.

You would be hacking .gitignore for something it wasn't meant to be then:

man gitignore
---
Which file to place a pattern in depends on how the pattern is meant
to be used. Patterns which should be version-controlled and
distributed to other repositories via clone (i.e., files that all
developers will want to ignore) should go into a .gitignore file.
---

Notice the phrase *all developers*.

---
Patterns which are specific to a particular repository but which do
not need to be shared with other related repositories (e.g., auxiliary
files that live inside the repository but are specific to one user's
workflow) should go into the $GIT_DIR/info/exclude file. Patterns
which a user wants git to ignore in all situations (e.g., backup or
temporary files generated by the user's editor of choice) generally go
into a file specified by core.excludesfile in the user's ~/.gitconfig.
---

Notice the phrase *user's*.

If you contribute to more than one project, you should not be pushing
for all those projects to have *~ in the project's .gitignore, or
*.patch, which will affect other users. You should just add it to your
global gitignore file and be done with it.

Cheers.

-- 
Felipe Contreras

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2012-02-14 12:37 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-11  0:04 [Buildroot] [PATCH 0/3] Random updates Felipe Contreras
2012-02-11  0:04 ` [Buildroot] [PATCH 1/3] gst-dsp: add dependency to pkg-config Felipe Contreras
2012-02-11 14:42   ` Peter Korsgaard
2012-02-11  0:04 ` [Buildroot] [PATCH 2/3] gst-plugins-base: add option to select 'alsa' Felipe Contreras
2012-02-11 16:05   ` Arnout Vandecappelle
2012-02-11 16:58     ` Peter Korsgaard
2012-02-11  0:04 ` [Buildroot] [PATCH 3/3] .gitignore: remove wrong entries Felipe Contreras
2012-02-11 16:12   ` Arnout Vandecappelle
2012-02-11 17:27     ` Felipe Contreras
     [not found]   ` <CAAXf6LXsQCsdwswHGa=Ei-+DkB7OyJbKnz7MhatTeEgCk5MMWw@mail.gmail.com>
2012-02-11 23:01     ` Felipe Contreras
2012-02-12 11:05       ` Arnout Vandecappelle
2012-02-13 19:40         ` Felipe Contreras
2012-02-14  9:50       ` Thomas De Schampheleire
     [not found]       ` <CAAXf6LVq7X9-W7syJKUyaz+VyC3+tzGq6A4XMz96ZUqsrR77=w@mail.gmail.com>
2012-02-14 12:37         ` Felipe Contreras

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.