[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#614270: xdm: FTBFS with --no-add-needed (default in wheezy/sid)



Package: xdm
Version: 1:1.1.10-3
Severity: serious
Tags: patch
Justification: fails to build from source


gcc-4.4.5-11 is now shipping with --no-add-needed by default. xdm's build
system needs to be patched so that it can be built now in sid.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.37-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages xdm depends on:
ii  cpp                           4:4.4.5-2  The GNU C preprocessor (cpp)
ii  debconf [debconf-2.0]         1.5.38     Debian configuration management sy
ii  libc6                         2.11.2-11  Embedded GNU C Library: Shared lib
ii  libpam0g                      1.1.2-2    Pluggable Authentication Modules l
ii  libselinux1                   2.0.96-1   SELinux runtime shared libraries
ii  libx11-6                      2:1.4.1-4  X11 client-side library
ii  libxau6                       1:1.0.6-1  X11 authorisation library
ii  libxaw7                       2:1.0.9-2  X11 Athena Widget library
ii  libxdmcp6                     1:1.1.0-1  X11 Display Manager Control Protoc
ii  libxext6                      2:1.2.0-2  X11 miscellaneous extension librar
ii  libxft2                       2.2.0-2    FreeType-based font drawing librar
ii  libxinerama1                  2:1.1.1-1  X11 Xinerama extension library
ii  libxmu6                       2:1.1.0-1  X11 miscellaneous utility library
ii  libxpm4                       1:3.5.9-1  X11 pixmap library
ii  libxrender1                   1:0.9.6-1  X Rendering Extension client libra
ii  libxt6                        1:1.0.9-2  X11 toolkit intrinsics library
ii  lsb-base                      3.2-27     Linux Standard Base 3.2 init scrip
ii  procps                        1:3.2.8-10 /proc file system utilities
ii  x11-common                    1:7.6+3    X Window System (X.Org) infrastruc
ii  x11-utils                     7.6+1      X11 utilities
ii  x11-xserver-utils             7.6+1      X server utilities

xdm recommends no packages.

xdm suggests no packages.

-- debconf information:
  xdm/stop_running_server_with_children: false
  xdm/daemon_name: /usr/bin/xdm
* shared/default-x-display-manager: xdm
>From 3539ecbd0952092e0137cab58bda1a23a3fe7a20 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fernando=20Tarl=C3=A1=20Cardoso=20Lemos?= <fernandotcl@gmail.com>
Date: Sat, 19 Feb 2011 15:16:05 -0200
Subject: [PATCH] Fix FTBFS with --no-add-needed.

---
 debian/patches/ftbfs-wheezy.diff |   43 ++++++++++++++++++++++++++++++++++++++
 debian/patches/series            |    1 +
 2 files changed, 44 insertions(+), 0 deletions(-)
 create mode 100644 debian/patches/ftbfs-wheezy.diff

diff --git a/debian/patches/ftbfs-wheezy.diff b/debian/patches/ftbfs-wheezy.diff
new file mode 100644
index 0000000..fa8842b
--- /dev/null
+++ b/debian/patches/ftbfs-wheezy.diff
@@ -0,0 +1,43 @@
+Description: Fix FTBFS in wheezy with the DSO linking changes
+Forwarded: http://lists.x.org/archives/xorg-devel/2011-February/019460.html
+Author: Fernando Tarlá Cardoso Lemos <fernandotcl@gmail.com>
+Last-Update: 2011-02-19
+--- a/configure.ac
++++ b/configure.ac
+@@ -136,16 +136,12 @@
+ AC_ARG_WITH(selinux, AC_HELP_STRING([--with-selinux],[Add support for selinux]),
+ 	[USE_SELINUX=$withval], [USE_SELINUX=$use_selinux_default])
+ if test "x$USE_SELINUX" != "xno" ; then
+-   	old_LIBS="$LIBS"
+-	LIBS=""
+ 	AC_SEARCH_LIBS(is_selinux_enabled,[selinux])
+ 	AC_CHECK_FUNC(is_selinux_enabled,
+ 		[AC_DEFINE(HAVE_SELINUX,1,[Add support for selinux])],
+ 		[if test "x$USE_SELINUX" != "xtry" ; then
+ 			AC_MSG_ERROR(["selinux support requested, but is_selinux_enabled not found."])
+ 		 fi])
+-	XDM_LIBS="$XDM_LIBS $LIBS"
+-	LIBS="$old_LIBS"
+ fi
+ 
+ # FIXME: Find better test for which OS'es use su -m  - for now, just try to
+@@ -428,8 +424,9 @@
+ 	AC_SUBST(XDMGREET_CFLAGS)
+ 	AC_SUBST(XDMGREET_LIBS)
+ else
+-	XDM_CFLAGS="$XDM_CFLAGS $XDM_PRINT_CFLAGS $GREETER_CFLAGS -DGREET_USER_STATIC"
+-	XDM_LIBS="$XDM_LIBS $XDM_PRINT_LIBS $GREETER_LIBS"
++	PKG_CHECK_MODULES(XDMGREET, xext xrender)
++	XDM_CFLAGS="$XDM_CFLAGS $XDM_PRINT_CFLAGS $GREETER_CFLAGS $XDMGREET_CFLAGS -DGREET_USER_STATIC"
++	XDM_LIBS="$XDM_LIBS $XDM_PRINT_LIBS $GREETER_LIBS $XDMGREET_LIBS"
+ fi
+ 
+ AM_CONDITIONAL(DYNAMIC_GREETER, test x$DYNAMIC_GREETER = xyes)
+@@ -454,6 +451,7 @@
+ AM_CONDITIONAL(HAS_XDM_AUTH, test x$xdmauth = xyes -a x$xdmauth_enable != xno)
+ 
+ AC_SEARCH_LIBS(crypt, crypt)
++AC_SEARCH_LIBS([dlopen], [dl])
+ 
+ AC_SUBST(XDM_CFLAGS)
+ AC_SUBST(XDM_LIBS)
diff --git a/debian/patches/series b/debian/patches/series
index 15eddf7..1977b7e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -9,3 +9,4 @@ support_logfile_rotation.diff
 
 debian.diff
 doc_mention_xdm.options.diff
+ftbfs-wheezy.diff
-- 
1.7.4.1


Reply to: