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

Branden, please apply attached patch (Was Re: Driver SDK.)

Package: xfree86
Version: 4.3.0-0pre1v4
Severity: wishlist

On Fri, Oct 31, 2003 at 04:14:15PM +0100, Sven Luther wrote:
> Hello,
> I attach here a draft of the smallish patch to enable the building of
> the driver SDK. The patch only patches the debian directory, and no
> upstream patch is needed anymore, since the 000_post430.diff patch
> already includes them.

Ok, here attached is what i think a final version of the driver sdk. The
only remaining thing is to attach some documentation in the
README.Debian file, but i will first need to actually use the package to
build some drivers before i write it.

I will probably add some make-kpkg like stuff to the tarball in future,
so users can simply do a dpkg-buildpackage in the unpacked directory,
and build an alternative driver package, but this can be done later on.

Anyway Branden, please apply this patch to your main tree, it is fully
orthogonal to anything else. Maybe you would like to have a
DONT_BUILD_SDK or something such option added though, like you have a
DONT_BUILD_SERVER one, if so, ask me about it, and i will implement it.

The patch come in two parts, the actual patch sdk.diff, which add the
needed stuff to debian/rules and debian/control, and the MANIFEST.diff,
which is the diff for the added SDK files on x86.


Sven Luther
diff -urN debian.orig/control debian/control
--- debian.orig/control	2003-10-31 13:33:23.000000000 +0100
+++ debian/control	2003-10-31 13:25:43.000000000 +0100
@@ -1195,3 +1195,13 @@
  This package smooths upgrades from Debian 3.0 by depending on
  xlibs-static-pic.  This pseudopackage is only depended upon by packages that
  haven't yet corrected their dependencies to reflect the new package name.
+Package: xfree86-driver-sdk
+Architecture: any
+Depends: xlibs-dev
+Description: XFree86 driver development kit.
+ The XFree86 driver SDK (DDK would have been a better name) contain everything
+ that is needed to rebuild the video drivers. It can be used either to apply
+ some patch to the driver and rebuild them or to build the drivers from the
+ xfree86 CVS HEAD or from other third party sources.
diff -urN debian.orig/rules debian/rules
--- debian.orig/rules	2003-10-31 13:33:22.000000000 +0100
+++ debian/rules	2003-10-31 13:26:00.000000000 +0100
@@ -244,7 +244,7 @@
 ifndef test_rules
 	umask 022
 	dh_clean -k
-	$(MAKE) -C $(SOURCE_TREE) SHELL="/bin/sh -e" DESTDIR=$(DEBTREEDIR) install install.man install.sdk
+	$(MAKE) -C $(SOURCE_TREE) SHELL="/bin/sh -e" DESTDIR=$(DEBTREEDIR) install install.man
 	# install Debian's font tools
 	install -m 755 -d $(DEBTREEDIR)/usr/bin $(DEBTREEDIR)/usr/sbin
 	install -m 755 -d $(DEBTREEDIR)/usr/share/man/man1 $(DEBTREEDIR)/usr/share/man/man5 $(DEBTREEDIR)/usr/share/man/man8
@@ -375,9 +375,6 @@
 	dh_install --sourcedir=debian/tmp
-	# installing the SDK tarball
-	mkdir -p  debian/xfree86-driver-sdk/usr/src
-	tar -C $(DEBTREEDIR)/usr/X11R6/lib -c -j Server -f debian/xfree86-driver-sdk/usr/src/xfree86-sdk.tar.bz2
 	# special handling; don't do this if the manpage doesn't exist, which
 	# will be the case if this architecture doesn't build the XFree86 X
 	# server
@@ -410,8 +407,7 @@
 	  -Nxlibmesa-glu-dbg \
 	  -Nxlibosmesa4-dbg \
 	  -Nxlibs-dbg \
-	  -Nxserver-xfree86-dbg \
-	  -Nxfree86-driver-sdk
+	  -Nxserver-xfree86-dbg
 	find debian/xserver-xfree86/usr/X11R6/lib/modules -name "*.o" | \
 	  xargs --no-run-if-empty \
 	  strip --strip-debug --remove-section=.note --remove-section=.comment
@@ -426,7 +422,7 @@
 	chown :utmp debian/xterm/usr/X11R6/bin/xterm
 	chmod g+s debian/xterm/usr/X11R6/bin/xterm
-	dh_shlibdeps -l$(DEBTREEDIR)/usr/lib -l$(DEBTREEDIR)/usr/X11R6/lib -Nxlibs -Nxfree86-driver-sdk --exclude=usr/X11R6/lib/modules
+	dh_shlibdeps -l$(DEBTREEDIR)/usr/lib -l$(DEBTREEDIR)/usr/X11R6/lib -Nxlibs --exclude=usr/X11R6/lib/modules
 	# xlibs needs to be given a special shlibs file so that dpkg-shlibdeps
 	# doesn't try to make it depend on itself
 	DH_OPTIONS= dh_shlibdeps -l$(DEBTREEDIR)/usr/X11R6/lib -pxlibs --exclude=libxrx.so -- -Ldebian/xlibs.shlibs.dummy
diff -urN debian.orig/xfree86-driver-sdk.README.Debian debian/xfree86-driver-sdk.README.Debian
--- debian.orig/xfree86-driver-sdk.README.Debian	1970-01-01 01:00:00.000000000 +0100
+++ debian/xfree86-driver-sdk.README.Debian	2003-10-31 13:09:37.000000000 +0100
@@ -0,0 +1,3 @@
+Debian README for xfree86-driver-sdk package
+Sven Luther, 09 Aug 2003

Attachment: MANIFEST.diff.gz
Description: Binary data

Reply to: