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

Bug#421423: gcc-4.1: FTBFS on GNU/kFreeBSD



On Sun, Apr 29, 2007 at 12:03:11AM +0200, Aurelien Jarno wrote:
> Package: gcc-4.1
> Version: 4.1.2-4
> Severity: important
> 
> Please find below an update of the patch for GNU/kFreeBSD, which fixes a
> few things:
> - fix the kbsd-gnu.dpatch wrt hash-style. Please DON'T APPLY this patch
>   if you reenable hash-style=both in the next upload
> - fix a small typo in debian/multiarch.inc which make the build fails 
>   on kfreebsd-amd64
> - fix the detection of stackguard detection in the GNU libc for non
>   Linux architectures. It should also work for Hurd if/when the GNU libc
>   support stackguard on this architecture (I haven't checked yet).

It looks like the patch to multiarch.inc has been lost. Also Thomas 
Schwinge told me on IRC that stackguard does not work on Hurd, so the
stackguard detection have to be changed.

Please find a patch against the current SVN below.

Also is it normal that gcc-hash-style-both.dpatch is still disabled in
the current SVN?

Index: multiarch.inc
===================================================================
--- multiarch.inc	(révision 1908)
+++ multiarch.inc	(copie de travail)
@@ -34,7 +34,7 @@
 #endif
 
 #if defined(__x86_64_kfreebsd_gnu__)
-  { "32",  "i486-kfreebsd_gnu"},
+  { "32",  "i486-kfreebsd-gnu"},
 #endif
 
 
Index: patches/libssp-gnu.dpatch
===================================================================
--- patches/libssp-gnu.dpatch	(révision 1908)
+++ patches/libssp-gnu.dpatch	(copie de travail)
@@ -34,7 +34,7 @@
  # Test for stack protector support in target C library.
  case "$target" in
 -  *-*-linux*)
-+  *-*-*-gnu* | *-*-gnu)
++  *-*-*-gnu*)
      AC_CACHE_CHECK(__stack_chk_fail in target GNU C library,
        gcc_cv_libc_provides_ssp,
        [gcc_cv_libc_provides_ssp=no
@@ -45,7 +45,7 @@
  # Test for stack protector support in target C library.
  case "$target" in
 -  *-*-linux*)
-+  *-*-*-gnu* | *-*-gnu)
++  *-*-*-gnu*)
      { echo "$as_me:$LINENO: checking __stack_chk_fail in target GNU C library" >&5
  echo $ECHO_N "checking __stack_chk_fail in target GNU C library... $ECHO_C" >&6; }
  if test "${gcc_cv_libc_provides_ssp+set}" = set; then 



-- 
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   aurel32@debian.org         | aurelien@aurel32.net
   `-    people.debian.org/~aurel32 | www.aurel32.net



Reply to: