[Pkg-xfce-devel] Bug#649633: Bug#649633: Bug#649633: lightdm: FTBFS (O_NOFOLLOW is linux-only)

Julien Cristau jcristau at debian.org
Wed Nov 23 21:37:34 UTC 2011


On Wed, Nov 23, 2011 at 22:26:59 +0100, Yves-Alexis Perez wrote:

> On mer., 2011-11-23 at 22:24 +0100, Robert Millan wrote:
> > Did you regenerate configure?
> 
> There's a --with autoreconf in debian/rules, so I assume so.
> > 
> > Anyway, this is most likely only needed because -D_GNU_SOURCE is
> > defined as Linux-only somewhere. Try grepping for "linux" and see what
> > comes out. 
> 
> It seems that it's enabled, in config.h:
> 
> /* Enable GNU extensions on systems that have them.  */
> #ifndef _GNU_SOURCE
> # define _GNU_SOURCE 1
> #endif
> 
> So I'm a bit puzzled.

That's not going to help very much if the file involved doesn't include
config.h.  Every single one of your source files needs to include
config.h as the first thing it does.

My build failed with
dh_install --fail-missing
dh_install: usr/lib/i386-kfreebsd-gnu/girepository-1.0/LightDM-1.typelib
exists in debian/tmp but is not installed to anywhere
dh_install: usr/share/gir-1.0/LightDM-1.gir exists in debian/tmp but is
not installed to anywhere
dh_install: missing files, aborting

but the O_NOFOLLOW part works.

--- lightdm-1.0.6.orig/configure.ac
+++ lightdm-1.0.6/configure.ac
@@ -11,6 +11,8 @@ AC_PROG_LIBTOOL
 AM_MAINTAINER_MODE
 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES(yes)])
 
+AC_USE_SYSTEM_EXTENSIONS
+
 GOBJECT_INTROSPECTION_CHECK(0.9.5)
 
 GNOME_COMPILE_WARNINGS(maximum)
--- lightdm-1.0.6.orig/src/xsession.c
+++ lightdm-1.0.6/src/xsession.c
@@ -9,6 +9,8 @@
  * license.
  */
 
+#include <config.h>
+
 #include <errno.h>
 #include <string.h>
 #include <fcntl.h>

Cheers,
Julien





More information about the Pkg-xfce-devel mailing list