Package: sdlgfx
Severity: important
Tags: patch

Hello,

sdlgfx currently fails to build from sources on GNU/kFreeBSD. This is
due to the following reasons:
- config.{guess.sub} outdated
- libtool outdated

Please find attached a patch to fix that. I have patched libtool
manually, but you may prefer to update it with libtoolize. It's your 
choice!

Note that I also have changed DEB_HOST_ARCH into DEB_HOST_ARCH_CPU to
detect the i386 CPU instead of the debian i386 architecture.

Would it be possible to include this patch in the next upload of sdlgfx?

Thanks for your cooperation,
Aurelien


-- System Information:
Debian Release: testing/unstable
Architecture: kfreebsd-i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: GNU/kFreeBSD 5.3-17
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
diff -u sdlgfx-2.0.9/debian/rules sdlgfx-2.0.9/debian/rules
--- sdlgfx-2.0.9/debian/rules
+++ sdlgfx-2.0.9/debian/rules
@@ -6,12 +6,13 @@
 build-stamp:
        dh_testdir
 
+       cp -f /usr/share/misc/config.{guess,sub} .
        touch configure.in
        touch aclocal.m4
        touch configure
        touch `find -name Makefile.in`
 
-ifeq ($(DEB_BUILD_ARCH),i386)
+ifeq ($(DEB_HOST_ARCH_CPU),i386)
        ./configure $(confflags) --prefix=/usr --enable-mmx
 else
        ./configure $(confflags) --prefix=/usr --disable-mmx
@@ -25,6 +26,7 @@
        dh_testdir
        dh_testroot
        rm -f build-stamp
+       rm -f config.{guess,sub}
 
        -$(MAKE) distclean
 
diff -u sdlgfx-2.0.9/debian/control sdlgfx-2.0.9/debian/control
--- sdlgfx-2.0.9/debian/control
+++ sdlgfx-2.0.9/debian/control
@@ -2,7 +2,7 @@
 Section: libs
 Priority: optional
 Maintainer: Sam Hocevar (Debian packages) <[EMAIL PROTECTED]>
-Build-Depends: debhelper (>= 4.0), libsdl1.2-dev (>= 1.2.5-8)
+Build-Depends: debhelper (>= 4.0), libsdl1.2-dev (>= 1.2.5-8), autotools-dev
 Standards-Version: 3.6.1.1
 
 Package: libsdl-gfx1.2
only in patch2:
unchanged:
--- sdlgfx-2.0.9.orig/ltconfig
+++ sdlgfx-2.0.9/ltconfig
@@ -1361,7 +1361,7 @@
     ;;
 
   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
-  freebsd*)
+  freebsd* | kfreebsd*-gnu)
     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $linkopts'
     hardcode_libdir_flag_spec='-R$libdir'
     hardcode_direct=yes
@@ -1892,7 +1892,20 @@
 freebsd1*)
   dynamic_linker=no
   ;;
-
+
+kfreebsd*-gnu)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}.so$versuffix 
${libname}${release}.so$major $libname.so'
+  soname_spec='${libname}${release}.so$major'
+  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  deplibs_check_method=pass_all
+  dynamic_linker='GNU ld.so'
+  ;;
+ 
 freebsd*)
   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
   version_type=freebsd-$objformat

Reply via email to