Package: ossp-uuid
Version: 1.5.1-1.1
Severity: wishlist
Tags: patch

Hi,

ossp-uuid needs a small patch for sucessfully compile on GNU/Hurd.
Basically, it just disables a part of the mac_address() function because:
a) uses MAXHOSTNAMELEN (not defined on Hurd, but could be refactored)
b) SIOCGARP requires a arpreq struct which, at the current state of Hurd's
   ioctl(), cannot be serialized

Thanks,
-- 
Pino
On Hurd, disable the SIOCGARP ioctl() way because:
a) uses MAXHOSTNAMELEN (not defined on Hurd, but could be refactored)
b) SIOCGARP requires a arpreq struct which, at the current state of Hurd's
   ioctl(), cannot be serialized

Index: ossp-uuid-1.5.1/uuid_mac.c
===================================================================
--- ossp-uuid-1.5.1.orig/uuid_mac.c     2009-08-29 01:41:49.000000000 +0200
+++ ossp-uuid-1.5.1/uuid_mac.c  2009-08-29 01:45:07.000000000 +0200
@@ -142,7 +142,7 @@
     }
 #endif
 
-#if defined(SIOCGARP)
+#if defined(SIOCGARP) && !defined(__GNU__)
     /* use SIOCGARP ioctl(2) on SVR4 class platforms (Solaris, etc) */
     {
         char hostname[MAXHOSTNAMELEN];

Reply via email to