Package: stlport5.2
Version: 5.2.1-5.2
Severity: normal
User: debian-h...@lists.debian.org
Usertags: hurd
Tags: patch

Hi,

Currently stlport5.2 fails to build on Debian GNU/Hurd. (Doesn't recognize gnu 
system).

Attached is a patch for building on Hurd.  Very similar to patch for 
GNU/kfreeBSD.

Thank you,

Barry deFreese

Index: stlport5.2-5.2.1/build/Makefiles/gmake/sysid.mak
===================================================================
--- stlport5.2-5.2.1.orig/build/Makefiles/gmake/sysid.mak       2012-06-06 
20:38:22.000000000 +0000
+++ stlport5.2-5.2.1/build/Makefiles/gmake/sysid.mak    2012-06-06 
20:38:23.000000000 +0000
@@ -56,6 +56,10 @@
 OSNAME := linux
 endif
 
+ifeq ($(OSNAME),gnu)
+OSNAME := linux
+endif
+
 NODENAME := $(shell uname -n | tr '[A-Z]' '[a-z]' )
 SYSVER := $(shell uname -v )
 USER := $(shell echo $$USER )
@@ -94,6 +98,10 @@
 BUILD_OSNAME := linux
 endif
 
+ifeq ($(BUILD_OSNAME),gnu)
+BUILD_OSNAME := linux
+endif
+
 BUILD_OSREL  := $(shell uname -r | tr '[A-Z]' '[a-z]' | tr ', /\\()"' 
',//////' | tr ',/' ',-')
 BUILD_M_ARCH := $(shell uname -m | tr '[A-Z]' '[a-z]' | tr ', /\\()"' 
',//////' | tr ',/' ',-')
 ifeq ($(OSNAME),hp-ux)
Index: stlport5.2-5.2.1/stlport/stl/config/_system.h
===================================================================
--- stlport5.2-5.2.1.orig/stlport/stl/config/_system.h  2012-06-06 
20:38:22.000000000 +0000
+++ stlport5.2-5.2.1/stlport/stl/config/_system.h       2012-06-06 
20:40:22.000000000 +0000
@@ -59,7 +59,7 @@
 #  elif defined (__HP_aCC)
 #    include <stl/config/_hpacc.h>
 #  endif
-#elif defined (linux) || defined (__linux__) || defined (__GLIBC__)
+#elif defined (linux) || defined (__linux__) || defined (__GLIBC__) || defined 
(__GNU__)
 #  include <stl/config/_linux.h>
 #  if defined (__BORLANDC__)
 #    include <stl/config/_bc.h> /* Borland C++ 0x570 */

Reply via email to