Package: acl
Severity: important
Version: 2.2.41-1
Tags: patch


Hi,


the current version fails to build on GNU/kFreeBSD.

On GNU/kFreeBSD, there is not defined ENODATA,
missing attribute is signaled by ENOATTR.
Unfortunately, tests in code expect both possible
errno's are defined.

Please use patch bellow.

It would also be nice if you can ask upstream
to include this changes.

Thanks in advance

                        Petr

diff -ur acl-2.2.41/libacl/acl_delete_def_file.c 
acl-2.2.41.new/libacl/acl_delete_def_file.c
--- acl-2.2.41/libacl/acl_delete_def_file.c
+++ acl-2.2.41.new/libacl/acl_delete_def_file.c
@@ -23,6 +23,7 @@
 #include <attr/xattr.h>
 #include "byteorder.h"
 #include "acl_ea.h"
+#include "config.h"


 /* 23.4.8 */



diff -ur acl-2.2.41/include/config.h.in acl-2.2.41.new/include/config.h.in
--- acl-2.2.41/include/config.h.in
+++ acl-2.2.41.new/include/config.h.in
@@ -30,3 +30,11 @@
 #endif
 #include <locale.h>

+#include <errno.h>
+#if !defined(ENODATA) && defined(ENOATTR)
+# define ENODATA ENOATTR
+#endif
+#if !defined(ENOATTR) && defined(ENODATA)
+# define ENOATTR ENODATA
+#endif
+



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to