Bug#644662: Fails to build if GCC does not have libssp support

2011-10-07 Thread Kyle Moffett
Source: eglibc
Version: 2.13-21
Severity: normal
Tags: upstream patch

The attached patch fixes detection of GCC -fstack-protector and libssp.

In order to properly detect whether or not GCC has -fstack-protect
support built in, you actually need to link something.  Otherwise
GCC will accept the option and fail during the link due to missing
libssp.

This occurs in particular when trying to bootstrap a cross-compiler for
a new Debian port; the stage2 cross-compiler does not have libssp
support causing "undefined reference to `__stack_chk_guard'" errors
when building EGLIBC.

The fix is simply to remove the "-c" from the "-fstack-protector" test,
so it verifies whether or not GCC can actually link objects built with
that option.

This fix should also be forwarded upstream.

Cheers,
Kyle Moffett

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (700, 'testing'), (700, 'stable'), (600, 'unstable'), (500, 
'stable-updates'), (500, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.39-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
diff -ruN eglibc-2.13/debian/patches/any/local-fix-libssp-detection.patch eglibc-2.13.new/debian/patches/any/local-fix-libssp-detection.patch
--- eglibc-2.13/debian/patches/any/local-fix-libssp-detection.patch	1969-12-31 19:00:00.0 -0500
+++ eglibc-2.13.new/debian/patches/any/local-fix-libssp-detection.patch	2011-10-06 19:35:30.0 -0400
@@ -0,0 +1,32 @@
+Fix detection of GCC -fstack-protect and libssp support
+
+In order to properly detect whether or not GCC has -fstack-protect
+support built in, you actually need to link something.  Otherwise
+GCC will accept the option and fail during the link due to missing
+libssp.
+Index: eglibc-2.13/configure
+===
+--- eglibc-2.13.orig/configure	2011-10-06 19:31:36.0 -0400
 eglibc-2.13/configure	2011-10-06 19:33:13.0 -0400
+@@ -6942,7 +6942,7 @@
+   $as_echo_n "(cached) " >&6
+ else
+   if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector
+-			-o /dev/null -c -x c /dev/null 1>&5'
++			-o /dev/null -x c /dev/null 1>&5'
+   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+   (eval $ac_try) 2>&5
+   ac_status=$?
+Index: eglibc-2.13/configure.in
+===
+--- eglibc-2.13.orig/configure.in	2011-10-06 19:31:36.0 -0400
 eglibc-2.13/configure.in	2011-10-06 19:33:06.0 -0400
+@@ -1792,7 +1792,7 @@
+ 
+ AC_CACHE_CHECK(for -fstack-protector, libc_cv_ssp, [dnl
+ if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector
+-			-o /dev/null -c -x c /dev/null 1>&AS_MESSAGE_LOG_FD])
++			-o /dev/null -x c /dev/null 1>&AS_MESSAGE_LOG_FD])
+ then
+   libc_cv_ssp=yes
+ else
diff -ruN eglibc-2.13/debian/patches/series eglibc-2.13.new/debian/patches/series
--- eglibc-2.13/debian/patches/series	2011-10-07 17:40:39.0 -0400
+++ eglibc-2.13.new/debian/patches/series	2011-10-06 19:32:45.0 -0400
@@ -289,3 +289,4 @@
 any/cvs-dlopen-tls.diff
 any/submitted-glob_h-ifdef.diff
 any/cvs-dl_close-scope-handling.diff
+any/local-fix-libssp-detection.patch


Bug#644650: tzdata: possible copyright violation

2011-10-07 Thread Kurt Roeckx
On Fri, Oct 07, 2011 at 09:22:17PM +0200, Julien Cristau wrote:
> On Fri, Oct  7, 2011 at 21:17:35 +0200, Kurt Roeckx wrote:
> 
> > Package: tzdata
> > 
> > Hi,
> > 
> > I've read today that upstream has taken down the source because
> > of a law suite against them.  From what I understand they have
> > based some of their historic information on the ACS American
> > Atlas.  Upstream believes that all information is in the public
> > domain.
> > 
> What do you think filing this bug achieves?

I'm just trying to make you aware of the issue.  Do with it as you
see fit.


Kurt




-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20111007200158.ga6...@roeckx.be



Bug#644650: tzdata: possible copyright violation

2011-10-07 Thread Julien Cristau
On Fri, Oct  7, 2011 at 21:17:35 +0200, Kurt Roeckx wrote:

> Package: tzdata
> 
> Hi,
> 
> I've read today that upstream has taken down the source because
> of a law suite against them.  From what I understand they have
> based some of their historic information on the ACS American
> Atlas.  Upstream believes that all information is in the public
> domain.
> 
What do you think filing this bug achieves?

Cheers,
Julien



-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20111007192217.ga31...@radis.liafa.jussieu.fr



Bug#644650: tzdata: possible copyright violation

2011-10-07 Thread Kurt Roeckx
Package: tzdata

Hi,

I've read today that upstream has taken down the source because
of a law suite against them.  From what I understand they have
based some of their historic information on the ACS American
Atlas.  Upstream believes that all information is in the public
domain.


Kurt




-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20111007191735.ga5...@roeckx.be