Package: attr Severity: important Tags: patch Hi,
currently your package FTBFS on GNU/kFreeBSD with the following error: > gcc -g -O2 -DNDEBUG -funsigned-char -fno-strict-aliasing -Wall > -DVERSION=\"2.4.32\" -DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE=\"attr\" > -I../include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -c -o getfattr.o > getfattr.c > getfattr.c: In function 'strerror_ea': > getfattr.c:97: error: 'ENODATA' undeclared (first use in this function) > getfattr.c:97: error: (Each undeclared identifier is reported only once > getfattr.c:97: error: for each function it appears in.) > make[2]: *** [getfattr.o] Error 1 > make[1]: *** [default] Error 2 > make[1]: Leaving directory `/build/buildd/attr-2.4.32' > make: *** [built] Error 2 Full build logs are available at <http://experimental.ftbfs.de/build.php?arch=kfreebsd-i386&pkg=attr>. Please find attached a patch which allows your package to build OK, and which shouldn't harm Linux builds. However, I feel that this is suboptimal, so if anyone has a better implementation, please speak up. Cheers, -- Cyril Brulebois
--- attr-2.4.32/getfattr/getfattr.c 2007-03-10 05:52:41.340444000 +0100 +++ attr-2.4.32/getfattr/getfattr.c 2007-03-10 06:04:21.000000000 +0100 @@ -35,6 +35,13 @@ #include "config.h" #include "misc.h" +/* Workaround for GNU/kFreeBSD. Better implementation welcome */ +#if defined(__FreeBSD_kernel__) +#ifndef ENODATA +#define ENODATA ENOATTR +#endif +#endif + #define CMD_LINE_OPTIONS "n:de:m:hRLP" #define CMD_LINE_SPEC "[-hRLP] [-n name|-d] [-e en] [-m pattern] path..." --- attr-2.4.32/setfattr/setfattr.c 2007-03-10 05:57:42.529212000 +0100 +++ attr-2.4.32/setfattr/setfattr.c 2007-03-10 06:04:27.000000000 +0100 @@ -33,6 +33,13 @@ #include "config.h" #include "misc.h" +/* Workaround for GNU/kFreeBSD. Better implementation welcome */ +#if defined(__FreeBSD_kernel__) +#ifndef ENODATA +#define ENODATA ENOATTR +#endif +#endif + #define CMD_LINE_OPTIONS "n:x:v:h" #define CMD_LINE_SPEC1 "{-n name} [-v value] [-h] file..." #define CMD_LINE_SPEC2 "{-x name} [-h] file..."