Here's the full patch that I applied. This includes an update of debhelper compatibility.
Cheers, FJP
diff -u afbinit-1.0/debian/changelog afbinit-1.0/debian/changelog
--- afbinit-1.0/debian/changelog
+++ afbinit-1.0/debian/changelog
@@ -1,3 +1,12 @@
+afbinit (1.0-1.1) unstable; urgency=low
+
+ * Non Maintainer Upload.
+ * Change the mmap() of the card's registers to use MAP_SHARED instead
+ of MAP_PRIVATE. Closes: #346085.
+ * Update debhelper compatibitily to version 5.
+
+ -- Frans Pop <[EMAIL PROTECTED]> Wed, 1 Feb 2006 14:20:57 +0100
+
afbinit (1.0-1) unstable; urgency=low
* Initial Release.
diff -u afbinit-1.0/debian/rules afbinit-1.0/debian/rules
--- afbinit-1.0/debian/rules
+++ afbinit-1.0/debian/rules
@@ -1,7 +1,5 @@
#!/usr/bin/make -f
-export DH_COMPAT=3
-
build: build-stamp
build-stamp:
dh_testdir
diff -u afbinit-1.0/debian/control afbinit-1.0/debian/control
--- afbinit-1.0/debian/control
+++ afbinit-1.0/debian/control
@@ -2,7 +2,7 @@
Section: contrib/utils
Priority: optional
Maintainer: Ben Collins <[EMAIL PROTECTED]>
-Build-Depends: debhelper (>> 3.0.0)
+Build-Depends: debhelper (>= 5.0.0)
Standards-Version: 3.5.2
Package: afbinit
only in patch2:
unchanged:
--- afbinit-1.0.orig/afbinit.c
+++ afbinit-1.0/afbinit.c
@@ -236,7 +236,7 @@
/* MMAP the registers. */
uregs = mmap(0, 0x2000,
PROT_READ | PROT_WRITE,
- MAP_PRIVATE,
+ MAP_SHARED,
afb_fd,
0x04000000);
if (uregs == (void *)-1L) {
@@ -246,7 +246,7 @@
kregs = mmap(0, 0x2000,
PROT_READ | PROT_WRITE,
- MAP_PRIVATE,
+ MAP_SHARED,
afb_fd,
0x0bc04000);
if (kregs == (void *)-1L) {
only in patch2:
unchanged:
--- afbinit-1.0.orig/debian/compat
+++ afbinit-1.0/debian/compat
@@ -0,0 +1 @@
+5
pgpyyP6SMgVHe.pgp
Description: PGP signature

