Package: gcpegg Severity: important Tags: patch Hi,
currently your package FTBFS on GNU/kFreeBSD with the following error: > gcc -g -ansi -Wall -DLinux -DUSLEEP -D_GNU_SOURCE -DREPORT=1 -DEGG_DYNAMIC > -c -o reg_orion.o reg_orion.c > reg_orion.c: In function 'OpenDev': > reg_orion.c:150: error: 'TABDLY' undeclared (first use in this function) > reg_orion.c:150: error: (Each undeclared identifier is reported only once > reg_orion.c:150: error: for each function it appears in.) > make[1]: *** [reg_orion.o] Error 1 > make[1]: Leaving directory `/build/buildd/gcpegg-5.1' > make: *** [build-stamp] Error 2 Please find attached a patch to get rid of the non supported operations, only for GNU/kFreeBSD, which makes your package build OK on this platform. Cheers, -- Cyril Brulebois
--- gcpegg-5.1/reg_orion.c 2007-03-11 17:52:15.918634000 +0100 +++ gcpegg-5.1/reg_orion.c 2007-03-11 17:53:54.000000000 +0100 @@ -147,8 +147,10 @@ #else res = cfsetospeed(&tt, baudcon); cfmakeraw(&tt); +#if !defined(__FreeBSD_kernel__) tt.c_oflag &= (~(TABDLY | ONLCR)); #endif +#endif res = tcsetattr(TTY_fd, TCSANOW, &tt); oldbits[TTY_fd] = bitsleft[TTY_fd] = 0; --- gcpegg-5.1/reg_pear.c 2007-03-11 17:54:03.084074000 +0100 +++ gcpegg-5.1/reg_pear.c 2007-03-11 17:56:11.000000000 +0100 @@ -122,8 +122,10 @@ #else res = cfsetospeed(&tt, baudcon); cfmakeraw(&tt); +#if !defined(__FreeBSD_kernel__) tt.c_oflag &= (~(TABDLY | ONLCR)); #endif +#endif res = tcsetattr(TTY_fd, TCSANOW, &tt); oldbits[TTY_fd] = bitsleft[TTY_fd] = 0; --- gcpegg-5.1/regtest.c 2007-03-11 17:56:24.782087000 +0100 +++ gcpegg-5.1/regtest.c 2007-03-11 17:59:22.000000000 +0100 @@ -10,6 +10,10 @@ #define __USE_BSD #include <errno.h> #undef __USE_BSD +#if defined(__FreeBSD_kernel__) +/* Not patching the code directly, used once, in a "|" context */ +#define O_NDELAY 0 +#endif #include <sys/types.h> #include <sys/stat.h> @@ -56,7 +60,9 @@ res = tcgetattr(TTY_fd, &tt); res = cfsetospeed(&tt, baud); cfmakeraw(&tt); +#if !defined(__FreeBSD_kernel__) tt.c_oflag &= (~(TABDLY | ONLCR)); +#endif res = tcsetattr(TTY_fd, TCSANOW, &tt); mean = 0;

