[Bug 256239] x11-fonts/dejavu X.Org X server "Modules" is not a valid section name.

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 29 May 2021 10:34:03 UTC

            Bug ID: 256239
           Summary: x11-fonts/dejavu X.Org X server "Modules" is not a
                    valid section name.
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: sunpoet@FreeBSD.org
          Reporter: grahamperrin@gmail.com
          Assignee: sunpoet@FreeBSD.org
             Flags: maintainer-feedback?(sunpoet@FreeBSD.org)

Created attachment 225352
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=225352&action=edit
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
[   808.068] Parse error on line 1 of section Modules in file
        "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
[    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
% cat /usr/local/etc/X11/xorg.conf.d/modules.conf
# Section "Modules"
#         Load "freetype"
# EndSection

You are receiving this mail because:
You are the assignee for the bug.