Bug 127711

Summary: upgrading to xorg-x11-6.7.0-5 regresses xorg.conf
Product: [Fedora] Fedora Reporter: Robert Clark <robert3>
Component: xorg-x11Assignee: Mike A. Harris <mharris>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 2CC: barryn
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-09-13 17:29:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 130887    

Description Robert Clark 2004-07-12 20:28:21 UTC
Upgrading from 6.7.0-2 to 6.7.0-5 caused my xorg.conf file to be
over-written with a copy of my old XF86Config-4 file.

Before the upgrade, I had old XF86Config & XF86Config-4 files plus my
xorg.conf file. Afterward, the files appear to have been moved as follows:

xorg.conf    -> xorg.conf.CT6684
XF86Config   -> XF86Config.bz6688
XF86Config-4 -> XF86Config-4.sO6692 & xorg.conf

There were no XF86Config or XF86Config-4 files remaining, nor any
XF86Config.obsoleted or XF86Config-4.obsoleted files.

Looking at the preinstall script, the only issue I can see is

  if [ -r xorg.conf]; then

should be

  if [ -r xorg.conf ]; then

but I can't see how this could cause what I'm seeing.

Comment 1 Mike A. Harris 2004-07-15 05:11:18 UTC
Ok, definitely sounds like a bug.  I've queue'd this issue as
a MUSTFIX for the next update release.  Thanks for reporting.

Comment 2 Kristian Høgsberg 2004-09-13 17:29:17 UTC
The type you refer to is indeed the cause of the problem

    for configfile in XF86Config-4 XF86Config ; do
      if [ -r $configfile ]; then
          if [ -r xorg.conf]; then
              mv -f $configfile $configfile.obsoleted
          else
              mv -f $configfile xorg.conf
          fi
      fi
    done

Without the space between xorg.conf and ], the test for an already
existing xorg.conf always fails and xorg.conf is overwritten with
XF86Config-4 and XF86Config if they exist.