rpms/blcr-kmod/devel blcr-kmod.spec,1.5,1.6
by Thorsten Leemhuis
Author: thl
Update of /cvs/free/rpms/blcr-kmod/devel
In directory se02.es.rpmfusion.net:/tmp/cvs-serv22754
Modified Files:
blcr-kmod.spec
Log Message:
* Sun Apr 05 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 0.8.0-5.2
- rebuild for new kernels
Index: blcr-kmod.spec
===================================================================
RCS file: /cvs/free/rpms/blcr-kmod/devel/blcr-kmod.spec,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- blcr-kmod.spec 29 Mar 2009 12:45:54 -0000 1.5
+++ blcr-kmod.spec 5 Apr 2009 16:11:13 -0000 1.6
@@ -3,11 +3,11 @@
# "buildforkernels newest" macro for just that build; immediately after
# queuing that build enable the macro again for subsequent builds; that way
# a new akmod package will only get build when a new one is actually needed
-#%define buildforkernels newest
+#define buildforkernels newest
Name: blcr-kmod
Version: 0.8.0
-Release: 5%{?dist}.1
+Release: 5%{?dist}.2
Summary: Kernel module (kmod) for Berkeley Lab Checkpoint/Restart for Linux
%define distname blcr-%{version}
@@ -83,6 +83,9 @@
rm -rf $RPM_BUILD_ROOT
%changelog
+* Sun Apr 05 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 0.8.0-5.2
+- rebuild for new kernels
+
* Sun Mar 29 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 0.8.0-5.1
- rebuild for new F11 features
15 years, 7 months
rpms/rt2860-kmod/devel rt2860-kmod.spec,1.31,1.32
by Thorsten Leemhuis
Author: thl
Update of /cvs/free/rpms/rt2860-kmod/devel
In directory se02.es.rpmfusion.net:/tmp/cvs-serv22560
Modified Files:
rt2860-kmod.spec
Log Message:
* Sun Apr 05 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 1.8.0.0-4.7
- rebuild for new kernels
Index: rt2860-kmod.spec
===================================================================
RCS file: /cvs/free/rpms/rt2860-kmod/devel/rt2860-kmod.spec,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- rt2860-kmod.spec 29 Mar 2009 14:02:35 -0000 1.31
+++ rt2860-kmod.spec 5 Apr 2009 16:09:27 -0000 1.32
@@ -3,11 +3,11 @@
# "buildforkernels newest" macro for just that build; immediately after
# queuing that build enable the macro again for subsequent builds; that way
# a new akmod package will only get build when a new one is actually needed
-%define buildforkernels newest
+#define buildforkernels newest
Name: rt2860-kmod
Version: 1.8.0.0
-Release: 4%{?dist}.6
+Release: 4%{?dist}.7
Summary: Kernel module for RaLink 802.11 wireless devices rt2760/rt2790/rt2860/rt2890
Group: System Environment/Kernel
@@ -78,6 +78,9 @@
rm -rf $RPM_BUILD_ROOT
%changelog
+* Sun Apr 05 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 1.8.0.0-4.7
+- rebuild for new kernels
+
* Sun Mar 29 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 1.8.0.0-4.6
- rebuild for new F11 features
15 years, 7 months
rpms/dvbcut/F-9 dvbcut.spec,1.3,1.4
by David Timms
Author: dtimms
Update of /cvs/free/rpms/dvbcut/F-9
In directory se02.es.rpmfusion.net:/tmp/cvs-serv18417/F-9
Modified Files:
dvbcut.spec
Log Message:
mod QTDIR configure.in patch to match newer configure.in revision
Index: dvbcut.spec
===================================================================
RCS file: /cvs/free/rpms/dvbcut/F-9/dvbcut.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- dvbcut.spec 3 Apr 2009 12:56:10 -0000 1.3
+++ dvbcut.spec 5 Apr 2009 15:12:30 -0000 1.4
@@ -1,8 +1,13 @@
%define svnrev 157
+%if 0%{?fedora} > 6
+ %define qt3 qt3
+%else
+ %define qt3 qt
+%endif
Name: dvbcut
Version: 0.6.0
-Release: 5.svn%{svnrev}%{?dist}
+Release: 7.svn%{svnrev}%{?dist}
Summary: Clip and convert DVB transport streams to MPEG2 program streams
Group: Applications/Multimedia
@@ -24,7 +29,7 @@
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: autoconf
-BuildRequires: qt-devel >= 3 qt-devel < 1:4
+BuildRequires: %{qt3}-devel
BuildRequires: libao-devel
BuildRequires: a52dec-devel
BuildRequires: libmad-devel
@@ -50,7 +55,8 @@
# Fix QTDIR libs in configure
-sed -i 's,-L$QTDIR/$mr_libdirname,-L$QTDIR/lib,' configure.in
+sed -i 's,$QTDIR/$mr_libdirname,$QTDIR/lib,' configure.in
+
# Avoid stripping binaries
sed -i 's,$(STRIP) $(topdir)/bin/dvbcut$(EXEEXT),,' src/Makefile.in
@@ -119,6 +125,12 @@
%changelog
+* Mon Apr 6 2009 David Timms <iinet.net.au at dtimms> - 0.6.0-7.svn157
+- mod QTDIR configure.in patch to match newer configure.in revision
+
+* Sat Apr 4 2009 David Timms <iinet.net.au at dtimms> - 0.6.0-6.svn157
+- use distro conditional to determine name of BR qt3-devel
+
* Fri Apr 3 2009 David Timms <iinet.net.au at dtimms> - 0.6.0-5.svn157
- use another BR qt3 variant to work on both fedora and epel
15 years, 7 months
rpms/dvbcut/F-10 dvbcut.spec,1.3,1.4
by David Timms
Author: dtimms
Update of /cvs/free/rpms/dvbcut/F-10
In directory se02.es.rpmfusion.net:/tmp/cvs-serv18417/F-10
Modified Files:
dvbcut.spec
Log Message:
mod QTDIR configure.in patch to match newer configure.in revision
Index: dvbcut.spec
===================================================================
RCS file: /cvs/free/rpms/dvbcut/F-10/dvbcut.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- dvbcut.spec 3 Apr 2009 12:56:10 -0000 1.3
+++ dvbcut.spec 5 Apr 2009 15:12:29 -0000 1.4
@@ -1,8 +1,13 @@
%define svnrev 157
+%if 0%{?fedora} > 6
+ %define qt3 qt3
+%else
+ %define qt3 qt
+%endif
Name: dvbcut
Version: 0.6.0
-Release: 5.svn%{svnrev}%{?dist}
+Release: 7.svn%{svnrev}%{?dist}
Summary: Clip and convert DVB transport streams to MPEG2 program streams
Group: Applications/Multimedia
@@ -24,7 +29,7 @@
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: autoconf
-BuildRequires: qt-devel >= 3 qt-devel < 1:4
+BuildRequires: %{qt3}-devel
BuildRequires: libao-devel
BuildRequires: a52dec-devel
BuildRequires: libmad-devel
@@ -50,7 +55,8 @@
# Fix QTDIR libs in configure
-sed -i 's,-L$QTDIR/$mr_libdirname,-L$QTDIR/lib,' configure.in
+sed -i 's,$QTDIR/$mr_libdirname,$QTDIR/lib,' configure.in
+
# Avoid stripping binaries
sed -i 's,$(STRIP) $(topdir)/bin/dvbcut$(EXEEXT),,' src/Makefile.in
@@ -119,6 +125,12 @@
%changelog
+* Mon Apr 6 2009 David Timms <iinet.net.au at dtimms> - 0.6.0-7.svn157
+- mod QTDIR configure.in patch to match newer configure.in revision
+
+* Sat Apr 4 2009 David Timms <iinet.net.au at dtimms> - 0.6.0-6.svn157
+- use distro conditional to determine name of BR qt3-devel
+
* Fri Apr 3 2009 David Timms <iinet.net.au at dtimms> - 0.6.0-5.svn157
- use another BR qt3 variant to work on both fedora and epel
15 years, 7 months
rpms/dvbcut/EL-5 dvbcut.spec,1.5,1.6
by David Timms
Author: dtimms
Update of /cvs/free/rpms/dvbcut/EL-5
In directory se02.es.rpmfusion.net:/tmp/cvs-serv18417/EL-5
Modified Files:
dvbcut.spec
Log Message:
mod QTDIR configure.in patch to match newer configure.in revision
Index: dvbcut.spec
===================================================================
RCS file: /cvs/free/rpms/dvbcut/EL-5/dvbcut.spec,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- dvbcut.spec 3 Apr 2009 12:36:31 -0000 1.5
+++ dvbcut.spec 5 Apr 2009 15:12:29 -0000 1.6
@@ -1,8 +1,13 @@
%define svnrev 157
+%if 0%{?fedora} > 6
+ %define qt3 qt3
+%else
+ %define qt3 qt
+%endif
Name: dvbcut
Version: 0.6.0
-Release: 5.svn%{svnrev}%{?dist}
+Release: 7.svn%{svnrev}%{?dist}
Summary: Clip and convert DVB transport streams to MPEG2 program streams
Group: Applications/Multimedia
@@ -24,7 +29,7 @@
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: autoconf
-BuildRequires: qt-devel >= 3 qt-devel < 1:4
+BuildRequires: %{qt3}-devel
BuildRequires: libao-devel
BuildRequires: a52dec-devel
BuildRequires: libmad-devel
@@ -50,7 +55,8 @@
# Fix QTDIR libs in configure
-sed -i 's,-L$QTDIR/$mr_libdirname,-L$QTDIR/lib,' configure.in
+sed -i 's,$QTDIR/$mr_libdirname,$QTDIR/lib,' configure.in
+
# Avoid stripping binaries
sed -i 's,$(STRIP) $(topdir)/bin/dvbcut$(EXEEXT),,' src/Makefile.in
@@ -119,6 +125,12 @@
%changelog
+* Mon Apr 6 2009 David Timms <iinet.net.au at dtimms> - 0.6.0-7.svn157
+- mod QTDIR configure.in patch to match newer configure.in revision
+
+* Sat Apr 4 2009 David Timms <iinet.net.au at dtimms> - 0.6.0-6.svn157
+- use distro conditional to determine name of BR qt3-devel
+
* Fri Apr 3 2009 David Timms <iinet.net.au at dtimms> - 0.6.0-5.svn157
- use another BR qt3 variant to work on both fedora and epel
15 years, 7 months
rpms/dvbcut/devel dvbcut.spec,1.6,1.7
by David Timms
Author: dtimms
Update of /cvs/free/rpms/dvbcut/devel
In directory se02.es.rpmfusion.net:/tmp/cvs-serv18417/devel
Modified Files:
dvbcut.spec
Log Message:
mod QTDIR configure.in patch to match newer configure.in revision
Index: dvbcut.spec
===================================================================
RCS file: /cvs/free/rpms/dvbcut/devel/dvbcut.spec,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- dvbcut.spec 3 Apr 2009 12:56:11 -0000 1.6
+++ dvbcut.spec 5 Apr 2009 15:12:30 -0000 1.7
@@ -1,8 +1,13 @@
%define svnrev 157
+%if 0%{?fedora} > 6
+ %define qt3 qt3
+%else
+ %define qt3 qt
+%endif
Name: dvbcut
Version: 0.6.0
-Release: 5.svn%{svnrev}%{?dist}
+Release: 7.svn%{svnrev}%{?dist}
Summary: Clip and convert DVB transport streams to MPEG2 program streams
Group: Applications/Multimedia
@@ -24,7 +29,7 @@
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: autoconf
-BuildRequires: qt-devel >= 3 qt-devel < 1:4
+BuildRequires: %{qt3}-devel
BuildRequires: libao-devel
BuildRequires: a52dec-devel
BuildRequires: libmad-devel
@@ -50,7 +55,8 @@
# Fix QTDIR libs in configure
-sed -i 's,-L$QTDIR/$mr_libdirname,-L$QTDIR/lib,' configure.in
+sed -i 's,$QTDIR/$mr_libdirname,$QTDIR/lib,' configure.in
+
# Avoid stripping binaries
sed -i 's,$(STRIP) $(topdir)/bin/dvbcut$(EXEEXT),,' src/Makefile.in
@@ -119,6 +125,12 @@
%changelog
+* Mon Apr 6 2009 David Timms <iinet.net.au at dtimms> - 0.6.0-7.svn157
+- mod QTDIR configure.in patch to match newer configure.in revision
+
+* Sat Apr 4 2009 David Timms <iinet.net.au at dtimms> - 0.6.0-6.svn157
+- use distro conditional to determine name of BR qt3-devel
+
* Fri Apr 3 2009 David Timms <iinet.net.au at dtimms> - 0.6.0-5.svn157
- use another BR qt3 variant to work on both fedora and epel
15 years, 7 months
rpms/motion/devel ffmpeg-0.5.patch,NONE,1.1 motion.spec,1.2,1.3
by Steven Moix
Author: moixs
Update of /cvs/free/rpms/motion/devel
In directory se02.es.rpmfusion.net:/tmp/cvs-serv3381
Modified Files:
motion.spec
Added Files:
ffmpeg-0.5.patch
Log Message:
* Sun Apr 05 2009 Steven Moix <steven.moix(a)axianet.ch> - 3.2.11-5
- Patch and rebuild for ffmpeg 0.5
ffmpeg-0.5.patch:
--- NEW FILE ffmpeg-0.5.patch ---
--- ffmpeg.c-original 2008-09-22 01:20:58.000000000 +0200
+++ ffmpeg.c 2009-04-05 11:46:52.000000000 +0200
@@ -164,7 +164,7 @@
return write(fd, buf, size);
}
-static offset_t file_seek(URLContext *h, offset_t pos, int whence)
+static int64_t file_seek(URLContext *h, int64_t pos, int whence)
{
int fd = (size_t)h->priv_data;
return lseek(fd, pos, whence);
Index: motion.spec
===================================================================
RCS file: /cvs/free/rpms/motion/devel/motion.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- motion.spec 29 Mar 2009 13:47:18 -0000 1.2
+++ motion.spec 5 Apr 2009 10:22:13 -0000 1.3
@@ -1,6 +1,6 @@
Name: motion
Version: 3.2.11
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: A motion detection system
Group: Applications/Multimedia
@@ -9,10 +9,10 @@
Source0: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source1: motion-initscript
Patch0: ffmpeg-detection.patch
+Patch1: ffmpeg-0.5.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libjpeg-devel ffmpeg-devel zlib-devel
-#Requires: ffmpeg
Requires(post): chkconfig
Requires(preun): chkconfig initscripts
Requires(postun): initscripts
@@ -29,6 +29,8 @@
%setup -q
#ffmpeg detection patch in version 3.2.11. This is an upstream patch.
%patch0 -p0
+#ffmpeg 0.5 patch for rawhide/F11
+%patch1 -p0
%build
%configure --sysconfdir=%{_sysconfdir}/%{name} --without-optimizecpu --with-ffmpeg --without-mysql --without-pgsql
@@ -94,6 +96,9 @@
%attr(0755,root,root) %{_initrddir}/%{name}
%changelog
+* Sun Apr 05 2009 Steven Moix <steven.moix(a)axianet.ch> - 3.2.11-5
+- Patch and rebuild for ffmpeg 0.5
+
* Sun Mar 29 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 3.2.11-4
- rebuild for new F11 features
15 years, 7 months
rpms/xorg-x11-drv-fglrx/F-9 fglrx-config-display, 1.3, 1.4 xorg-x11-drv-fglrx.spec, 1.17, 1.18
by Stewart Adam
Author: firewing
Update of /cvs/nonfree/rpms/xorg-x11-drv-fglrx/F-9
In directory se02.es.rpmfusion.net:/tmp/cvs-serv2187/F-9
Modified Files:
fglrx-config-display xorg-x11-drv-fglrx.spec
Log Message:
* Sat Apr 4 2009 Stewart Adam <s.adam at diffingo.com> - 9.3-2
- Only disable ldconfig when driver is already enabled, always configure
xorg.conf even if driver is already enabled
Index: fglrx-config-display
===================================================================
RCS file: /cvs/nonfree/rpms/xorg-x11-drv-fglrx/F-9/fglrx-config-display,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- fglrx-config-display 30 Dec 2008 22:41:05 -0000 1.3
+++ fglrx-config-display 4 Apr 2009 23:52:19 -0000 1.4
@@ -18,7 +18,8 @@
# Copyright 2006, 2007 Van Assche Alphonse
# Copyright 2006, 2007 Stewart Adam
-import string
+# internal revision: 2.0
+
import os
import sys
@@ -31,139 +32,142 @@
from livnaConfigDisplay.ConfigFile import ConfigFile
class fglrxConfigDisplay(GlxConfig):
- def __init__(self):
- GlxConfig.__init__(self)
- self.vendor = 'fglrx'
- self.majorVendor = Utils.getMajorVendor()
- if self.vendor != Utils.getVendor():
- print _('The initscript and installed driver vendors do not match!')
- sys.exit(1)
- self.ldconf = LD_CONF_FILE % (self.vendor)
- try:
- self.doAllBackups()
- except livnaConfigDisplayError, (bkupErrMsg):
- print bkupErrMsg
- sys.exit(1)
- self.xconfig, self.xconfigpath = self.loadXconfig()
- self.config = ConfigFile(STATUS_FILE)
- self.TOP_MOD_DIR = self.getModTopDir()
-
- # finally, run arg checks.
- self.run()
-
- def enable(self, isAutoConfigure=True):
- # Backup the file before make any change.
- currentDriver = self.getDriver()
- # Already enabled?
- if os.path.exists(self.ldconf):
- print _('Driver already enabled.')
- return
-
- # Annoying bit because newer fglrx drivers require a Screen section
- if len(self.xconfig.layout) == 0: # no layouts
- layout = xf86config.XF86ConfLayout()
- self.xconfig.layout.insert(layout)
- layout.identifier = "Default Layout"
- else:
- layout = self.xconfig.layout[0]
- if len(layout.adjacencies) == 0: # no layout adjacencies
- layout.adjacencies.insert(xf86config.XF86ConfAdjacency())
- layout.adjacencies[0].screen = "Screen0"
- if len(self.xconfig.screen) == 0: # no screens
- screen = xf86config.XF86ConfScreen()
- self.xconfig.screen.insert(screen)
- else:
- screen = self.xconfig.screen[0]
- screen.device = "Videocard0"
- screen.defaultdepth = 24
- screen.identifier = "Screen0"
- self.xconfig.device[0].identifier = 'Videocard0'
-
- # fglrx modules
- self.addModulePath("/extensions/fglrx", self.TOP_MOD_DIR)
- # 'remembering' magic's in here.
- self.config.setOldDriver(currentDriver)
- #currentDriver = self.config.getOldDriver()
- self.toggleDriver(currentDriver, self.majorVendor)
- self.addOption(self.majorVendor,"OpenGLOverlay" ,"off")
- self.addOption(self.majorVendor,"VideoOverlay" ,"on")
- if self.xconfig.modules:
- for module in ["glx", "dri", "extmod"]:
- if self.onlyHasModule(module):
- self.removeModule(module)
- break
- else:
- self.addModule(module)
- if os.uname()[4] == "x86_64" :
- x86_64Content = "/usr/lib/fglrx\n/usr/lib64/fglrx\n"
- Utils.writeFile(self.ldconf, x86_64Content)
+ """Autoconfiguration class for fglrx"""
+ def __init__(self):
+ """Initializes the internal variables & objects"""
+ GlxConfig.__init__(self)
+ self.vendor = 'fglrx'
+ self.majorVendor = Utils.getMajorVendor()
+ if self.vendor != Utils.getVendor():
+ print _('The initscript and installed driver vendors do not match!')
+ sys.exit(1)
+ self.ldconf = LD_CONF_FILE % (self.vendor)
+ try:
+ self.doAllBackups()
+ except livnaConfigDisplayError, (bkupErrMsg):
+ print bkupErrMsg
+ sys.exit(1)
+ self.xconfig, self.xconfigpath = self.loadXconfig()
+ self.config = ConfigFile(STATUS_FILE)
+ self.TOP_MOD_DIR = self.getModTopDir()
+
+ def enable(self):
+ """Enable the driver"""
+ # Backup the file before make any change.
+ currentDriver = self.getDriver()
+
+ # Annoying bit because newer fglrx drivers require a Screen section
+ if len(self.xconfig.layout) == 0: # no layouts
+ layout = xf86config.XF86ConfLayout()
+ self.xconfig.layout.insert(layout)
+ layout.identifier = "Default Layout"
+ else:
+ layout = self.xconfig.layout[0]
+ if len(layout.adjacencies) == 0: # no layout adjacencies
+ layout.adjacencies.insert(xf86config.XF86ConfAdjacency())
+ layout.adjacencies[0].screen = "Screen0"
+ if len(self.xconfig.screen) == 0: # no screens
+ screen = xf86config.XF86ConfScreen()
+ self.xconfig.screen.insert(screen)
+ else:
+ screen = self.xconfig.screen[0]
+ screen.device = "Videocard0"
+ screen.defaultdepth = 24
+ screen.identifier = "Screen0"
+ self.xconfig.device[0].identifier = 'Videocard0'
+
+ # fglrx modules
+ self.addModulePath("/extensions/fglrx", self.TOP_MOD_DIR)
+ # 'remembering' magic's in here. Do not allow setting old driver to fglrx.
+ if currentDriver != self.majorVendor:
+ self.config.setOldDriver(currentDriver)
+ self.toggleDriver(currentDriver, self.majorVendor)
+ self.addOption(self.majorVendor,"OpenGLOverlay" ,"off")
+ self.addOption(self.majorVendor,"VideoOverlay" ,"on")
+ if self.xconfig.modules:
+ for module in ["glx", "dri", "extmod"]:
+ if self.onlyHasModule(module):
+ self.removeModule(module)
+ break
else:
- Utils.writeFile(self.ldconf,"/usr/lib/fglrx\n")
- print _('Running ldconfig, this could take some time...')
- Utils.runLdconfig()
- Utils.writeXorgConf(self.xconfig, self.xconfigpath)
- self.restoreconf()
-
- def disable(self, isAutoConfigure=True):
- self.removeModulePath("/extensions/fglrx", self.TOP_MOD_DIR)
- # Check if it's already disabled
- if not os.path.exists(self.ldconf):
- print _('Driver already disabled.')
- return
- # We have to save the status file so it can be restored later
- self.storeconf()
- # Backup the file before make any change.
- prevDriver = self.config.getOldDriver()
- if prevDriver == self.vendor:
- print _('Will not allow reverting from driver \'%s\' to \'%s\'.') % (self.vendor, self.vendor)
- print _('Using the \'radeon\' driver instead.')
- prevDriver = "radeon"
- self.config.setOldDriver("radeon")
- self.removeOption(self.majorVendor,"OpenGLOverlay")
- self.removeOption(self.majorVendor,"VideoOverlay")
- self.toggleDriver(self.majorVendor, prevDriver)
- # Let's give control back to the naitive DRI
- Utils.removeFile(self.ldconf)
- print _('Running ldconfig, this could take some time...')
- Utils.runLdconfig()
- Utils.writeXorgConf(self.xconfig, self.xconfigpath)
- # And return to the Fedora default.
- self.enableAiglx()
-
- def printUsage(self):
- print _("Usage: %s-config-display enable | disable ") % self.vendor
-
- def run(self):
- # Check number of arguments
- # arg = action
- if len(sys.argv) == 2:
- arg = sys.argv[1]
+ self.addModule(module)
+ # if not already enabled
+ if not os.path.exists(self.ldconf):
+ if os.uname()[4] == "x86_64" :
+ x86_64Content = "/usr/lib/fglrx\n/usr/lib64/fglrx\n"
+ Utils.writeFile(self.ldconf, x86_64Content)
+ else:
+ Utils.writeFile(self.ldconf,"/usr/lib/fglrx\n")
+ print _('Running ldconfig, this could take some time...')
+ Utils.runLdconfig()
+ Utils.writeXorgConf(self.xconfig, self.xconfigpath)
+ self.restoreconf()
+
+ def disable(self):
+ """Disables the driver"""
+ self.removeModulePath("/extensions/fglrx", self.TOP_MOD_DIR)
+ # Check if it's already disabled
+ if not os.path.exists(self.ldconf):
+ print _('Driver already disabled.')
+ return
+ # We have to save the status file so it can be restored later
+ self.storeconf()
+ # Backup the file before make any change.
+ prevDriver = self.config.getOldDriver()
+ if prevDriver == self.vendor:
+ print _('Will not allow reverting from driver \'%s\' to \'%s\'.') % (self.vendor, self.vendor)
+ print _('Using the \'radeon\' driver instead.')
+ prevDriver = "radeon"
+ self.config.setOldDriver("radeon")
+ self.removeOption(self.majorVendor,"OpenGLOverlay")
+ self.removeOption(self.majorVendor,"VideoOverlay")
+ self.toggleDriver(self.majorVendor, prevDriver)
+ # Let's give control back to the naitive DRI
+ Utils.removeFile(self.ldconf)
+ print _('Running ldconfig, this could take some time...')
+ Utils.runLdconfig()
+ Utils.writeXorgConf(self.xconfig, self.xconfigpath)
+ # And return to the Fedora default.
+ self.enableAiglx()
+
+ def printUsage(self):
+ """Displays usage information"""
+ print _("Usage: %s-config-display enable | disable ") % self.vendor
+
+ def run(self):
+ """Runs the appropriate autoconfiguation function"""
+ # Check number of arguments
+ # arg = action
+ if len(sys.argv) > 2:
+ print _('Wrong number of arguments')
+ self.printUsage()
+ sys.exit(1)
+ # Check value of argument
+ arg = sys.argv[1]
+ if not arg.lower() in ['enable', 'disable']:
+ print _('Invalid command: %s') % arg.lower()
+ self.printUsage()
+ sys.exit(1)
+ try:
+ if arg == "enable":
+ if self.getActive():
+ self.enable()
else:
- print _('Wrong number of arguments')
- self.printUsage()
- sys.exit(1)
- # Check value of argument
- if arg.lower() != "enable" and arg.lower() != "disable":
- print _('Invalid command: %s') % arg.lower()
- self.printUsage()
- sys.exit(1)
- try:
- if arg == "enable":
- if self.getActive():
- self.enable()
- else:
- print _('livna-config-display\'s `active\' state is False - Exiting')
- elif arg == "disable":
- if self.getActive():
- self.disable()
- except:
- raise # Uncomment me to show the real error
- print MSG_CONF_APPLY_ERROR
- try:
- self.doAllRestores()
- except livnaConfigDisplayError, (bkupErrMsg):
- #raise # Uncomment me to show the real error
- print MSG_CONF_RESTORE_ERROR + '\n' + MSG_TRACEBACK % (str(errMsg)) + '\n\n' + str(bkupErrMsg)
- sys.exit(1)
+ print _('livna-config-display\'s `active\' state is False - Exiting')
+ elif arg == "disable":
+ if self.getActive():
+ self.disable()
+ except error, errMsg:
+ #raise # Uncomment me to show the real error
+ print MSG_CONF_APPLY_ERROR
+ try:
+ self.doAllRestores()
+ except livnaConfigDisplayError, (bkupErrMsg):
+ #raise # Uncomment me to show the real error
+ print MSG_CONF_RESTORE_ERROR + '\n' + MSG_TRACEBACK % (str(errMsg)) + '\n\n' + str(bkupErrMsg)
+ sys.exit(1)
+
+if __name__ == '__main__':
+ app = fglrxConfigDisplay()
+ app.run()
-app = fglrxConfigDisplay()
Index: xorg-x11-drv-fglrx.spec
===================================================================
RCS file: /cvs/nonfree/rpms/xorg-x11-drv-fglrx/F-9/xorg-x11-drv-fglrx.spec,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- xorg-x11-drv-fglrx.spec 28 Mar 2009 04:21:14 -0000 1.17
+++ xorg-x11-drv-fglrx.spec 4 Apr 2009 23:52:19 -0000 1.18
@@ -8,7 +8,7 @@
Name: xorg-x11-drv-fglrx
Version: 9.3
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: AMD's proprietary driver for ATI graphic cards
Group: User Interface/X Hardware Support
License: Redistributable, no modification permitted
@@ -301,6 +301,10 @@
%{_includedir}/X11/extensions/*.h
%changelog
+* Sat Apr 4 2009 Stewart Adam <s.adam at diffingo.com> - 9.3-2
+- Only disable ldconfig when driver is already enabled, always configure
+ xorg.conf even if driver is already enabled
+
* Fri Mar 27 2009 Stewart Adam <s.adam at diffingo.com> - 9.3-1
- Update to Catalyst 9.3
15 years, 7 months
rpms/xorg-x11-drv-fglrx/F-10 fglrx-config-display, 1.3, 1.4 xorg-x11-drv-fglrx.spec, 1.19, 1.20
by Stewart Adam
Author: firewing
Update of /cvs/nonfree/rpms/xorg-x11-drv-fglrx/F-10
In directory se02.es.rpmfusion.net:/tmp/cvs-serv2187/F-10
Modified Files:
fglrx-config-display xorg-x11-drv-fglrx.spec
Log Message:
* Sat Apr 4 2009 Stewart Adam <s.adam at diffingo.com> - 9.3-2
- Only disable ldconfig when driver is already enabled, always configure
xorg.conf even if driver is already enabled
Index: fglrx-config-display
===================================================================
RCS file: /cvs/nonfree/rpms/xorg-x11-drv-fglrx/F-10/fglrx-config-display,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- fglrx-config-display 30 Dec 2008 22:41:04 -0000 1.3
+++ fglrx-config-display 4 Apr 2009 23:52:18 -0000 1.4
@@ -18,7 +18,8 @@
# Copyright 2006, 2007 Van Assche Alphonse
# Copyright 2006, 2007 Stewart Adam
-import string
+# internal revision: 2.0
+
import os
import sys
@@ -31,139 +32,142 @@
from livnaConfigDisplay.ConfigFile import ConfigFile
class fglrxConfigDisplay(GlxConfig):
- def __init__(self):
- GlxConfig.__init__(self)
- self.vendor = 'fglrx'
- self.majorVendor = Utils.getMajorVendor()
- if self.vendor != Utils.getVendor():
- print _('The initscript and installed driver vendors do not match!')
- sys.exit(1)
- self.ldconf = LD_CONF_FILE % (self.vendor)
- try:
- self.doAllBackups()
- except livnaConfigDisplayError, (bkupErrMsg):
- print bkupErrMsg
- sys.exit(1)
- self.xconfig, self.xconfigpath = self.loadXconfig()
- self.config = ConfigFile(STATUS_FILE)
- self.TOP_MOD_DIR = self.getModTopDir()
-
- # finally, run arg checks.
- self.run()
-
- def enable(self, isAutoConfigure=True):
- # Backup the file before make any change.
- currentDriver = self.getDriver()
- # Already enabled?
- if os.path.exists(self.ldconf):
- print _('Driver already enabled.')
- return
-
- # Annoying bit because newer fglrx drivers require a Screen section
- if len(self.xconfig.layout) == 0: # no layouts
- layout = xf86config.XF86ConfLayout()
- self.xconfig.layout.insert(layout)
- layout.identifier = "Default Layout"
- else:
- layout = self.xconfig.layout[0]
- if len(layout.adjacencies) == 0: # no layout adjacencies
- layout.adjacencies.insert(xf86config.XF86ConfAdjacency())
- layout.adjacencies[0].screen = "Screen0"
- if len(self.xconfig.screen) == 0: # no screens
- screen = xf86config.XF86ConfScreen()
- self.xconfig.screen.insert(screen)
- else:
- screen = self.xconfig.screen[0]
- screen.device = "Videocard0"
- screen.defaultdepth = 24
- screen.identifier = "Screen0"
- self.xconfig.device[0].identifier = 'Videocard0'
-
- # fglrx modules
- self.addModulePath("/extensions/fglrx", self.TOP_MOD_DIR)
- # 'remembering' magic's in here.
- self.config.setOldDriver(currentDriver)
- #currentDriver = self.config.getOldDriver()
- self.toggleDriver(currentDriver, self.majorVendor)
- self.addOption(self.majorVendor,"OpenGLOverlay" ,"off")
- self.addOption(self.majorVendor,"VideoOverlay" ,"on")
- if self.xconfig.modules:
- for module in ["glx", "dri", "extmod"]:
- if self.onlyHasModule(module):
- self.removeModule(module)
- break
- else:
- self.addModule(module)
- if os.uname()[4] == "x86_64" :
- x86_64Content = "/usr/lib/fglrx\n/usr/lib64/fglrx\n"
- Utils.writeFile(self.ldconf, x86_64Content)
+ """Autoconfiguration class for fglrx"""
+ def __init__(self):
+ """Initializes the internal variables & objects"""
+ GlxConfig.__init__(self)
+ self.vendor = 'fglrx'
+ self.majorVendor = Utils.getMajorVendor()
+ if self.vendor != Utils.getVendor():
+ print _('The initscript and installed driver vendors do not match!')
+ sys.exit(1)
+ self.ldconf = LD_CONF_FILE % (self.vendor)
+ try:
+ self.doAllBackups()
+ except livnaConfigDisplayError, (bkupErrMsg):
+ print bkupErrMsg
+ sys.exit(1)
+ self.xconfig, self.xconfigpath = self.loadXconfig()
+ self.config = ConfigFile(STATUS_FILE)
+ self.TOP_MOD_DIR = self.getModTopDir()
+
+ def enable(self):
+ """Enable the driver"""
+ # Backup the file before make any change.
+ currentDriver = self.getDriver()
+
+ # Annoying bit because newer fglrx drivers require a Screen section
+ if len(self.xconfig.layout) == 0: # no layouts
+ layout = xf86config.XF86ConfLayout()
+ self.xconfig.layout.insert(layout)
+ layout.identifier = "Default Layout"
+ else:
+ layout = self.xconfig.layout[0]
+ if len(layout.adjacencies) == 0: # no layout adjacencies
+ layout.adjacencies.insert(xf86config.XF86ConfAdjacency())
+ layout.adjacencies[0].screen = "Screen0"
+ if len(self.xconfig.screen) == 0: # no screens
+ screen = xf86config.XF86ConfScreen()
+ self.xconfig.screen.insert(screen)
+ else:
+ screen = self.xconfig.screen[0]
+ screen.device = "Videocard0"
+ screen.defaultdepth = 24
+ screen.identifier = "Screen0"
+ self.xconfig.device[0].identifier = 'Videocard0'
+
+ # fglrx modules
+ self.addModulePath("/extensions/fglrx", self.TOP_MOD_DIR)
+ # 'remembering' magic's in here. Do not allow setting old driver to fglrx.
+ if currentDriver != self.majorVendor:
+ self.config.setOldDriver(currentDriver)
+ self.toggleDriver(currentDriver, self.majorVendor)
+ self.addOption(self.majorVendor,"OpenGLOverlay" ,"off")
+ self.addOption(self.majorVendor,"VideoOverlay" ,"on")
+ if self.xconfig.modules:
+ for module in ["glx", "dri", "extmod"]:
+ if self.onlyHasModule(module):
+ self.removeModule(module)
+ break
else:
- Utils.writeFile(self.ldconf,"/usr/lib/fglrx\n")
- print _('Running ldconfig, this could take some time...')
- Utils.runLdconfig()
- Utils.writeXorgConf(self.xconfig, self.xconfigpath)
- self.restoreconf()
-
- def disable(self, isAutoConfigure=True):
- self.removeModulePath("/extensions/fglrx", self.TOP_MOD_DIR)
- # Check if it's already disabled
- if not os.path.exists(self.ldconf):
- print _('Driver already disabled.')
- return
- # We have to save the status file so it can be restored later
- self.storeconf()
- # Backup the file before make any change.
- prevDriver = self.config.getOldDriver()
- if prevDriver == self.vendor:
- print _('Will not allow reverting from driver \'%s\' to \'%s\'.') % (self.vendor, self.vendor)
- print _('Using the \'radeon\' driver instead.')
- prevDriver = "radeon"
- self.config.setOldDriver("radeon")
- self.removeOption(self.majorVendor,"OpenGLOverlay")
- self.removeOption(self.majorVendor,"VideoOverlay")
- self.toggleDriver(self.majorVendor, prevDriver)
- # Let's give control back to the naitive DRI
- Utils.removeFile(self.ldconf)
- print _('Running ldconfig, this could take some time...')
- Utils.runLdconfig()
- Utils.writeXorgConf(self.xconfig, self.xconfigpath)
- # And return to the Fedora default.
- self.enableAiglx()
-
- def printUsage(self):
- print _("Usage: %s-config-display enable | disable ") % self.vendor
-
- def run(self):
- # Check number of arguments
- # arg = action
- if len(sys.argv) == 2:
- arg = sys.argv[1]
+ self.addModule(module)
+ # if not already enabled
+ if not os.path.exists(self.ldconf):
+ if os.uname()[4] == "x86_64" :
+ x86_64Content = "/usr/lib/fglrx\n/usr/lib64/fglrx\n"
+ Utils.writeFile(self.ldconf, x86_64Content)
+ else:
+ Utils.writeFile(self.ldconf,"/usr/lib/fglrx\n")
+ print _('Running ldconfig, this could take some time...')
+ Utils.runLdconfig()
+ Utils.writeXorgConf(self.xconfig, self.xconfigpath)
+ self.restoreconf()
+
+ def disable(self):
+ """Disables the driver"""
+ self.removeModulePath("/extensions/fglrx", self.TOP_MOD_DIR)
+ # Check if it's already disabled
+ if not os.path.exists(self.ldconf):
+ print _('Driver already disabled.')
+ return
+ # We have to save the status file so it can be restored later
+ self.storeconf()
+ # Backup the file before make any change.
+ prevDriver = self.config.getOldDriver()
+ if prevDriver == self.vendor:
+ print _('Will not allow reverting from driver \'%s\' to \'%s\'.') % (self.vendor, self.vendor)
+ print _('Using the \'radeon\' driver instead.')
+ prevDriver = "radeon"
+ self.config.setOldDriver("radeon")
+ self.removeOption(self.majorVendor,"OpenGLOverlay")
+ self.removeOption(self.majorVendor,"VideoOverlay")
+ self.toggleDriver(self.majorVendor, prevDriver)
+ # Let's give control back to the naitive DRI
+ Utils.removeFile(self.ldconf)
+ print _('Running ldconfig, this could take some time...')
+ Utils.runLdconfig()
+ Utils.writeXorgConf(self.xconfig, self.xconfigpath)
+ # And return to the Fedora default.
+ self.enableAiglx()
+
+ def printUsage(self):
+ """Displays usage information"""
+ print _("Usage: %s-config-display enable | disable ") % self.vendor
+
+ def run(self):
+ """Runs the appropriate autoconfiguation function"""
+ # Check number of arguments
+ # arg = action
+ if len(sys.argv) > 2:
+ print _('Wrong number of arguments')
+ self.printUsage()
+ sys.exit(1)
+ # Check value of argument
+ arg = sys.argv[1]
+ if not arg.lower() in ['enable', 'disable']:
+ print _('Invalid command: %s') % arg.lower()
+ self.printUsage()
+ sys.exit(1)
+ try:
+ if arg == "enable":
+ if self.getActive():
+ self.enable()
else:
- print _('Wrong number of arguments')
- self.printUsage()
- sys.exit(1)
- # Check value of argument
- if arg.lower() != "enable" and arg.lower() != "disable":
- print _('Invalid command: %s') % arg.lower()
- self.printUsage()
- sys.exit(1)
- try:
- if arg == "enable":
- if self.getActive():
- self.enable()
- else:
- print _('livna-config-display\'s `active\' state is False - Exiting')
- elif arg == "disable":
- if self.getActive():
- self.disable()
- except:
- raise # Uncomment me to show the real error
- print MSG_CONF_APPLY_ERROR
- try:
- self.doAllRestores()
- except livnaConfigDisplayError, (bkupErrMsg):
- #raise # Uncomment me to show the real error
- print MSG_CONF_RESTORE_ERROR + '\n' + MSG_TRACEBACK % (str(errMsg)) + '\n\n' + str(bkupErrMsg)
- sys.exit(1)
+ print _('livna-config-display\'s `active\' state is False - Exiting')
+ elif arg == "disable":
+ if self.getActive():
+ self.disable()
+ except error, errMsg:
+ #raise # Uncomment me to show the real error
+ print MSG_CONF_APPLY_ERROR
+ try:
+ self.doAllRestores()
+ except livnaConfigDisplayError, (bkupErrMsg):
+ #raise # Uncomment me to show the real error
+ print MSG_CONF_RESTORE_ERROR + '\n' + MSG_TRACEBACK % (str(errMsg)) + '\n\n' + str(bkupErrMsg)
+ sys.exit(1)
+
+if __name__ == '__main__':
+ app = fglrxConfigDisplay()
+ app.run()
-app = fglrxConfigDisplay()
Index: xorg-x11-drv-fglrx.spec
===================================================================
RCS file: /cvs/nonfree/rpms/xorg-x11-drv-fglrx/F-10/xorg-x11-drv-fglrx.spec,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- xorg-x11-drv-fglrx.spec 28 Mar 2009 02:44:19 -0000 1.19
+++ xorg-x11-drv-fglrx.spec 4 Apr 2009 23:52:18 -0000 1.20
@@ -8,7 +8,7 @@
Name: xorg-x11-drv-fglrx
Version: 9.3
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: AMD's proprietary driver for ATI graphic cards
Group: User Interface/X Hardware Support
License: Redistributable, no modification permitted
@@ -312,6 +312,10 @@
%{_includedir}/X11/extensions/*.h
%changelog
+* Sat Apr 4 2009 Stewart Adam <s.adam at diffingo.com> - 9.3-2
+- Only disable ldconfig when driver is already enabled, always configure
+ xorg.conf even if driver is already enabled
+
* Fri Mar 27 2009 Stewart Adam <s.adam at diffingo.com> - 9.3-1
- Update to Catalsyt 9.3
15 years, 7 months
rpms/xorg-x11-drv-fglrx/devel fglrx-config-display, 1.2, 1.3 xorg-x11-drv-fglrx.spec, 1.17, 1.18
by Stewart Adam
Author: firewing
Update of /cvs/nonfree/rpms/xorg-x11-drv-fglrx/devel
In directory se02.es.rpmfusion.net:/tmp/cvs-serv2187/devel
Modified Files:
fglrx-config-display xorg-x11-drv-fglrx.spec
Log Message:
* Sat Apr 4 2009 Stewart Adam <s.adam at diffingo.com> - 9.3-2
- Only disable ldconfig when driver is already enabled, always configure
xorg.conf even if driver is already enabled
Index: fglrx-config-display
===================================================================
RCS file: /cvs/nonfree/rpms/xorg-x11-drv-fglrx/devel/fglrx-config-display,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- fglrx-config-display 31 Jan 2009 06:25:45 -0000 1.2
+++ fglrx-config-display 4 Apr 2009 23:52:19 -0000 1.3
@@ -18,7 +18,8 @@
# Copyright 2006, 2007 Van Assche Alphonse
# Copyright 2006, 2007 Stewart Adam
-import string
+# internal revision: 2.0
+
import os
import sys
@@ -31,139 +32,142 @@
from livnaConfigDisplay.ConfigFile import ConfigFile
class fglrxConfigDisplay(GlxConfig):
- def __init__(self):
- GlxConfig.__init__(self)
- self.vendor = 'fglrx'
- self.majorVendor = Utils.getMajorVendor()
- if self.vendor != Utils.getVendor():
- print _('The initscript and installed driver vendors do not match!')
- sys.exit(1)
- self.ldconf = LD_CONF_FILE % (self.vendor)
- try:
- self.doAllBackups()
- except livnaConfigDisplayError, (bkupErrMsg):
- print bkupErrMsg
- sys.exit(1)
- self.xconfig, self.xconfigpath = self.loadXconfig()
- self.config = ConfigFile(STATUS_FILE)
- self.TOP_MOD_DIR = self.getModTopDir()
-
- # finally, run arg checks.
- self.run()
-
- def enable(self, isAutoConfigure=True):
- # Backup the file before make any change.
- currentDriver = self.getDriver()
- # Already enabled?
- if os.path.exists(self.ldconf):
- print _('Driver already enabled.')
- return
-
- # Annoying bit because newer fglrx drivers require a Screen section
- if len(self.xconfig.layout) == 0: # no layouts
- layout = xf86config.XF86ConfLayout()
- self.xconfig.layout.insert(layout)
- layout.identifier = "Default Layout"
- else:
- layout = self.xconfig.layout[0]
- if len(layout.adjacencies) == 0: # no layout adjacencies
- layout.adjacencies.insert(xf86config.XF86ConfAdjacency())
- layout.adjacencies[0].screen = "Screen0"
- if len(self.xconfig.screen) == 0: # no screens
- screen = xf86config.XF86ConfScreen()
- self.xconfig.screen.insert(screen)
- else:
- screen = self.xconfig.screen[0]
- screen.device = "Videocard0"
- screen.defaultdepth = 24
- screen.identifier = "Screen0"
- self.xconfig.device[0].identifier = 'Videocard0'
-
- # fglrx modules
- self.addModulePath("/extensions/fglrx", self.TOP_MOD_DIR)
- # 'remembering' magic's in here.
- self.config.setOldDriver(currentDriver)
- #currentDriver = self.config.getOldDriver()
- self.toggleDriver(currentDriver, self.majorVendor)
- self.addOption(self.majorVendor,"OpenGLOverlay" ,"off")
- self.addOption(self.majorVendor,"VideoOverlay" ,"on")
- if self.xconfig.modules:
- for module in ["glx", "dri", "extmod"]:
- if self.onlyHasModule(module):
- self.removeModule(module)
- break
- else:
- self.addModule(module)
- if os.uname()[4] == "x86_64" :
- x86_64Content = "/usr/lib/fglrx\n/usr/lib64/fglrx\n"
- Utils.writeFile(self.ldconf, x86_64Content)
+ """Autoconfiguration class for fglrx"""
+ def __init__(self):
+ """Initializes the internal variables & objects"""
+ GlxConfig.__init__(self)
+ self.vendor = 'fglrx'
+ self.majorVendor = Utils.getMajorVendor()
+ if self.vendor != Utils.getVendor():
+ print _('The initscript and installed driver vendors do not match!')
+ sys.exit(1)
+ self.ldconf = LD_CONF_FILE % (self.vendor)
+ try:
+ self.doAllBackups()
+ except livnaConfigDisplayError, (bkupErrMsg):
+ print bkupErrMsg
+ sys.exit(1)
+ self.xconfig, self.xconfigpath = self.loadXconfig()
+ self.config = ConfigFile(STATUS_FILE)
+ self.TOP_MOD_DIR = self.getModTopDir()
+
+ def enable(self):
+ """Enable the driver"""
+ # Backup the file before make any change.
+ currentDriver = self.getDriver()
+
+ # Annoying bit because newer fglrx drivers require a Screen section
+ if len(self.xconfig.layout) == 0: # no layouts
+ layout = xf86config.XF86ConfLayout()
+ self.xconfig.layout.insert(layout)
+ layout.identifier = "Default Layout"
+ else:
+ layout = self.xconfig.layout[0]
+ if len(layout.adjacencies) == 0: # no layout adjacencies
+ layout.adjacencies.insert(xf86config.XF86ConfAdjacency())
+ layout.adjacencies[0].screen = "Screen0"
+ if len(self.xconfig.screen) == 0: # no screens
+ screen = xf86config.XF86ConfScreen()
+ self.xconfig.screen.insert(screen)
+ else:
+ screen = self.xconfig.screen[0]
+ screen.device = "Videocard0"
+ screen.defaultdepth = 24
+ screen.identifier = "Screen0"
+ self.xconfig.device[0].identifier = 'Videocard0'
+
+ # fglrx modules
+ self.addModulePath("/extensions/fglrx", self.TOP_MOD_DIR)
+ # 'remembering' magic's in here. Do not allow setting old driver to fglrx.
+ if currentDriver != self.majorVendor:
+ self.config.setOldDriver(currentDriver)
+ self.toggleDriver(currentDriver, self.majorVendor)
+ self.addOption(self.majorVendor,"OpenGLOverlay" ,"off")
+ self.addOption(self.majorVendor,"VideoOverlay" ,"on")
+ if self.xconfig.modules:
+ for module in ["glx", "dri", "extmod"]:
+ if self.onlyHasModule(module):
+ self.removeModule(module)
+ break
else:
- Utils.writeFile(self.ldconf,"/usr/lib/fglrx\n")
- print _('Running ldconfig, this could take some time...')
- Utils.runLdconfig()
- Utils.writeXorgConf(self.xconfig, self.xconfigpath)
- self.restoreconf()
-
- def disable(self, isAutoConfigure=True):
- self.removeModulePath("/extensions/fglrx", self.TOP_MOD_DIR)
- # Check if it's already disabled
- if not os.path.exists(self.ldconf):
- print _('Driver already disabled.')
- return
- # We have to save the status file so it can be restored later
- self.storeconf()
- # Backup the file before make any change.
- prevDriver = self.config.getOldDriver()
- if prevDriver == self.vendor:
- print _('Will not allow reverting from driver \'%s\' to \'%s\'.') % (self.vendor, self.vendor)
- print _('Using the \'radeon\' driver instead.')
- prevDriver = "radeon"
- self.config.setOldDriver("radeon")
- self.removeOption(self.majorVendor,"OpenGLOverlay")
- self.removeOption(self.majorVendor,"VideoOverlay")
- self.toggleDriver(self.majorVendor, prevDriver)
- # Let's give control back to the naitive DRI
- Utils.removeFile(self.ldconf)
- print _('Running ldconfig, this could take some time...')
- Utils.runLdconfig()
- Utils.writeXorgConf(self.xconfig, self.xconfigpath)
- # And return to the Fedora default.
- self.enableAiglx()
-
- def printUsage(self):
- print _("Usage: %s-config-display enable | disable ") % self.vendor
-
- def run(self):
- # Check number of arguments
- # arg = action
- if len(sys.argv) == 2:
- arg = sys.argv[1]
+ self.addModule(module)
+ # if not already enabled
+ if not os.path.exists(self.ldconf):
+ if os.uname()[4] == "x86_64" :
+ x86_64Content = "/usr/lib/fglrx\n/usr/lib64/fglrx\n"
+ Utils.writeFile(self.ldconf, x86_64Content)
+ else:
+ Utils.writeFile(self.ldconf,"/usr/lib/fglrx\n")
+ print _('Running ldconfig, this could take some time...')
+ Utils.runLdconfig()
+ Utils.writeXorgConf(self.xconfig, self.xconfigpath)
+ self.restoreconf()
+
+ def disable(self):
+ """Disables the driver"""
+ self.removeModulePath("/extensions/fglrx", self.TOP_MOD_DIR)
+ # Check if it's already disabled
+ if not os.path.exists(self.ldconf):
+ print _('Driver already disabled.')
+ return
+ # We have to save the status file so it can be restored later
+ self.storeconf()
+ # Backup the file before make any change.
+ prevDriver = self.config.getOldDriver()
+ if prevDriver == self.vendor:
+ print _('Will not allow reverting from driver \'%s\' to \'%s\'.') % (self.vendor, self.vendor)
+ print _('Using the \'radeon\' driver instead.')
+ prevDriver = "radeon"
+ self.config.setOldDriver("radeon")
+ self.removeOption(self.majorVendor,"OpenGLOverlay")
+ self.removeOption(self.majorVendor,"VideoOverlay")
+ self.toggleDriver(self.majorVendor, prevDriver)
+ # Let's give control back to the naitive DRI
+ Utils.removeFile(self.ldconf)
+ print _('Running ldconfig, this could take some time...')
+ Utils.runLdconfig()
+ Utils.writeXorgConf(self.xconfig, self.xconfigpath)
+ # And return to the Fedora default.
+ self.enableAiglx()
+
+ def printUsage(self):
+ """Displays usage information"""
+ print _("Usage: %s-config-display enable | disable ") % self.vendor
+
+ def run(self):
+ """Runs the appropriate autoconfiguation function"""
+ # Check number of arguments
+ # arg = action
+ if len(sys.argv) > 2:
+ print _('Wrong number of arguments')
+ self.printUsage()
+ sys.exit(1)
+ # Check value of argument
+ arg = sys.argv[1]
+ if not arg.lower() in ['enable', 'disable']:
+ print _('Invalid command: %s') % arg.lower()
+ self.printUsage()
+ sys.exit(1)
+ try:
+ if arg == "enable":
+ if self.getActive():
+ self.enable()
else:
- print _('Wrong number of arguments')
- self.printUsage()
- sys.exit(1)
- # Check value of argument
- if arg.lower() != "enable" and arg.lower() != "disable":
- print _('Invalid command: %s') % arg.lower()
- self.printUsage()
- sys.exit(1)
- try:
- if arg == "enable":
- if self.getActive():
- self.enable()
- else:
- print _('livna-config-display\'s `active\' state is False - Exiting')
- elif arg == "disable":
- if self.getActive():
- self.disable()
- except:
- raise # Uncomment me to show the real error
- print MSG_CONF_APPLY_ERROR
- try:
- self.doAllRestores()
- except livnaConfigDisplayError, (bkupErrMsg):
- #raise # Uncomment me to show the real error
- print MSG_CONF_RESTORE_ERROR + '\n' + MSG_TRACEBACK % (str(errMsg)) + '\n\n' + str(bkupErrMsg)
- sys.exit(1)
+ print _('livna-config-display\'s `active\' state is False - Exiting')
+ elif arg == "disable":
+ if self.getActive():
+ self.disable()
+ except error, errMsg:
+ #raise # Uncomment me to show the real error
+ print MSG_CONF_APPLY_ERROR
+ try:
+ self.doAllRestores()
+ except livnaConfigDisplayError, (bkupErrMsg):
+ #raise # Uncomment me to show the real error
+ print MSG_CONF_RESTORE_ERROR + '\n' + MSG_TRACEBACK % (str(errMsg)) + '\n\n' + str(bkupErrMsg)
+ sys.exit(1)
+
+if __name__ == '__main__':
+ app = fglrxConfigDisplay()
+ app.run()
-app = fglrxConfigDisplay()
Index: xorg-x11-drv-fglrx.spec
===================================================================
RCS file: /cvs/nonfree/rpms/xorg-x11-drv-fglrx/devel/xorg-x11-drv-fglrx.spec,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- xorg-x11-drv-fglrx.spec 4 Apr 2009 14:15:32 -0000 1.17
+++ xorg-x11-drv-fglrx.spec 4 Apr 2009 23:52:19 -0000 1.18
@@ -8,14 +8,13 @@
Name: xorg-x11-drv-fglrx
Version: 9.4
-Release: 0.2.beta%{?dist}
+Release: 0.3.beta%{?dist}
Summary: AMD's proprietary driver for ATI graphic cards
Group: User Interface/X Hardware Support
License: Redistributable, no modification permitted
URL: http://www.ati.com/support/drivers/linux/radeon-linux.html
#Source0: https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/ati-dri...
-# From https://launchpadlibrarian.net/24026289/fglrx-installer_8.600.orig.tar.gz
-Source0: fglrx-installer_8.600.orig.tar.gz
+Source0: https://launchpadlibrarian.net/24026289/fglrx-installer_8.600.orig.tar.gz
Source1: fglrx-README.Fedora
Source3: fglrx-config-display
Source4: fglrx-init
@@ -322,6 +321,10 @@
%{_includedir}/X11/extensions/*.h
%changelog
+* Sat Apr 4 2009 Stewart Adam <s.adam at diffingo.com> - 9.4-0.3.beta
+- Only disable ldconfig when driver is already enabled, always configure
+ xorg.conf even if driver is already enabled
+
* Sat Apr 04 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 9.4-0.2.beta
- s/i386/i586/ in ExclusiveArch for F11
15 years, 7 months