[pkg-fgfs-crew] Bug#636366: Bug#636366: fgrun: FTBFS(kfreebsd): OLCUC is a linux-specific extention to termios

Chris Baines cbaines8 at gmail.com
Tue Aug 2 19:18:05 UTC 2011


Thanks Christoph, I will fix this in the next few days and forward
this to upstream.

Thanks again,

Chris

On 2 August 2011 19:13, Christoph Egger <christoph at debian.org> wrote:
> Package: src:fgrun
> Version: 1.5.2-1
> Severity: normal
>
> Hi!
>
> Your package failed to build on the kfreebsd-* buildds because OLCUC is
> linux specific.It can be fixed by the following patch:
>
> --- fgrun-1.5.2.orig/src/run_posix.cxx
> +++ fgrun-1.5.2/src/run_posix.cxx
> @@ -59,7 +59,11 @@ Wizard::run_fgfs( const std::string &arg
>  #if defined(HAVE_TERMIOS_H)
>     struct termios term;
>     tcgetattr( STDOUT_FILENO, &term );
> +#if defined(OLCUC)
>     term.c_oflag &= ~( OLCUC | ONLCR );
> +#else
> +    term.c_oflag &= ~ONLCR;
> +#endif
>
>     pid = pty_fork( &master, 0, &term, 0 );
>  #else
> @@ -171,8 +175,12 @@ Wizard::run_ts()
>  #if defined(HAVE_TERMIOS_H)
>     struct termios term;
>     tcgetattr( STDOUT_FILENO, &term );
> -    term.c_oflag &= ~( OLCUC | ONLCR );
>
> +#if defined(OLCUC)
> +    term.c_oflag &= ~( OLCUC | ONLCR );
> +#else
> +    term.c_oflag &= ~ONLCR;
> +#endif
>     tsPid = pty_fork( &master, 0, &term, 0 );
>  #else
>     tsPid = pty_fork( &master, 0, 0, 0 );
>
> Regards
>
>    Christoph
>
> If you have further questions please mail debian-bsd at lists.debian.org
>
> --
> 9FED 5C6C E206 B70A 5857  70CA 9655 22B9 D49A E731
> Debian Developer | Lisp Hacker | CaCert Assurer
>
> A. Because it breaks the logical sequence of discussion
> Q. Why is top posting bad?
>
>
>
> _______________________________________________
> pkg-fgfs-crew mailing list
> pkg-fgfs-crew at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-fgfs-crew
>





More information about the pkg-fgfs-crew mailing list