Bug#1132569: intelrdfpmath: Please fix FTBFS on hurd-*
I passed the patch on to [email protected] in the hope that it will make it into the next upstream release. Are you fine with me NMU-ing the library to add Hurd support, or do you want to have a look first? -- Happy hacking Petter Reinholdtsen
Bug#1132569: intelrdfpmath: Please fix FTBFS on hurd-*
I created https://salsa.debian.org/debian/intelrdfpmath/-/merge_requests/1 > with the fix in case you prefer to get patches that way. Given that it is in the debian team on Salsa, I assume NMUs are accepted, and will consider doing one in a week or so, unless I hear anything back. -- Happy hacking Petter Reinholdtsen
Bug#1132569: intelrdfpmath: Please fix FTBFS on hurd-*
[Petter Reinholdtsen] > The result now seem to be an endless loop, where the LIBRARY source is > built, packed into a .a file, before the .a and .o files are removed and > the cycle restarts. I was wrong. The loop is not endless, it terminated after creating libbidgcc000.a libbidgcc000b.a libbidgcc001.a libbidgcc001b.a libbidgcc010.a libbidgcc010b.a libbidgcc011.a libbidgcc011b.a libbidgcc100.a libbidgcc100b.a libbidgcc101.a libbidgcc101b.a libbidgcc110.a libbidgcc110b.a libbidgcc111.a libbidgcc111b.a. I thus suspect the patch might be correct, for some values of correct, and propose to include it in the next upload. I still do not understand the build system, but perhaps I got it right by mistake? -- Happy hacking Petter Reinholdtsen
Bug#1132569: intelrdfpmath: Please fix FTBFS on hurd-*
I managed to get the build limping along a but further by modifying the makefile.iml_head changes, but must admit I do not understand what is going on in this file. The result now seem to be an endless loop, where the LIBRARY source is built, packed into a .a file, before the .a and .o files are removed and the cycle restarts. Any clues how to avoid this look are most welcome. Attached is the updated patch. -- Happy hacking Petter Reinholdtsen Description: Added support for GNU Hurd Add OS definition to header and build rule for the build to complete. Author: Petter Reinholdtsen Bug-Debian: -1 Forwarded: no Reviewed-By: Petter Reinholdtsen Index: intelrdfpmath-salsa/LIBRARY/float128/op_system.h === --- intelrdfpmath-salsa.orig/LIBRARY/float128/op_system.h +++ intelrdfpmath-salsa/LIBRARY/float128/op_system.h @@ -44,6 +44,7 @@ # undef win64 # undef darwin # undef interix +# undef hurd # define dos 1 # define OP_SYSTEM dos @@ -62,6 +63,7 @@ # undef win64 # undef darwin # undef interix +# undef hurd # define vms 2 # define OP_SYSTEM vms @@ -80,6 +82,7 @@ # undef win64 # undef darwin # undef interix +# undef hurd # define wnt 3 # define OP_SYSTEM wnt @@ -98,6 +101,7 @@ # undef win64 # undef darwin # undef interix +# undef hurd # define linux 8 # define OP_SYSTEM linux @@ -117,6 +121,7 @@ # undef win64 # undef darwin # undef interix +# undef hurd # define osf 4 # define OP_SYSTEM osf @@ -135,6 +140,7 @@ # undef win64 # undef darwin # undef interix +# undef hurd # define hp_ux 5 # define OP_SYSTEM hp_ux @@ -153,6 +159,7 @@ # undef win64 # undef darwin # undef interix +# undef hurd # define unicos 6 # define OP_SYSTEM unicos @@ -171,6 +178,7 @@ # undef win64 # undef darwin # undef interix +# undef hurd # define ultrix 7 # define OP_SYSTEM ultrix @@ -188,6 +196,7 @@ # undef win64 # undef darwin # undef interix +# undef hurd # define win64 9 # define OP_SYSTEM win64 @@ -205,6 +214,7 @@ # undef win64 # undef darwin # undef interix +# undef hurd # define darwin 10 # define OP_SYSTEM darwin @@ -221,9 +231,28 @@ # undef win64 # undef darwin # undef interix +# undef hurd # 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 +# undef hurd + +# define hurd 12 +# define OP_SYSTEM hurd + #else # error Operating system must be specified. @@ -235,6 +264,7 @@ OP_SYSTEM == linux || \ OP_SYSTEM == osf || \ OP_SYSTEM == ultrix || \ + OP_SYSTEM == hurd || \ OP_SYSTEM == unicos \ ) Index: intelrdfpmath-salsa/LIBRARY/makefile.iml_head === --- intelrdfpmath-salsa.orig/LIBRARY/makefile.iml_head +++ intelrdfpmath-salsa/LIBRARY/makefile.iml_head @@ -293,10 +293,10 @@ 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_MAP_LIST := LINUX FREEBSD MACH LINUX LINUX WINNT WINNT WINNT WINNT WINNT -OS_LIST := LINUX FREEBSD MACH WINNT -OS_TYPE := LINUX LINUXLINUX WINNT +OS_ALIAS := Linux FreeBSD GNUDarwin 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 LINUX MACH LINUX LINUX WINNT WINNT WINNT WINNT WINNT +OS_LIST := LINUX FREEBSD HURDMACH WINNT +OS_TYPE := LINUX LINUXLINUX LINUX WINNT OS_TYPES := LINUX WINNT _HOST_OS := $(shell uname)
Bug#1132569: intelrdfpmath: Please fix FTBFS on hurd-*
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 Bug-Debian: -1 Forwarded: no Reviewed-By: Petter Reinholdtsen --- 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 GNUDarwin 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 LINUXLINUX WINNT -- Happy hacking Petter Reinholdtsen

