[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#589512: Bug#504692: dexconf generates invalid files



tag 589512 upstream
found 589512 2:1.9.3.901-1
thanks

Hi Andreas.

Andreas Beckmann <debian@abeckmann.de> (18/07/2010):
> According to xorg.conf(5), Device without Driver is not valid:
> 
>     The Identifier and Driver entries are required in all Device
>     sections.  All other entries are optional.
> 
> But the xorg.conf created by dexconf (I could only get the lenny version
> to actually output an xorg.conf) has a Device section without Driver and
> X starts with this configuration without complaining about the missing
> "required" entry. In squeeze, X starts with a manually generated
> xorg.conf with a Device Section without a Driver line without problems
> (or any errors in Xorg.0.log), too.

Ditto for experimental:
| $ cat /etc/X11/xorg.conf
| Section "Device"
| 	Identifier "foo"
| EndSection

> I don't know whether this liberalization was done by upstream or
> some patch only applied in the Debian version (the autoconfiguration
> stuff?).  Anyway, the documentation needs to be updated (I don't
> expect a rollback).

Upstream:
| $ git describe
| xorg-server-1.9.99.901-94-g6358a60
| $ git grep -C 4 'required in all' -- ./hw/xfree86/doc/man/xorg.conf.man.pre|tail
|  
| --
| hw/xfree86/doc/man/xorg.conf.man.pre-The
| hw/xfree86/doc/man/xorg.conf.man.pre-.B Identifier
| hw/xfree86/doc/man/xorg.conf.man.pre-and
| hw/xfree86/doc/man/xorg.conf.man.pre-.B Driver
| hw/xfree86/doc/man/xorg.conf.man.pre:entries are required in all
| hw/xfree86/doc/man/xorg.conf.man.pre-.B Device
| hw/xfree86/doc/man/xorg.conf.man.pre-sections.  All other entries are optional.
| hw/xfree86/doc/man/xorg.conf.man.pre-.PP
| hw/xfree86/doc/man/xorg.conf.man.pre-The

> As a result programs that parse xorg.conf more strictly (expecting it to
> conform to xorg.conf(5)) break on this change and need to be updated.
> One of these packages is nvidia-xconfig:
> 
>     VALIDATION ERROR: Data incomplete in file /etc/X11/xorg.conf.
>                       Device section "Configured Video Device" must have
>                       Driver line.

(as always?) better trust the code.

KiBi.

Attachment: signature.asc
Description: Digital signature


Reply to: