Package: rsh-redone
Severity: important
Tags: patch

Hi,

currently your package FTBFS on GNU/kFreeBSD with the following error:
> /usr/bin/make 
> make[1]: Entering directory `/build/buildd/rsh-redone-80'
> cc -Wall -g -O2 -pipe -DBINDIR=\"/usr/bin\" -o rlogin rlogin.c
> rlogin.c: In function 'main':
> rlogin.c:337: error: 'OCRNL' undeclared (first use in this function)
> rlogin.c:337: error: (Each undeclared identifier is reported only once
> rlogin.c:337: error: for each function it appears in.)
> make[1]: *** [rlogin] Error 1
> make[1]: Leaving directory `/build/buildd/rsh-redone-80'
> make: *** [build-arch-stamp] Error 2

Full build logs are available at
<http://experimental.ftbfs.de/build.php?arch=kfreebsd-i386&pkg=rsh-redone>.

Please find attached a patch to fix this. In GNU/kFreeBSD's termios.h,
there are neither ONLCR or OCRNL #define's, so I'd say that this line
could just be dropped.

Cheers,

-- 
Cyril Brulebois
--- rsh-redone-80/rlogin.c	2007-03-09 15:20:14.284124000 +0100
+++ rsh-redone-80/rlogin.c	2007-03-09 15:20:35.000000000 +0100
@@ -334,7 +334,9 @@
 	/* Set up terminal on the client */
 	
 	oldtios = tios;
+#if !defined(__FreeBSD_kernel__)
 	tios.c_oflag &= ~(ONLCR|OCRNL);
+#endif
 	tios.c_lflag &= ~(ECHO|ICANON|ISIG);
 	tios.c_iflag &= ~(ICRNL|ISTRIP|IXON);
 	

Reply via email to