[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH] fix for fglrx driver package builds



The ATI fglrx driver can produce debian packages for easy installation
on Debian systems.  Unfortunately, the kernel source package build is
broken in the latest ATI releases.  I'm not sure exactly when it broke
as I have had it installed on a machine for several months.  Moreover,
the driver *does* work without the kernel module, but you won't
experience any 3D acceleration and there will may be some glitching
with the mouse pointer.

There are a couple of caveats with this patch.  

The ATI package isn't really patchable.  What you can do is use the
--keep switch so that the archive unpacks to fglx-install/.  You can
then apply the patch to that directory.  Change directories into
fglx-install/ and run

  # ./ati-installed 8.28.8 --buildpkg Debian/etch

to perform the build.  Debian packages will be saved to the parent
directory.

The second caveat is that this patch only fixes the build for etch.
There are several versions of the rules files, etch, experimental, and
sid.  If you want to build for these, you'll have to make the same
change to the other rules files.

Finally, I'm not really sure why the original code failed.  I didn't
spend enough time with this to determine the root cause.  As we are
using Debian, I am confident that tar supports the -j switch so there
ought to be no problem with change.

Cheers.



diff -ruB fglrx-install-original/packages/Debian/overlay/etch/rules fglrx-install-fixed/packages/Debian/overlay/etch/rules
--- fglrx-install-original/packages/Debian/overlay/etch/rules	2006-08-17 09:10:18.000000000 -0700
+++ fglrx-install-fixed/packages/Debian/overlay/etch/rules	2006-09-03 18:09:22.000000000 -0700
@@ -214,7 +214,7 @@
 		$(KSRCDIR)/debian
 	(cd debian/$(PKG_kernel_src)/usr/src \
 	 && chown -R root:src modules \
-	 && tar -c modules | bzip2 > fglrx.tar.bz2 \
+	 && tar jcf fglrx.tar.bz2 modules \
 	 && rm -rf modules)
 	# install panel files
 	dh_install -A -p$(PKG_control_qt3) "usr/X11R6/bin/fireglcontrolpanel" "usr/bin"



Reply to: