Package: tmview
Severity: important
Tags: patch

Salut Sam,

currently your package FTBFS on GNU/kFreeBSD with the following error:
> gcc -c -O2 -g -Wall -I./src/ -I./fb/ ./fb/writefb.c -o ./src/fb.writefb.o
> ./fb/writefb.c:16:22: error: linux/fb.h: No such file or directory
> ./fb/writefb.c:17:22: error: linux/vt.h: No such file or directory
> ./fb/writefb.c:18:23: error: linux/kd.h: No such file or directory
> ./fb/writefb.c:29: error: variable 'origpalette' has initializer but 
> incomplete type
> ./fb/writefb.c:29: warning: excess elements in struct initializer
> ./fb/writefb.c:29: warning: (near initialization for 'origpalette')
> [...]

Full build logs are available at
<http://experimental.ftbfs.de/build.php?arch=kfreebsd-i386&pkg=tmview>.

After having had a quick look at the code, it looks like the FB part
isn't easily (at least for me...) portable to GNU/kFreeBSD, so I'd
suggest changing the dvifb package to Architecture: (all, I hope)
linuxes, and tweaking a bit debian/rules, see the attached patch for an
suggestion.

(I also checked that the Linux build isn't broken.)

Cheers,

-- 
Cyril Brulebois
--- tmview-01.03/debian/control 2007-03-09 22:09:51.954789000 +0100
+++ tmview-01.03/debian/control 2007-03-09 22:20:14.000000000 +0100
@@ -35,7 +35,7 @@
  font-replacing mechanism.
 
 Package: dvifb
-Architecture: any
+Architecture: alpha amd64 arm hppa i386 ia64 m68k mips mipsel powerpc s390 
sparc
 Depends: ${shlibs:Depends}, gpm, tetex-bin
 Description: dvi viewer for framebuffer devices
  dvifb is a previewer for .dvi-files compiled by TeX. It lets you see what
--- tmview-01.03/debian/rules   2007-03-09 22:10:13.835656000 +0100
+++ tmview-01.03/debian/rules   2007-03-09 22:24:52.000000000 +0100
@@ -10,6 +10,11 @@
 DO_SVGA=1
 endif
 
+ARCH_OS=$(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
+ifeq ($(ARCH_OS),linux)
+DO_FB=1
+endif
+
 build: build-stamp
 build-stamp:
        dh_testdir
@@ -19,7 +24,9 @@
        make -f MakeSVGA
 endif
        make -f MakeLX
+ifdef DO_FB
        make -f MakeFb
+endif
        touch build-stamp
 
 clean:
@@ -62,7 +69,9 @@
        dh_compress
        dh_fixperms
        install -s -m 0755 dvilx.linux debian/dvilx/usr/bin/dvilx
+ifdef DO_FB
        install -s -m 0755 dvifb.linux debian/dvifb/usr/bin/dvifb
+endif
 ifdef DO_SVGA
        install -s -m 0755 dvisvga.linux debian/dvisvga/usr/bin/dvisvga
        ln -s dvisvga debian/dvisvga/usr/bin/tmview
@@ -75,13 +84,17 @@
        dh_gencontrol -pdvisvga
 endif
        dh_gencontrol -pdvilx
+ifdef DO_FB
        dh_gencontrol -pdvifb
+endif
        dh_md5sums
 ifdef DO_SVGA
        dh_builddeb -pdvisvga
 endif
        dh_builddeb -pdvilx
+ifdef DO_FB
        dh_builddeb -pdvifb
+endif
 
 source diff:                                                                  
        @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false

Reply via email to