diff --git a/xorg-x11-server-libxf86config-dont-write-empty-sections.patch b/xorg-x11-server-libxf86config-dont-write-empty-sections.patch new file mode 100644 index 0000000..e47c3f2 --- /dev/null +++ b/xorg-x11-server-libxf86config-dont-write-empty-sections.patch @@ -0,0 +1,29 @@ +--- hw/xfree86/parser/write.c.orig 2006-07-12 11:15:49.000000000 -0400 ++++ hw/xfree86/parser/write.c 2006-07-12 11:19:59.000000000 -0400 +@@ -108,13 +108,19 @@ + + xf86printLayoutSection (cf, cptr->conf_layout_lst); + +- fprintf (cf, "Section \"Files\"\n"); +- xf86printFileSection (cf, cptr->conf_files); +- fprintf (cf, "EndSection\n\n"); +- +- fprintf (cf, "Section \"Module\"\n"); +- xf86printModuleSection (cf, cptr->conf_modules); +- fprintf (cf, "EndSection\n\n"); ++ if (cptr->conf_files != NULL) ++ { ++ fprintf (cf, "Section \"Files\"\n"); ++ xf86printFileSection (cf, cptr->conf_files); ++ fprintf (cf, "EndSection\n\n"); ++ } ++ ++ if (cptr->conf_modules != NULL) ++ { ++ fprintf (cf, "Section \"Module\"\n"); ++ xf86printModuleSection (cf, cptr->conf_modules); ++ fprintf (cf, "EndSection\n\n"); ++ } + + xf86printVendorSection (cf, cptr->conf_vendor_lst); +