All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 1/1] xserver_xorg-server: Change default to X.org modular server
@ 2015-04-11 17:13 Bernd Kuhls
  2015-04-11 17:58 ` Thomas Petazzoni
  0 siblings, 1 reply; 7+ messages in thread
From: Bernd Kuhls @ 2015-04-11 17:13 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
v2: Change default for all toolchain configurations (Thomas)

 package/x11r7/xserver_xorg-server/Config.in |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/x11r7/xserver_xorg-server/Config.in b/package/x11r7/xserver_xorg-server/Config.in
index 1123f3b..54d7c24 100644
--- a/package/x11r7/xserver_xorg-server/Config.in
+++ b/package/x11r7/xserver_xorg-server/Config.in
@@ -58,7 +58,7 @@ if BR2_PACKAGE_XSERVER_XORG_SERVER
 
 choice
 	prompt "X Window System server type"
-	default BR2_PACKAGE_XSERVER_XORG_SERVER_KDRIVE
+	default BR2_PACKAGE_XSERVER_XORG_SERVER_MODULAR
 	help
 	  Select the X Window System server to use
 
-- 
1.7.10.4

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

* [Buildroot] [PATCH v2 1/1] xserver_xorg-server: Change default to X.org modular server
  2015-04-11 17:13 [Buildroot] [PATCH v2 1/1] xserver_xorg-server: Change default to X.org modular server Bernd Kuhls
@ 2015-04-11 17:58 ` Thomas Petazzoni
  2015-04-11 18:13   ` Yann E. MORIN
  0 siblings, 1 reply; 7+ messages in thread
From: Thomas Petazzoni @ 2015-04-11 17:58 UTC (permalink / raw)
  To: buildroot

Dear Bernd Kuhls,

On Sat, 11 Apr 2015 19:13:56 +0200, Bernd Kuhls wrote:
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
> v2: Change default for all toolchain configurations (Thomas)

Well, it's not actually changing the default for all toolchain
configurations, since the modular X.org variant requires C++ support,
while the KDrive variant does not.

However, probably this doesn't matter. On such a change, I'd like to
have a Acked-by from a few other Buildroot developers. Yann, Arnout,
Gustavo, what do you think?

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

* [Buildroot] [PATCH v2 1/1] xserver_xorg-server: Change default to X.org modular server
  2015-04-11 17:58 ` Thomas Petazzoni
@ 2015-04-11 18:13   ` Yann E. MORIN
  2015-04-11 18:18     ` Thomas Petazzoni
  2015-04-11 18:19     ` Bernd Kuhls
  0 siblings, 2 replies; 7+ messages in thread
From: Yann E. MORIN @ 2015-04-11 18:13 UTC (permalink / raw)
  To: buildroot

Thomas, Bernd, All,

On 2015-04-11 19:58 +0200, Thomas Petazzoni spake thusly:
> On Sat, 11 Apr 2015 19:13:56 +0200, Bernd Kuhls wrote:
> > 
> > Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> > ---
> > v2: Change default for all toolchain configurations (Thomas)
> 
> Well, it's not actually changing the default for all toolchain
> configurations, since the modular X.org variant requires C++ support,
> while the KDrive variant does not.
> 
> However, probably this doesn't matter. On such a change, I'd like to
> have a Acked-by from a few other Buildroot developers. Yann, Arnout,
> Gustavo, what do you think?

I would not mind much doing the switch to the modular Xserver by
default. But that would mean proper dependency propagation (i.e. C++).

However, an alternative solution would be to remove the 'default' clause
altogether from the choice:

  - if C++ is available, the modular Xserver is enabled by default,
    being the first option in the choice;

  - if C++ is not enabled, then KDrive is enabled, being the only option
    in the choice.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

* [Buildroot] [PATCH v2 1/1] xserver_xorg-server: Change default to X.org modular server
  2015-04-11 18:13   ` Yann E. MORIN
@ 2015-04-11 18:18     ` Thomas Petazzoni
  2015-04-11 18:35       ` Yann E. MORIN
  2015-04-11 18:19     ` Bernd Kuhls
  1 sibling, 1 reply; 7+ messages in thread
From: Thomas Petazzoni @ 2015-04-11 18:18 UTC (permalink / raw)
  To: buildroot

Dear Yann E. MORIN,

On Sat, 11 Apr 2015 20:13:30 +0200, Yann E. MORIN wrote:

> I would not mind much doing the switch to the modular Xserver by
> default. But that would mean proper dependency propagation (i.e. C++).

I don't understand what you mean here.

> However, an alternative solution would be to remove the 'default' clause
> altogether from the choice:
> 
>   - if C++ is available, the modular Xserver is enabled by default,
>     being the first option in the choice;
> 
>   - if C++ is not enabled, then KDrive is enabled, being the only option
>     in the choice.

Well, Bernd's patch is doing that in a perfectly fine way. If C++ is
available, the default on modular will work. If C++ is not available,
since the modular option will not be available, the only remaining
option in the choice will be Kdrive, and it will be the selected option.

Am I missing something?

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

* [Buildroot] [PATCH v2 1/1] xserver_xorg-server: Change default to X.org modular server
  2015-04-11 18:13   ` Yann E. MORIN
  2015-04-11 18:18     ` Thomas Petazzoni
@ 2015-04-11 18:19     ` Bernd Kuhls
  1 sibling, 0 replies; 7+ messages in thread
From: Bernd Kuhls @ 2015-04-11 18:19 UTC (permalink / raw)
  To: buildroot

"Yann E. MORIN" <yann.morin.1998@free.fr> wrote in 
news:20150411181330.GL4221 at free.fr:

>   - if C++ is available, the modular Xserver is enabled by default,
>     being the first option in the choice;

Hi,

my original patch proposal included this
http://patchwork.ozlabs.org/patch/400833/

But is was nack?ed by Thomas ;)

Regards, Bernd

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

* [Buildroot] [PATCH v2 1/1] xserver_xorg-server: Change default to X.org modular server
  2015-04-11 18:18     ` Thomas Petazzoni
@ 2015-04-11 18:35       ` Yann E. MORIN
  2015-04-13 23:09         ` Arnout Vandecappelle
  0 siblings, 1 reply; 7+ messages in thread
From: Yann E. MORIN @ 2015-04-11 18:35 UTC (permalink / raw)
  To: buildroot

Thomas, All,

On 2015-04-11 20:18 +0200, Thomas Petazzoni spake thusly:
> Dear Yann E. MORIN,
> 
> On Sat, 11 Apr 2015 20:13:30 +0200, Yann E. MORIN wrote:
> 
> > I would not mind much doing the switch to the modular Xserver by
> > default. But that would mean proper dependency propagation (i.e. C++).
> 
> I don't understand what you mean here.

See below...

> > However, an alternative solution would be to remove the 'default' clause
> > altogether from the choice:
> > 
> >   - if C++ is available, the modular Xserver is enabled by default,
> >     being the first option in the choice;
> > 
> >   - if C++ is not enabled, then KDrive is enabled, being the only option
> >     in the choice.
> 
> Well, Bernd's patch is doing that in a perfectly fine way. If C++ is
> available, the default on modular will work. If C++ is not available,
> since the modular option will not be available, the only remaining
> option in the choice will be Kdrive, and it will be the selected option.
> 
> Am I missing something?

No, not really.

Even though 'default' in Kconfig is not authoritative, and that's not
even a warning to default to an option that has unmet dependencies, I
still find it odd to default to that option.

And since the default is defaulting to the first entry in the choice, it
is no longer needed at all.

At best, we could add a comment summarising the situation.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

* [Buildroot] [PATCH v2 1/1] xserver_xorg-server: Change default to X.org modular server
  2015-04-11 18:35       ` Yann E. MORIN
@ 2015-04-13 23:09         ` Arnout Vandecappelle
  0 siblings, 0 replies; 7+ messages in thread
From: Arnout Vandecappelle @ 2015-04-13 23:09 UTC (permalink / raw)
  To: buildroot

On 11/04/15 20:35, Yann E. MORIN wrote:
> Thomas, All,
> 
> On 2015-04-11 20:18 +0200, Thomas Petazzoni spake thusly:
>> Dear Yann E. MORIN,
>>
>> On Sat, 11 Apr 2015 20:13:30 +0200, Yann E. MORIN wrote:
>>
>>> I would not mind much doing the switch to the modular Xserver by
>>> default. But that would mean proper dependency propagation (i.e. C++).
>>
>> I don't understand what you mean here.
> 
> See below...
> 
>>> However, an alternative solution would be to remove the 'default' clause
>>> altogether from the choice:
>>>
>>>   - if C++ is available, the modular Xserver is enabled by default,
>>>     being the first option in the choice;
>>>
>>>   - if C++ is not enabled, then KDrive is enabled, being the only optionhttp://patchwork.ozlabs.org/patch/400833/
>>>     in the choice.
>>
>> Well, Bernd's patch is doing that in a perfectly fine way. If C++ is
>> available, the default on modular will work. If C++ is not available,
>> since the modular option will not be available, the only remaining
>> option in the choice will be Kdrive, and it will be the selected option.
>>
>> Am I missing something?
> 
> No, not really.
> 
> Even though 'default' in Kconfig is not authoritative, and that's not
> even a warning to default to an option that has unmet dependencies, I
> still find it odd to default to that option.
> 
> And since the default is defaulting to the first entry in the choice, it
> is no longer needed at all.
> 
> At best, we could add a comment summarising the situation.

 Then it's better to go for Bernd's original patch [1] because it explicitly
gives the different defaults for the different situations.

 ThomasP's comment to that was that it is strange that a choice default depends
on the toolchain options. It makes sense to make a default depend on the arch
options, because we consider that something that can't be controlled by the
user, but changing the default based on toolchain options sounds a bit weird.

 But of course, we already have a bunch of those, although it's not as explicit
as in [1]. E.g. the media backend of dvdrw-tools defaults to cdrkit if
kernel-headers >= 3.0, else it defaults to xorriso; gpu-amd-bin-mx51 output
defaults to X11 if X11 is selected, else it defaults to framebuffer.

 So I'm in favour of going back to [1].

 Regards,
 Arnout


[1] http://patchwork.ozlabs.org/patch/400833/


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
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] 7+ messages in thread

end of thread, other threads:[~2015-04-13 23:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-11 17:13 [Buildroot] [PATCH v2 1/1] xserver_xorg-server: Change default to X.org modular server Bernd Kuhls
2015-04-11 17:58 ` Thomas Petazzoni
2015-04-11 18:13   ` Yann E. MORIN
2015-04-11 18:18     ` Thomas Petazzoni
2015-04-11 18:35       ` Yann E. MORIN
2015-04-13 23:09         ` Arnout Vandecappelle
2015-04-11 18:19     ` Bernd Kuhls

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.