[pkg-fso-maint] Bug#575265: nodm does not build on kfreebsd
Petr Salinger
Petr.Salinger at seznam.cz
Wed Mar 24 19:37:22 UTC 2010
> Usage of vt was introduced in 0.5 to fix
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504842
> Dear Debian/kFreeBSD-Team: Is there a way to have sys/vt.h on kFreeBSD,
> a simple replacement
No.
> or a different solution for this bug?
Yes, the #504842 clearly states:
The relevant gdm code seems to be in daemon/getvt.c, functions
get_free_vt_sys and get_free_vt_consio, wrapped by
gdm_get_empty_vt_argument. The difference between the two
implementations depends on the operating system:
/* Virtual terminals only supported on Linux, FreeBSD, DragonFly, or
* Solaris */
#if defined (__linux__) || defined (__sun)
/* Must check HAVE_SYS_VT since older Solaris doesn't support this. */
#ifdef HAVE_SYS_VT_H
#define GDM_USE_SYS_VT
#endif
#endif
#if defined (__FreeBSD__) || defined (__DragonFly__)
#define GDM_USE_CONSIO_VT
#endif
Please try to use the FreeBSD variant and guard it with
#defined (__FreeBSD__) || defined (__FreeBSD_kernel__)
Petr
More information about the pkg-fso-maint
mailing list