LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Empty lines in xdm config files after current update (https://www.linuxquestions.org/questions/slackware-14/empty-lines-in-xdm-config-files-after-current-update-4175468781/)

BroX 07-07-2013 12:01 PM

Empty lines in xdm config files after current update
 
Many xdm related config files contain empty lines at the beginning after todays current xdm update. For example
Code:

--- /etc/X11/xdm/Xstartup        2012-05-22 06:25:58.000000000 +0200
+++ /etc/X11/xdm/Xstartup.new        2013-07-07 08:44:13.000000000 +0200
@@ -1,3 +1,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
 #!/bin/sh
 # Register a login (derived from GiveConsole as follows:)
 #

Same is seen in Xresources, Xservers, Xreset and xdm-config.

Any one knows what is up here?

volkerdi 07-07-2013 05:50 PM

I don't know what's up, but patched it with an awk script in the build phase. A real understanding of what's happening would be better, since the upstream source and build script didn't change and this seems to only happen on -current. But this will do for now. Thanks!

mancha 07-07-2013 10:50 PM

After some sleuthing I figured out this undesired behavior under gcc 4.8 is due to gcc's
pre-processor now pre-including stdc-predef.h for the translation unit to make it fully C11-compliant.

This quick patch I put together, while not elegant, solves the problem. I've alerted upstream but
given blank lines should not break anything, I wouldn't count on much effort being invested in this.

--mancha

mancha 07-10-2013 01:02 PM

Removing leading blank lines post-build has the same effect as applying my patch. However, if you go that route, you
probably want to re-order things a bit in xdm.post-install so you don't get extraneous blanks in the backups (e.g.
/usr/doc/xdm-1.1.11/Xsession.orig).

--mancha


All times are GMT -5. The time now is 12:31 AM.