--- xserver-xorg-video-mga-lts-raring-1.6.2.orig/autogen.sh +++ xserver-xorg-video-mga-lts-raring-1.6.2/autogen.sh @@ -0,0 +1,12 @@ +#! /bin/sh + +srcdir=`dirname $0` +test -z "$srcdir" && srcdir=. + +ORIGDIR=`pwd` +cd $srcdir + +autoreconf -v --install || exit 1 +cd $ORIGDIR || exit $? + +$srcdir/configure --enable-maintainer-mode "$@" --- xserver-xorg-video-mga-lts-raring-1.6.2.orig/debian/watch +++ xserver-xorg-video-mga-lts-raring-1.6.2/debian/watch @@ -0,0 +1,4 @@ +#git=git://anongit.freedesktop.org/xorg/driver/xf86-video-mga +version=3 +opts=dversionmangle=s/\.dfsg$// \ + http://xorg.freedesktop.org/releases/individual/driver/ xf86-video-mga-(1\.[^9].*)\.tar\.gz debian debian/xsfbs/repack.sh --- xserver-xorg-video-mga-lts-raring-1.6.2.orig/debian/rules +++ xserver-xorg-video-mga-lts-raring-1.6.2/debian/rules @@ -0,0 +1,17 @@ +#!/usr/bin/make -f + +# Install in debian/tmp to retain control through dh_install: +override_dh_auto_install: + dh_auto_install --destdir=debian/tmp + +# Kill *.la files, and forget no-one: +override_dh_install: + find debian/tmp -name '*.la' -delete + dh_install --fail-missing + +# That's a plugin, use appropriate warning level: +override_dh_shlibdeps: + dh_shlibdeps -- --warnings=6 + +%: + dh $@ --with quilt,autoreconf,xsf --builddirectory=build/ --- xserver-xorg-video-mga-lts-raring-1.6.2.orig/debian/changelog +++ xserver-xorg-video-mga-lts-raring-1.6.2/debian/changelog @@ -0,0 +1,412 @@ +xserver-xorg-video-mga-lts-raring (1:1.6.2-0ubuntu1~precise1) precise-proposed; urgency=low + + * Initial lts-raring xserver stack upload, i386 and amd64 only. (LP: + #1177679) + + -- Maarten Lankhorst Wed, 08 May 2013 09:07:26 +0200 + +xserver-xorg-video-mga (1:1.6.2-0ubuntu1) quantal; urgency=low + + * Merge from unreleased debian git. + * Drop fix-driver-load.diff, upstream. + + -- Timo Aaltonen Mon, 01 Oct 2012 12:36:54 +0300 + +xserver-xorg-video-mga (1:1.6.2-1) UNRELEASED; urgency=low + + * New upstream release + * Bump Standards-Version to 3.9.3 (no changes needed). + + -- Maarten Lankhorst Wed, 18 Jul 2012 14:33:10 +0200 + +xserver-xorg-video-mga (1:1.6.1-0ubuntu1) quantal; urgency=low + + * Fix the upstream version, the previous 1.6.0 was really 1.6.1. + * Added fix-driver-load.diff, fixes loading the driver when the + xserver it was built against has no support for XAA anymore. (LP: + #1044797) + + -- Timo Aaltonen Wed, 26 Sep 2012 11:14:51 +0300 + +xserver-xorg-video-mga (1:1.5.0-2) unstable; urgency=low + + * mga: don't bind to device if there is a kernel driver, to avoid conflicts + with the mga g200se KMS driver in Linux 3.5. + + -- Julien Cristau Mon, 16 Jul 2012 22:57:15 +0200 + +xserver-xorg-video-mga (1:1.5.0-1) unstable; urgency=low + + * New upstream release, compatible with xserver 1.12. + + -- Julien Cristau Sun, 13 May 2012 11:33:27 +0200 + +xserver-xorg-video-mga (1:1.4.13.dfsg-4) unstable; urgency=low + + [ Tormod Volden ] + * Merge from upstream up to 01ca2186ea028b2549de509b51726aa08519fce0 + - 01ca218... Reset tagfifo for renesas. + - c083bf0... Added support for G200SE Pilot3 + - 43280e6... Don't include xf86Priv.h + * Bump Standards-Version to 3.9.2 (no changes needed) + + -- Julien Cristau Sun, 23 Oct 2011 17:31:21 +0200 + +xserver-xorg-video-mga (1:1.4.13.dfsg-3) unstable; urgency=low + + * Merge from upstream up to 5f1b04e86e79938c8158055a777280a649f95510 + - 5f1b04e... added support for G200ER. + - f7a2ef6... Sun's copyrights now belong to Oracle + - 636c3c8... Don't allow the config file to override BIOS location + - 0bd44fa... Purge cvs tags. + - 951474c... modified G200SE conditionnal statement about revision + register for products compatibility. + * Add myself as uploader + + -- Tormod Volden Mon, 21 Feb 2011 23:54:24 +0100 + +xserver-xorg-video-mga (1:1.4.13.dfsg-2) unstable; urgency=low + + * Switch to dh: + - Use debhelper 8. + - Use dh-autoreconf. + - Bump xserver-xorg-dev build-dep for dh_xsf_substvars and xsf + debhelper sequence. + * Remove xsfbs (except repack.sh) accordingly. + * Update Uploaders list. Thanks, David & Brice! + * Remove long obsolete Replaces/Conflicts. + * Wrap Depends/Provides/Suggests. + * Bump Standards-Version to 3.9.1 (no changes needed). + + -- Cyril Brulebois Sat, 05 Feb 2011 14:51:41 +0100 + +xserver-xorg-video-mga (1:1.4.13.dfsg-1) experimental; urgency=low + + [ Robert Hooker ] + * New upstream release. + * Bump xutils-dev requirement for new util-macros. + + [ Cyril Brulebois ] + * Tweak watch file to match 1.* but not 1.9* so that 1.9* versions from + 2007 are ignored. + + -- Cyril Brulebois Sat, 20 Nov 2010 17:03:31 +0100 + +xserver-xorg-video-mga (1:1.4.11.dfsg-5) experimental; urgency=low + + * Build against Xserver 1.9.1 rc1. + + -- Cyril Brulebois Sat, 16 Oct 2010 18:59:45 +0200 + +xserver-xorg-video-mga (1:1.4.11.dfsg-4+squeeze1) unstable; urgency=low + + * Add patch: 02_tentatively_unbreak_dual_head.diff, tested by Ferenc + Wágner (thanks!). Patch by Andy MacLean, stolen from LP's #292214 + (hopefully closes: #562209). + + -- Cyril Brulebois Mon, 22 Nov 2010 18:05:24 +0100 + +xserver-xorg-video-mga (1:1.4.11.dfsg-4) unstable; urgency=low + + * Add support for G200EH, cherry-picked from upstream git (closes: #575271). + + -- Julien Cristau Tue, 11 May 2010 16:03:33 +0200 + +xserver-xorg-video-mga (1:1.4.11.dfsg-3) unstable; urgency=low + + [ Julien Cristau ] + * Rename the build directory to not include DEB_BUILD_GNU_TYPE for no + good reason. Thanks, Colin Watson! + * Remove myself from Uploaders + + [ Cyril Brulebois ] + * Update to new xsfbs, replace deprecated ${xserver:Depends} with + ${xviddriver:Depends} in Depends, and bump B-D on xserver-xorg-dev + accordingly. + * Add myself to Uploaders. + * Bump Standards-Version from 3.8.3 to 3.8.4 (no changes needed). + + -- Cyril Brulebois Mon, 03 May 2010 23:27:47 +0200 + +xserver-xorg-video-mga (1:1.4.11.dfsg-2) experimental; urgency=low + + [ Timo Aaltonen ] + * Bump Standards-Version to 3.8.3. + * Build against Xserver 1.7. + + [ Cyril Brulebois ] + * Upload to experimental. + + -- Cyril Brulebois Sun, 06 Dec 2009 02:47:06 +0100 + +xserver-xorg-video-mga (1:1.4.11.dfsg-1) unstable; urgency=low + + [ David Nusinow ] + * Remove 01_gen_pci_ids.diff. The X server now uses an internal table to + choose a driver during autoconfiguration. + * Renumber 03_no_nonfree.diff to 01. + + [ Brice Goglin ] + * New upstream release. + * Add README.source, bump Standards-Version to 3.8.2. + * Update debian/copyright from upstream's COPYING. + + -- Brice Goglin Thu, 30 Jul 2009 12:33:04 +0200 + +xserver-xorg-video-mga (1:1.4.10.dfsg-1) unstable; urgency=low + + * New upstream release. + * xserver-xorg-video-mga now suggests firmware-linux since + a firmware may be needed during driver initialization. + + -- Brice Goglin Mon, 27 Apr 2009 21:12:29 +0200 + +xserver-xorg-video-mga (1:1.4.9.dfsg-4) unstable; urgency=low + + * Upload to unstable. + + -- Julien Cristau Thu, 09 Apr 2009 10:33:47 +0100 + +xserver-xorg-video-mga (1:1.4.9.dfsg-3) experimental; urgency=low + + * Run autoreconf on build; add build-deps on automake, libtool, xutils-dev. + * Handle parallel builds. + * debian/watch, debian/xsfbs/repack.sh: repack the upstream tarball to + remove the non-free stuff. + * Build against xserver 1.6 rc. + + -- Julien Cristau Mon, 09 Feb 2009 19:45:45 +0100 + +xserver-xorg-video-mga (1:1.4.9.dfsg-2) experimental; urgency=low + + * Build against xserver 1.5. + + -- Julien Cristau Tue, 09 Sep 2008 23:50:05 +0100 + +xserver-xorg-video-mga (1:1.4.9.dfsg-1) unstable; urgency=low + + * New upstream release. + * Run dpkg-shlibdeps with --warnings=6. Drivers reference symbols from + /usr/bin/Xorg and other modules, and that's not a bug, so we want + dpkg-shlibdeps to shut up about symbols it can't find. Build-depend on + dpkg-dev >= 1.14.17. + * Bump Standards-Version to 3.7.3. + * Add myself to Uploaders. + + -- Julien Cristau Thu, 10 Jul 2008 13:32:32 +0200 + +xserver-xorg-video-mga (1:1.4.8.dfsg.1-1) unstable; urgency=low + + * New upstream release. + * Drop XS- prefix from Vcs-* fields. + + -- Brice Goglin Fri, 18 Jan 2008 23:43:57 +0100 + +xserver-xorg-video-mga (1:1.4.7.dfsg.1-3) unstable; urgency=low + + * Upload to unstable + + -- David Nusinow Sun, 16 Sep 2007 15:43:45 -0400 + +xserver-xorg-video-mga (1:1.4.7.dfsg.1-2) experimental; urgency=low + + * Add 01_gen_pci_ids.diff. This patch provides a set of PCI ID's supported + by the driver so that it can be autoloaded by the X server + + -- David Nusinow Thu, 13 Sep 2007 22:14:25 -0400 + +xserver-xorg-video-mga (1:1.4.7.dfsg.1-1) experimental; urgency=low + + * New upstream release. + + Increase the minimal frequency on G550 so that 320x240 works, + closes: #430112. + * Build against xserver 1.4. + * Add upstream URL to debian/copyright. + * Add myself to Uploaders, add remove Branden with his permission. + + -- Brice Goglin Thu, 13 Sep 2007 08:30:08 +0200 + +xserver-xorg-video-mga (1:1.4.6.1.dfsg.1-3) unstable; urgency=low + + [ Timo Aaltonen ] + * Replaces/Conflicts: xserver-xorg-driver-mga. + + [ Brice Goglin ] + * Don't build-dep on libdrm-dev on hurd-i386, thanks Michael Banck + (closes: #392874). + * Bump Build-Depends: xserver-xorg-dev to >= 2:1.2.99.902 + (needed to let xsfbs get access to serverminver). + * Add a link to www.X.org and a reference to the xf86-video-mga + module in the long description. + + -- Julien Cristau Sat, 19 May 2007 15:55:47 +0200 + +xserver-xorg-video-mga (1:1.4.6.1.dfsg.1-2) unstable; urgency=low + + * Build package non-native. + * Remove Fabio from uploaders, with his permission. + * Add XS-Vcs-*. + * Drop obsolete CVS information from the description. + * Install the upstream changelog. + * Upload to unstable. + + -- Julien Cristau Mon, 23 Apr 2007 06:25:20 +0200 + +xserver-xorg-video-mga (1:1.4.6.1.dfsg.1-1) experimental; urgency=low + + * New upstream release + * Remove obsolete patches 01_stupid_configure_error.diff and + 04-Bug-2168-Fix-graphics-corruptions-with-Mystique-rev-2.diff + * Generate server dependencies automatically from the ABI + + -- David Nusinow Wed, 21 Feb 2007 23:29:57 -0500 + +xserver-xorg-video-mga (1:1.4.4.dfsg.1-2) unstable; urgency=low + + [ Julien Cristau ] + * Add link to xserver-xorg-core bug script, so that bugreports contain + the user's config and log files. + * Bump dependency on xserver-xorg-core to >= 2:1.1.1-11, as previous + versions don't have the bug script. + * Steal patch from upstream git which should fix a graphics corruption with + Mystique rev2 cards (closes: #320328). + + -- David Nusinow Tue, 12 Dec 2006 21:10:04 -0500 + +xserver-xorg-video-mga (1:1.4.4.dfsg.1-1) unstable; urgency=low + + * New upstream release + + Fix some crasher bugs with DRI. Thanks Svante Signell. Closes: #395025 + * Remove manpage typos patch, which was accepted upstream + * Remove minumum clock patch + * Add 01_stupid_configure_error.diff + + -- David Nusinow Mon, 6 Nov 2006 23:53:51 -0500 + +xserver-xorg-video-mga (1:1.4.2.dfsg.1-1) unstable; urgency=low + + * New upstream release + + Fixes DRI locking issues. Thanks Sune Vuorela and Michel Dänzer. + Closes: #390287 + + -- David Nusinow Fri, 13 Oct 2006 17:31:27 -0400 + +xserver-xorg-video-mga (1:1.4.1.dfsg.1-4) unstable; urgency=low + + [ Steve Langasek ] + * Add missing build-dep on quilt. Closes: #388484. + + [ David Nusinow ] + * Manpage typo fixes. Thanks A. Costa. (closes: #364558) + * Update standards version to 3.7.2.0. No changes necessary. + + -- David Nusinow Thu, 21 Sep 2006 22:31:54 -0400 + +xserver-xorg-video-mga (1:1.4.1.dfsg.1-3) unstable; urgency=low + + [ Steve Langasek ] + * Upload to unstable + + -- David Nusinow Mon, 18 Sep 2006 19:57:41 -0400 + +xserver-xorg-video-mga (1:1.4.1.dfsg.1-2) experimental; urgency=low + + [ Drew Parsons ] + * Provides: xserver-xorg-video-1.0 not xserver-xorg-video. + + [ David Nusinow ] + * Bump xserver (build-)depends epochs to 2: to deal with botched + server upload + + -- David Nusinow Tue, 22 Aug 2006 23:46:33 +0000 + +xserver-xorg-video-mga (1:1.4.1.dfsg.1-1) experimental; urgency=low + + [ Andres Salomon ] + * Test for obj-$(DEB_BUILD_GNU_TYPE) before creating it during build; + idempotency fix. + * Run dh_install w/ --list-missing. + + [ David Nusinow ] + * New upstream release + * Bump dependency on xserver-xorg-core to >= 1:1.1.1. Do the same thing for + the build-dep on xserver-xorg-dev. + * Bump debhelper compat to 5 + * Remove obsolete patch 01_fix_matrox_display.diff + + -- David Nusinow Mon, 14 Aug 2006 23:20:38 +0000 + +xserver-xorg-video-mga (1:1.2.1.3.dfsg.1-2) unstable; urgency=low + + * Upload to modular + + -- David Nusinow Sun, 26 Mar 2006 20:25:42 -0500 + +xserver-xorg-video-mga (1:1.2.1.3.dfsg.1-1) experimental; urgency=low + + * Remove non-free mga_ucode.h and add it to the prune list. Add + 03_no_nonfree.diff to cope with its removal and autoreconf. + + -- David Nusinow Sun, 12 Mar 2006 13:35:30 -0500 + +xserver-xorg-video-mga (1:1.2.1.3-2) experimental; urgency=low + + * Port patches from trunk: + + general/032_fix_matrox_display.diff + + general/099m_mga_increase_minimum_pixel_clock.diff + + -- David Nusinow Sun, 26 Feb 2006 17:28:53 -0500 + +xserver-xorg-video-mga (1:1.2.1.3-1) experimental; urgency=low + + * First upload to Debian + * Change source package, package, and provides names to denote the + type of driver and that they are for xserver-xorg + + -- David Nusinow Fri, 13 Jan 2006 00:38:10 -0500 + +xserver-xorg-driver-mga (1:1.2.1.3-0ubuntu1) dapper; urgency=low + + * New upstream release. + * Add provides on xserver-xorg-driver. + + -- Daniel Stone Wed, 4 Jan 2006 19:58:26 +1100 + +xserver-xorg-driver-mga (1:1.2.1.2-0ubuntu1) dapper; urgency=low + + * New upstream release. + + -- Daniel Stone Mon, 19 Dec 2005 09:07:03 +1100 + +xserver-xorg-driver-mga (1:1.2.1.1-0ubuntu1) dapper; urgency=low + + * New upstream release. + * Bump Build-Depends on libdrm-dev to >> 2.0. + + -- Daniel Stone Mon, 12 Dec 2005 13:24:20 +1100 + +xserver-xorg-driver-mga (1:1.2.1-0ubuntu2) dapper; urgency=low + + * Add missing Build-Depends (x11proto-core-dev, x11proto-fonts-dev, + x11proto-randr-dev, x11proto-render-dev, x11proto-xext-dev, libdrm + (>> 1.0.5), x11proto-xf86dri-dev). + + -- Daniel Stone Mon, 5 Dec 2005 12:54:39 +1100 + +xserver-xorg-driver-mga (1:1.2.1-0ubuntu1) dapper; urgency=low + + * New upstream release. + + -- Daniel Stone Tue, 22 Nov 2005 13:31:50 +1100 + +xserver-xorg-driver-mga (1:1.2.0.1-1) dapper; urgency=low + + * New upstream version. + + -- Daniel Stone Tue, 25 Oct 2005 18:26:55 +1000 + +xserver-xorg-driver-mga (1:1.1.2-1) breezy; urgency=low + + * First xserver-xorg-driver-mga release. + + -- Daniel Stone Wed, 6 Jul 2005 15:48:17 +1000 --- xserver-xorg-video-mga-lts-raring-1.6.2.orig/debian/copyright +++ xserver-xorg-video-mga-lts-raring-1.6.2/debian/copyright @@ -0,0 +1,241 @@ +This package was downloaded from +git://anongit.freedesktop.org/git/xorg/driver/xf86-video-mga. +Release tarballs are available at +http://xorg.freedesktop.org/releases/individual/driver/ + +Copyright (C) 1994-2003 The XFree86 Project, Inc. All Rights Reserved. + +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 fur- +nished 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, FIT- +NESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CON- +NECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +Except as contained in this notice, the name of the XFree86 Project shall not +be used in advertising or otherwise to promote the sale, use or other deal- +ings in this Software without prior written authorization from the XFree86 +Project. + +*********************************************************** + +Copyright 1989, 1998 The Open Group + +Permission to use, copy, modify, distribute, and sell this software and its +documentation for any purpose is hereby granted without fee, provided that +the above copyright notice appear in all copies and that both that +copyright notice and this permission notice appear in supporting +documentation. + +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 +OPEN GROUP 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. + +Except as contained in this notice, the name of The Open Group shall not be +used in advertising or otherwise to promote the sale, use or other dealings +in this Software without prior written authorization from The Open Group. + +*********************************************************** + +Copyright 1994 by Robin Cutshaw + +Permission to use, copy, modify, distribute, and sell this software and its +documentation for any purpose is hereby granted without fee, provided that +the above copyright notice appear in all copies and that both that +copyright notice and this permission notice appear in supporting +documentation, and that the name of Robin Cutshaw not be used in +advertising or publicity pertaining to distribution of the software without +specific, written prior permission. Robin Cutshaw makes no representations +about the suitability of this software for any purpose. It is provided +"as is" without express or implied warranty. + +ROBIN CUTSHAW DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, +INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO +EVENT SHALL ROBIN CUTSHAW BE LIABLE FOR ANY SPECIAL, INDIRECT OR +CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, +DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER +TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + +*********************************************************** + +Copyright 2000 VA Linux Systems Inc., Fremont, California. +All Rights Reserved. + +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 (including the next +paragraph) 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 +VA LINUX SYSTEMS AND/OR ITS SUPPLIERS 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. + +*********************************************************** + +Copyright 2006 Red Hat, Inc. + +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 +on the rights to use, copy, modify, merge, publish, distribute, sub +license, and/or sell copies of the Software, and to permit persons to whom +them Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice (including the next +paragraph) 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 MERCHANTIBILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL +THE AUTHORS 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. + +*********************************************************** + +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 +STEPHEN CROWLEY, OR ANY OTHER CONTRIBUTORS 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. + +*********************************************************** + +Copyright 2002 Tungsten Graphics, Inc., Cedar Park, Texas. +All Rights Reserved. + +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 (including the next +paragraph) 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 +PRECISION INSIGHT AND/OR ITS SUPPLIERS 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. + +*********************************************************** + +(c) 1999 Matrox Graphics Inc. + +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 +MATROX GRAPHICS INC., OR ANY OTHER CONTRIBUTORS 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. + +*********************************************************** + +Copyright © 1997, Matrox Graphics Inc. +All Rights Reserved. + +*********************************************************** + +Copyright 2000 Gareth Hughes +All Rights Reserved. + +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 (including the next +paragraph) 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 +GARETH HUGHES 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. + +Authors: + Gareth Hughes + +*********************************************************** + +(C) Copyright IBM Corporation 2005 +All Rights Reserved. + +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 +on the rights to use, copy, modify, merge, publish, distribute, sub +license, 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 (including the next +paragraph) 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 NON-INFRINGEMENT. IN NO EVENT SHALL +IBM AND/OR THEIR SUPPLIERS 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. --- xserver-xorg-video-mga-lts-raring-1.6.2.orig/debian/README.source +++ xserver-xorg-video-mga-lts-raring-1.6.2/debian/README.source @@ -0,0 +1,49 @@ +------------------------------------------------------ +Quick Guide To Patching This Package For The Impatient +------------------------------------------------------ + +1. Make sure you have quilt installed +2. Unpack the package as usual with "dpkg-source -x" +3. Run the "patch" target in debian/rules +4. Create a new patch with "quilt new" (see quilt(1)) +5. Edit all the files you want to include in the patch with "quilt edit" + (see quilt(1)). +6. Write the patch with "quilt refresh" (see quilt(1)) +7. Run the "clean" target in debian/rules + +Alternatively, instead of using quilt directly, you can drop the patch in to +debian/patches and add the name of the patch to debian/patches/series. + +------------------------------------ +Guide To The X Strike Force Packages +------------------------------------ + +The X Strike Force team maintains X packages in git repositories on +git.debian.org in the pkg-xorg subdirectory. Most upstream packages +are actually maintained in git repositories as well, so they often +just need to be pulled into git.debian.org in a "upstream-*" branch. +Otherwise, the upstream sources are manually installed in the Debian +git repository. + +The .orig.tar.gz upstream source file could be generated using this +"upstream-*" branch in the Debian git repository but it is actually +copied from upstream tarballs directly. + +Due to X.org being highly modular, packaging all X.org applications +as their own independent packages would have created too many Debian +packages. For this reason, some X.org applications have been grouped +into larger packages: xutils, xutils-dev, x11-apps, x11-session-utils, +x11-utils, x11-xfs-utils, x11-xkb-utils, x11-xserver-utils. +Most packages, including the X.org server itself and all libraries +and drivers are, however maintained independently. + +The Debian packaging is added by creating the "debian-*" git branch +which contains the aforementioned "upstream-*" branch plus the debian/ +repository files. +When a patch has to be applied to the Debian package, two solutions +are involved: +* If the patch is available in one of the upstream branches, it + may be git'cherry-picked into the Debian repository. In this + case, it appears directly in the .diff.gz. +* Otherwise, the patch is added to debian/patches/ which is managed + with quilt as documented in /usr/share/doc/quilt/README.source. --- xserver-xorg-video-mga-lts-raring-1.6.2.orig/debian/compat +++ xserver-xorg-video-mga-lts-raring-1.6.2/debian/compat @@ -0,0 +1 @@ +8 --- xserver-xorg-video-mga-lts-raring-1.6.2.orig/debian/control +++ xserver-xorg-video-mga-lts-raring-1.6.2/debian/control @@ -0,0 +1,50 @@ +Source: xserver-xorg-video-mga-lts-raring +Section: x11 +Priority: optional +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Debian X Strike Force +Uploaders: + Cyril Brulebois , + Tormod Volden +Build-Depends: + debhelper (>= 8), + dh-autoreconf, + pkg-config, + xserver-xorg-dev-lts-raring (>= 2:1.9.4), + x11proto-gl-dev, + x11proto-video-dev, + libgl1-mesa-dev-lts-raring | libgl-dev, + x11proto-core-dev, + x11proto-fonts-dev, + x11proto-randr-dev, + x11proto-render-dev, + x11proto-xext-dev, + libdrm-dev (>> 2.0) [!hurd-i386], + x11proto-xf86dri-dev, + quilt, + xutils-dev (>= 1:7.5+4) +Standards-Version: 3.9.3 +Vcs-Git: git://git.debian.org/git/pkg-xorg/driver/xserver-xorg-video-mga +Vcs-Browser: http://git.debian.org/?p=pkg-xorg/driver/xserver-xorg-video-mga.git + +Package: xserver-xorg-video-mga-lts-raring +Architecture: amd64 i386 +Depends: + ${shlibs:Depends}, + ${misc:Depends}, + ${xviddriver:Depends}, +Provides: + xserver-xorg-video-mga, xorg-renamed-package, xorg-renamed-package-lts-raring, + ${xviddriver:Provides} +Suggests: + firmware-linux +Description: X.Org X server -- MGA display driver + This package provides the driver for the Matrox MGA family of chipsets, + including Matrox Millennium and Mystique cards. + . + More information about X.Org can be found at: + + . + This package is built from the X.org xf86-video-mga driver module. +Replaces: xserver-xorg-video-mga +Conflicts: xserver-xorg-video-mga, xorg-renamed-package-lts-quantal, --- xserver-xorg-video-mga-lts-raring-1.6.2.orig/debian/xserver-xorg-video-mga-lts-raring.links +++ xserver-xorg-video-mga-lts-raring-1.6.2/debian/xserver-xorg-video-mga-lts-raring.links @@ -0,0 +1 @@ +usr/share/bug/xserver-xorg-core/script usr/share/bug/xserver-xorg-video-mga/script --- xserver-xorg-video-mga-lts-raring-1.6.2.orig/debian/xserver-xorg-video-mga-lts-raring.install +++ xserver-xorg-video-mga-lts-raring-1.6.2/debian/xserver-xorg-video-mga-lts-raring.install @@ -0,0 +1,2 @@ +usr/lib/xorg/modules/drivers/*.so +usr/share/man/man4/* --- xserver-xorg-video-mga-lts-raring-1.6.2.orig/debian/prune/non-free +++ xserver-xorg-video-mga-lts-raring-1.6.2/debian/prune/non-free @@ -0,0 +1 @@ +src/mga_ucode.h --- xserver-xorg-video-mga-lts-raring-1.6.2.orig/debian/xsfbs/repack.sh +++ xserver-xorg-video-mga-lts-raring-1.6.2/debian/xsfbs/repack.sh @@ -0,0 +1,32 @@ +#!/bin/sh + +set -e + +if ! [ -d debian/prune ]; then + exit 0 +fi + +if [ "x$1" != x--upstream-version ]; then + exit 1 +fi + +version="$2" +filename="$3" + +if [ -z "$version" ] || ! [ -f "$filename" ]; then + exit 1 +fi + +dir="$(pwd)" +tempdir="$(mktemp -d)" + +cd "$tempdir" +tar xf "$dir/$filename" +cat "$dir"/debian/prune/* | while read file; do rm -f */$file; done + +tar czf "$dir/$filename" * +cd "$dir" +rm -rf "$tempdir" +echo "Done pruning upstream tarball" + +exit 0 --- xserver-xorg-video-mga-lts-raring-1.6.2.orig/debian/patches/02_tentatively_unbreak_dual_head.diff +++ xserver-xorg-video-mga-lts-raring-1.6.2/debian/patches/02_tentatively_unbreak_dual_head.diff @@ -0,0 +1,175 @@ +From: Cyril Brulebois +Patch-By: Andy MacLean +Patch-Name: mga-driver-3.patch +Patch-URL: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-mga/+bug/292214 +--- a/src/mga.h ++++ b/src/mga.h +@@ -337,6 +337,13 @@ typedef struct { + int mastervideoRam; + int slavevideoRam; + Bool directRenderingEnabled; ++ ++ void * mappedIOBase; ++ int mappedIOUsage; ++ ++ void * mappedILOADBase; ++ int mappedILOADUsage; ++ + ScrnInfoPtr pScrn_1; + ScrnInfoPtr pScrn_2; + } MGAEntRec, *MGAEntPtr; +--- a/src/mga_driver.c ++++ b/src/mga_driver.c +@@ -2820,30 +2820,55 @@ MGAMapMem(ScrnInfoPtr pScrn) + #ifdef XSERVER_LIBPCIACCESS + struct pci_device *const dev = pMga->PciInfo; + struct pci_mem_region *region; +- void **memory[2]; + int i, err; + #endif + + + if (!pMga->FBDev) { + #ifdef XSERVER_LIBPCIACCESS +- memory[pMga->io_bar] = &pMga->IOBase; +- memory[pMga->framebuffer_bar] = &pMga->FbBase; ++ pciaddr_t fbaddr = pMga->FbAddress; ++ pciaddr_t fbsize = pMga->FbMapSize; ++ err = pci_device_map_range(dev, ++ fbaddr, fbsize, ++ PCI_DEV_MAP_FLAG_WRITABLE, ++ (void **)&pMga->FbBase); + +- for (i = 0; i < 2; i++) { +- region = &dev->regions[i]; +- err = pci_device_map_range(dev, +- region->base_addr, region->size, +- PCI_DEV_MAP_FLAG_WRITABLE, +- memory[i]); ++ if (err) { ++ xf86DrvMsg(pScrn->scrnIndex, X_ERROR, ++ "Unable to map Framebuffer %08llX %llx. %s (%d)\n", ++ (long long)fbaddr, (long long)fbsize, ++ strerror(err), err); ++ return FALSE; ++ } ++ else ++ xf86DrvMsg(pScrn->scrnIndex, X_INFO, ++ "MAPPED Framebuffer %08llX %llx to %08llX.\n", ++ (long long)fbaddr, (long long)fbsize, ++ (long long)pMga->FbBase); ++ ++ if(pMga->entityPrivate == NULL || pMga->entityPrivate->mappedIOUsage == 0) { ++ region = &dev->regions[pMga->io_bar]; ++ err = pci_device_map_range(dev, ++ region->base_addr, region->size, ++ PCI_DEV_MAP_FLAG_WRITABLE, ++ &pMga->IOBase); ++ ++ if (err) { ++ xf86DrvMsg(pScrn->scrnIndex, X_ERROR, ++ "Unable to map IO Region %i. %s (%d)\n", ++ pMga->io_bar, strerror(err), err); ++ return FALSE; ++ } ++ ++ if(pMga->entityPrivate != NULL) ++ pMga->entityPrivate->mappedIOBase = pMga->IOBase; ++ } ++ else ++ pMga->IOBase = pMga->entityPrivate->mappedIOBase; ++ ++ if(pMga->entityPrivate != NULL) ++ pMga->entityPrivate->mappedIOUsage ++; + +- if (err) { +- xf86DrvMsg(pScrn->scrnIndex, X_ERROR, +- "Unable to map BAR %i. %s (%d)\n", +- i, strerror(err), err); +- return FALSE; +- } +- } + #else + /* + * For Alpha, we need to map SPARSE memory, since we need +@@ -2885,16 +2910,27 @@ MGAMapMem(ScrnInfoPtr pScrn) + if (pMga->iload_bar != -1) { + #ifdef XSERVER_LIBPCIACCESS + region = &dev->regions[pMga->iload_bar]; +- err = pci_device_map_range(dev, +- region->base_addr, region->size, +- PCI_DEV_MAP_FLAG_WRITABLE, +- (void *) &pMga->ILOADBase); +- if (err) { +- xf86DrvMsg(pScrn->scrnIndex, X_ERROR, +- "Unable to map BAR 2 (ILOAD region). %s (%d)\n", +- strerror(err), err); +- return FALSE; ++ ++ if(pMga->entityPrivate == NULL || pMga->entityPrivate->mappedILOADUsage == 0) { ++ err = pci_device_map_range(dev, ++ region->base_addr, region->size, ++ PCI_DEV_MAP_FLAG_WRITABLE, ++ (void *) &pMga->ILOADBase); ++ if (err) { ++ xf86DrvMsg(pScrn->scrnIndex, X_ERROR, ++ "Unable to map BAR 2 (ILOAD region). %s (%d)\n", ++ strerror(err), err); ++ return FALSE; ++ } ++ ++ if(pMga->entityPrivate != NULL) ++ pMga->entityPrivate->mappedILOADBase = pMga->ILOADBase; + } ++ else ++ pMga->ILOADBase = pMga->entityPrivate->mappedILOADBase; ++ ++ if(pMga->entityPrivate != NULL) ++ pMga->entityPrivate->mappedILOADUsage ++; + #else + pMga->ILOADBase = xf86MapPciMem(pScrn->scrnIndex, + VIDMEM_MMIO | VIDMEM_MMIO_32BIT | +@@ -2924,10 +2960,20 @@ MGAUnmapMem(ScrnInfoPtr pScrn) + + if (!pMga->FBDev) { + #ifdef XSERVER_LIBPCIACCESS +- pci_device_unmap_range(dev, pMga->IOBase, +- dev->regions[pMga->io_bar].size); ++ if(pMga->entityPrivate != NULL) ++ pMga->entityPrivate->mappedIOUsage--; ++ ++ if(pMga->entityPrivate == NULL || pMga->entityPrivate->mappedIOUsage == 0) { ++ pci_device_unmap_range(dev, pMga->IOBase, ++ dev->regions[pMga->io_bar].size); ++ ++ if(pMga->entityPrivate != NULL) ++ pMga->entityPrivate->mappedIOBase = NULL; ++ } ++ ++ xf86DrvMsg(pScrn->scrnIndex, X_INFO, "UNMAPPING framebuffer 0x%08llX, 0x%llX.\n", (long long)pMga->FbBase, (long long)pMga->FbMapSize); + pci_device_unmap_range(dev, pMga->FbBase, +- dev->regions[pMga->framebuffer_bar].size); ++ pMga->FbMapSize); + #else + xf86UnMapVidMem(pScrn->scrnIndex, (pointer)pMga->IOBase, 0x4000); + xf86UnMapVidMem(pScrn->scrnIndex, (pointer)pMga->FbBase, pMga->FbMapSize); +@@ -2940,8 +2986,17 @@ MGAUnmapMem(ScrnInfoPtr pScrn) + + if ((pMga->iload_bar != -1) && (pMga->ILOADBase != NULL)) { + #ifdef XSERVER_LIBPCIACCESS +- pci_device_unmap_range(dev, pMga->ILOADBase, +- dev->regions[pMga->iload_bar].size); ++ if(pMga->entityPrivate != NULL) ++ pMga->entityPrivate->mappedILOADUsage--; ++ ++ if(pMga->entityPrivate == NULL || pMga->entityPrivate->mappedILOADUsage == 0) { ++ pci_device_unmap_range(dev, pMga->ILOADBase, ++ dev->regions[pMga->iload_bar].size); ++ ++ if(pMga->entityPrivate != NULL) ++ pMga->entityPrivate->mappedILOADBase = NULL; ++ } ++ + #else + xf86UnMapVidMem(pScrn->scrnIndex, (pointer)pMga->ILOADBase, 0x800000); + #endif --- xserver-xorg-video-mga-lts-raring-1.6.2.orig/debian/patches/series +++ xserver-xorg-video-mga-lts-raring-1.6.2/debian/patches/series @@ -0,0 +1,2 @@ +01_no_nonfree.diff +02_tentatively_unbreak_dual_head.diff --- xserver-xorg-video-mga-lts-raring-1.6.2.orig/debian/patches/01_no_nonfree.diff +++ xserver-xorg-video-mga-lts-raring-1.6.2/debian/patches/01_no_nonfree.diff @@ -0,0 +1,12 @@ +Index: xserver-xorg-video-mga/src/Makefile.am +=================================================================== +--- xserver-xorg-video-mga.orig/src/Makefile.am 2006-10-26 22:48:24.000000000 -0400 ++++ xserver-xorg-video-mga/src/Makefile.am 2006-11-06 23:40:03.000000000 -0500 +@@ -54,7 +54,6 @@ + mga_reg.h \ + mga_sarea.h \ + mga_shadow.c \ +- mga_ucode.h \ + mga_vga.c \ + mga_video.c +