Bug 256239 - x11-fonts/dejavu and elsewhere: X.Org X server: "Modules" is not a valid section name.
Summary: x11-fonts/dejavu and elsewhere: X.Org X server: "Modules" is not a valid sect...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Po-Chuan Hsieh
URL: https://cgit.freebsd.org/ports/tree/x...
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-29 10:34 UTC by Graham Perrin
Modified: 2021-05-29 11:02 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (sunpoet)


Attachments
Log of the server failing to start (1.62 KB, text/plain)
2021-05-29 10:34 UTC, Graham Perrin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Graham Perrin freebsd_committer freebsd_triage 2021-05-29 10:34:03 UTC
Created attachment 225352 [details]
Log of the server failing to start

The package message directs users to use a Modules section. 

Attempting to use a Modules section causes the server to not start. 

From the log: 

[   808.068] (==) Using config directory: "/usr/local/etc/X11/xorg.conf.d"
[   808.068] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d"
[   808.068] Parse error on line 1 of section Modules in file /usr/local/etc/X11/xorg.conf.d/modules.conf
	"Modules" is not a valid section name.
[   808.068] (EE) Problem parsing the config file
[   808.068] (EE) Error parsing the config file

After working around the problem: 

----

% pkg query %M dejavu
On install:
Make sure that the freetype module is loaded.  If it is not, add the following
line to the "Modules" section of your X Windows configuration file:

        Load "freetype"

Add the following line to the "Files" section of X Windows configuration file:

        FontPath "/usr/local/share/fonts/dejavu/"

Note: your X Windows configuration file is typically /etc/X11/XF86Config
if you are using XFree86, and /etc/X11/xorg.conf if you are using X.Org.

% grep -i freetype /var/log/Xorg.0.log
% grep -i modules /var/log/Xorg.0.log
[    53.546] (==) ModulePath set to "/usr/local/lib/xorg/modules"
[    53.581] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[    54.177] (II) Loading /usr/local/lib/xorg/modules/drivers/ati_drv.so
[    54.179] (II) Loading /usr/local/lib/xorg/modules/drivers/radeon_drv.so
[    54.542] (II) Loading /usr/local/lib/xorg/modules/drivers/modesetting_drv.so
[    54.544] (II) Loading /usr/local/lib/xorg/modules/drivers/scfb_drv.so
[    54.545] (II) Loading /usr/local/lib/xorg/modules/drivers/vesa_drv.so
[    56.761] (II) Loading /usr/local/lib/xorg/modules/libfb.so
[    60.070] (II) Loading /usr/local/lib/xorg/modules/libglamoregl.so
[    60.662] (II) Loading /usr/local/lib/xorg/modules/input/libinput_drv.so
% grep -i dejavu /var/log/Xorg.0.log
        /usr/local/share/fonts/dejavu/,
% cat /usr/local/etc/X11/xorg.conf.d/modules.conf
# Section "Modules"
#         Load "freetype"
# EndSection
%
Comment 1 Graham Perrin freebsd_committer freebsd_triage 2021-05-29 11:02:11 UTC
Various ports with comparable package messages: 

https://cgit.freebsd.org/ports/tree/deskutils/conkyforecast/files/pkg-message.in?id=2a632625a7f92194499d995da278d68f8f292824#n1

https://cgit.freebsd.org/ports/tree/x11-fonts/andika/files/pkg-message.in?id=c8bde745e6543a05fb45ff1fa9362f4a8949543d#n6

https://cgit.freebsd.org/ports/tree/x11-fonts/charis-compact/files/pkg-message.in?id=69328c920a2ea9ec4716ecd9f565789869ef46e2#n6

https://cgit.freebsd.org/ports/tree/x11-fonts/charis/files/pkg-message.in?id=9cf639cacf4c3ced042bf081ec4081401aa67739#n6

https://cgit.freebsd.org/ports/tree/x11-fonts/doulos-compact/files/pkg-message.in?id=b49d99567f90be4113da01b6a7ef65427d682653#n6

https://cgit.freebsd.org/ports/tree/x11-fonts/doulos/files/pkg-message.in?id=7e1433a0e742a1b4f1e7a629c52ea8aead2a8f36#n6

https://cgit.freebsd.org/ports/tree/x11-fonts/gentium-basic/files/pkg-message.in?id=957fee70b0c1709627c5a4140a4f7f211e8855a2#n11

https://cgit.freebsd.org/ports/tree/x11-fonts/gentium-plus/files/pkg-message.in?id=9183a5e52848eb3861b7404edc8aabba6aa32173#n6

https://cgit.freebsd.org/ports/tree/x11-fonts/paratype/files/pkg-message.in?id=82c18df9e2595ef9ff8732111ce555b2a09d69f7#n6

https://cgit.freebsd.org/ports/tree/x11-fonts/bitstream-vera/pkg-message?id=5e743e5b88e17362f164a77683bf91d627d95332#n5

https://cgit.freebsd.org/ports/tree/x11-fonts/dejavu/pkg-message?id=286d2e1b51819ad4c2af687fd549b99c4893db44#n5

https://cgit.freebsd.org/ports/tree/x11-fonts/font-gost/files/pkg-message.in?id=5d36bd60ed59cca1a99de088ecf598fce149d444#n9

https://cgit.freebsd.org/ports/tree/x11-fonts/mgopen/files/pkg-message.in?id=b75bede010ebc977e2180e5dcf09a8718476a7ee#n3

https://cgit.freebsd.org/ports/tree/x11-fonts/stix-fonts/files/pkg-message.in?id=2b561dc7b213a8f31d38fdaa81c55d89f8ae0a9c#n3

https://cgit.freebsd.org/ports/tree/x11-fonts/ubuntu-font/files/pkg-message.in?id=64909dd688acb5541cba12395e113714858cee9d#n1

https://cgit.freebsd.org/ports/tree/x11-fonts/webfonts/pkg-message?id=0f886f6131e17dc0f8d04f2801c259486800ea96#n6