--- fglrx-installer-8.960.orig/debian/control +++ fglrx-installer-8.960/debian/control @@ -0,0 +1,60 @@ +Source: fglrx-installer +Section: restricted/misc +Priority: extra +Maintainer: Ubuntu Core Developers +Uploaders: Mario Limonciello , Alberto Milone +Build-Depends: debhelper (>= 7), + dh-modaliases, + libxext6, + libxrandr2, + libice6, + libsm6, + libfontconfig1, + libxi6, + libxcursor1, + fakeroot, + libdrm2, + libgl1-mesa-glx, + libxinerama1, + libqtgui4, + xserver-xorg-dev (>= 2:1.10.0), + execstack +Standards-Version: 3.8.3 +Homepage: http://support.amd.com + +Package: fglrx +Architecture: amd64 i386 +Recommends: fglrx-amdcccle +Depends: ${shlibs:Depends}, xserver-xorg-core, lib32gcc1 [amd64], libc6-i386 [amd64], dkms, make, linux-libc-dev, + linux-headers-generic | linux-headers, , ${xviddriver:Depends} +Conflicts: fglrx-driver, xfree86-driver-fglrx, xorg-driver-fglrx, fglrx-kernel-source, libamdxvba1, fglrx-modaliases +Replaces: fglrx-driver, xfree86-driver-fglrx, xorg-driver-fglrx, fglrx-kernel-source, libamdxvba1, fglrx-modaliases, fglrx-updates, fglrx-amdcccle +Provides: fglrx-driver, ${xviddriver:Provides} +XB-Modaliases: ${modaliases} +Description: Video driver for the AMD graphics accelerators + Video driver for the AMD Radeon and FireGL graphics accelerators. + . + This package provides 2D display drivers + and hardware accelerated OpenGL. + +Package: fglrx-dev +Architecture: amd64 i386 +Depends: fglrx +Conflicts: fglrx-driver-dev, xfree86-driver-fglrx-dev +Replaces: fglrx-driver-dev, xfree86-driver-fglrx-dev, xorg-driver-fglrx-dev, fglrx-updates-dev +Provides: fglrx-driver-dev +Description: Video driver for the AMD graphics accelerators (devel files) + Video driver for the AMD Radeon and FireGL graphics accelerators. + . + This package provides definitions for the GL and GLX extensions. + +Package: fglrx-amdcccle +Architecture: amd64 i386 +Depends: fglrx, ${shlibs:Depends} +Conflicts: fglrx-control-qt2, fglrx-control +Replaces: fglrx-control, fglrx-amdcccle-updates +Provides: fglrx-control +Description: Catalyst Control Center for the AMD graphics accelerators + Catalyst Control Center for the AMD Radeon and FireGL graphics accelerators. + . + This package provides the Catalyst Control Center, Linux Edition --- fglrx-installer-8.960.orig/debian/compat +++ fglrx-installer-8.960/debian/compat @@ -0,0 +1 @@ +7 --- fglrx-installer-8.960.orig/debian/copyright_stub_1 +++ fglrx-installer-8.960/debian/copyright_stub_1 @@ -0,0 +1,30 @@ + +---------------------------------------------------------------------------- +Packaging scripts: + Copyright (C) 2002-2005 Flavio Stanchina + Copyright (C) 2005-2006 Aric Cyr + Copyright (C) 2007-2009 Mario Limonciello + Copyright (C) 2009-2011 Canonical Ltd. + +The packaging scripts are copyrighted under the MIT license. + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. --- fglrx-installer-8.960.orig/debian/fglrx-dev.links.in +++ fglrx-installer-8.960/debian/fglrx-dev.links.in @@ -0,0 +1 @@ +#LIBDIR#/libfglrx_dm.so.1 #LIBDIR#/libfglrx_dm.so --- fglrx-installer-8.960.orig/debian/fglrx-dev.install.in +++ fglrx-installer-8.960/debian/fglrx-dev.install.in @@ -0,0 +1,5 @@ +debian/overrides/fglrx-dev usr/share/lintian/overrides + +usr/include/* usr/include + +arch/#SRCARCH#/usr/X11R6/#SRCLIBDIR#/*.a usr/lib --- fglrx-installer-8.960.orig/debian/README.Debian +++ fglrx-installer-8.960/debian/README.Debian @@ -0,0 +1,96 @@ +AMD video drivers for Ubuntu +============================ + +Further information can be found at http://support.amd.com/ -- look for +the "Download Drivers" area and follow links to the Linux drivers. + +This package is generated automatically via the official AMD driver +installer that is available from the above homepage. + +DKMS +------------------------- + Ubuntu includes support to build modules using a utility developed by + Dell, called DKMS. It will automatically build your kernel module + for you when you first boot into the kernel (or as necessary). + + See the DKMS man page for more information. + + Note: the OBSOLETE_BY line in dkms.conf may specify a kernel version + which obsoletes the necessity for this particular DKMS module. + For example, OBSOLETE_BY=2.6.39 will prevent DKMS from building + modules for kernels >= 2.6.39. + +Source building +------------------------- +Starting with Intrepid, an extra target has been added to allow +--buildpkg Ubuntu/source. This target should be adequate for +sending up to the Ubuntu archive. By keeping the same source package +in both places, there should be fewer conflicts for people. + +On a semiregular basis, the debian/changelog should be merged +into this package, but people adding to the Ubuntu archive should +be sure to update these sorts of things otherewise. + +Kernel patches +------------------------- +If you need to provide a kernel patch (say for a kernel not formally +supported yet by AMD), you can add this patch in the debian/patches +directory. It will only be used for the current development release, +as indicated in debian/rules. When upgrading from current development +release to next development release, this codename in debian/rules should +be bumped too. + +Copyright file +------------------------- +The copyright file is automatically generated in debian/rules by +concatenating debian/copyright_stub0, AMD's EULA and debian/ +copyright_stub1. This allows us to always ship the latest EULA +from AMD. + +In order to update the copyright file manually it's sufficient to use +the "debclean" command. + +Update procedure +------------------------- +When a new -fglrx is available, do the following to update +fglrx-installer: + +0. On your build system, make sure you have the prerequisites + installed: + + $ sudo apt-get build-dep fglrx-installer + +1. Download the archive file and unpack it to get the .run file + +2. Do a --buildpkg Ubuntu/source, which will build a diff.gz, + orig.tar.gz and an unsigned dsc. For example: + + $ bash ./ati-driver-installer-*.run --buildpkg Ubuntu/source + + This might prompt for your password for sudo privs. It may + install things to your system it needs for constructing the + source packages, such as cdbs, libstdc++, etc. (As of 8.600 + it seems to no longer do this for source pkgs.) + +3. dpkg-source -x that dsc to unpack it into a directory, then + cd into the resultant directory. + +4. dch -e to update the new changelog entry. + Make sure to mark out any bugs that get closed with it. + + Also doublecheck that it includes debian/ changes up to the current + Ubuntu version; if not, some merging may be required. + +5. debuild -S to produce a new .dsc + +6. Verify the new .dsc produces valid .debs by running it through + pbuilder, sbuild, etc. as usual. + +7. Install and test the .debs, and then dput the .changes file + +If any changes to files in debian/ are needed, make sure to let the +maintainer (Alberto aka tseliot) know, so he can sync them into the git +tree AMD pulls from. + + + -- Alberto Milone Thu, 21 Apr 2011 21:53:14 +0200 --- fglrx-installer-8.960.orig/debian/fglrx.default +++ fglrx-installer-8.960/debian/fglrx.default @@ -0,0 +1,3 @@ +# Powerstate switching on ACPI events for +# lid open/close and AC adapter on/off +FGLRX_ACPI_SWITCH_POWERSTATES=false --- fglrx-installer-8.960.orig/debian/changelog +++ fglrx-installer-8.960/debian/changelog @@ -0,0 +1,881 @@ +fglrx-installer (2:8.960-0ubuntu1) precise; urgency=low + + * New upstream release: + - Fix issue with XVideo in the new xserver (LP: #921384). + + -- Alberto Milone Thu, 22 Mar 2012 16:01:03 +0100 + +fglrx-installer (2:8.911-0ubuntu1) precise; urgency=low + + * New upstream release (11-11). + * debian/fglrx.install.in, debian/fglrx.dirs.in, + debian/fglrx.links.in ,debian/fglrx.postinst.in, + debian/rules: + - Install OpenCL libraries. + - Make sure to use the multiarch path to the Mesa libraries. + This (partially) solves an issue with PXpress which couldn't + find the Mesa libraries (LP: #813809). + + -- Alberto Milone Fri, 25 Nov 2011 15:11:02 +0100 + +fglrx-installer (2:8.881-0ubuntu5) precise; urgency=low + + * debian/fglrx.prerm.in: + - Make sure to remove the correct alternatives on package + removal (LP: #855943). + - Call ldconfig with the LDCONFIG_NOTRIGGER=y environment + variable, as in the postinst script. + + -- Alberto Milone Tue, 25 Oct 2011 17:52:12 +0200 + +fglrx-installer (2:8.881-0ubuntu4) oneiric; urgency=low + + * Re-enable grub fb and drop the initramfs hook in favour of + "alias radeon/lbm_radeon off" (LP: #864149). + + -- Alberto Milone Mon, 10 Oct 2011 20:29:27 +0200 + +fglrx-installer (2:8.881-0ubuntu3) oneiric; urgency=low + + * debian/rules, debian/modaliases/fglrx_supported: + - Make sure that the module alias is always correct and + uses underscores instead of hyphens (LP: #855396). + - Make the grub-gfxpayload file a template and blacklist + all AMD cards so that Grub doesn't set a framebuffer + which prevents recovery mode from working (LP: #854967). + + -- Alberto Milone Fri, 30 Sep 2011 15:36:00 +0200 + +fglrx-installer (2:8.881-0ubuntu2) oneiric; urgency=low + + * debian/rules: + - Add an initramfs hook to make sure that nothing else loads + open graphics drivers in the initramfs (LP: #839524). + + -- Alberto Milone Thu, 08 Sep 2011 15:12:24 +0200 + +fglrx-installer (2:8.881-0ubuntu1) oneiric; urgency=low + + * New upstream release 8.881 (11-8). + * debian/rules: + - Make sure to use LICENSE instead of ATI_LICENSE, as it + has been renamed by AMD. + - Add a hack for pbuild which would otherwise fail to call + execstack when trying to build. + - Rename the grub_fb_blacklist link, so that it has a name + shared with all the other proprietary drivers. + + -- Alberto Milone Wed, 24 Aug 2011 12:08:49 +0200 + +fglrx-installer (2:8.872-0ubuntu2) oneiric; urgency=low + + * debian/fglrx.prerm.in: + - Remove trailing whitespace. + - Make sure to remove the alternatives for PXpress on + uninstallation (LP:# 827046). + + -- Alberto Milone Tue, 16 Aug 2011 16:25:24 +0200 + +fglrx-installer (2:8.872-0ubuntu1) oneiric; urgency=low + + * New upstream release 8.872 (11-7). + * debian/rules: + - Further improvements on files generation from templates. + - Make sure to ship an empty ld.so.conf for the other arch for + PXpress. + * debian/fglrx.postinst.in: + - Make amdconfig point at aticonfig. + * debian/control, debian/README: + - Replace "ATI" with "AMD". + * debian/control: + - Add conflicts/replaces to deal with fglrx-updates. + - Add fglrx-amdcccle to Replaces in fglrx. + * debian/fglrx.install.in: + - Make sure to always install PXpress scripts in /usr/lib/fglrx + (LP: #815322). + * debian/fglrx-amdcccle.install.in: + - Do not install the PXpress scripts in amdcccle. + * debian/pxpress/switchlib{glx|GL): + - Fix issue when setting the alternative for the other arch. + * Disable replace-global-lock-with-a-driver-specific-mutex.patch. + + -- Alberto Milone Thu, 11 Aug 2011 18:06:51 +0200 + +fglrx-installer (2:8.861-0ubuntu4) oneiric; urgency=low + + * debian/fglrx.dirs.in: + - Create some extra directories, usually made by mesa, to fix + the installation in chroots (LP: #807347). + + -- Alberto Milone Sun, 24 Jul 2011 12:23:23 +0200 + +fglrx-installer (2:8.861-0ubuntu3) oneiric; urgency=low + + * debian/fglrx.dirs.in: + - Make sure to create the /usr/lib/dri directory (LP: #807347). + * debian/fglrx.postrm.in: + - Do not fail when trying to remove only the files in + /usr/lib/fglrx (LP: #807092). We don't want to remove the + /usr/lib/fglrx/etc directory unless we're using --purge + remove, otherwise user settings will be lost. + * debian/rules: + - Make sure that the copyright file is installed after it's + generated. On some systems this wasn't guaranteed to happen. + Thanks to Felix Kuehling and Mabel Lee for reporting the + problem and for debugging the issue on the affected systems. + - Use the multi-arch path for xorg extra-modules (LP: #807209). + + -- Alberto Milone Wed, 20 Jul 2011 17:15:31 +0200 + +fglrx-installer (2:8.861-0ubuntu2) oneiric; urgency=low + + * Use an empty ld.so.conf when installing alternative for the + non-native arch, otherwise it would be impossible to switch + to mesa without installing mesa for the same architecture. + + -- Alberto Milone Mon, 27 Jun 2011 15:01:47 +0100 + +fglrx-installer (2:8.861-0ubuntu1) oneiric; urgency=low + + * New upstream release 8.861 (11-6). + * Add scripts to support for PXpress (see debian/pxpress) and + install an additional alternative to switch between libraries. + * Deep rework of the packaging scripts, so as to make it possible + to generate more files from templates. + * Add initial support for multi-arch (LP: #798049). + + -- Alberto Milone Thu, 23 Jun 2011 18:42:40 +0200 + +fglrx-installer (2:8.850-0ubuntu1) oneiric; urgency=low + + * New upstream release 8.850 (11-5). + * debian/dkms.conf{.in}: + - Enable builds for 3.0 kernels. + * Add replace-global-lock-with-a-driver-specific-mutex.patch: + - Add support for linux 3.0 by using a driver specific mutex + instead of the global lock. + * Drop obsolete patches: + - add-compatibility-with-2.6.36-kernels.patch, fglrx-2.6.37.patch, + rt_preempt_28.patch, rt_preempt_31.patch, + use-cflags_module-together-with-modflags.patch. + + -- Alberto Milone Tue, 14 Jun 2011 20:30:49 +0200 + +fglrx-installer (2:8.840-0ubuntu4) natty; urgency=low + + * debian/rules, fglrx.{preinst|postinst|prerm|postrm}: + - Add Canonical copyright in the scripts. + * debian/AUTHORS: + - Make it clear that the AUTHORS file refers only to the packaging + scripts. + + -- Alberto Milone Sat, 23 Apr 2011 10:09:57 +0200 + +fglrx-installer (2:8.840-0ubuntu3) natty; urgency=low + + * debian/rules, debian/README.debian: + - Regenerate debian/copyright automatically using AMD's EULA as a base. + This allows us to always have the latest EULA in the copyright file. + The file is created by concatenating copyright_stub_0, the EULA and + copyright_stub_1. This process is documented in the README. + - Install the authors list in the docs. + - Mention in the README the OBSOLETE_BY option in dkms.conf. + + -- Alberto Milone Fri, 22 Apr 2011 09:55:41 +0200 + +fglrx-installer (2:8.840-0ubuntu2) natty; urgency=low + + * debian/dkms.conf.in: + - Prevent DKMS builds with kernels newer 2.6.38. + * debian/fglrx-dev.links: + - Remove links to libfglrx_pp.so and libfglrx_tvout.so since we + don't ship these libraries any more. + * debian/rules: + - Get rid of add-fglrx-prefix or remove-fglrx-prefix targets. + + -- Alberto Milone Fri, 15 Apr 2011 17:29:30 +0200 + +fglrx-installer (2:8.840-0ubuntu1) natty; urgency=low + + * New upstream release 8.84.6 (LP: #709505). + * debian/control: + - Bump build-dep on xserver-xorg-dev to >= 2:1.10.0. + * debian/dkms.conf.in: + - Do not use add-compatibility-with-2.6.36-kernels.patch and + fglrx-2.6.37.patch use-cflags_module-together-with-modflags.patch + any more. + * fglrx.install.in: + - Look for libglx.so and libGL.so in their new location. + - Make sure to install only libGL.so*. + * debian/fglrx.postinst: + - Add missing slave link to amdupdaterandrconfig. + * debian/rules: + - Switch back to automatic ABI dependency generation. + - Avoid accidentally copying the whole fglrx directory. + - Rename fglrx-libGL.so and fglrx-libglx.so. + + -- Alberto Milone Tue, 29 Mar 2011 20:16:39 +0200 + +fglrx-installer (2:8.801-0ubuntu3) natty; urgency=low + + * debian/control: + - Depend on ${xviddriver:Depends}. + * debian/rules: + - Manually set video ABI compatibility to 8 so that the driver is not + installable in applications such as Jockey or manually. + + -- Alberto Milone Mon, 28 Feb 2011 16:29:26 +0100 + +fglrx-installer (2:8.801-0ubuntu2) natty; urgency=low + + * debian/fglrx.grub-gfxpayload: + - Add a commented out line in the file so as to fix FTBFS. + + -- Alberto Milone Mon, 03 Jan 2011 18:19:13 +0100 + +fglrx-installer (2:8.801-0ubuntu1) natty; urgency=low + + * New upstream release 8.801 (10-12). + * debian/control: + - Add Vcs-Git and Vcs-Browser. + * debian/fglrx.postrm: + - Do not remove diversions. Those diversions were likely installed by older + releases of the driver (since we don't use diversions any more). Any + diversion should be removed in fglrx.preinst, as it's exactly where we + remove all other diversions (LP: #566437). + * debian/fglrx.prerm: + - Call dpkg-trigger with --by-package=$PACKAGE_NAME. + * Add support for blacklisting card ids from GRUB gfxpayload=keep: + - In Natty gfxpayload=keep is set by default so as to provide a framebuffer + early in the boot process. Some cards don't play nicely with it, therefore + we need to blacklist them in a file. The format is a sequence of lines of + the following form: + vVENDORdDEVICEsvSUBVENDORsdSUBDEVICEbcBASECLASSscSUBCLASS + Blacklist lines are regex-matched against a corresponding PCI ID string. + In practice this means that you can replace any part of the ID string + with .* to match anything. + + -- Alberto Milone Mon, 03 Jan 2011 14:00:56 +0100 + +fglrx-installer (2:8.780-0ubuntu4) natty; urgency=low + + * Move from separate modalias file package to using a package header: + - debian/control, debian/rules, debian/fglrx-modaliases.install: Drop + fglrx-modaliases package. + - debian/control: Add XB-Modaliases header and dh-modaliases build + dependency. + - debian/rules: Build the modalias list to debian/fglrx.modaliases, where + dh_modaliases picks it up, and invoke dh_modaliases. + - debian/control: Add Conflicts:/Replaces: fglrx-modaliases, so that the + obsolete modaliases package gets cleaned up on upgrades. + + -- Martin Pitt Sat, 18 Dec 2010 18:35:38 +0100 + +fglrx-installer (2:8.780-0ubuntu3) natty; urgency=low + + * Add fglrx-2.6.37.patch: Adds compatibility with 2.6.37 based kernels. + (LP: #671868) + * debian/dkms.conf.in: Also apply add-compatibility-with-2.6.36-kernels.patch + to later kernels. + + -- Robert Hooker Tue, 16 Nov 2010 18:27:30 -0500 + +fglrx-installer (2:8.780-0ubuntu2) maverick; urgency=low + + * debian/fglrx.postinst: + - Call dpkg-trigger with "--by-package". + * Add add-compatibility-with-2.6.36-kernels.patch: + - Fix build issues with 2.6.36 kernels. + * Add use-cflags_module-together-with-modflags.patch: + - Fix build issues with kernels that don't have + MODFLAGS and use CFLAGS_MODULE. + + -- Alberto Milone Fri, 24 Sep 2010 18:14:23 +0200 + +fglrx-installer (2:8.780-0ubuntu1) maverick; urgency=low + + * New upstream release. + - Fix build issues with kernel fix for CVE-2010-3081 (LP: #642518). + - Add compatibility with 2.6.35 kernels (LP: #573748). + - Add compatibility with xserver 1.9 (LP: #630599). + * Make the driver Depend on the appropriate xserver-xorg-video-$ABI + (LP: #616215). + + -- Alberto Milone Wed, 22 Sep 2010 18:28:32 +0200 + +fglrx-installer (2:8.723.1-0ubuntu5) lucid-proposed; urgency=low + + * Add compat_alloc_cve-2010-3081.patch: + - Work around the lack of compat_alloc_user_space() in asm/compat.h + after the fix for CVE-2010-3081 (LP: #642518). Thanks to Evan Broder + and Stefan Bader for the patch. + + -- Alberto Milone Tue, 21 Sep 2010 12:39:58 +0200 + +fglrx-installer (2:8.723.1-0ubuntu4) lucid-proposed; urgency=low + + * Remove /etc/ati only after calling the fglrx-uninstall.sh + script. This will solve problems with dist-upgrades when + packages from the ati installer have been previously + installed (LP: #565407). + + -- Alberto Milone Tue, 27 Apr 2010 11:19:23 +0200 + +fglrx-installer (2:8.723.1-0ubuntu3) lucid; urgency=low + + * debian/fglrx.preinst: + - Prevent dist-upgrades from failing when removing diversions + on libdri.so if the file still exists (LP: #567425). + + -- Alberto Milone Thu, 22 Apr 2010 17:59:12 +0200 + +fglrx-installer (2:8.723.1-0ubuntu2) lucid; urgency=low + + * debian/fglrx.dirs, fglrx.install.in, fglrx.postinst, + fglrx.preinst: + - Make /etc/ati a slave link which points to + /usr/lib/fglrx/etc/ati. This will avoid issues when + upgrading packages with user modified files in + /etc/ati (LP: #559587, LP: #440233). + - Make sure to remove /etc/ati if it's not a link. + + -- Alberto Milone Wed, 14 Apr 2010 17:37:14 +0200 + +fglrx-installer (2:8.723.1-0ubuntu1) lucid; urgency=low + + * New upstream release: + - Prevent the driver from causing X to segfault with + certain cards (LP: #554191). + + -- Alberto Milone Sun, 11 Apr 2010 14:57:42 +0200 + +fglrx-installer (2:8.721-0ubuntu10) lucid; urgency=low + + * debian/rules: + - check DEB_HOST_ARCH, not DEB_BUILD_ARCH, so a cross-build + test is useful for detecting problems... + - handle dh_installdirs differently, since dh apparently calls this oddly + (due to the varying architecture fields in debian/control, I think?) + - can't use {foo,bar} expansions with /bin/sh; move the list of files to + remove to debian/clean. + + -- Steve Langasek Fri, 09 Apr 2010 23:30:13 +0000 + +fglrx-installer (2:8.721-0ubuntu9) lucid; urgency=low + + * debian/rules: make sure dh_installdirs is called before trying to write + out modprobe.conf in a directory it creates. + + -- Steve Langasek Fri, 09 Apr 2010 22:30:21 +0000 + +fglrx-installer (2:8.721-0ubuntu8) lucid; urgency=low + + * debian/rules, fglrx.dirs, fglrx.postinst: + - Install the blacklist file in /lib/fglrx instead of + /usr/lib/fglrx so that the file is available early + in the boot process when /usr is on a different + partition (LP: #538071). + - Ignore errors when trying to update the initramfs + with -k $CURRENT_KERNEL which is known to fail when + using chroots (LP: #556653). + - Make 10fglrx a slave link so that it's removed from + /etc/X11/Xsession.d when we switch to a different + alternative (LP: #552903). + * debian/fglrx.preinst: + - Make sure that any 10fglrx file in /etc/X11/Xsession.d + which is not a symbolic link is removed. + - Remove diversions previously added by xorg-driver-fglrx + not by fglrx (LP: #552782). Thanks to Steve Langasek + for spotting the problem. + + -- Alberto Milone Thu, 08 Apr 2010 18:37:48 +0200 + +fglrx-installer (2:8.721-0ubuntu7) lucid; urgency=low + + * debian/control: + - Do not conflict with the old packages name (LP: #545992). + - Provide libamdxvba1. + + -- Alberto Milone Tue, 30 Mar 2010 12:18:49 +0200 + +fglrx-installer (2:8.721-0ubuntu6) lucid; urgency=low + + * fglrx-supported: + - The package name that gets installed is now 'fglrx'. Make sure that's + what is listed in the modaliases. + + -- Mario Limonciello Mon, 29 Mar 2010 17:07:50 -0500 + +fglrx-installer (2:8.721-0ubuntu5) lucid; urgency=low + + * debian/control: + - Add transitional packages for xorg-driver-fglrx and + fglrx-kernel-source so that trying to install them doesn't + result in the removal of the xserver any longer. + + -- Alberto Milone Mon, 22 Mar 2010 10:41:54 +0100 + +fglrx-installer (2:8.721-0ubuntu4) lucid; urgency=low + + * debian/control: + - Set Ubuntu Core Developers as the maintainers instead of Mario + as he requested. + * debian/fglrx.postinst: + - Add slave link to libAMDXvBA.cap in /usr/lib so that programs + using the VA API can work correctly. Thanks to Kano for + spotting the problem. + + -- Alberto Milone Sun, 21 Mar 2010 10:49:48 +0100 + +fglrx-installer (2:8.721-0ubuntu3) lucid; urgency=low + + * debian/rules: + - Fix problem with buildds by using binary-arch instead of binary + and by calling binary-arch and binary-indep from binary. + + -- Alberto Milone Sat, 20 Mar 2010 18:28:10 +0100 + +fglrx-installer (2:8.721-0ubuntu2) lucid; urgency=low + + * Correct the log of the previous revision. + + -- Alberto Milone Fri, 19 Mar 2010 22:26:04 +0100 + +fglrx-installer (2:8.721-0ubuntu1) lucid; urgency=low + + * New upstream release: + - Restore compatibility with kernel 2.6.32 and xserver 1.7 (LP: #494699). + * Port packaging to the new alternatives system (LP: #258038). + + -- Alberto Milone Wed, 17 Mar 2010 10:14:45 +0100 + +fglrx-installer (2:8.660-0ubuntu6) lucid; urgency=low + + * debian/control: + - Provide xserver-xorg-video-5 so as to make the package + uninstallable until AMD restores compatibility with X. + + -- Alberto Milone Wed, 10 Feb 2010 10:14:14 -0500 + +fglrx-installer (2:8.660-0ubuntu5) lucid; urgency=low + + * Add 05-fix_missing_signal_include.diff, which lets fglrx compile against + Linux 2.6.32-rc5. Thanks to Stefan Bühler for his patch. Fixed in debian + fglrx-driver (1:9-10-2) (LP: #485444) + + -- SevenMachines Fri, 20 Nov 2009 06:50:27 +0000 + +fglrx-installer (2:8.660-0ubuntu4) karmic; urgency=low + + * Force fglrx-rt-compat.patch applied only on 2.6.28 + * Added new patch for rt kernel flavour (rt_preempt_31.patch) (LP: #159941) + + -- Alessio Igor Bogani Mon, 12 Oct 2009 22:31:02 +0200 + +fglrx-installer (2:8.660-0ubuntu3) karmic; urgency=low + + [ Alberto Milone] + * debian/control: + - Change the section of the -modaliases package to "admin" as + the package is not "restricted" (LP: #429153). + + [ Kees Cook ] + * debian/control: + - Add build dependency on execstack. + * debian/rules: + - Drop executable stack markings from precompiled + binaries (LP: #409440). + + -- Alberto Milone Fri, 25 Sep 2009 18:36:42 +0200 + +fglrx-installer (2:8.660-0ubuntu2) karmic; urgency=low + + * The XVBA libraries have silently removed the dependency on libstdc++5 + in driver version 8.63. Remove the dependency of the libamdxvba1 package + on libstdc++5. LP: #432021. + + -- Matthias Klose Sat, 19 Sep 2009 17:24:58 +0200 + +fglrx-installer (2:8.660-0ubuntu1) karmic; urgency=low + + * New upstream release. + + Fix freeze on boot with purple and green ubuntu logos + (LP: #423711) + + Fix boot failure due to DKMS change. Sometimes X crashes as result. + (LP: #417617, #413751) + + Make fglrx compile with dkms on 2.6.30 and 2.6.31 for amd64 + (LP: #410062) + + Fix "Desktop effects could not be enabled" on HD 4850 and HD 4870 + (LP: #417500, #408633) + + Provide support for 2.6.31 kernel + (LP: #413791) + + Use Catalyst Control Center for display configuration + (LP: #410512) + + Catalyst Control Center shows up in Apps > Accessories, should be in + System > Administration > Display + (LP: #423670) + + -- Bryce Harrington Fri, 04 Sep 2009 15:05:07 -0700 + +fglrx-installer (2:8.620-0ubuntu3) karmic; urgency=low + + * debian/dkms/patches/missing-flush_tlb.patch (LP: #394176) + - Borrow this patch from debian to fix missing symbol. + * debian/dkms.conf.in: + - Apply patches on 2.6.30 and 2.6.31. + + -- Mario Limonciello Thu, 02 Jul 2009 12:05:20 -0500 + +fglrx-installer (2:8.620-0ubuntu2) karmic; urgency=low + + * Issues resolved since 9.4 (No package changes; Mario just beat me to the upload): + + With desktop effects enabled, transparent desktop no longer causes desktop icons and + application windows to disappear + + Video playback no longer exhibits corruption when desktop effects are enabled and + Composite is not explicitly disabled + + [Ubuntu 8.10] System now functions properly when starting X on surround view + systems + + Resizing DVD playback window on Mplayer no longer causes blank video + + System instability no longer occurring when switching to full screen DVD playback + with Totem Player + + Terminal window no longer displays error message when launching Catalyst Control + Center in MultiView + + [Ubuntu 9.04] Xserver now starts properly with ATI Radeon HD 4870 GPU + configurations + + [Ubuntu 9.04] When xrandr --prop is evoked, Xserver failure no longer occurs under + various system configurations + + The engine clock and memory clock values are now reported properly by ATI CAL + + Catalyst Control Center, the primary display is now identified when using the + Identify Displays button + + Error message no longer occurs while setting the TV geometry + + Game corruption does not happen in full screen when 2 monitors are connected and + RandR 1.2 is enabled + + TV screen corruption is no longer visible while starting the X-server on some ASICs + + Executing the following command : aticonfig --initial -f does not cause the following + message "No supported adapters detected" on some display adapters + + Detecting second display using amdccle "Detect Display" button no longer results in + error and will require a relaunch to detect both displays properly + (LP: #348400) + + Mplayer does not fail to render video when resizing DVD playback window + + Fixed: Some system may become unresponsive after starting and killing X-server + (LP: #355821) + + System no longer fail to respond when executing multiple server + generations + + Memory leak on RV630 (LP: #368271) + + dpms switches off backlight on laptop screen properly (LP: #363059) + + Display Preferences no longer causes 100% CPU usage and failure (LP: #366757) + + -- Bryce Harrington Fri, 26 Jun 2009 22:07:19 -0700 + +fglrx-installer (2:8.620-0ubuntu1) karmic; urgency=low + + * New upstream release (9-6) + * Add a series of patches to get this compiling on 2.6.30. (LP: #387773) + - Note: these are NOT in the upstream package, so be cognizant when + upgrading to a new version of the package in Ubuntu. + - config_x86_32-gentoo.patch: From Gentoo bug tracker + - fglrx-2.6.29-debian.patch: From Debian SVN + - fglrx-2.6.30-irqreturn_t.patch: From Gentoo bug tracker + - fglrx-missing-pci_enable_msi.patch: From Gentoo bug tracker + + -- Mario Limonciello Wed, 24 Jun 2009 12:26:42 -0500 + +fglrx-installer (2:8.600-0ubuntu2) jaunty; urgency=low + + * Update fglrx-rt-compat.patch. Thanks Alessio Igor Bogani (LP: #328856) + * Update location of fglrx-rt-compat.patch from debian/dkms/patches/patches + to debian/dkms/patches + + -- Mario Limonciello Tue, 31 Mar 2009 12:12:37 -0500 + +fglrx-installer (2:8.600-0ubuntu1) jaunty; urgency=low + + * New upstream release. (Closes LP: #313027, #314600) + - Fixes LP: #253988, #179042, #241176, #284408, #287229, #296497, + #288620, #289628 + * README.Debian: Update the update procedure a bit + + -- Bryce Harrington Tue, 17 Mar 2009 15:40:42 -0700 + +fglrx-installer (2:8.573-0ubuntu4) jaunty; urgency=low + + * debian/xorg-driver-fglrx.postinst: + - Transition start of atieventsd with priority 31. It needs to start after + GDM and oem-config to ensure there aren't any lockups. (LP: #330188) + * debian/rules: + - Start atieventsd at 31. + + -- Mario Limonciello Mon, 16 Feb 2009 16:52:25 -0600 + +fglrx-installer (2:8.573-0ubuntu3) jaunty; urgency=low + + * debian/10fglrx.in: + - Check if LD_LIBRARY_PATH is empty when we append to it. (LP: #323327) + + -- Mario Limonciello Mon, 09 Feb 2009 18:50:46 -0600 + +fglrx-installer (2:8.573-0ubuntu2) jaunty; urgency=low + + * debian/control: + - Add libxinerama1 to build depends. + * debian/xorg-driver-fglrx.preinst: + - Move user modifications out of the way for files that are stored in + /etc/ati when upgrading package. Unfortunately, although these files + are stored in /etc, AMD has indicated that they should not be treated + as conf files. (LP: 307643) + * debian/fglrx-kernel-source.prerm: + - Add in a check for old versions of fglrx that might have DKMS directories + sitting around. If any are found, they are removed so as to prevent possible + conflicts. (LP: #303148) + + -- Mario Limonciello Mon, 02 Feb 2009 14:31:34 -0600 + +fglrx-installer (2:8.573-0ubuntu1) jaunty; urgency=low + + * New upstream release. (9-1). + - This release still does *not* meet the Xorg server 1.6 ABI. + It is being uploaded to ensure that there are no other integration + related issues that come up. + + -- Mario Limonciello Thu, 29 Jan 2009 20:37:38 -0600 + +fglrx-installer (2:8.552-0ubuntu1) jaunty; urgency=low + + * New upstream release. + * debian/control: + - Don't list the graphics cards supported, this is a moving target + that is difficult to keep up with. (LP: #292436) + * Move replacements for kernel source into debian/dkms + * Add patch for RT support to debian/dkms (LP: #286961) + * debian/dkms.conf.in: + - Use RT patch. + + -- Mario Limonciello Thu, 13 Nov 2008 10:30:20 -0600 + +fglrx-installer (2:8.543-0ubuntu4) intrepid; urgency=low + + [ Mario Limonciello ] + * debian/rules: + - Don't copy the libAMDXvBA.so* into multiple packages + on AMD64 (LP: #287159) + * debian/control: + - xorg-driver-fglrx: Drop libamdxvba1 to suggests so that fglrx can be put + onto DVDs. + * Replace authatieventsd.sh with our own variation that works with KDM. + (LP: #38915) + + [ Matthias Klose ] + * debian/control: + - xorg-driver-fglrx: Drop dependency on ia32-libs [amd64], add dependencies + on lib32gcc1 [amd64], libc6-i386 [amd64]. + - libamdxvba1: Add dependency on ia32-libs [amd64]. + + -- Mario Limonciello Wed, 22 Oct 2008 11:55:59 -0500 + +fglrx-installer (2:8.543-0ubuntu3) intrepid; urgency=low + + * debian/control: + - Drop build-depends on libstdc++5. (LP: #271794) + - Drop build-depends on ia32-libs + - Install libAMDXvBA.so* into it's own package. + * debian/rules: + - Work around missing libstdc++5 at build-depends time. + * Add the following files to support this new binary package: + - debian/libamdxvba.postinst + - debian/libamdxvba.install.in + + -- Mario Limonciello Thu, 16 Oct 2008 15:04:46 -0500 + +fglrx-installer (2:8.543-0ubuntu2) intrepid; urgency=low + + * debian/control: + - Depends on linux-headers-generic | linux-headers to help + cover more of the 90 percent case that people are using the + generic kernel (LP: #284091) + + -- Mario Limonciello Thu, 16 Oct 2008 08:52:34 -0500 + +fglrx-installer (2:8.543-0ubuntu1) intrepid; urgency=low + + * New upstream release. (Closes lp: #247376) + * control: Re-enabled provides of xserver-xorg-video-2 since + this upload works with the current xserver. + * README.Debian: Itemize update procedure + + -- Bryce Harrington Tue, 14 Oct 2008 14:12:06 -0700 + +fglrx-installer (2:8.532-0ubuntu5) intrepid; urgency=low + + * control: xorg-driver-fglrx Provides: xserver-xorg-video-2. The + driver doesn't work with the current xserver, so no reason to + pretend that it would. This prevents breaking upgrades from hardy + where the driver would be updated and on reboot X would fail. + + -- Timo Aaltonen Thu, 25 Sep 2008 11:46:28 +0300 + +fglrx-installer (2:8.532-0ubuntu4) intrepid; urgency=low + + * Update 2.6.27 patch again. (LP: #266956) + + -- Mario Limonciello Sun, 21 Sep 2008 15:32:19 -0500 + +fglrx-installer (2:8.532-0ubuntu3) intrepid; urgency=low + + [ Alberto Milone (tseliot) ] + * debian/modaliases/fglrx_supported: + - Add "xorg-driver-fglrx" to the strings printed to + fglrx-modules.alias.override so that Jockey can + detect the name of the package to install (LP: #258641) + + [ Mario Limonciello ] + * debian/kernel-source-patches/fglrx_8.9_2.6.27.patch: + - Update to compile on x86_64 for 2.6.27 (LP: #266956) + + -- Mario Limonciello Sun, 21 Sep 2008 12:29:18 -0500 + +fglrx-installer (2:8.532-0ubuntu2) intrepid; urgency=low + + * debian/fglrx-kernel-source.patches: + - Install to DKMS patches directory (LP: #266956) + + -- Mario Limonciello Fri, 19 Sep 2008 08:49:21 -0500 + +fglrx-installer (2:8.532-0ubuntu1) intrepid; urgency=low + + * Add debian/kernel-source-patches/fglrx_8.9_2.6.27.patch + to allow compiling against 2.6.27. (LP: #266956) + * debian/dkms.conf.in: + - Use 2.6.27 patch when building against 2.6.27 + * debian/fglrx-kernel-source.install.in: + - Install patches in kernel-source-patches. + + -- Mario Limonciello Thu, 18 Sep 2008 12:08:46 -0500 + +fglrx-installer (2:8.522-0ubuntu4) intrepid; urgency=low + + * Rebuild against the new xserver-xorg-dev. + + -- Bryce Harrington Fri, 12 Sep 2008 00:54:13 +0000 + +fglrx-installer (2:8.522-0ubuntu3) intrepid; urgency=low + + "3rd time's a charm" + * Don't divert extensions either. Causes big breakage when starting X. + + -- Mario Limonciello Wed, 20 Aug 2008 12:47:26 -0500 + +fglrx-installer (2:8.522-0ubuntu2) intrepid; urgency=low + + * Don't install extensions directory as no additional + extensions are included in this version. + + -- Mario Limonciello Wed, 20 Aug 2008 12:38:10 -0500 + +fglrx-installer (2:8.522-0ubuntu1) intrepid; urgency=low + + * New upstream release. + * Drop 02_2.6.26_support.dpatch as 2.6.26 support is available now. + * debian/control: + - Conflict w/ pentium-builder (LP: #180831) + - Update nvidia conflicts (LP: #254969) + * Correct LIBGL_DRIVERS_PATH (LP: #250944) + * Cleanup diversion prerm scripts (LP: #257003) + + -- Mario Limonciello Wed, 20 Aug 2008 12:34:16 -0500 + +fglrx-installer (2:8.512-0ubuntu1) intrepid; urgency=low + + * New upstream release. + * Update 02_2.6.26_support.dpatch for changes in firegl_public.c. + * debian/control: + - Depend upon libstdc++5. + * debian/xorg-driver-fglrx.postrm: + - Clean up AMD64 diversions properly. + + -- Mario Limonciello Mon, 21 Jul 2008 13:58:26 -0500 + +fglrx-installer (2:8.501-0ubuntu3) intrepid; urgency=low + + * drop debian/patches/01_2.6.25.patch: + - Causes regressions on RadeonHD 3670 hardware. + + -- Mario Limonciello Mon, 07 Jul 2008 14:37:55 -0500 + +fglrx-installer (2:8.501-0ubuntu2) intrepid; urgency=low + + [ Mario Limonciello ] + * debian/fglrx-modaliases.install: + - Install to /usr/share/jockey/modaliases instead + * debian/control: + - Bump standards version to 3.8.0. + - Add fglrx-amdcccle to xorg-driver-fglrx Recommends + * debian/rules: + - Don't start atieventsd on package install as it steals X permissions + until the next reboot. + - Add support to apply patches to the development release. This is + determined by querying distro target in the changelog. + -- Don't use packages not intended for your distro! -- + * debian/README.Debian: + - Add a small blurb explaining kernel patches. + + [ Žilvinas Valinskas ] + * debian/patches/01_2.6.25.patch: + - Adds 2.6.25 support (valid for AMD's 8-5 release), at least until + AMD formally adds it. + * debian/patches/02_2.6.26.patch: + - Adds 2.6.26 support (valid for AMD's 8-6 release), at least until + AMD formally adds it. (LP: #239967) + + -- Mario Limonciello Mon, 07 Jul 2008 12:06:05 -0500 + +fglrx-installer (2:8.501-0ubuntu1) intrepid; urgency=low + + * New upstream release. + + -- Mario Limonciello Thu, 19 Jun 2008 01:46:54 -0500 + +fglrx-installer (2:8.493.1-0ubuntu5) intrepid; urgency=low + + * debian/replacements/* + - Include Makefile and make.sh that support passing kernel version + as a parameter until upstream resolves issues. + * debian/dkms.conf.in: + - Explicitly use kernel version as parameter to make scripts. + * debian/fglrx-kernel-source.in: + - Include our variants of make scripts since upstream hasn't fixed + there's yet. + + -- Mario Limonciello Thu, 12 Jun 2008 15:34:14 -0500 + +fglrx-installer (2:8.493.1-0ubuntu4) intrepid; urgency=low + + * debian/control: + - Force the Section to be restricted/misc instead of just restricted. + + -- Mario Limonciello Tue, 27 May 2008 15:26:38 -0500 + +fglrx-installer (2:8.493.1-0ubuntu3) intrepid; urgency=low + + * debian/control: + - Explicitly only indicate i386 and amd64 for ALL binary packages. We don't want + sparc, hppa, or lpia showing up. + + -- Mario Limonciello Tue, 27 May 2008 14:34:13 -0500 + +fglrx-installer (2:8.493.1-0ubuntu2) intrepid; urgency=low + + * debian/rules: + - Specify $(LIBDIR) for calculating modaliases. + Fixes transient failure on AMD64 boxes. + + -- Mario Limonciello Tue, 27 May 2008 14:23:21 -0500 + +fglrx-installer (2:8.493.1-0ubuntu1) intrepid; urgency=low + + * Initial release. + - This package was directly generated from the upstream AMD driver's built-in + scripts. By generating this way, the driver will always be in sync without + integration problems. + + -- Mario Limonciello Tue, 27 May 2008 10:50:16 -0500 + --- fglrx-installer-8.960.orig/debian/fglrx.atieventsd.init +++ fglrx-installer-8.960/debian/fglrx.atieventsd.init @@ -0,0 +1,56 @@ +#!/bin/sh + +### BEGIN INIT INFO +# Provides: atieventsd +# Required-Start: $syslog +# Required-Stop: $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Start daemon at boot time +# Description: Enable service provided by daemon. +### END INIT INFO + +# Original design: +# Copyright (c) 2006, ATI Technologies Inc. All rights reserved. + +PATH=/sbin:/bin:/usr/sbin:/usr/bin + +DAEMONPATH=/usr/sbin/atieventsd +DAEMONNAME=atieventsd +DAEMONOPTS="" + +[ -f $DAEMONPATH ] || exit 0 + +. /lib/lsb/init-functions + +case "$1" in + start) + log_daemon_msg "Starting $DAEMONNAME" + start-stop-daemon --start --quiet --oknodo --exec $DAEMONPATH -- $DAEMONOPTS + log_end_msg $? + ;; + + stop) + log_daemon_msg "Stopping $DAEMONNAME" + start-stop-daemon --stop --quiet --exec $DAEMONPATH --oknodo + log_end_msg $? + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + reload|force-reload) log_daemon_msg "Reloading isn't supported by $DAEMONNAME" + log_end_msg 0 + ;; + + *) + echo "$0 {start|stop|restart}" + exit 1 + ;; +esac + +exit 0 + --- fglrx-installer-8.960.orig/debian/dkms.conf.in +++ fglrx-installer-8.960/debian/dkms.conf.in @@ -0,0 +1,12 @@ +PACKAGE_NAME="fglrx" +PACKAGE_VERSION="#CVERSION#" +#Prevent builds with kernels newer than the ones we ship +CLEAN="rm -f *.*o" +BUILT_MODULE_NAME[0]="fglrx" +MAKE[0]="cd ${dkms_tree}/fglrx/#CVERSION#/build; sh make.sh --nohints --uname_r=$kernelver --norootcheck" +DEST_MODULE_LOCATION[0]="/kernel/drivers/char/drm" +AUTOINSTALL="yes" +PATCH[0]="fix-build-issue-on-i386-where-TS_USEDFPU-is-no-longe.patch" +#PATCH_MATCH[0]="^3.0" +#PATCH[0]="rt_preempt_28.patch" +#PATCH_MATCH[0]="^2.6.28\-[0-9]*\-rt$" --- fglrx-installer-8.960.orig/debian/fglrx.grub-gfxpayload.in +++ fglrx-installer-8.960/debian/fglrx.grub-gfxpayload.in @@ -0,0 +1,7 @@ +# Warning: This file was autogenerated by #DRIVERNAME#. +# All changes to this file will be lost. +# +# Blacklist cards here +# +# Example: blacklist all AMD graphics cards +# v1002d.*sv.*sd.*bc03sc.* --- fglrx-installer-8.960.orig/debian/changelog.in +++ fglrx-installer-8.960/debian/changelog.in @@ -0,0 +1,414 @@ +fglrx-installer (2:8.660-0ubuntu4) karmic; urgency=low + + * Force fglrx-rt-compat.patch applied only on 2.6.28 + * Added new patch for rt kernel flavour (rt_preempt_31.patch) (LP: #159941) + + -- Alessio Igor Bogani Mon, 12 Oct 2009 22:31:02 +0200 + +fglrx-installer (2:8.660-0ubuntu3) karmic; urgency=low + + [ Alberto Milone] + * debian/control: + - Change the section of the -modaliases package to "admin" as + the package is not "restricted" (LP: #429153). + + [ Kees Cook ] + * debian/control: + - Add build dependency on execstack. + * debian/rules: + - Drop executable stack markings from precompiled + binaries (LP: #409440). + + -- Alberto Milone Fri, 25 Sep 2009 18:36:42 +0200 + +fglrx-installer (2:8.660-0ubuntu2) karmic; urgency=low + + * The XVBA libraries have silently removed the dependency on libstdc++5 + in driver version 8.63. Remove the dependency of the libamdxvba1 package + on libstdc++5. LP: #432021. + + -- Matthias Klose Sat, 19 Sep 2009 17:24:58 +0200 + +fglrx-installer (2:8.660-0ubuntu1) karmic; urgency=low + + * New upstream release. + + Fix freeze on boot with purple and green ubuntu logos + (LP: #423711) + + Fix boot failure due to DKMS change. Sometimes X crashes as result. + (LP: #417617, #413751) + + Make fglrx compile with dkms on 2.6.30 and 2.6.31 for amd64 + (LP: #410062) + + Fix "Desktop effects could not be enabled" on HD 4850 and HD 4870 + (LP: #417500, #408633) + + Provide support for 2.6.31 kernel + (LP: #413791) + + Use Catalyst Control Center for display configuration + (LP: #410512) + + Catalyst Control Center shows up in Apps > Accessories, should be in + System > Administration > Display + (LP: #423670) + + -- Bryce Harrington Fri, 04 Sep 2009 15:05:07 -0700 + +fglrx-installer (2:8.620-0ubuntu3) karmic; urgency=low + + * debian/dkms/patches/missing-flush_tlb.patch (LP: #394176) + - Borrow this patch from debian to fix missing symbol. + * debian/dkms.conf.in: + - Apply patches on 2.6.30 and 2.6.31. + + -- Mario Limonciello Thu, 02 Jul 2009 12:05:20 -0500 + +fglrx-installer (2:8.620-0ubuntu2) karmic; urgency=low + + * Issues resolved since 9.4 (No package changes; Mario just beat me to the upload): + + With desktop effects enabled, transparent desktop no longer causes desktop icons and + application windows to disappear + + Video playback no longer exhibits corruption when desktop effects are enabled and + Composite is not explicitly disabled + + [Ubuntu 8.10] System now functions properly when starting X on surround view + systems + + Resizing DVD playback window on Mplayer no longer causes blank video + + System instability no longer occurring when switching to full screen DVD playback + with Totem Player + + Terminal window no longer displays error message when launching Catalyst Control + Center in MultiView + + [Ubuntu 9.04] Xserver now starts properly with ATI Radeon HD 4870 GPU + configurations + + [Ubuntu 9.04] When xrandr --prop is evoked, Xserver failure no longer occurs under + various system configurations + + The engine clock and memory clock values are now reported properly by ATI CAL + + Catalyst Control Center, the primary display is now identified when using the + Identify Displays button + + Error message no longer occurs while setting the TV geometry + + Game corruption does not happen in full screen when 2 monitors are connected and + RandR 1.2 is enabled + + TV screen corruption is no longer visible while starting the X-server on some ASICs + + Executing the following command : aticonfig --initial -f does not cause the following + message "No supported adapters detected" on some display adapters + + Detecting second display using amdccle "Detect Display" button no longer results in + error and will require a relaunch to detect both displays properly + (LP: #348400) + + Mplayer does not fail to render video when resizing DVD playback window + + Fixed: Some system may become unresponsive after starting and killing X-server + (LP: #355821) + + System no longer fail to respond when executing multiple server + generations + + Memory leak on RV630 (LP: #368271) + + dpms switches off backlight on laptop screen properly (LP: #363059) + + Display Preferences no longer causes 100% CPU usage and failure (LP: #366757) + + -- Bryce Harrington Fri, 26 Jun 2009 22:07:19 -0700 + +fglrx-installer (2:8.620-0ubuntu1) karmic; urgency=low + + * New upstream release (9-6) + * Add a series of patches to get this compiling on 2.6.30. (LP: #387773) + - Note: these are NOT in the upstream package, so be cognizant when + upgrading to a new version of the package in Ubuntu. + - config_x86_32-gentoo.patch: From Gentoo bug tracker + - fglrx-2.6.29-debian.patch: From Debian SVN + - fglrx-2.6.30-irqreturn_t.patch: From Gentoo bug tracker + - fglrx-missing-pci_enable_msi.patch: From Gentoo bug tracker + + -- Mario Limonciello Wed, 24 Jun 2009 12:26:42 -0500 + +fglrx-installer (2:8.600-0ubuntu2) jaunty; urgency=low + + * Update fglrx-rt-compat.patch. Thanks Alessio Igor Bogani (LP: #328856) + * Update location of fglrx-rt-compat.patch from debian/dkms/patches/patches + to debian/dkms/patches + + -- Mario Limonciello Tue, 31 Mar 2009 12:12:37 -0500 + +fglrx-installer (2:8.600-0ubuntu1) jaunty; urgency=low + + * New upstream release. (Closes LP: #313027, #314600) + - Fixes LP: #253988, #179042, #241176, #284408, #287229, #296497, + #288620, #289628 + * README.Debian: Update the update procedure a bit + + -- Bryce Harrington Tue, 17 Mar 2009 15:40:42 -0700 + +fglrx-installer (2:8.573-0ubuntu4) jaunty; urgency=low + + * debian/xorg-driver-fglrx.postinst: + - Transition start of atieventsd with priority 31. It needs to start after + GDM and oem-config to ensure there aren't any lockups. (LP: #330188) + * debian/rules: + - Start atieventsd at 31. + + -- Mario Limonciello Mon, 16 Feb 2009 16:52:25 -0600 + +fglrx-installer (2:8.573-0ubuntu3) jaunty; urgency=low + + * debian/10fglrx.in: + - Check if LD_LIBRARY_PATH is empty when we append to it. (LP: #323327) + + -- Mario Limonciello Mon, 09 Feb 2009 18:50:46 -0600 + +fglrx-installer (2:8.573-0ubuntu2) jaunty; urgency=low + + * debian/control: + - Add libxinerama1 to build depends. + * debian/xorg-driver-fglrx.preinst: + - Move user modifications out of the way for files that are stored in + /etc/ati when upgrading package. Unfortunately, although these files + are stored in /etc, AMD has indicated that they should not be treated + as conf files. (LP: 307643) + * debian/fglrx-kernel-source.prerm: + - Add in a check for old versions of fglrx that might have DKMS directories + sitting around. If any are found, they are removed so as to prevent possible + conflicts. (LP: #303148) + + -- Mario Limonciello Mon, 02 Feb 2009 14:31:34 -0600 + +fglrx-installer (2:8.573-0ubuntu1) jaunty; urgency=low + + * New upstream release. (9-1). + - This release still does *not* meet the Xorg server 1.6 ABI. + It is being uploaded to ensure that there are no other integration + related issues that come up. + + -- Mario Limonciello Thu, 29 Jan 2009 20:37:38 -0600 + +fglrx-installer (2:8.552-0ubuntu1) jaunty; urgency=low + + * New upstream release. + * debian/control: + - Don't list the graphics cards supported, this is a moving target + that is difficult to keep up with. (LP: #292436) + * Move replacements for kernel source into debian/dkms + * Add patch for RT support to debian/dkms (LP: #286961) + * debian/dkms.conf.in: + - Use RT patch. + + -- Mario Limonciello Thu, 13 Nov 2008 10:30:20 -0600 + +fglrx-installer (2:8.543-0ubuntu4) intrepid; urgency=low + + [ Mario Limonciello ] + * debian/rules: + - Don't copy the libAMDXvBA.so* into multiple packages + on AMD64 (LP: #287159) + * debian/control: + - xorg-driver-fglrx: Drop libamdxvba1 to suggests so that fglrx can be put + onto DVDs. + * Replace authatieventsd.sh with our own variation that works with KDM. + (LP: #38915) + + [ Matthias Klose ] + * debian/control: + - xorg-driver-fglrx: Drop dependency on ia32-libs [amd64], add dependencies + on lib32gcc1 [amd64], libc6-i386 [amd64]. + - libamdxvba1: Add dependency on ia32-libs [amd64]. + + -- Mario Limonciello Wed, 22 Oct 2008 11:55:59 -0500 + +fglrx-installer (2:8.543-0ubuntu3) intrepid; urgency=low + + * debian/control: + - Drop build-depends on libstdc++5. (LP: #271794) + - Drop build-depends on ia32-libs + - Install libAMDXvBA.so* into it's own package. + * debian/rules: + - Work around missing libstdc++5 at build-depends time. + * Add the following files to support this new binary package: + - debian/libamdxvba.postinst + - debian/libamdxvba.install.in + + -- Mario Limonciello Thu, 16 Oct 2008 15:04:46 -0500 + +fglrx-installer (2:8.543-0ubuntu2) intrepid; urgency=low + + * debian/control: + - Depends on linux-headers-generic | linux-headers to help + cover more of the 90 percent case that people are using the + generic kernel (LP: #284091) + + -- Mario Limonciello Thu, 16 Oct 2008 08:52:34 -0500 + +fglrx-installer (2:8.543-0ubuntu1) intrepid; urgency=low + + * New upstream release. (Closes lp: #247376) + * control: Re-enabled provides of xserver-xorg-video-2 since + this upload works with the current xserver. + * README.Debian: Itemize update procedure + + -- Bryce Harrington Tue, 14 Oct 2008 14:12:06 -0700 + +fglrx-installer (2:8.532-0ubuntu5) intrepid; urgency=low + + * control: xorg-driver-fglrx Provides: xserver-xorg-video-2. The + driver doesn't work with the current xserver, so no reason to + pretend that it would. This prevents breaking upgrades from hardy + where the driver would be updated and on reboot X would fail. + + -- Timo Aaltonen Thu, 25 Sep 2008 11:46:28 +0300 + +fglrx-installer (2:8.532-0ubuntu4) intrepid; urgency=low + + * Update 2.6.27 patch again. (LP: #266956) + + -- Mario Limonciello Sun, 21 Sep 2008 15:32:19 -0500 + +fglrx-installer (2:8.532-0ubuntu3) intrepid; urgency=low + + [ Alberto Milone (tseliot) ] + * debian/modaliases/fglrx_supported: + - Add "xorg-driver-fglrx" to the strings printed to + fglrx-modules.alias.override so that Jockey can + detect the name of the package to install (LP: #258641) + + [ Mario Limonciello ] + * debian/kernel-source-patches/fglrx_8.9_2.6.27.patch: + - Update to compile on x86_64 for 2.6.27 (LP: #266956) + + -- Mario Limonciello Sun, 21 Sep 2008 12:29:18 -0500 + +fglrx-installer (2:8.532-0ubuntu2) intrepid; urgency=low + + * debian/fglrx-kernel-source.patches: + - Install to DKMS patches directory (LP: #266956) + + -- Mario Limonciello Fri, 19 Sep 2008 08:49:21 -0500 + +fglrx-installer (2:8.532-0ubuntu1) intrepid; urgency=low + + * Add debian/kernel-source-patches/fglrx_8.9_2.6.27.patch + to allow compiling against 2.6.27. (LP: #266956) + * debian/dkms.conf.in: + - Use 2.6.27 patch when building against 2.6.27 + * debian/fglrx-kernel-source.install.in: + - Install patches in kernel-source-patches. + + -- Mario Limonciello Thu, 18 Sep 2008 12:08:46 -0500 + +fglrx-installer (2:8.522-0ubuntu4) intrepid; urgency=low + + * Rebuild against the new xserver-xorg-dev. + + -- Bryce Harrington Fri, 12 Sep 2008 00:54:13 +0000 + +fglrx-installer (2:8.522-0ubuntu3) intrepid; urgency=low + + "3rd time's a charm" + * Don't divert extensions either. Causes big breakage when starting X. + + -- Mario Limonciello Wed, 20 Aug 2008 12:47:26 -0500 + +fglrx-installer (2:8.522-0ubuntu2) intrepid; urgency=low + + * Don't install extensions directory as no additional + extensions are included in this version. + + -- Mario Limonciello Wed, 20 Aug 2008 12:38:10 -0500 + +fglrx-installer (2:8.522-0ubuntu1) intrepid; urgency=low + + * New upstream release. + * Drop 02_2.6.26_support.dpatch as 2.6.26 support is available now. + * debian/control: + - Conflict w/ pentium-builder (LP: #180831) + - Update nvidia conflicts (LP: #254969) + * Correct LIBGL_DRIVERS_PATH (LP: #250944) + * Cleanup diversion prerm scripts (LP: #257003) + + -- Mario Limonciello Wed, 20 Aug 2008 12:34:16 -0500 + +fglrx-installer (2:8.512-0ubuntu1) intrepid; urgency=low + + * New upstream release. + * Update 02_2.6.26_support.dpatch for changes in firegl_public.c. + * debian/control: + - Depend upon libstdc++5. + * debian/xorg-driver-fglrx.postrm: + - Clean up AMD64 diversions properly. + + -- Mario Limonciello Mon, 21 Jul 2008 13:58:26 -0500 + +fglrx-installer (2:8.501-0ubuntu3) intrepid; urgency=low + + * drop debian/patches/01_2.6.25.patch: + - Causes regressions on RadeonHD 3670 hardware. + + -- Mario Limonciello Mon, 07 Jul 2008 14:37:55 -0500 + +fglrx-installer (2:8.501-0ubuntu2) intrepid; urgency=low + + [ Mario Limonciello ] + * debian/fglrx-modaliases.install: + - Install to /usr/share/jockey/modaliases instead + * debian/control: + - Bump standards version to 3.8.0. + - Add fglrx-amdcccle to xorg-driver-fglrx Recommends + * debian/rules: + - Don't start atieventsd on package install as it steals X permissions + until the next reboot. + - Add support to apply patches to the development release. This is + determined by querying distro target in the changelog. + -- Don't use packages not intended for your distro! -- + * debian/README.Debian: + - Add a small blurb explaining kernel patches. + + [ Žilvinas Valinskas ] + * debian/patches/01_2.6.25.patch: + - Adds 2.6.25 support (valid for AMD's 8-5 release), at least until + AMD formally adds it. + * debian/patches/02_2.6.26.patch: + - Adds 2.6.26 support (valid for AMD's 8-6 release), at least until + AMD formally adds it. (LP: #239967) + + -- Mario Limonciello Mon, 07 Jul 2008 12:06:05 -0500 + +fglrx-installer (2:8.501-0ubuntu1) intrepid; urgency=low + + * New upstream release. + + -- Mario Limonciello Thu, 19 Jun 2008 01:46:54 -0500 + +fglrx-installer (2:8.493.1-0ubuntu5) intrepid; urgency=low + + * debian/replacements/* + - Include Makefile and make.sh that support passing kernel version + as a parameter until upstream resolves issues. + * debian/dkms.conf.in: + - Explicitly use kernel version as parameter to make scripts. + * debian/fglrx-kernel-source.in: + - Include our variants of make scripts since upstream hasn't fixed + there's yet. + + -- Mario Limonciello Thu, 12 Jun 2008 15:34:14 -0500 + +fglrx-installer (2:8.493.1-0ubuntu4) intrepid; urgency=low + + * debian/control: + - Force the Section to be restricted/misc instead of just restricted. + + -- Mario Limonciello Tue, 27 May 2008 15:26:38 -0500 + +fglrx-installer (2:8.493.1-0ubuntu3) intrepid; urgency=low + + * debian/control: + - Explicitly only indicate i386 and amd64 for ALL binary packages. We don't want + sparc, hppa, or lpia showing up. + + -- Mario Limonciello Tue, 27 May 2008 14:34:13 -0500 + +fglrx-installer (2:8.493.1-0ubuntu2) intrepid; urgency=low + + * debian/rules: + - Specify $(LIBDIR) for calculating modaliases. + Fixes transient failure on AMD64 boxes. + + -- Mario Limonciello Tue, 27 May 2008 14:23:21 -0500 + +fglrx-installer (2:8.493.1-0ubuntu1) intrepid; urgency=low + + * Initial release. + - This package was directly generated from the upstream AMD driver's built-in + scripts. By generating this way, the driver will always be in sync without + integration problems. + + -- Mario Limonciello Tue, 27 May 2008 10:50:16 -0500 + --- fglrx-installer-8.960.orig/debian/fglrx.manpages +++ fglrx-installer-8.960/debian/fglrx.manpages @@ -0,0 +1 @@ +usr/share/man/man8/atieventsd.8 --- fglrx-installer-8.960.orig/debian/copyright +++ fglrx-installer-8.960/debian/copyright @@ -0,0 +1,232 @@ +This package was debianized by Mario Limonciello on +Tue, 27 May 2008 10:22:21 -0600. + +The latest Linux graphics driver was downloaded from the +AMD website (www.amd.com), and then this package was generated using: + + sh $VERSION.run --buildpkg Ubuntu/source + +---------------------------------------------------------------------------- + +Driver License: + +Copyright (c) 2011 Advanced Micro Devices, Inc. + + +AMD Software End User License Agreement + +PLEASE READ THIS LICENSE CAREFULLY BEFORE USING THE SOFTWARE. BY +DOWNLOADING, INSTALLING, COPYING OR USING THE SOFTWARE, YOU ARE AGREEING TO +BE BOUND BY THE TERMS OF THIS LICENSE. IF YOU ARE ACCESSING THE SOFTWARE +ELECTRONICALLY, SIGNIFY YOUR AGREEMENT BY CLICKING THE "AGREE/ACCEPT" +BUTTON. IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, PROMPTLY RETURN +THE SOFTWARE TO THE PLACE WHERE YOU OBTAINED IT AND (IF APPLICABLE) YOUR +MONEY WILL BE REFUNDED OR IF THE SOFTWARE WAS ACCESSED ELECTRONICALLY CLICK +"DISAGREE/DECLINE". + +1. License. Advanced Micro Devices, Inc., on behalf of itself, its +subsidiaries and licensors (referred collectively as "AMD") grants to you +the following non-exclusive, right to use the software accompanying +this License (hereinafter "Software") subject to the following terms and +limitations: + + +(a) Regardless of the media upon which it is distributed, the Software is +licensed to you for use solely in conjunction with AMD hardware products to +which the Software relates ("AMD Hardware"). + +(b) You own the medium on which the Software is recorded, but AMD and, if +applicable, its licensors retain title to the Software and related +documentation. + +(c) You may: + + i) use the Software solely in connection with the AMD Hardware on a + single computer; + + ii) make one copy of the Software in machine-readable form for backup + purposes only. You must reproduce on such copy AMD's copyright notice and + any other proprietary legends that were on the original copy of the + Software; + + iii) transfer all your license rights in the Software provided you must + also transfer a copy of this License, the backup copy of the Software, + the AMD Hardware and the related documentation and provided the other + party reads and agrees to accept the terms and conditions of this + License. Upon such transfer your license rights are then terminated. + +(d) In addition to the license terms above, with respect to portions of +the Software in source code or binary form designed exclusively for use +with the Linux operating system ("AMD Linux Code"), you may use, display, +modify, copy, distribute, allow others to re-distribute, package and re- +package such AMD Linux Code for commercial and non-commercial purposes, +provided that: + + i) all binary components of the AMD Linux Code are not modified in any + way; + + ii) the AMD Linux Code is only used as part of the Software and in + connection with AMD Hardware; + + iii) all copyright notices of AMD are reproduced and you refer to these + license terms; + + iv) you may not offer or impose any terms on the use of AMD Linux + Code that alter or restrict this License; and + + v) if you have modified the AMD Linux Code, such modifications will be + made publicly available and are licensed under the same terms provided + herein to AMD or any other third party without further restriction, + royalty or any other license requirement; + + vi) to the extent there is any AMD sample or control panel source + code included in the AMD Linux Code, no rights are granted to modify such + code except for portions thereof that may be subject to third party + license terms that grant such rights; + + vii) no rights are granted to distribute the binary form of the AMD Linux + Kernel Module made by linking the AMD Proprietary Kernel Library and the + AMD Kernel Compatibility Layer binary compiled using Linux kernel + headers; + + viii) AMD is not obligated to provide any maintenance or technical + support for any code resulting from AMD Linux Code. + +2. Restrictions. The Software contains copyrighted and patented material, +trade secrets and other proprietary material. In order to protect them, +and except as permitted by this license or applicable legislation, you may +not: + + a) decompile, reverse engineer, disassemble or otherwise reduce the + Software to a human-perceivable form; + + b) modify, network, rent, lend, loan, distribute or create derivative + works based upon the Software in whole or in part; or + + c) electronically transmit the Software from one computer to another or + over a network or otherwise transfer the Software except as permitted by + this License. + +3. Termination. This License is effective until terminated. You may +terminate this License at any time by destroying the Software, related +documentation and all copies thereof. This License will terminate +immediately without notice from AMD if you fail to comply with any +provision of this License. Upon termination you must destroy the Software, +related documentation and all copies thereof. + +4. Government End Users. If you are acquiring the Software on behalf of +any unit or agency of the United States Government, the following +provisions apply. The Government agrees the Software and documentation +were developed at private expense and are provided with "RESTRICTED +RIGHTS". Use, duplication, or disclosure by the Government is subject to +restrictions as set forth in DFARS 227.7202-1(a) and 227.7202-3(a) (1995), +DFARS 252.227-7013(c)(1)(ii) (Oct 1988), FAR 12.212(a)(1995), FAR 52.227- +19, (June 1987) or FAR 52.227-14(ALT III) (June 1987),as amended from time +to time. In the event that this License, or any part thereof, is deemed +inconsistent with the minimum rights identified in the Restricted Rights +provisions, the minimum rights shall prevail. + +5. No Other License. No rights or licenses are granted by AMD under this +License, expressly or by implication, with respect to any proprietary +information or patent, copyright, trade secret or other intellectual +property right owned or controlled by AMD, except as expressly provided in +this License. + +6. Additional Licenses. DISTRIBUTION OR USE OF THE SOFTWARE WITH AN +OPERATING SYSTEM MAY REQUIRE ADDITIONAL LICENSES FROM THE OPERATING SYSTEM +VENDOR. + +7. Disclaimer of Warranty on Software. You expressly acknowledge and +agree that use of the Software is at your sole risk. The Software and +related documentation are provided "AS IS" and without warranty of any kind +and AMD EXPRESSLY DISCLAIMS ALL WARRANTIES, EXPRESS AND IMPLIED, INCLUDING, +BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +FORA PARTICULAR PURPOSE, OF QUALITY, OF QUIET ENJOYMENT AND OF NON- +INFRINGEMENT OF THIRD PARTY RIGHTS. AMD DOES NOT WARRANT THAT THE +FUNCTIONS CONTAINED IN THE SOFTWARE WILL MEET YOUR REQUIREMENTS, OR THAT +THE OPERATION OF THE SOFTWARE WILL BE UNINTERRUPTED OR ERROR-FREE, OR THAT +DEFECTS IN THE SOFTWARE WILL BE CORRECTED. THE ENTIRE RISK AS TO THE +RESULTS AND PERFORMANCE OF THE SOFTWARE IS ASSUMED BY YOU. FURTHERMORE, +AMD DOES NOT WARRANT OR MAKE ANY REPRESENTATIONS REGARDING THE USE ORTHE +RESULTS OF THE USE OF THE SOFTWARE OR RELATED DOCUMENTATION IN TERMS OF +THEIR CORRECTNESS, ACCURACY, RELIABILITY, CURRENTNESS, OR OTHERWISE. NO +ORAL OR WRITTEN INFORMATION OR ADVICE GIVEN BY AMD OR AMD'S AUTHORIZED +REPRESENTATIVE SHALL CREATE A WARRANTY OR IN ANY WAY INCREASE THE SCOPE OF +THIS WARRANTY. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU (AND NOT AMD OR +AMD'S AUTHORIZED REPRESENTATIVE) ASSUME THE ENTIRE COST OF ALL NECESSARY +SERVICING, REPAIR OR CORRECTION. THE SOFTWARE IS NOT INTENDED FOR USE IN +MEDICAL, LIFE SAVING OR LIFE SUSTAINING APPLICATIONS. SOME JURISDICTIONS +DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO THE ABOVE EXCLUSION +MAY NOT APPLY TO YOU. + +8. Limitation of Liability. TO THE MAXIMUM EXTENT PERMITTED BY LAW, UNDER +NO CIRCUMSTANCES INCLUDING NEGLIGENCE, SHALL AMD, OR ITS DIRECTORS, +OFFICERS, EMPLOYEES OR AGENTS, BE LIABLE TO YOU FOR ANY INCIDENTAL, +INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES (INCLUDING DAMAGES FOR LOSS OF +BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION, AND +THE LIKE) ARISING OUT OF THE USE, MISUSE OR INABILITY TO USE THE SOFTWARE +OR RELATED DOCUMENTATION, BREACH OR DEFAULT, INCLUDING THOSE ARISING FROM +INFRINGEMENT OR ALLEGED INFRINGEMENT OF ANY PATENT, TRADEMARK, COPYRIGHT OR +OTHER INTELLECTUAL PROPERTY RIGHT, BY AMD, EVEN IF AMD OR AMD'S AUTHORIZED +REPRESENTATIVE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME +JURISDICTIONS DO NOT ALLOW THE LIMITATION OR EXCLUSION OF LIABILITY FOR +INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THE ABOVE LIMITATION OR EXCLUSION +MAY NOT APPLY TO YOU. AMD will not be liable for 1) loss of, or damage to, +your records or data or 2) any damages claimed by you based on any third +party claim. In no event shall AMD's total liability to you for all +damages, losses, and causes of action (whether in contract, tort (including +negligence) or otherwise) exceed the amount paid by you for the Software. +The foregoing limitations will apply even if the above stated limitation +fails of its essential purpose. + +9. Controlling Law and Severability. This License shall be governed by +and construed under the laws of the Province of Ontario, Canada without +reference to its conflict of law principles. Any dispute related hereto +will be brought only in the courts in Toronto, Ontario, Canada and such +courts are agreed to be the convenient forum. In the event of any +conflicts between foreign law, rules, and regulations, and Canadian law, +rules, and regulations, Canadian law, rules and regulations shall prevail +and govern. The United Nations Convention on Contracts for the +International Sale of Goods shall not apply to this License. If for any +reason a court of competent jurisdiction finds any provision of this +License or portion thereof, to be unenforceable, that provision of the +License shall be enforced to the maximum extent permissible so as to effect +the intent of the parties, and the remainder of this License shall continue +in full force and effect. + +10. Complete Agreement. This License constitutes the entire agreement +between the parties with respect to the use of the Software and the related +documentation, and supersedes all prior or contemporaneous understandings +or agreements, written or oral, regarding such subject matter. No +amendment to or modification of this License will be binding unless in +writing and signed by a duly authorized representative of AMD. + +---------------------------------------------------------------------------- +Packaging scripts: + Copyright (C) 2002-2005 Flavio Stanchina + Copyright (C) 2005-2006 Aric Cyr + Copyright (C) 2007-2009 Mario Limonciello + Copyright (C) 2009-2011 Canonical Ltd. + +The packaging scripts are copyrighted under the MIT license. + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. --- fglrx-installer-8.960.orig/debian/AUTHORS +++ fglrx-installer-8.960/debian/AUTHORS @@ -0,0 +1,7 @@ +Authors and contributors (packaging scripts): +------------------------- + +Alberto Milone -- current maintainer, alternatives system support, kernel detection logic, PowerXpress support +Mario Limonciello -- former maintainer and initial packager, DKMS support, automatic source generation code, port to debhelper 7 +Aric Cyr -- former maintainer of the Debian packages +Flavio Stanchina -- former maintainer of the Debian packages --- fglrx-installer-8.960.orig/debian/clean +++ fglrx-installer-8.960/debian/clean @@ -0,0 +1,7 @@ +debian/10fglrx +debian/dkms.conf +debian/fglrx.install +debian/fglrx-dev.install +debian/fglrx-amdcccle.install +debian/overrides/fglrx +debian/modaliases/fglrx-modules.alias.override --- fglrx-installer-8.960.orig/debian/fglrx.postrm.in +++ fglrx-installer-8.960/debian/fglrx.postrm.in @@ -0,0 +1,57 @@ +#! /bin/sh +# postrm script fglrx +# +# see: dh_installdeb(1) +# +# Copyright (C) 2007 Mario Limonciello +# Copyright (C) 2009-2011 Canonical Ltd. + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see /usr/share/doc/packaging-manual/ + +PKGNAME=#DRIVERNAME# +BLACKLIST_FILE=/etc/modprobe.d/blacklist-fglrx.conf + +case "$1" in + remove|purge) + # Remove blacklist file + rm -f $BLACKLIST_FILE + + if [ "$1" = "purge" ]; then + rm -Rf /#PKGLIBDIR# + else + # This will preserve the etc directory + rm -f /#PKGLIBDIR#/* 2>/dev/null || true + fi + + rm -Rf /#PKGLIBDIR32# + rm -Rf /#PXDIR# + rm -Rf /#PXDIR32# + + # Update initramfs, in case we were loaded into it + /usr/sbin/update-initramfs -u + ;; + + upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 0 + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# --- fglrx-installer-8.960.orig/debian/10fglrx.in +++ fglrx-installer-8.960/debian/10fglrx.in @@ -0,0 +1,12 @@ +LIBGL_DRIVERS_PATH=/#PKGLIBDIR#/dri +if [ `uname -m` = 'x86_64' ]; then + if [ -d /#PKGLIBDIR32#/dri ]; then + LIBGL_DRIVERS_PATH=${LIBGL_DRIVERS_PATH}:/#PKGLIBDIR32#/dri + if [ ! -z $LD_LIBRARY_PATH ]; then + LD_LIBRARY_PATH=$LD_LIBRARY_PATH: + fi + LD_LIBRARY_PATH=${LD_LIBRARY_PATH}/usr/lib32 + export LD_LIBRARY_PATH + fi +fi +export LIBGL_DRIVERS_PATH --- fglrx-installer-8.960.orig/debian/fglrx.install.in +++ fglrx-installer-8.960/debian/fglrx.install.in @@ -0,0 +1,49 @@ +#Lintian overrides +debian/overrides/#DRIVERNAME# #DATADIR#/lintian/overrides + +#Actual kernel modules +lib/modules/fglrx/build_mod/* usr/src/#DRIVERNAME#-#CVERSION# +debian/dkms/* usr/src/#DRIVERNAME#-#CVERSION# +arch/#SRCARCH#/lib/modules/fglrx/build_mod/lib* usr/src/#DRIVERNAME#-#CVERSION# +debian/dkms.conf usr/src/#DRIVERNAME#-#CVERSION# + +#DRI stuff +arch/#SRCARCH#/usr/X11R6/#SRCLIBDIR#/libAMD* #PKGLIBDIR# + +#debian integration +debian/overrides/#DRIVERNAME# #DATADIR#/lintian/overrides +debian/acpi/fglrx-*-aticonfig #SYSCONFDIR#/acpi/events +debian/acpi/fglrx-powermode.sh #SYSCONFDIR#/acpi +debian/10fglrx #PKGLIBDIR# +etc/ati/* #PKGLIBDIR#/#SYSCONFDIR#/ati +debian/replacements/authatieventsd.sh #PKGLIBDIR#/#SYSCONFDIR#/ati +arch/#SRCARCH#/etc/OpenCL/vendors/*.icd #PKGLIBDIR#/#SYSCONFDIR#/OpenCL/vendors + +#Blacklist some card ids from GRUB gfxpayload=keep +debian/fglrx.grub-gfxpayload #PKGDATADIR# + +#binaries +arch/#SRCARCH#/usr/sbin/* #PKGBINDIR# +arch/#SRCARCH#/usr/bin/* #PKGBINDIR# +arch/#SRCARCH#/usr/X11R6/bin/ati* #PKGBINDIR# +arch/#SRCARCH#/usr/X11R6/bin/fgl* #PKGBINDIR# +usr/sbin/*sh #PKGDATADIR# + +#DRI stuff +arch/#SRCARCH#/usr/X11R6/#SRCLIBDIR#/liba*.so* #PKGLIBDIR# +arch/#SRCARCH#/usr/X11R6/#SRCLIBDIR#/libf*.so* #PKGLIBDIR# +arch/#SRCARCH#/usr/X11R6/#SRCLIBDIR#/libX*.so* #PKGLIBDIR# +arch/#SRCARCH#/usr/X11R6/#SRCLIBDIR#/fglrx/*libGL.so* #PKGLIBDIR# +arch/#SRCARCH#/usr/X11R6/#SRCLIBDIR#/modules/dri #PKGLIBDIR# + +#Xorg stuff +#SRCXARCH#/usr/X11R6/#SRCLIBDIR#/modules/*.so #PKGXMODDIR# +#SRCXARCH#/usr/X11R6/#SRCLIBDIR#/modules/drivers #PKGXMODDIR# +#SRCXARCH#/usr/X11R6/#SRCLIBDIR#/modules/linux #PKGXMODDIR# +#SRCXARCH#/usr/X11R6/#SRCLIBDIR#/modules/extensions #PKGXMODDIR# + +#CAL stuff +arch/#SRCARCH#/usr/#SRCLIBDIR#/*.so* #PKGLIBDIR# + +#PXpress stuff +debian/pxpress/* usr/lib/fglrx --- fglrx-installer-8.960.orig/debian/fglrx.prerm.in +++ fglrx-installer-8.960/debian/fglrx.prerm.in @@ -0,0 +1,43 @@ +#!/bin/sh +# prerm script for fglrx +# +# Copyright (C) 2007 Mario Limonciello +# Copyright (C) 2009-2011 Canonical Ltd. + +PACKAGE_NAME=#DRIVERNAME# +CVERSION=`dpkg-query -W -f='${Version}' $PACKAGE_NAME | awk -F "-" '{print $1}' | cut -d\: -f2` + +remove_dkms_module() { + echo "Removing all DKMS Modules" + dkms remove -m $PACKAGE_NAME -v $CVERSION --all > /dev/null + echo "Done." +} + +case "$1" in + upgrade) + remove_dkms_module + ;; + remove) + remove_dkms_module + + update-alternatives --remove #DEB_HOST_MULTIARCH#_gl_conf /#LDSOCONF# + update-alternatives --remove #OTHER_ARCH#_gl_conf /#ALTLDSOCONF# + + # Remove PXpress alternatives + update-alternatives --remove #DEB_HOST_MULTIARCH#_gl_conf /#PXLDSOCONF# + update-alternatives --remove #OTHER_ARCH#_gl_conf /#ALTPXLDSOCONF# + + # Trigger gmenu so as to update the gnome menu + dpkg-trigger --by-package=$PACKAGE_NAME gmenucache || true + + # explicit ldconfig due to alternatives + LDCONFIG_NOTRIGGER=y ldconfig + + # Update the grub gfxpayload blacklist + if which update-grub-gfxpayload >/dev/null 2>&1; then + update-grub-gfxpayload + fi + ;; +esac + +#DEBHELPER# --- fglrx-installer-8.960.orig/debian/fglrx.postinst.in +++ fglrx-installer-8.960/debian/fglrx.postinst.in @@ -0,0 +1,241 @@ +#!/bin/sh +# Copyright (C) 2007 Mario Limonciello +# Copyright (C) 2009-2011 Canonical Ltd. + +set -e + +PACKAGE_NAME=#DRIVERNAME# +CVERSION=`dpkg-query -W -f='${Version}' $PACKAGE_NAME | awk -F "-" '{print $1}' | cut -d\: -f2` + +ARCH=`dpkg --print-architecture` + +INIT_SCRIPT="/etc/init/build-$PACKAGE_NAME.conf" +TMP_FILE="/tmp/do_not_build_dkms_module" + +# Check the existence of a kernel named as $1 +_is_kernel_name_correct() { + CORRECT="no" + KERNEL_NAME=$1 + + for kernel in /boot/config-*; do + KERNEL=${kernel#*-} + if [ "${KERNEL}" = "${KERNEL_NAME}" ]; then + CORRECT="yes" + break + fi + done + + echo $CORRECT +} + +# Get the most recent kernel on Debian based systems. This keeps +# into account both the version and the ABI. If the current kernel +# is the most recent kernel then the function will print a null string. +_get_newest_kernel_debian() { + NEWEST_KERNEL= + NEWEST_VERSION= + NEWEST_ABI= + + for kernel in /boot/config-*; do + KERNEL=${kernel#*-} + KERNEL_VERSION=${KERNEL%%-*} + ABI=${KERNEL#*-} + ABI=${ABI%%-*} + + if [ -z "$NEWEST_KERNEL" ]; then + # The 1st time get a version which is bigger than $1 + COMPARE_TO=$1 + else + # Get the biggest version + COMPARE_TO="$NEWEST_VERSION-$NEWEST_ABI" + fi + + # if $kernel is greater than $COMPARE_TO + if [ `dpkg --compare-versions "$KERNEL_VERSION-$ABI" gt "$COMPARE_TO" && echo "yes" || \ + echo "no"` = "yes" ]; then + NEWEST_KERNEL=$KERNEL + NEWEST_VERSION=$KERNEL_VERSION + NEWEST_ABI=$ABI + fi + done + + echo "$NEWEST_KERNEL" +} + + +get_newest_kernel() { + NEWEST_KERNEL= + # Try Debian first as rpm can be installed in Debian based distros + if [ -e /usr/bin/dpkg ]; then + # If DEB based + CURRENT_KERNEL=$1 + CURRENT_VERSION=${CURRENT_KERNEL%%-*} + CURRENT_ABI=${CURRENT_KERNEL#*-} + CURRENT_FLAVOUR=${CURRENT_ABI#*-} + CURRENT_ABI=${CURRENT_ABI%%-*} + NEWEST_KERNEL=$(_get_newest_kernel_debian "$CURRENT_VERSION-$CURRENT_ABI") + + elif [ `which rpm &>/dev/null` ]; then + # If RPM based + NEWEST_KERNEL=$(_get_newest_kernel_rhel) + fi + + # Make sure that kernel name that we extracted corresponds to an installed + # kernel + if [ -n "$NEWEST_KERNEL" ] && [ `_is_kernel_name_correct $NEWEST_KERNEL` = "no" ]; then + NEWEST_KERNEL= + fi + + echo $NEWEST_KERNEL +} + + +if [ "$1" = "configure" ]; then + + #check whether libglx.so got installed. some releases earlier than x740 + #will not actually have this libglx.so + if [ ! -f /usr/lib/xorg/modules/extensions/libglx.so ]; then + dpkg-divert --remove --rename --package xorg-driver-fglrx --divert /usr/lib/fglrx/libglx.so.xlibmesa /usr/lib/xorg/modules/extensions/libglx.so > /dev/null + fi + + # Clean up any previous non-multi-arch alternatives + if [ -n "$(update-alternatives --list gl_conf 2>/dev/null)" ]; then + set -a $(update-alternatives --list gl_conf 2>/dev/null) + while [ $# -ge 1 ] && [ "$#" != "configure" ]; do + ALTERNATIVE=${1} + update-alternatives --remove gl_conf $ALTERNATIVE + shift + done + fi + + update-alternatives --force \ + --install /#SYSCONFDIR#/ld.so.conf.d/#DEB_HOST_MULTIARCH#_GL.conf #DEB_HOST_MULTIARCH#_gl_conf /#LDSOCONF# #ALTPRIORITY# \ + --slave /#BINDIR#/aticonfig #DEB_HOST_MULTIARCH#_aticonfig /#PKGBINDIR#/aticonfig \ + --slave /#BINDIR#/amdconfig #DEB_HOST_MULTIARCH#_amdconfig /#PKGBINDIR#/amdconfig \ + --slave /#BINDIR#/atiode #DEB_HOST_MULTIARCH#_atiode /#PKGBINDIR#/atiode \ + --slave /#BINDIR#/amdnotifyui #DEB_HOST_MULTIARCH#_amdnotifyui /#PKGBINDIR#/amdnotifyui \ + --slave /#BINDIR#/amdcccle #DEB_HOST_MULTIARCH#_amdcccle /#PKGBINDIR#/amdcccle \ + --slave /#BINDIR#/amdxdg-su #DEB_HOST_MULTIARCH#_amdxdg_su /#PKGBINDIR#/amdxdg-su \ + --slave /#BINDIR#/amdupdaterandrconfig #DEB_HOST_MULTIARCH#_amdupdaterandrconfig /#PKGBINDIR#/amdupdaterandrconfig \ + --slave /#DATADIR#/applications/ubuntu-amdcccle.desktop #DEB_HOST_MULTIARCH#_amdcccle_desktop /#PKGDATADIR#/amdcccle.desktop \ + --slave /#DATADIR#/applications/ubuntu-amdccclesu.desktop #DEB_HOST_MULTIARCH#_amdccclesu_desktop /#PKGDATADIR#/amdccclesu.desktop \ + --slave /#BINDIR#/fgl_glxgears #DEB_HOST_MULTIARCH#_fgl_glxgears /#PKGBINDIR#/fgl_glxgears \ + --slave /#BINDIR#/fglrxinfo #DEB_HOST_MULTIARCH#_fglrxinfo /#PKGBINDIR#/fglrxinfo \ + --slave /#BINDIR#/atiodcli #DEB_HOST_MULTIARCH#_atiodcli /#PKGBINDIR#/atiodcli \ + --slave /#BINDIR#/clinfo #DEB_HOST_MULTIARCH#_clinfo /#PKGBINDIR#/clinfo \ + --slave /#BINDIR#/atieventsd #DEB_HOST_MULTIARCH#_atieventsd /#PKGBINDIR#/atieventsd \ + --slave /#LIBDIR#/xorg/modules/drivers/fglrx_drv.so #DEB_HOST_MULTIARCH#_fglrx_drv /#PKGLIBDIR#/xorg/modules/drivers/fglrx_drv.so \ + --slave /#LIBDIR#/dri/fglrx_dri.so #DEB_HOST_MULTIARCH#_fglrx_dri /#PKGLIBDIR#/dri/fglrx_dri.so \ + --slave /#LIBDIR#/libAMDXvBA.cap #DEB_HOST_MULTIARCH#_libAMDXvBA_cap /#PKGLIBDIR#/libAMDXvBA.cap \ + --slave /#SYSCONFDIR#/modprobe.d/fglrx.conf #DEB_HOST_MULTIARCH#_fglrx_modconf /lib/fglrx/modprobe.conf \ + --slave /#SYSCONFDIR#/X11/Xsession.d/10fglrx #DEB_HOST_MULTIARCH#_10fglrx /#PKGLIBDIR#/10fglrx \ + --slave /#SYSCONFDIR#/ati #DEB_HOST_MULTIARCH#_ati_conf /#PKGLIBDIR#/#SYSCONFDIR#/ati \ + --slave /#SYSCONFDIR#/OpenCL/vendors/amdocl32.icd #DEB_HOST_MULTIARCH#_amdocl32.icd /#PKGLIBDIR#/#SYSCONFDIR#/OpenCL/vendors/amdocl32.icd \ + --slave /#SYSCONFDIR#/OpenCL/vendors/amdocl64.icd #DEB_HOST_MULTIARCH#_amdocl64.icd /#PKGLIBDIR#/#SYSCONFDIR#/OpenCL/vendors/amdocl64.icd \ + --slave /#LIBDIR#/libOpenCL.so #DEB_HOST_MULTIARCH#_libOpenCL.so /#PKGLIBDIR#/libOpenCL.so \ + --slave /#XORGEXTRA# #DEB_HOST_MULTIARCH#_xorg_extra_modules /#PKGLIBDIR#/xorg \ + --slave /#LIBDIR#/libaticalcl.so #DEB_HOST_MULTIARCH#_libaticalcl.so /#PKGLIBDIR#/libaticalcl.so \ + --slave /#LIBDIR32#/libaticalcl.so #DEB_HOST_MULTIARCH#_libaticalcl.so_lib32 /#PKGLIBDIR32#/libaticalcl.so \ + --slave /#LIBDIR#/libaticalrt.so #DEB_HOST_MULTIARCH#_libaticalrt.so /#PKGLIBDIR#/libaticalrt.so \ + --slave /#LIBDIR32#/libaticalrt.so #DEB_HOST_MULTIARCH#_libaticalrt.so_lib32 /#PKGLIBDIR32#/libaticalrt.so \ + --slave /#DATADIR#/grub-gfxpayload-lists/blacklist/10_proprietary-graphics-drivers #DEB_HOST_MULTIARCH#_grub_fb_blacklist /#PKGDATADIR#/fglrx.grub-gfxpayload + + # This is for switchable graphics + # Note: the radeon kernel module is still blacklisted + update-alternatives --force \ + --install /#SYSCONFDIR#/ld.so.conf.d/#DEB_HOST_MULTIARCH#_GL.conf #DEB_HOST_MULTIARCH#_gl_conf /#PXLDSOCONF# #PXALTPRIORITY# \ + --slave /#BINDIR#/aticonfig #DEB_HOST_MULTIARCH#_aticonfig /#PKGBINDIR#/aticonfig \ + --slave /#BINDIR#/amdconfig #DEB_HOST_MULTIARCH#_amdconfig /#PKGBINDIR#/amdconfig \ + --slave /#BINDIR#/atiode #DEB_HOST_MULTIARCH#_atiode /#PKGBINDIR#/atiode \ + --slave /#BINDIR#/amdnotifyui #DEB_HOST_MULTIARCH#_amdnotifyui /#PKGBINDIR#/amdnotifyui \ + --slave /#BINDIR#/amdcccle #DEB_HOST_MULTIARCH#_amdcccle /#PKGBINDIR#/amdcccle \ + --slave /#BINDIR#/amdxdg-su #DEB_HOST_MULTIARCH#_amdxdg_su /#PKGBINDIR#/amdxdg-su \ + --slave /#BINDIR#/amdupdaterandrconfig #DEB_HOST_MULTIARCH#_amdupdaterandrconfig /#PKGBINDIR#/amdupdaterandrconfig \ + --slave /#DATADIR#/applications/ubuntu-amdcccle.desktop #DEB_HOST_MULTIARCH#_amdcccle_desktop /#PKGDATADIR#/amdcccle.desktop \ + --slave /#DATADIR#/applications/ubuntu-amdccclesu.desktop #DEB_HOST_MULTIARCH#_amdccclesu_desktop /#PKGDATADIR#/amdccclesu.desktop \ + --slave /#BINDIR#/fgl_glxgears #DEB_HOST_MULTIARCH#_fgl_glxgears /#PKGBINDIR#/fgl_glxgears \ + --slave /#BINDIR#/fglrxinfo #DEB_HOST_MULTIARCH#_fglrxinfo /#PKGBINDIR#/fglrxinfo \ + --slave /#BINDIR#/atiodcli #DEB_HOST_MULTIARCH#_atiodcli /#PKGBINDIR#/atiodcli \ + --slave /#BINDIR#/clinfo #DEB_HOST_MULTIARCH#_clinfo /#PKGBINDIR#/clinfo \ + --slave /#BINDIR#/atieventsd #DEB_HOST_MULTIARCH#_atieventsd /#PKGBINDIR#/atieventsd \ + --slave /#LIBDIR#/xorg/modules/drivers/fglrx_drv.so #DEB_HOST_MULTIARCH#_fglrx_drv /#PKGLIBDIR#/xorg/modules/drivers/fglrx_drv.so \ + --slave /#LIBDIR#/dri/fglrx_dri.so #DEB_HOST_MULTIARCH#_fglrx_dri /#PKGLIBDIR#/dri/fglrx_dri.so \ + --slave /#LIBDIR#/libAMDXvBA.cap #DEB_HOST_MULTIARCH#_libAMDXvBA_cap /#PKGLIBDIR#/libAMDXvBA.cap \ + --slave /#SYSCONFDIR#/modprobe.d/fglrx.conf #DEB_HOST_MULTIARCH#_fglrx_modconf /lib/fglrx/modprobe.conf \ + --slave /#SYSCONFDIR#/X11/Xsession.d/10fglrx #DEB_HOST_MULTIARCH#_10fglrx /#PKGLIBDIR#/10fglrx \ + --slave /#SYSCONFDIR#/ati #DEB_HOST_MULTIARCH#_ati_conf /#PKGLIBDIR#/#SYSCONFDIR#/ati \ + --slave /#SYSCONFDIR#/OpenCL/vendors/amdocl32.icd #DEB_HOST_MULTIARCH#_amdocl32.icd /#PKGLIBDIR#/#SYSCONFDIR#/OpenCL/vendors/amdocl32.icd \ + --slave /#SYSCONFDIR#/OpenCL/vendors/amdocl64.icd #DEB_HOST_MULTIARCH#_amdocl64.icd /#PKGLIBDIR#/#SYSCONFDIR#/OpenCL/vendors/amdocl64.icd \ + --slave /#LIBDIR#/libOpenCL.so #DEB_HOST_MULTIARCH#_libOpenCL.so /#PKGLIBDIR#/libOpenCL.so \ + --slave /#XORGEXTRA# #DEB_HOST_MULTIARCH#_xorg_extra_modules /#PXDIR#/xorg \ + --slave /#LIBDIR#/libaticalcl.so #DEB_HOST_MULTIARCH#_libaticalcl.so /#PKGLIBDIR#/libaticalcl.so \ + --slave /#LIBDIR32#/libaticalcl.so #DEB_HOST_MULTIARCH#_libaticalcl.so_lib32 /#PKGLIBDIR32#/libaticalcl.so \ + --slave /#LIBDIR#/libaticalrt.so #DEB_HOST_MULTIARCH#_libaticalrt.so /#PKGLIBDIR#/libaticalrt.so \ + --slave /#LIBDIR32#/libaticalrt.so #DEB_HOST_MULTIARCH#_libaticalrt.so_lib32 /#PKGLIBDIR32#/libaticalrt.so \ + --slave /#DATADIR#/grub-gfxpayload-lists/blacklist/10_proprietary-graphics-drivers #DEB_HOST_MULTIARCH#_grub_fb_blacklist /#PKGDATADIR#/fglrx.grub-gfxpayload + + # Install just the ld.so.conf.d alternatives for the secondary architecture. + # We need only to ensure that any mesa ld.so.conf.d alternative isn't active. + update-alternatives --force \ + --install /#SYSCONFDIR#/ld.so.conf.d/#OTHER_ARCH#_GL.conf #OTHER_ARCH#_gl_conf /#ALTLDSOCONF# #ALTPRIORITY# + update-alternatives --force \ + --install /#SYSCONFDIR#/ld.so.conf.d/#OTHER_ARCH#_GL.conf #OTHER_ARCH#_gl_conf /#ALTPXLDSOCONF# #PXALTPRIORITY# + + # ldconfig needs to be run immediately as we're changing /etc/ld.so.conf.d/ with + # alternatives. + LDCONFIG_NOTRIGGER=y ldconfig + + # Trigger gmenu so that the icons will show up in the menu + dpkg-trigger --by-package=$PACKAGE_NAME gmenucache || true + + CURRENT_KERNEL=$(uname -r) + NEWEST_KERNEL=$(get_newest_kernel "$KERNELS") + + ALTERNATIVE=$(readlink /etc/alternatives/#DEB_HOST_MULTIARCH#_gl_conf) + if [ "$ALTERNATIVE" = "/#LDSOCONF#" ]; then + # Update initramfs so that the blacklist ends up in the initramfs + update-initramfs -u + + if [ -n "$NEWEST_KERNEL" ] && [ ${CURRENT_KERNEL} != ${NEWEST_KERNEL} ]; then + # This can fail when dealing with a chroot see LP: #556653 + update-initramfs -u -k $CURRENT_KERNEL || true + fi + fi + + # If the delayed module build feature is enabled + # i.e. if $DONT_BUILD_MODULE is set to 1 + # or if $TMP_FILE exists + if [ "${DONT_BUILD_MODULE}1" -eq "11" ] || [ -e $TMP_FILE ]; then + # Do not build the module and create + # the Upstart script which will + # build the module on next boot + cat > $INIT_SCRIPT </dev/null 2>&1; then + update-grub-gfxpayload + fi +fi + +#DEBHELPER# --- fglrx-installer-8.960.orig/debian/rules +++ fglrx-installer-8.960/debian/rules @@ -0,0 +1,416 @@ +#!/usr/bin/make -f +# Copyright (C) 2002-2005 Flavio Stanchina +# Copyright (C) 2005-2006 Aric Cyr +# Copyright (C) 2007-2010 Mario Limonciello +# Copyright (C) 2009-2011 Canonical Ltd. + +# Figure out some magic versioning +CVERSION := $(shell dpkg-parsechangelog | grep '^Version:' | cut -d' ' -f2 | cut -d- -f1 | cut -d\: -f2) +DVERSION := $(shell dpkg-parsechangelog | grep '^Version:' | cut -d' ' -f2 | cut -d\: -f2) +DISTRO := $(shell dpkg-parsechangelog | grep '^Distribution:' | cut -d' ' -f2 | cut -d\: -f2) + +VIDEODEP = $(shell cat /usr/share/xserver-xorg/videodrvdep 2>/dev/null) +INPUTDEP = $(shell cat /usr/share/xserver-xorg/xinputdep 2>/dev/null) + +VIDEOABI = $(shell cat /usr/share/xserver-xorg/videoabiver 2>/dev/null) +INPUTABI = $(shell cat /usr/share/xserver-xorg/inputabiver 2>/dev/null) + +# Manual VIDEO ABI dependencies +# Comment out the following 2 lines to re-enable automatic ABI detection +# VIDEODEP = xorg-video-abi-8.0, xserver-xorg-core (>= 2:1.8.99.905-1ubuntu3) +# VIDEOABI = 8 + +VIDDRIVER_PROVIDES = xserver-xorg-video-$(VIDEOABI), xorg-driver-video +INPDRIVER_PROVIDES = xserver-xorg-input-$(INPUTABI), xorg-driver-input + +DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) +# If the host is i386 set OTHER_ARCH to x86_64 and vice versa +OTHER_ARCH := $(shell (echo "$(DEB_HOST_MULTIARCH)" | grep i386 >/dev/null) && \ + echo "$(DEB_HOST_MULTIARCH)" | sed s/i386/x86_64/ || \ + echo "$(DEB_HOST_MULTIARCH)" | sed s/x86_64/i386/) + +# Hack for pbuild which would otherwise fail to call execstack +PATH := $(PATH):/usr/sbin + +# Package names +PKG_driver := fglrx +PKG_driver_dev := fglrx-dev +PKG_control := fglrx-amdcccle +PKG_module := $(shell echo "$(PKG_driver)" | sed s/\-/_/g) + +# Priority of the alternatives +alt_priority := 1000 +PX_alt_priority := 900 + +#Directory naming schemes +PKG_dirname := $(PKG_driver) +bindir := usr/bin +datadir := usr/share +PKG_datadir := $(datadir)/$(PKG_dirname) +libdir := usr/lib +libdir32 := usr/lib32 +includedir := usr/include +sysconfdir := etc +PKG_libdir := $(libdir)/$(PKG_dirname) +PKG_libdir32 := $(libdir32)/$(PKG_dirname) +xorg_libdir := $(libdir)/xorg +xorg_extra_modules := $(libdir)/$(DEB_HOST_MULTIARCH)/xorg/extra-modules +xorg_extensionsdir := $(xorg_libdir)/modules/extensions +PKG_driversdir := $(PKG_libdir)/xorg +PKG_extensionsdir := $(PKG_driversdir) +PKG_bindir := $(PKG_libdir)/bin +PKG_deskdir := $(PKG_datadir) +PKG_configdir := $(PKG_libdir) +ld_so_conf_dir := $(PKG_configdir) +ld_so_conf_file := ld.so.conf +alt_ld_so_conf_file := alt_ld.so.conf +ld_so_conf_path := $(ld_so_conf_dir)/$(ld_so_conf_file) +alt_ld_so_conf_path := $(ld_so_conf_dir)/$(alt_ld_so_conf_file) +mandir := usr/share/man/man1 +PKG_bugdir := usr/share/bug/$(PKG_dirname) +autostartdir := etc/xdg/autostart +PKG_autostartdir := $(PKG_configdir) +grub_blacklistdir := usr/share/grub-gfxpayload-lists/blacklist + +PKG_xmoddir := $(PKG_libdir)/xorg/modules + +PX_dirname := pxpress +PX_dir := $(libdir)/$(PX_dirname) +PX_dir32 := $(libdir32)/$(PX_dirname) +PX_xmoddir := $(PX_dir)/xorg/modules +PX_libdir := $(PX_dir)/lib +PX_libdir32 := $(PX_dir32)/lib +PX_ld_so_conf := $(PX_dir)/$(ld_so_conf_file) +PX_ld_so_conf_alt := $(PX_dir)/$(alt_ld_so_conf_file) + +# This is a hack to make sure that +# the blacklist file is available +# early in the boot process when +# /usr is on a separate partition. +# See LP: #538071. +PKG_libconfdir := lib/$(PKG_dirname) + +# Paths to the dirs from the installer +SRC_libdir := lib +SRC_arch := x86 +SRC_xarch := xpic + +ifeq ($(DEB_HOST_ARCH),amd64) + SRC_libdir := lib64 + SRC_arch := x86_64 + SRC_xarch := $(SRC_xarch)_64a +endif + +#These "define" bits are needed for the blacklist file +define newline + + +endef + +define blacklist_file +# This file was installed by $(PKG_driver) +# Do not edit this file manually + +blacklist radeon +alias fglrx $(PKG_module) +alias radeon off +alias lbm-radeon off +endef + +# DEB_DH_SHLIBDEPS_ARGS_ALL="-Xlib32" + +refresh_copyright: + # refresh copyright file + cat debian/copyright_stub_0 > debian/copyright + cat usr/share/doc/fglrx/LICENSE.TXT >> debian/copyright + cat debian/copyright_stub_1 >> debian/copyright + +clean: refresh_copyright + # remove any file generated from a template + for file in *.in; do \ + # strip only the last .in from the name \ + filename=`echo $$file | sed -e "s|.in|$1|"` \ + rm -f $(filename); \ + done + + dh clean + + +build: + #Create important strings + for i in 10fglrx \ + dkms.conf \ + $(PKG_driver).install \ + $(PKG_driver_dev).install \ + $(PKG_driver_dev).links \ + $(PKG_control).install \ + $(PKG_driver).grub-gfxpayload \ + $(PKG_driver).dirs \ + $(PKG_driver).links \ + $(PKG_driver).postinst \ + $(PKG_driver).postrm \ + $(PKG_driver).preinst \ + $(PKG_driver).prerm \ + overrides/$(PKG_driver); do \ + sed -e "s|#PKGXMODDIR#|$(PKG_xmoddir)|g" \ + -e "s|#LIBDIR#|$(libdir)|g" \ + -e "s|#LIBDIR32#|$(libdir32)|g" \ + -e "s|#BINDIR#|$(bindir)|g" \ + -e "s|#SYSCONFDIR#|$(sysconfdir)|g" \ + -e "s|#MANDIR#|$(mandir)|g" \ + -e "s|#LDSOCONF#|$(ld_so_conf_path)|g" \ + -e "s|#ALTLDSOCONF#|$(alt_ld_so_conf_path)|g" \ + -e "s|#ALTPRIORITY#|$(alt_priority)|g" \ + -e "s|#PXALTPRIORITY#|$(PX_alt_priority)|g" \ + -e "s|#AUTOSTARTDIR#|$(autostartdir)|g" \ + -e "s|#DATADIR#|$(datadir)|g" \ + -e "s|#PKGDESKDIR#|$(PKG_deskdir)|g" \ + -e "s|#PKGDATADIR#|$(PKG_datadir)|g" \ + -e "s|#PKGCONFIGDIR#|$(PKG_configdir)|g" \ + -e "s|#PKGBINDIR#|$(PKG_bindir)|g" \ + -e "s|#PKGLIBDIR#|$(PKG_libdir)|g" \ + -e "s|#PKGLIBDIR32#|$(PKG_libdir32)|g" \ + -e "s|#PKGDRIVERSDIR#|$(PKG_driversdir)|g" \ + -e "s|#XORGEXTRA#|$(xorg_extra_modules)|g" \ + -e "s|#PKGEXTENSIONDIR#|$(PKG_extensionsdir)|g" \ + -e "s|#XORGEXTENSIONSDIR#|$(xorg_extensionsdir)|g" \ + -e "s|#DRIVERNAME#|$(PKG_driver)|g" \ + -e "s|#DRIVERDEVNAME#|$(PKG_driver_dev)|g" \ + -e "s|#DRIVERSRCNAME#|$(PKG_source)|g" \ + -e "s|#INCLUDEDIR#|$(includedir)|g" \ + -e "s|#PKGLIBCONFDIR#|$(PKG_libconfdir)|g" \ + -e "s|#GRUBBLKLISTDIR#|$(grub_blacklistdir)|g" \ + -e "s|#PKGXMODDIR#|$(PKG_xmoddir)|g" \ + -e "s|#PXDIR#|$(PX_dir)|g" \ + -e "s|#PXDIR32#|$(PX_dir32)|g" \ + -e "s|#PXXMODDIR#|$(PX_xmoddir)|g" \ + -e "s|#PXDIRNAME#|$(PX_dirname)|g" \ + -e "s|#PXLIBDIR#|$(PX_libdir)|g" \ + -e "s|#PXLIBDIR32#|$(PX_libdir32)|g" \ + -e "s|#PXLDSOCONF#|$(PX_ld_so_conf)|g" \ + -e "s|#ALTPXLDSOCONF#|$(PX_ld_so_conf_alt)|g" \ + -e "s|#CVERSION#|$(CVERSION)|g" \ + -e "s|#SRCXARCH#|$(SRC_xarch)|g" \ + -e "s|#SRCARCH#|$(SRC_arch)|g" \ + -e "s|#SRCLIBDIR#|$(SRC_libdir)|g" \ + -e "s|#DEB_HOST_MULTIARCH#|$(DEB_HOST_MULTIARCH)|g" \ + -e "s|#OTHER_ARCH#|$(OTHER_ARCH)|g" \ + debian/$$i.in > debian/$$i; \ + done + + # remove exec bit on everything + find arch \ + etc \ + lib \ + module \ + usr \ + $(SRC_xarch) -type f | xargs chmod -x + + # set executable on user apps + find arch/$(SRC_arch)/usr/sbin \ + arch/$(SRC_arch)/usr/X11R6/bin \ + usr/sbin/ -type f | xargs chmod a+x + + # set exec bit on scripts + find lib etc debian -name "*.sh" -type f | xargs chmod +x + + # set the permissions on the pxpress scripts + chmod 744 debian/pxpress/switch* + + dh build + +# This makes sure that the xserver ABI is bumped to match the current one when the +# packages are built +.PHONY: serverabi +serverabi: +ifeq ($(VIDEODEP),) + @echo 'error: xserver-xorg-dev >= 1.7.6.901 needs to be installed' + @exit 1 +else + echo "xviddriver:Depends=$(VIDEODEP)" >> debian/$(PKG_driver).substvars + echo "xinpdriver:Depends=$(INPUTDEP)" >> debian/$(PKG_driver).substvars + # the following is there for compatibility... + echo "xviddriver:Provides=$(VIDDRIVER_PROVIDES)" >> debian/$(PKG_driver).substvars + echo "xinpdriver:Provides=$(INPDRIVER_PROVIDES)" >> debian/$(PKG_driver).substvars + echo "xserver:Depends=$(VIDEODEP), $(INPUTDEP)" >> debian/$(PKG_driver).substvars +endif + +binary-arch: refresh_copyright + #Steps that we can't easily represent in debhelper files or .in files yet + + # Remove any libraries that may be caught by shell expansion + find . -name libGLE* | xargs rm -f + find . -name libEGL* | xargs rm -f + +ifeq ($(DEB_HOST_ARCH),amd64) + dh_install -p$(PKG_driver) "arch/x86/usr/X11R6/lib/libAMD*.so*" "$(PKG_libdir32)" + dh_install -p$(PKG_driver) "arch/x86/usr/X11R6/lib/*.so*" "$(PKG_libdir32)" + dh_install -p$(PKG_driver) "arch/x86/usr/X11R6/lib/fglrx/*.so*" "$(PKG_libdir32)" + dh_installdirs -p$(PKG_driver) "$(PKG_libdir32)" + dh_install -p$(PKG_driver) "arch/x86/usr/X11R6/lib/modules/dri" "$(PKG_libdir32)" + dh_install -p$(PKG_driver) "arch/x86/usr/lib/*.so*" "$(PKG_libdir32)" + + for i in \ + debian/$(PKG_driver)/$(PKG_libdir32)/dri/fglrx_dri.so \ + debian/$(PKG_driver)/$(PKG_libdir32)/*libGL.so.* \ + ; do execstack -q $$i; execstack -c $$i; done + + #they don't provide the symlink for us (starting at 8.699) + dh_link -p$(PKG_driver) $(PKG_libdir32)/libatiuki.so.1.0 $(PKG_libdir32)/libatiuki.so.1 +else + dh_installdirs -p$(PKG_driver) +endif + dh_installdirs -p$(PKG_driver_dev) + dh_installdocs -p$(PKG_driver) usr/share/doc/fglrx/* --exclude LICENSE.TXT + dh_installdocs -p$(PKG_driver) debian/AUTHORS + dh_installdocs -p$(PKG_driver) debian/copyright + + dh_installinit -p$(PKG_driver) --name="atieventsd" --no-start --update-rcd-params="defaults 31" + + #remove executable bits from stack + dh_install -p$(PKG_control) + execstack -c debian/$(PKG_control)/$(PKG_libdir)/bin/amdcccle + dh_install -p$(PKG_driver) + for i in \ + debian/$(PKG_driver)/$(PKG_libdir)/bin/clinfo \ + debian/$(PKG_driver)/$(PKG_libdir)/bin/atiode \ + debian/$(PKG_driver)/$(PKG_libdir)/bin/amdnotifyui \ + debian/$(PKG_driver)/$(PKG_libdir)/dri/fglrx_dri.so \ + debian/$(PKG_driver)/$(PKG_libdir)/*libGL.so.*.* \ + debian/$(PKG_driver)/$(PKG_libdir)/*libOpenCL.so.* \ + ; do execstack -q $$i; execstack -c $$i; done + + # Make some additional scripts executable + find debian/$(PKG_control)/$(PKG_libdir)/bin/ \ + -type f | xargs chmod a+x + + # Rename libraries which are supposed to have fglrx-libGL as a prefix + for lib in `find debian/$(PKG_driver)/ -name 'fglrx-libGL*'`; \ + do \ + file_name=`echo $$lib | awk -F/ '{print $$NF}'`; \ + path=`echo $$lib | sed -e "s|\/$$file_name|\/|"`; \ + # Remove fglrx prefix \ + new_name=`echo $$file_name | sed -e "s|fglrx\-||"`; \ + full_path=`echo "$$path$$new_name"`; \ + mv -f $$lib $$full_path; \ + done + + # Rename libraries which are supposed to have fglrx-libglx as a prefix + for lib in `find debian/$(PKG_driver)/ -name 'fglrx-libglx*'`; \ + do \ + file_name=`echo $$lib | awk -F/ '{print $$NF}'`; \ + path=`echo $$lib | sed -e "s|\/$$file_name|\/|"`; \ + new_path=`echo $$path | sed -e 's/fglrx\/$$//'`; \ + # Remove fglrx prefix \ + new_name=`echo $$file_name | sed -e "s|fglrx\-||"`; \ + full_path=`echo "$$new_path$$new_name"`; \ + mv -f $$lib $$full_path; \ + done + + # Create links for PowerXpress X modules (except for extensions) + for i in \ + debian/$(PKG_driver)/$(PKG_xmoddir)/* \ + ; do \ + orig_name=`echo $$i | sed -e "s|debian/$(PKG_driver)/||"`; \ + if [ `echo $$orig_name | sed -e "s|$(PKG_xmoddir)/||"` != "extensions" ]; then \ + link_name=$$orig_name ; \ + link_name=`echo $$orig_name | sed -e "s|$(PKG_xmoddir)|$(PX_xmoddir)|"`; \ + dh_link -p$(PKG_driver) $$orig_name $$link_name ; \ + fi \ + done + + # Create links for PowerXpress libs (except for libGL) + for i in \ + debian/$(PKG_driver)/$(PKG_libdir)/* \ + ; do \ + orig_name=`echo $$i | sed -e "s|debian/$(PKG_driver)/||"`; \ + # Copy each file except for libGL* \ + if [ -f $$i ]; then \ + if [ ! `echo $$orig_name | grep libGL` ]; then \ + link_name=$$orig_name ; \ + link_name=`echo $$orig_name | sed -e "s|$(PKG_libdir)|$(PX_libdir)|"`; \ + dh_link -p$(PKG_driver) $$orig_name $$link_name ; \ + fi \ + else \ + # Here we only accept the dri directory \ + dir_name=`echo $$orig_name | awk -F/ '{print $$NF}'`; \ + if [ "$$dir_name" = "dri" ]; then \ + link_name=$$orig_name ; \ + link_name=`echo $$orig_name | sed -e "s|$(PKG_libdir)|$(PX_libdir)|"`; \ + dh_link -p$(PKG_driver) $$orig_name $$link_name ; \ + fi \ + fi \ + done + +ifeq ($(DEB_HOST_ARCH),amd64) + # Create links for PowerXpress 32bit libs (except for libGL) + for i in \ + debian/$(PKG_driver)/$(PKG_libdir32)/* \ + ; do \ + orig_name=`echo $$i | sed -e "s|debian/$(PKG_driver)/||"`; \ + # Copy each file except for libGL* \ + if [ -f $$i ]; then \ + if [ ! `echo $$orig_name | grep libGL` ]; then \ + link_name=$$orig_name ; \ + link_name=`echo $$orig_name | sed -e "s|$(PKG_libdir32)|$(PX_libdir32)|"`; \ + dh_link -p$(PKG_driver) $$orig_name $$link_name ; \ + fi \ + else \ + # Here we only accept the dri directory \ + dir_name=`echo $$orig_name | awk -F/ '{print $$NF}'`; \ + if [ "$$dir_name" = "dri" ]; then \ + link_name=$$orig_name ; \ + link_name=`echo $$orig_name | sed -e "s|$(PKG_libdir32)|$(PX_libdir32)|"`; \ + dh_link -p$(PKG_driver) $$orig_name $$link_name ; \ + fi \ + fi \ + done +endif + + # Blacklist any other driver that udev may want to load instead of fglrx + # and create an alias for the module so that it can be used as fglrx + printf '$(subst $(newline),\n,${blacklist_file})' > $(CURDIR)/debian/$(PKG_driver)/$(PKG_libconfdir)/modprobe.conf + + #ld.so.conf + echo "/$(PKG_libdir)" > "$(CURDIR)/debian/$(PKG_driver)/$(ld_so_conf_path)" +ifeq ($(DEB_HOST_ARCH),amd64) + echo "/$(PKG_libdir32)" >> "$(CURDIR)/debian/$(PKG_driver)/$(ld_so_conf_path)" +endif + + # ld.so.conf for PowerXpress + echo "/usr/lib/$(DEB_HOST_MULTIARCH)/mesa" > "$(CURDIR)/debian/$(PKG_driver)/$(PX_ld_so_conf)" + echo "/$(PX_libdir)" >> "$(CURDIR)/debian/$(PKG_driver)/$(PX_ld_so_conf)" +ifeq ($(DEB_HOST_ARCH),amd64) + echo "/usr/$(OTHER_ARCH)/mesa" >> "$(CURDIR)/debian/$(PKG_driver)/$(PX_ld_so_conf)" + echo "/$(PX_libdir32)" >> "$(CURDIR)/debian/$(PKG_driver)/$(PX_ld_so_conf)" +endif + + # empty ld.so.conf for the fake multi-arch alternative + echo "" > "$(CURDIR)/debian/$(PKG_driver)/$(alt_ld_so_conf_path)" + + # empty ld.so.conf for the fake multi-arch alternative for PXpress + echo "" > "$(CURDIR)/debian/$(PKG_driver)/$(PX_ld_so_conf_alt)" + + # Generate modaliases + sh -e debian/modaliases/fglrx_supported \ + lib/modules/fglrx/build_mod/fglrxko_pci_ids.h $(PKG_module) $(PKG_driver) > \ + debian/fglrx.modaliases + dh_modaliases + rm debian/fglrx.modaliases + + #Run the normal stuff + dh binary-arch + +binary: binary-arch binary-indep ; + #Run the normal stuff + dh binary + +override_dh_shlibdeps: +ifeq ($(DEB_HOST_ARCH),amd64) + dh_shlibdeps -l$(CURDIR)/debian/fglrx/$(PKG_libdir):$(CURDIR)/debian/fglrx/$(PKG_libdir32) -Xlib32 +else + dh_shlibdeps -l$(CURDIR)/debian/fglrx/$(PKG_libdir) +endif + +%: + dh $@ --- fglrx-installer-8.960.orig/debian/copyright_stub_0 +++ fglrx-installer-8.960/debian/copyright_stub_0 @@ -0,0 +1,14 @@ +This package was debianized by Mario Limonciello on +Tue, 27 May 2008 10:22:21 -0600. + +The latest Linux graphics driver was downloaded from the +AMD website (www.amd.com), and then this package was generated using: + + sh $VERSION.run --buildpkg Ubuntu/source + +---------------------------------------------------------------------------- + +Driver License: + +Copyright (c) 2011 Advanced Micro Devices, Inc. + --- fglrx-installer-8.960.orig/debian/fglrx.preinst.in +++ fglrx-installer-8.960/debian/fglrx.preinst.in @@ -0,0 +1,113 @@ +#! /bin/sh +# preinst script for fglrx +# +# see: dh_installdeb(1) +# +# Copyright (C) 2007 Mario Limonciello +# Copyright (C) 2009-2011 Canonical Ltd. + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# +# For details see /usr/share/doc/packaging-manual/ + +PKGNAME=#DRIVERNAME# +OLDPKGNAME=xorg-driver-fglrx + +if [ `dpkg --print-architecture` = "amd64" ]; then + HAS_LIB32="yes" +fi + +fix_diversions() +{ + # Remove very old style diversions + if [ -d /usr/share/fglrx/diversions ]; then + if [ -n "$HAS_LIB32" ]; then + dpkg-divert --remove --package $OLDPKGNAME \ + --divert /usr/share/fglrx/diversions/libGL.so.1.2_32bit \ + --rename /usr/lib32/libGL.so.1.2 + fi + + dpkg-divert --remove --package $OLDPKGNAME \ + --divert /usr/share/fglrx/diversions/libGL.so.1.2 \ + --rename /usr/lib/libGL.so.1.2 + + rmdir /usr/share/fglrx/diversions || true + fi + + #remove old and unnecessary libGL.so.1 symlinks + if [ -L /usr/lib/fglrx/libGL.so.1.xlibmesa ]; then + rm /usr/lib/fglrx/libGL.so.1.xlibmesa + fi + + if [ -L /usr/lib32/fglrx/libGL.so.1.xlibmesa ]; then + rm /usr/lib32/fglrx/libGL.so.1.xlibmesa + fi + #remove unnecessary X11R6 symlinks that may not have + #been cleaned up in earlier releases + for i in /usr/lib/libGL.so.1 \ + /usr/lib32/libGL.so.1 \ + /usr/lib/libGL.so.1.2 \ + /usr/lib32/libGL.so.1.2 \ + /usr/X11R6/lib/libGL.so.1 \ + /usr/X11R6/lib/libGL.so.1.2 \ + /usr/X11R6/lib32/libGL.so.1 \ + /usr/X11R6/lib32/libGL.so.1.2 ; do \ + dpkg-divert --remove --package $OLDPKGNAME $i > /dev/null; \ + done + + #before 8.699 we had to divert libdri + if dpkg-divert --list $OLDPKGNAME | \ + grep /usr/lib/xorg/modules/extensions/libdri.so > /dev/null ; then + rm -f /usr/lib/xorg/modules/extensions/libdri.so > /dev/null + dpkg-divert --remove --rename --package $OLDPKGNAME \ + --divert /usr/lib/fglrx/libdri.so.xlibmesa \ + /usr/lib/xorg/modules/extensions/libdri.so > /dev/null + fi + +} + +case "$1" in + install|upgrade) + + ### remove old fglrx diversions ### + fix_diversions + + # Remove the file if it's not a symlink (see LP: #552903) + if [ ! -L /etc/X11/Xsession.d/10fglrx ]; then + rm -f /etc/X11/Xsession.d/10fglrx + fi + + ## Just in case they installed without debs before, finish a proper uninstall routine ## + ## This will error out on any failure (which should be cleaned up anyway before installing debs) ## + [ -x /usr/share/ati/fglrx-uninstall.sh ] && /usr/share/ati/fglrx-uninstall.sh + + # Remove the directory if it's not a symlink (as it should be + # a slave link now) + if [ ! -L /etc/ati ]; then + rm -Rf /etc/ati + fi + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + + + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- fglrx-installer-8.960.orig/debian/fglrx.links.in +++ fglrx-installer-8.960/debian/fglrx.links.in @@ -0,0 +1,7 @@ +#PKGLIBDIR#/libfglrx_dm.so.1.0 #PKGLIBDIR#/libfglrx_dm.so.1 +#PKGLIBDIR#/libatiuki.so.1.0 #PKGLIBDIR#/libatiuki.so.1 +#PKGLIBDIR#/libGL.so.1.2 #PKGLIBDIR#/libGL.so.1 +#PKGLIBDIR#/libGL.so.1 #PKGLIBDIR#/libGL.so +#PKGLIBDIR#/libOpenCL.so.1 #PKGLIBDIR#/libOpenCL.so +#PKGLIBDIR#/libAMDXvBA.so.1.0 #PKGLIBDIR#/libAMDXvBA.so.1 +#PKGLIBDIR#/bin/aticonfig #PKGLIBDIR#/bin/amdconfig --- fglrx-installer-8.960.orig/debian/fglrx-amdcccle.install.in +++ fglrx-installer-8.960/debian/fglrx-amdcccle.install.in @@ -0,0 +1,6 @@ +debian/overrides/fglrx-amdcccle usr/share/lintian/overrides +usr/share/icons/*.xpm usr/share/pixmaps +usr/share/ati usr/share +usr/share/applications/*.desktop usr/share/fglrx +usr/X11R6/bin/* #PKGLIBDIR#/bin +arch/#SRCARCH#/usr/X11R6/bin/amdcccle #PKGLIBDIR#/bin --- fglrx-installer-8.960.orig/debian/fglrx.dirs.in +++ fglrx-installer-8.960/debian/fglrx.dirs.in @@ -0,0 +1,13 @@ +#PKGLIBDIR# +#PXDIR# +#PXXMODDIR# +#PXLIBDIR# +#PKGDATADIR# +#PKGLIBCONFDIR# +#PKGLIBDIR#/#SYSCONFDIR#/ati +#PKGLIBDIR#/#SYSCONFDIR#/OpenCL/vendors +#DATADIR#/grub-gfxpayload-lists/blacklist +#LIBDIR#/dri +#LIBDIR#/xorg/modules/drivers/ +#XORGEXTRA# +#SYSCONFDIR#/OpenCL/vendors --- fglrx-installer-8.960.orig/debian/overrides/fglrx-amdcccle +++ fglrx-installer-8.960/debian/overrides/fglrx-amdcccle @@ -0,0 +1,5 @@ +#We are in restricted, whether lintian has ever heard of it or not +fglrx-amdcccle: unknown-section restricted + +#AMD doesn't appear to document these binaries +fglrx-amdcccle: binary-without-manpage usr/bin/amdcccle --- fglrx-installer-8.960.orig/debian/overrides/fglrx-dev +++ fglrx-installer-8.960/debian/overrides/fglrx-dev @@ -0,0 +1,3 @@ +#We are in restricted, whether lintian has ever heard of it or not +xorg-driver-fglrx-dev: unknown-section restricted + --- fglrx-installer-8.960.orig/debian/overrides/fglrx.in +++ fglrx-installer-8.960/debian/overrides/fglrx.in @@ -0,0 +1,24 @@ +#We are in restricted, whether lintian has ever heard of it or not +fglrx: unknown-section restricted + +#These unfortunately are needed if we really want to be able to link? +fglrx: arch-independent-package-contains-binary-or-object ./usr/src/fglrx-#CVERSION#/libfglrx_ip.a.GCC3 +fglrx: unstripped-binary-or-object ./usr/src/fglrx-#CVERSION#/libfglrx_ip.a.GCC3 +fglrx: arch-independent-package-contains-binary-or-object ./usr/src/fglrx-#CVERSION#/libfglrx_ip.a.GCC4 +fglrx: unstripped-binary-or-object ./usr/src/fglrx-#CVERSION#/libfglrx_ip.a.GCC4 + +#AMD doesn't appear to document these binaries +fglrx: binary-without-manpage usr/bin/aticonfig +fglrx: binary-without-manpage usr/bin/atiodcli +fglrx: binary-without-manpage usr/bin/atiode +fglrx: binary-without-manpage usr/bin/fgl_glxgears +fglrx: binary-without-manpage usr/bin/fglrxinfo +fglrx: binary-without-manpage usr/sbin/atieventsd +fglrx: binary-without-manpage usr/sbin/amdnotifyui + +#We have NO control of AMD's build process +fglrx: sharedobject-in-library-directory-missing-soname usr/lib/libatiadlxx.so +fglrx: shlib-with-non-pic-code usr/lib/libGL.so.1.2 + +#It's awfully silly to break these out as they are only ever installed with fglrx +fglrx: package-name-doesnt-match-sonames libGL1 libfglrx-dm1.0 libfglrx-pp1.0 libfglrx-tvout1 --- fglrx-installer-8.960.orig/debian/pxpress/switchlibGL +++ fglrx-installer-8.960/debian/pxpress/switchlibGL @@ -0,0 +1,260 @@ +#!/usr/bin/python +# +# switchlibGL +# +# Copyright 2011 Canonical Ltd. +# Author: Alberto Milone +# +# Script to switch between AMD and Intel graphics driver libraries. +# +# Usage: +# switchlibGL amd|intel|query +# amd: switches to AMD's version of libGL.so +# intel: switches to the open-source version of libGL.so +# query: checks which version is currently active and writes +# "amd", "intel" or "unknown" to the standard output +# +# Permission is hereby granted, free of charge, to any person +# obtaining a copy of this software and associated documentation +# files (the "Software"), to deal in the Software without +# restriction, including without limitation the rights to use, +# copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the +# Software is furnished to do so, subject to the following +# conditions: +# +# The above copyright notice and this permission notice shall be +# included in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +# OTHER DEALINGS IN THE SOFTWARE. + + +import optparse +import os +import sys +import re +import subprocess +from subprocess import Popen, PIPE, CalledProcessError + +class Alternatives: + + def __init__(self, master_link): + self._open_drivers_alternative = 'mesa/ld.so.conf' + self._command = 'update-alternatives' + self._master_link = master_link + + # Make sure that the PATH environment variable is set + if not os.environ.get('PATH'): + os.environ['PATH'] = '/sbin:/usr/sbin:/bin:/usr/bin' + + def list_alternatives(self): + '''Get the list of alternatives for the master link''' + dev_null = open('/dev/null', 'w') + alternatives = [] + p1 = Popen([self._command, '--list', self._master_link], stdout=PIPE, stderr=dev_null) + p = p1.communicate()[0] + dev_null.close() + c = p.split('\n') + for line in c: + line.strip() and alternatives.append(line.strip()) + + return alternatives + + def get_current_alternative(self): + '''Get the alternative in use''' + dev_null = open('/dev/null', 'w') + current_alternative = None + p1 = Popen([self._command, '--query', self._master_link], stdout=PIPE, stderr=dev_null) + p = p1.communicate()[0] + dev_null.close() + c = p.split('\n') + for line in c: + if line.strip().startswith('Value:'): + return line.replace('Value:', '').strip() + return None + + def get_alternative_by_name(self, name): + '''Get the alternative link by providing the driver name''' + alternatives = self.list_alternatives() + + for alternative in alternatives: + if alternative.__contains__(name): + return alternative + + return None + + def get_open_drivers_alternative(self): + '''Get the alternative link for open drivers''' + return self.get_alternative_by_name(self._open_drivers_alternative) + + def update_gmenu(self): + '''Trigger gmenu so that the icons will show up in the menu''' + try: + subprocess.check_call(['dpkg-trigger', '--by-package=fakepackage', 'gmenucache'], stdout=open(os.devnull, 'w')) + subprocess.check_call(['dpkg', '--configure', '-a'], stdout=open(os.devnull, 'w')) + except (OSError, CalledProcessError): + pass + + def set_alternative(self, path): + '''Tries to set an alternative and returns the boolean exit status''' + try: + subprocess.check_call([self._command, '--set', self._master_link, path], stdout=open(os.devnull, 'w')) + self.ldconfig() + except CalledProcessError: + return False + + self.update_gmenu() + + return True + + def ldconfig(self): + '''Call ldconfig''' + try: + subprocess.check_call(['ldconfig'], stdout=open(os.devnull, 'w')) + except CalledProcessError: + return False + return True + + +class Switcher(object): + + def __init__(self): + self._supported_architectures = {'i386': 'i386', 'amd64': 'x86_64'} + main_arch = self._get_architecture() + other_arch = self._supported_architectures.values()[ + int(not self._supported_architectures + .values().index(main_arch))] + main_alternative_name = self._get_alternative_name_from_arch(main_arch) + other_alternative_name = self._get_alternative_name_from_arch(other_arch) + + # We have 2 alternatives, one for each architecture + self._gl_switcher = Alternatives(main_alternative_name) + self._gl_switcher_other = Alternatives(other_alternative_name) + + def _get_architecture(self): + dev_null = open('/dev/null', 'w') + p1 = Popen(['dpkg', '--print-architecture'], stdout=PIPE, stderr=dev_null) + p = p1.communicate()[0] + dev_null.close() + architecture = p.strip() + return self._supported_architectures.get(architecture) + + def _get_alternative_name_from_arch(self, architecture): + alternative = '%s-linux-gnu_gl_conf' % architecture + return alternative + + def _simplify_x_alternative_name(self, alternative): + return alternative.split('/')[-1] + + def _simplify_gl_alternative_name(self, alternative): + return alternative.split('/')[-2] + + def _get_gl_alternatives_list(self): + raw_alternatives = self._gl_switcher.list_alternatives() + return [ self._simplify_gl_alternative_name(x) for x in raw_alternatives ] + + def _update_initramfs(self): + subprocess.call(['update-initramfs', '-u']) + # This may not be necessary + subprocess.call(['update-initramfs', '-u', '-k', os.uname()[2]]) + + def _get_current_alternative(self): + # This is a list as the 2nd item could be another alternative + # we might be looking for e.g. an xorg.conf alternative + alternatives = [None, None] + raw_gl_alternative = self._gl_switcher.get_current_alternative() + raw_gl_alternative_other = self._gl_switcher_other.get_current_alternative() + + if (raw_gl_alternative != None): + alternatives[0] = self._simplify_gl_alternative_name(raw_gl_alternative) + if (raw_gl_alternative_other != None): + alternatives[1] = self._simplify_gl_alternative_name(raw_gl_alternative_other) + + return alternatives + + def enable_alternative(self, alternative): + # Make sure that the alternative exists + gl_alternative = self._gl_switcher.get_alternative_by_name(alternative) + gl_alternative_other = self._gl_switcher_other.get_alternative_by_name(alternative) + + # See if they are null + # Abort if gl_alternative is null + if gl_alternative and gl_alternative_other: + success = (self._gl_switcher.set_alternative(gl_alternative) and + self._gl_switcher_other.set_alternative(gl_alternative_other)) + return success + else: + sys.stderr.write("Error: no alternative can be found for %s\n" % alternative) + + return False + + def print_current_alternative(self): + alternatives = self._get_current_alternative() + + try: + alternative = str(alternatives[0]) + alternative_other = str(alternatives[1]) + except IndexError: + # No alternative exists + return False + + if alternative == alternative_other == 'fglrx': + print 'amd' + elif alternative == alternative_other == 'pxpress': + print 'intel' + else: + print 'unknown' + + return True + +def check_root(): + if not os.geteuid() == 0: + sys.stderr.write("This operation requires root privileges\n") + exit(1) + +def handle_alternatives_error(mode): + sys.stderr.write('Error: %s mode can\'t be enabled\n' % mode) + exit(1) + +def handle_query_error(): + sys.stderr.write("Error: no alternative can be found\n") + exit(1) + +def usage(): + sys.stderr.write("Usage: %s amd|intel|query\n" % (sys.argv[0])) + +if __name__ == '__main__': + try: + arg = sys.argv[1] + except IndexError: + arg = None + + check_root() + + if len(sys.argv[1:]) != 1: + usage() + exit(1) + + switcher = Switcher() + + if arg == "amd": + if not switcher.enable_alternative('fglrx'): + handle_alternatives_error(arg) + elif arg == "intel": + if not switcher.enable_alternative('pxpress'): + handle_alternatives_error(arg) + elif arg == "query": + if not switcher.print_current_alternative(): + handle_query_error() + else: + usage() + sys.exit(1) + + exit(0) --- fglrx-installer-8.960.orig/debian/pxpress/switchlibglx +++ fglrx-installer-8.960/debian/pxpress/switchlibglx @@ -0,0 +1,260 @@ +#!/usr/bin/python +# +# switchlibglx +# +# Copyright 2011 Canonical Ltd. +# Author: Alberto Milone +# +# Script to switch between AMD and Intel graphics driver libraries. +# +# Usage: +# switchlibglx amd|intel|query +# amd: switches to AMD's version of libglx.so +# intel: switches to the open-source version of libglx.so +# query: checks which version is currently active and writes +# "amd", "intel" or "unknown" to the standard output +# +# Permission is hereby granted, free of charge, to any person +# obtaining a copy of this software and associated documentation +# files (the "Software"), to deal in the Software without +# restriction, including without limitation the rights to use, +# copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the +# Software is furnished to do so, subject to the following +# conditions: +# +# The above copyright notice and this permission notice shall be +# included in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +# OTHER DEALINGS IN THE SOFTWARE. + + +import optparse +import os +import sys +import re +import subprocess +from subprocess import Popen, PIPE, CalledProcessError + +class Alternatives: + + def __init__(self, master_link): + self._open_drivers_alternative = 'mesa/ld.so.conf' + self._command = 'update-alternatives' + self._master_link = master_link + + # Make sure that the PATH environment variable is set + if not os.environ.get('PATH'): + os.environ['PATH'] = '/sbin:/usr/sbin:/bin:/usr/bin' + + def list_alternatives(self): + '''Get the list of alternatives for the master link''' + dev_null = open('/dev/null', 'w') + alternatives = [] + p1 = Popen([self._command, '--list', self._master_link], stdout=PIPE, stderr=dev_null) + p = p1.communicate()[0] + dev_null.close() + c = p.split('\n') + for line in c: + line.strip() and alternatives.append(line.strip()) + + return alternatives + + def get_current_alternative(self): + '''Get the alternative in use''' + dev_null = open('/dev/null', 'w') + current_alternative = None + p1 = Popen([self._command, '--query', self._master_link], stdout=PIPE, stderr=dev_null) + p = p1.communicate()[0] + dev_null.close() + c = p.split('\n') + for line in c: + if line.strip().startswith('Value:'): + return line.replace('Value:', '').strip() + return None + + def get_alternative_by_name(self, name): + '''Get the alternative link by providing the driver name''' + alternatives = self.list_alternatives() + + for alternative in alternatives: + if alternative.__contains__(name): + return alternative + + return None + + def get_open_drivers_alternative(self): + '''Get the alternative link for open drivers''' + return self.get_alternative_by_name(self._open_drivers_alternative) + + def update_gmenu(self): + '''Trigger gmenu so that the icons will show up in the menu''' + try: + subprocess.check_call(['dpkg-trigger', '--by-package=fakepackage', 'gmenucache'], stdout=open(os.devnull, 'w')) + subprocess.check_call(['dpkg', '--configure', '-a'], stdout=open(os.devnull, 'w')) + except (OSError, CalledProcessError): + pass + + def set_alternative(self, path): + '''Tries to set an alternative and returns the boolean exit status''' + try: + subprocess.check_call([self._command, '--set', self._master_link, path], stdout=open(os.devnull, 'w')) + self.ldconfig() + except CalledProcessError: + return False + + self.update_gmenu() + + return True + + def ldconfig(self): + '''Call ldconfig''' + try: + subprocess.check_call(['ldconfig'], stdout=open(os.devnull, 'w')) + except CalledProcessError: + return False + return True + + +class Switcher(object): + + def __init__(self): + self._supported_architectures = {'i386': 'i386', 'amd64': 'x86_64'} + main_arch = self._get_architecture() + other_arch = self._supported_architectures.values()[ + int(not self._supported_architectures + .values().index(main_arch))] + main_alternative_name = self._get_alternative_name_from_arch(main_arch) + other_alternative_name = self._get_alternative_name_from_arch(other_arch) + + # We have 2 alternatives, one for each architecture + self._gl_switcher = Alternatives(main_alternative_name) + self._gl_switcher_other = Alternatives(other_alternative_name) + + def _get_architecture(self): + dev_null = open('/dev/null', 'w') + p1 = Popen(['dpkg', '--print-architecture'], stdout=PIPE, stderr=dev_null) + p = p1.communicate()[0] + dev_null.close() + architecture = p.strip() + return self._supported_architectures.get(architecture) + + def _get_alternative_name_from_arch(self, architecture): + alternative = '%s-linux-gnu_gl_conf' % architecture + return alternative + + def _simplify_x_alternative_name(self, alternative): + return alternative.split('/')[-1] + + def _simplify_gl_alternative_name(self, alternative): + return alternative.split('/')[-2] + + def _get_gl_alternatives_list(self): + raw_alternatives = self._gl_switcher.list_alternatives() + return [ self._simplify_gl_alternative_name(x) for x in raw_alternatives ] + + def _update_initramfs(self): + subprocess.call(['update-initramfs', '-u']) + # This may not be necessary + subprocess.call(['update-initramfs', '-u', '-k', os.uname()[2]]) + + def _get_current_alternative(self): + # This is a list as the 2nd item could be another alternative + # we might be looking for e.g. an xorg.conf alternative + alternatives = [None, None] + raw_gl_alternative = self._gl_switcher.get_current_alternative() + raw_gl_alternative_other = self._gl_switcher_other.get_current_alternative() + + if (raw_gl_alternative != None): + alternatives[0] = self._simplify_gl_alternative_name(raw_gl_alternative) + if (raw_gl_alternative_other != None): + alternatives[1] = self._simplify_gl_alternative_name(raw_gl_alternative_other) + + return alternatives + + def enable_alternative(self, alternative): + # Make sure that the alternative exists + gl_alternative = self._gl_switcher.get_alternative_by_name(alternative) + gl_alternative_other = self._gl_switcher_other.get_alternative_by_name(alternative) + + # See if they are null + # Abort if gl_alternative is null + if gl_alternative and gl_alternative_other: + success = (self._gl_switcher.set_alternative(gl_alternative) and + self._gl_switcher_other.set_alternative(gl_alternative_other)) + return success + else: + sys.stderr.write("Error: no alternative can be found for %s\n" % alternative) + + return False + + def print_current_alternative(self): + alternatives = self._get_current_alternative() + + try: + alternative = str(alternatives[0]) + alternative_other = str(alternatives[1]) + except IndexError: + # No alternative exists + return False + + if alternative == alternative_other == 'fglrx': + print 'amd' + elif alternative == alternative_other == 'pxpress': + print 'intel' + else: + print 'unknown' + + return True + +def check_root(): + if not os.geteuid() == 0: + sys.stderr.write("This operation requires root privileges\n") + exit(1) + +def handle_alternatives_error(mode): + sys.stderr.write('Error: %s mode can\'t be enabled\n' % mode) + exit(1) + +def handle_query_error(): + sys.stderr.write("Error: no alternative can be found\n") + exit(1) + +def usage(): + sys.stderr.write("Usage: %s amd|intel|query\n" % (sys.argv[0])) + +if __name__ == '__main__': + try: + arg = sys.argv[1] + except IndexError: + arg = None + + check_root() + + if len(sys.argv[1:]) != 1: + usage() + exit(1) + + switcher = Switcher() + + if arg == "amd": + if not switcher.enable_alternative('fglrx'): + handle_alternatives_error(arg) + elif arg == "intel": + if not switcher.enable_alternative('pxpress'): + handle_alternatives_error(arg) + elif arg == "query": + if not switcher.print_current_alternative(): + handle_query_error() + else: + usage() + sys.exit(1) + + exit(0) --- fglrx-installer-8.960.orig/debian/modaliases/fglrx_supported +++ fglrx-installer-8.960/debian/modaliases/fglrx_supported @@ -0,0 +1,26 @@ +#!/bin/sh + +set -e + +print_usage_and_exit() { + echo "USAGE: $0 path/to/fglrxko_pci_ids.h fglrx_module fglrx_package" >&2 + exit 1 +} + +[ -n "$3" ] || { + print_usage_and_exit +} + +filename="$1" +modname="$2" +pkgname="$3" + +[ -e "$filename" ] || { + print_usage_and_exit +} + +echo "# Listing generated by $pkgname. Do not edit manually." + +grep "0x" "$filename" | \ + sed -n "s/FGL_ASIC_ID(0x\([0-9A-F]\{4\}\)),$/alias pci:v00001002d0000\1sv*sd*bc03sc*i* $modname $pkgname/p" | \ + sort | uniq | sed -e 's/^[ \t]*//' --- fglrx-installer-8.960.orig/debian/replacements/authatieventsd.sh +++ fglrx-installer-8.960/debian/replacements/authatieventsd.sh @@ -0,0 +1,111 @@ +#!/bin/sh + +# +# Control script grant/revoke access to X for the ATI External Events Daemon +# +# Distro maintainers may modify this reference script as necessary to conform +# to their distribution policies. +# +# Copyright (c) 2006, ATI Technologies Inc. All rights reserved. +# + +# +# Parameters: +# $1 is a keyword, either "grant" or "revoke" +# $2 is the display name +# $3 is the X authorization file to be authorized +# +# Returns: +# 0 if authorization was successfully granted/revoked +# nonzero on failure +# +# Note: +# The third parameter only makes sense if xauth is being used. If another +# mechanism such as xhost is being used it can be ignored. For setups that +# do not do any form of authentication(!) this script can be trimmed down +# to just "exit 0" and the daemon will assume that it is always authorized. +# + +GetServerAuthFile() +{ + # Determine where the authorization key may be hiding. The location will + # vary depending upon whether X was started via xdm/kdm, gdm or startx, so + # check each one in turn. + + # Check xdm + + XDM_AUTH_MASK=/var/lib/xdm/authdir/authfiles/A$1* + XDM_AUTH_FILE=`ls -t $XDM_AUTH_MASK 2>/dev/null | head -n 1` # Choose the newest file + if [ -n "$XDM_AUTH_FILE" ]; then + SERVER_AUTH_FILE=$XDM_AUTH_FILE + DISP_SEARCH_STRING="#ffff#" + return 0 + fi + + # Check kdm + KDM_AUTH_MASK=/var/run/xauth/A$1* + KDM_AUTH_FILE=`ls -t $KDM_AUTH_MASK 2>/dev/null | head -n 1` # Choose the newest file + if [ -n "$KDM_AUTH_FILE" ]; then + SERVER_AUTH_FILE=$KDM_AUTH_FILE + DISP_SEARCH_STRING="#ffff#" + return 0 + fi + + # Check gdm + + GDM_AUTH_FILE=/var/lib/gdm/$1.Xauth + if [ -e $GDM_AUTH_FILE ]; then + SERVER_AUTH_FILE=$GDM_AUTH_FILE + DISP_SEARCH_STRING="$1" + return 0 + fi + + # Finally, check for startx + + for XPID in `pidof X`; do + TRIAL_XAUTH_FILE=`tr '\0' '\n' < /proc/$XPID/environ | grep -e "^XAUTHORITY=" | cut -d= -f2` + TRIAL_XAUTH_KEY=`xauth -f $TRIAL_XAUTH_FILE list | grep "unix$1"` + if [ -n "$TRIAL_XAUTH_KEY" ]; then + SERVER_AUTH_FILE=$TRIAL_XAUTH_FILE + DISP_SEARCH_STRING="unix$1" + return 0 + fi + done + + # Couldn't find the key + + return -1 +} + +# Main part of script + +# +# Since the daemon is usually started during init time before X comes up, +# $PATH may not yet contain the paths to the X binaries, particularly xauth. +# Add the usual location for where xauth may live and fail out if we still +# can't find it. +# + +PATH=$PATH:/usr/bin:/usr/X11R6/bin +which xauth > /dev/null || exit -1 + +case "$1" in + grant) + GetServerAuthFile $2 || exit -1 + DISP_AUTH_KEY=`xauth -f $SERVER_AUTH_FILE list | grep $DISP_SEARCH_STRING | awk '{ print $3 }'` + if [ -n "$DISP_AUTH_KEY" ]; then + xauth -f $3 add $2 . $DISP_AUTH_KEY || exit -1 + else + exit -1 + fi + ;; + + revoke) + xauth -f $3 remove $2 || exit -1 + ;; + + *) + exit -1 + ;; +esac +exit 0 --- fglrx-installer-8.960.orig/debian/dkms/patches/fix-build-issue-on-i386-where-TS_USEDFPU-is-no-longe.patch +++ fglrx-installer-8.960/debian/dkms/patches/fix-build-issue-on-i386-where-TS_USEDFPU-is-no-longe.patch @@ -0,0 +1,36 @@ +From 6bc31befbd0defde8e62bc51c9e844abda339601 Mon Sep 17 00:00:00 2001 +From: Alberto Milone +Date: Thu, 22 Mar 2012 10:35:05 +0100 +Subject: [PATCH 1/1] Fix build issue on i386 where TS_USEDFPU is no longer + available + + +Signed-off-by: Alberto Milone +--- + firegl_public.c | 6 ++++++ + 1 files changed, 6 insertions(+), 0 deletions(-) + +diff --git a/firegl_public.c b/firegl_public.c +index 1612722..1d02a00 100755 +--- a/firegl_public.c ++++ b/firegl_public.c +@@ -5834,10 +5834,16 @@ void ATI_API_CALL KCL_fpu_begin(void) + #ifdef CONFIG_X86_64 + kernel_fpu_begin(); + #else ++#ifndef TS_USEDFPU ++ preempt_disable(); ++ if (__thread_has_fpu(current)) ++ __save_init_fpu(current); ++#else + struct thread_info *cur_task = current_thread_info(); + preempt_disable(); + if (cur_task->status & TS_USEDFPU) + __save_init_fpu(cur_task->task); ++#endif + else + clts(); + #endif +-- +1.7.5.4 + --- fglrx-installer-8.960.orig/debian/dkms/patches/replace-global-lock-with-a-driver-specific-mutex.patch +++ fglrx-installer-8.960/debian/dkms/patches/replace-global-lock-with-a-driver-specific-mutex.patch @@ -0,0 +1,74 @@ +From 33585d73b1ce3c9480d2cb928a75fb409ebd8717 Mon Sep 17 00:00:00 2001 +From: Alberto Milone +Date: Tue, 14 Jun 2011 19:47:56 +0200 +Subject: [PATCH 1/1] replace global lock with a driver specific mutex + +--- + drmP.h | 2 +- + firegl_public.c | 11 +++++------ + 2 files changed, 6 insertions(+), 7 deletions(-) + +diff --git a/drmP.h b/drmP.h +index b18e7e8..a8e9cae 100644 +--- a/drmP.h ++++ b/drmP.h +@@ -57,7 +57,7 @@ + #include + #include + #include +-#include /* For (un)lock_kernel */ ++#include + #include + #include + #if defined(__alpha__) || defined(__powerpc__) +diff --git a/firegl_public.c b/firegl_public.c +index 66ae0c6..d9b19a2 100644 +--- a/firegl_public.c ++++ b/firegl_public.c +@@ -114,7 +114,7 @@ + #include + #include + #include +-#include ++#include + // newer SuSE kernels need this + #include + +@@ -289,6 +289,8 @@ typedef enum + KCL_MEM_PAT_ENABLED_KERNEL + } kcl_mem_pat_status_t; + ++static DEFINE_MUTEX(ati_mutex); ++ + static kcl_mem_pat_status_t kcl_mem_pat_status = KCL_MEM_PAT_DISABLED; + static u64 kcl_mem_pat_orig_val; + +@@ -1048,9 +1050,6 @@ static int __init firegl_init_module(void) + + dev->pubdev.signature = FGL_DEVICE_SIGNATURE; + +- for (i = 0; i < __KE_MAX_SPINLOCKS; i++) +- dev->spinlock[i] = SPIN_LOCK_UNLOCKED; +- + for (i=0; i < __KE_MAX_SEMAPHORES; i++) + sema_init(&dev->struct_sem[i], 1); + +@@ -1900,13 +1899,13 @@ void ATI_API_CALL KCL_spin_unlock(void *lock) + /** \brief Grab global kernel lock */ + void ATI_API_CALL KCL_GlobalKernelLock(void) + { +- lock_kernel(); ++ mutex_lock(&ati_mutex); + } + + /** \brief Release global kernel lock */ + void ATI_API_CALL KCL_GlobalKernelUnlock(void) + { +- unlock_kernel(); ++ mutex_unlock(&ati_mutex); + } + + /*****************************************************************************/ +-- +1.7.4.1 + --- fglrx-installer-8.960.orig/debian/acpi/fglrx-ac-aticonfig +++ fglrx-installer-8.960/debian/acpi/fglrx-ac-aticonfig @@ -0,0 +1,6 @@ +# /etc/acpi/events/fglrx-ac-aticonfig +# Called when the user connects/disconnects ac power +# + +event=ac_adapter +action=/etc/acpi/fglrx-powermode.sh --- fglrx-installer-8.960.orig/debian/acpi/fglrx-lid-aticonfig +++ fglrx-installer-8.960/debian/acpi/fglrx-lid-aticonfig @@ -0,0 +1,6 @@ +# /etc/acpi/events/fglrx-lid-aticonfig +# Called when the user opens or closes the laptop lid +# + +event=button[ /]lid +action=/etc/acpi/fglrx-powermode.sh --- fglrx-installer-8.960.orig/debian/acpi/fglrx-powermode.sh +++ fglrx-installer-8.960/debian/acpi/fglrx-powermode.sh @@ -0,0 +1,63 @@ +#!/bin/bash + +. /etc/default/xorg-driver-fglrx +if [ x$FGLRX_ACPI_SWITCH_POWERSTATES != xtrue ]; then + exit; +fi + +getXuser() { + user=`finger| grep -m1 ":$displaynum " | awk '{print $1}'` + if [ x"$user" = x"" ]; then + user=`finger| grep -m1 ":$displaynum" | awk '{print $1}'` + fi + if [ x"$user" != x"" ]; then + userhome=`getent passwd $user | cut -d: -f6` + export XAUTHORITY=$userhome/.Xauthority + else + export XAUTHORITY="" + fi +} + +grep -q closed /proc/acpi/button/lid/*/state +if [ $? = 0 ]; then + lid_closed=1 +else + lid_closed=0 +fi + +grep -q off-line /proc/acpi/ac_adapter/*/state +if [ $? = 0 ]; then + on_dc=1 +else + on_dc=0 +fi + + + +if [ ${lid_closed} -eq 1 -o ${on_dc} -eq 1 ]; then + echo "fglrx: setting low power" + for x in /tmp/.X11-unix/*; do + displaynum=`echo $x | sed s#/tmp/.X11-unix/X##` + getXuser; + if [ x"$XAUTHORITY" != x"" ]; then + export DISPLAY=":$displaynum" + powermode=`/usr/bin/aticonfig --lsp | grep -m1 low | cut -b 3-3` + if [ x"$powermode" != x"" ]; then + su $user -c "/usr/bin/aticonfig --set-powerstate=$powermode --effective=now" &>/dev/null + fi + fi + done +else + echo "fglrx: setting default powermode" + for x in /tmp/.X11-unix/*; do + displaynum=`echo $x | sed s#/tmp/.X11-unix/X##` + getXuser; + if [ x"$XAUTHORITY" != x"" ]; then + export DISPLAY=":$displaynum" + powermode=`/usr/bin/aticonfig --lsp | grep -m1 default | cut -b 3-3` + if [ x"$powermode" != x"" ]; then + su $user -c "/usr/bin/aticonfig --set-powerstate=$powermode --effective=now" &>/dev/null + fi + fi + done +fi