LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 07-07-2013, 12:01 PM   #1
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current
Posts: 733

Rep: Reputation: 64
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?
 
Old 07-07-2013, 05:50 PM   #2
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 836

Rep: Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620
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!
 
Old 07-07-2013, 10:50 PM   #3
mancha
Member
 
Registered: Aug 2012
Posts: 250

Rep: Reputation: Disabled
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
 
2 members found this post helpful.
Old 07-10-2013, 01:02 PM   #4
mancha
Member
 
Registered: Aug 2012
Posts: 250

Rep: Reputation: Disabled
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

Last edited by mancha; 07-10-2013 at 01:14 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu/windows want to update both and keep current config Cichlid Linux - General 3 05-22-2009 10:06 AM
bash; editting config files and replacing lines jamescondron Programming 1 01-07-2009 06:17 PM
search files in the current directory/subdirectory for lines that match particular rajdey1 Linux - Newbie 2 11-24-2008 02:32 PM
Update Samba Config Without Stopping Current Access Astol Linux - Software 2 10-02-2007 01:52 AM
Error with xdm's configure script and missing pkg-config files julz_51 Linux - Software 0 02-22-2006 09:55 AM


All times are GMT -5. The time now is 09:00 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration