Package: bogl Version: 0.1.18-4 Severity: important Tags: d-i patch Hello,
bogl FTBFS on non-linux. This would look normal at first, but d-i uses reduce-font from libbogl-dev to save room on d-i images. This patch makes bogl at least build libbogl-dev shipping mergebdf and reduce-font on non-linux ports. Samuel -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.34 (SMP w/2 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash -- Samuel Thibault <samuel.thiba...@fnac.net> /* Amuse the user. */ printk( " \\|/ ____ \\|/\n" " \"@'/ ,. \...@\"\n" " /_| \\__/ |_\\\n" " \\__U_/\n"); (From linux/arch/sparc/kernel/traps.c:die_if_kernel())
diff -urN bogl-0.1.18/debian/control bogl-0.1.18.nonlinux/debian/control --- bogl-0.1.18/debian/control 2010-06-22 02:15:11.000000000 +0200 +++ bogl-0.1.18.nonlinux/debian/control 2010-07-22 20:02:27.000000000 +0200 @@ -19,7 +19,7 @@ Package: libbogl0 Section: libs -Architecture: any +Architecture: linux-any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Ben's Own Graphics Library - shared library Ben's Own Graphics Library is a small framebuffer library, @@ -30,7 +30,7 @@ Package: bogl-bterm Section: utils -Architecture: any +Architecture: linux-any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Ben's Own Graphics Library - graphical terminal Ben's Own Graphics Library is a small framebuffer library, @@ -42,7 +42,7 @@ Package: bogl-bterm-udeb XC-Package-Type: udeb Section: debian-installer -Architecture: any +Architecture: linux-any Priority: extra Depends: ${shlibs:Depends} Description: Ben's Own Graphics Library - graphical terminal diff -urN bogl-0.1.18/debian/libbogl-dev.files.hurd-i386 bogl-0.1.18.nonlinux/debian/libbogl-dev.files.hurd-i386 --- bogl-0.1.18/debian/libbogl-dev.files.hurd-i386 1970-01-01 01:00:00.000000000 +0100 +++ bogl-0.1.18.nonlinux/debian/libbogl-dev.files.hurd-i386 2010-07-22 20:15:35.000000000 +0200 @@ -0,0 +1,2 @@ +usr/bin/mergebdf +usr/bin/reduce-font diff -urN bogl-0.1.18/debian/libbogl-dev.files.kfreebsd-amd64 bogl-0.1.18.nonlinux/debian/libbogl-dev.files.kfreebsd-amd64 --- bogl-0.1.18/debian/libbogl-dev.files.kfreebsd-amd64 1970-01-01 01:00:00.000000000 +0100 +++ bogl-0.1.18.nonlinux/debian/libbogl-dev.files.kfreebsd-amd64 2010-07-22 20:16:05.000000000 +0200 @@ -0,0 +1,2 @@ +usr/bin/mergebdf +usr/bin/reduce-font diff -urN bogl-0.1.18/debian/libbogl-dev.files.kfreebsd-i386 bogl-0.1.18.nonlinux/debian/libbogl-dev.files.kfreebsd-i386 --- bogl-0.1.18/debian/libbogl-dev.files.kfreebsd-i386 1970-01-01 01:00:00.000000000 +0100 +++ bogl-0.1.18.nonlinux/debian/libbogl-dev.files.kfreebsd-i386 2010-07-22 20:16:25.000000000 +0200 @@ -0,0 +1,2 @@ +usr/bin/mergebdf +usr/bin/reduce-font diff -urN bogl-0.1.18/debian/rules bogl-0.1.18.nonlinux/debian/rules --- bogl-0.1.18/debian/rules 2010-06-22 02:07:25.000000000 +0200 +++ bogl-0.1.18.nonlinux/debian/rules 2010-07-22 20:18:59.000000000 +0200 @@ -14,6 +14,8 @@ #major=`ls src/.libs/lib*.so.* | \ # awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'` +DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) + build: build-stamp build-stamp: dh_testdir @@ -46,10 +48,12 @@ dh_movefiles +ifeq ($(DEB_HOST_ARCH_OS), linux) install -d debian/bogl-bterm-udeb/usr/bin install -m 755 debian/bogl-bterm/usr/bin/bterm debian/bogl-bterm-udeb/usr/bin/bterm install -d debian/bogl-bterm-udeb/usr/share/terminfo/b install -m 644 debian/bogl-bterm/usr/share/terminfo/b/bterm debian/bogl-bterm-udeb/usr/share/terminfo/b/bterm +endif dh_installdocs dh_installexamples diff -urN bogl-0.1.18/Makefile bogl-0.1.18.nonlinux/Makefile --- bogl-0.1.18/Makefile 2010-06-22 02:07:25.000000000 +0200 +++ bogl-0.1.18.nonlinux/Makefile 2010-07-22 20:17:02.000000000 +0200 @@ -9,6 +9,7 @@ ALLCFLAGS = $(CFLAGS) $(WARNCFLAGS) $(FBCFLAGS) architecture := $(shell dpkg-architecture -qDEB_BUILD_ARCH_CPU) +os := $(shell dpkg-architecture -qDEB_BUILD_ARCH_OS) LIBOBJECTS = $(LIBBOGLOBJECTS) $(LIBBOMLOBJECTS) $(LIBBOWLOBJECTS) \ $(LIBRSRCOBJECTS) @@ -18,9 +19,12 @@ LIBRSRCOBJECTS = helvB10.o helvB12.o helvR10.o timBI18.o tux75.o SOURCES_DEP = arrow.c bdftobogl.c bogl-cfb.c bogl-cfb.h bogl-cfb8.c \ -bogl-cfb8.h bogl-font.c bogl-font.h bogl-pcfb.c bogl-pcfb.h \ -bogl-tcfb.c bogl-tcfb.h bogl-test.c bogl.c bogl.h boglP.h boml.c \ -boml.h bowl-boxes.c bowl.c bowl.h pngtobogl.c +bogl-cfb8.h bogl-font.c bogl-font.h \ +bogl-test.c bogl.h boglP.h boml.c \ +boml.h bowl.c bowl.h pngtobogl.c + +ifeq ($(os),linux) + SOURCES_DEP += bogl-pcfb.c bogl-pcfb.h bogl-tcfb.c bogl-tcfb.h bowl-boxes.c bogl.c ifeq (,) FBCFLAGS += -DBOGL_CFB_FB=1 @@ -32,13 +36,18 @@ LIBBOGLOBJECTS += bogl-vga16.o SOURCES_DEP += bogl-vga16.c bogl-vga16.h endif +endif OBJECTS = $(LIBOBJECTS) bowl-boxes.o GENERATED = helvB10.c helvB12.c helvR10.c timBI18.c tux75.c # libutf8/libutf8_plug.so unifont-reduced.bgf -all: depend $(SHARED_LIB) $(LIB) bterm bdftobogl reduce-font +all: depend +ifeq ($(os),linux) +all: $(SHARED_LIB) $(LIB) bterm bdftobogl pngtobogl +endif +all: reduce-font %.lo: %.c $(CC) $(ALLCFLAGS) -o $@ -fPIC -c $< @@ -109,12 +118,16 @@ endif install: all - install -d $(DESTDIR)/usr/lib $(DESTDIR)/usr/include/bogl $(DESTDIR)/usr/bin + install -d $(DESTDIR)/usr/bin +ifeq ($(os),linux) + install -d $(DESTDIR)/usr/lib $(DESTDIR)/usr/include/bogl install -m644 $(SHARED_LIB) $(DESTDIR)/usr/lib/$(SHARED_LIB) ln -s $(SHARED_LIB) $(DESTDIR)/usr/lib/$(DEVLINK) ln -s $(SHARED_LIB) $(DESTDIR)/usr/lib/$(SONAME) install -m644 $(LIB) $(DESTDIR)/usr/lib/$(LIB) install -m644 *.h $(DESTDIR)/usr/include/bogl - install -m755 bdftobogl mergebdf bterm pngtobogl reduce-font $(DESTDIR)/usr/bin + install -m755 bdftobogl bterm pngtobogl $(DESTDIR)/usr/bin install -d $(DESTDIR)/usr/share/terminfo tic -o$(DESTDIR)/usr/share/terminfo bterm.ti +endif + install -m755 mergebdf reduce-font $(DESTDIR)/usr/bin