Package: netsurf
Version: 2.1-2
Severity: important
Tags: patch
User: debian-...@lists.debian.org
Usertags: kfreebsd

Hi,

your package FTBFS on GNU/kFreeBSD due to buildsys-related issues
(trying to use foo-$platform-bar doesn't work well when $platform
contains a / :)). To fix it, I made GNU/kFreeBSD look like it's actually
Linux, and this went fine.

Small tweaks are needed in debian/rules too given there's no linuxfb to
copy files from. You may need to adjust the Architecture line of some
packages because I don't think it'd be nice to have empty packages on
non-Linux ports when it comes to packages specifically for the Linux
FrameBuffer. I didn't dig into that, though, the attached patch only
makes it possible to run “debuild” in the source tree.

Thanks for considering.

Mraw,
KiBi.
--- netsurf-2.1/debian/rules
+++ netsurf-2.1/debian/rules
@@ -63,12 +63,16 @@
        install -m 644 debian/netsurf.desktop 
debian/netsurf-gtk/usr/share/applications
 # Ensure doc files are not executable
        chmod a-x debian/netsurf-gtk/usr/share/netsurf-gtk/docs/about/*
-#netsurf-framebuffer-common
+#netsurf-framebuffer-common, only on Linux:
+ifeq ($(DEB_HOST_ARCH_OS),linux)
        mkdir -p debian/netsurf-framebuffer-common/usr/share/netsurf-framebuffer
        cp -R debian/buildstage/linuxfb/usr/share/netsurf-framebuffer/* 
debian/netsurf-framebuffer-common/usr/share/netsurf-framebuffer
-#netsurf-linuxfb
+endif
+#netsurf-linuxfb, only on Linux:
+ifeq ($(DEB_HOST_ARCH_OS),linux)
        mkdir -p debian/netsurf-linuxfb/usr/bin
        cp debian/buildstage/linuxfb/usr/bin/netsurf-linux 
debian/netsurf-linuxfb/usr/bin/netsurf-linuxfb
+endif
 #netsurf-vnc
        mkdir -p debian/netsurf-vnc/usr/bin
        cp debian/buildstage/vnc/usr/bin/netsurf-vnc 
debian/netsurf-vnc/usr/bin/netsurf-vnc
--- netsurf-2.1.orig/Makefile
+++ netsurf-2.1/Makefile
@@ -36,7 +36,7 @@
 #      assuming we're building on RISC OS.
 #      In case you don't see anything printed (including the warning), you
 #      have an up-to-date RISC OS build system. ;-)
-HOST := $(shell uname -s)
+HOST := $(shell uname -s | sed -e 's,GNU/kFreeBSD,Linux,')
 ifeq ($(HOST),)
   HOST := riscos
   $(warning Build platform determination failed but that's a known problem for 
RISC OS so we're assuming a native RISC OS build.)

Reply via email to