Package: src:intelrdfpmath
Version: 2.0u4-2
Tags: patch

The rsyslog package fail to build on hurd because its deep dependency
intelrdfpmath fail to build on hurd.  Here is an initial part to get it
working.  There is still some problems with linking, libtool fail, but I
thought it best to share my current status to ask for input.

Note, I do not understand the significance of the value 8, so I reused
the Linux one.  Any clues to spare?

Here is a copy of my debian/patches/gnu-hurd-support.patch so fra:

Description: Added support for GNU Hurd
 Add OS definition to header and build rule for the build to complete.
Author: Petter Reinholdtsen <[email protected]>
Bug-Debian: -1
Forwarded: no
Reviewed-By: Petter Reinholdtsen <[email protected]>

--- intelrdfpmath-2.0u4.orig/LIBRARY/float128/op_system.h
+++ intelrdfpmath-2.0u4/LIBRARY/float128/op_system.h
@@ -224,6 +224,23 @@
 
 #       define interix 11
 #       define OP_SYSTEM interix
+#elif (defined(__gnu_hurd__))
+
+#      undef  dos
+#      undef  vms
+#      undef  wnt
+#      undef  osf
+#      undef  hp_ux
+#      undef  linux
+#      undef  unicos
+#      undef  ultrix
+#       undef  win64
+#       undef  darwin 
+#       undef  interix 
+
+#      define hurd 8
+#      define OP_SYSTEM hurd
+
 #else
 
 #      error Operating system must be specified.
@@ -235,6 +252,7 @@
        OP_SYSTEM == linux || \
        OP_SYSTEM == osf || \
        OP_SYSTEM == ultrix || \
+       OP_SYSTEM == hurd || \
        OP_SYSTEM == unicos \
 )
 
--- intelrdfpmath-2.0u4.orig/LIBRARY/makefile.iml_head
+++ intelrdfpmath-2.0u4/LIBRARY/makefile.iml_head
@@ -293,7 +293,7 @@ LongFileListToFile = rm -f $4; $(call Ec
 Warning = $(warning $1 = $($1))
 Error = $(warning $1 = $($1))
        
-OS_ALIAS     := Linux FreeBSD  Darwin SunOS HP-UX Windows_NT CYGWIN_NT-5.1 
CYGWIN_NT-5.2-WOW64 CYGWIN_NT-6.1-WOW64 CYGWIN_NT-6.2-WOW64
+OS_ALIAS     := Linux FreeBSD  GNU    Darwin SunOS HP-UX Windows_NT 
CYGWIN_NT-5.1 CYGWIN_NT-5.2-WOW64 CYGWIN_NT-6.1-WOW64 CYGWIN_NT-6.2-WOW64
 OS_MAP_LIST  := LINUX FREEBSD  MACH   LINUX LINUX WINNT      WINNT         
WINNT               WINNT               WINNT
 OS_LIST      := LINUX FREEBSD  MACH   WINNT
 OS_TYPE      := LINUX LINUX    LINUX  WINNT

-- 
Happy hacking
Petter Reinholdtsen

Reply via email to