[Crosstoolchain-logs] [SCM] GNU GDB Debian packaging repository branch, master, updated. debian/7.6-2-3-g1333f2b

Héctor Orón Martín?==?UTF-8?Q?ez zumbi at debian.org
Thu May 23 17:02:42 UTC 2013


The following commit has been merged in the master branch:
commit 1333f2b6c8fb357fc8f1b82c4dfa605d22af5fd5
Author: Svante Signell <svante.signell at gmail.com>
Date:   Thu May 23 19:01:47 2013 +0200

    d/p/solve_PATH_MAX_issue.patch: new patch fixes FTBFS on hurd. (Closes: #709508)
    
    Signed-off-by: Héctor Orón Martínez <zumbi at debian.org>

diff --git a/debian/patches/series b/debian/patches/series
index dae1527..b528351 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@ linux-clear-thread-list.patch
 man-page-args.patch
 man-page-order.patch
 linuxthreads_signal_handling.patch
+solve_PATH_MAX_issue.patch
diff --git a/debian/patches/solve_PATH_MAX_issue.patch b/debian/patches/solve_PATH_MAX_issue.patch
new file mode 100644
index 0000000..9dbb1e2
--- /dev/null
+++ b/debian/patches/solve_PATH_MAX_issue.patch
@@ -0,0 +1,31 @@
+--- a/gdb/nto-tdep.c	2013-05-23 14:28:24.000000000 +0000
++++ b/gdb/nto-tdep.c	2013-05-23 15:01:24.000000000 +0000
+@@ -147,9 +147,11 @@ nto_find_and_open_solib (char *solib, un
+ void
+ nto_init_solib_absolute_prefix (void)
+ {
+-  char buf[PATH_MAX * 2], arch_path[PATH_MAX];
++  char *buf, *arch_path;
+   char *nto_root, *endian;
+   const char *arch;
++  int arch_len, len;
++#define FMT "set solib-absolute-prefix %s"
+ 
+   nto_root = nto_target ();
+   if (strcmp (gdbarch_bfd_arch_info (target_gdbarch ())->arch_name, "i386") == 0)
+@@ -172,9 +174,13 @@ nto_init_solib_absolute_prefix (void)
+ 	       == BFD_ENDIAN_BIG ? "be" : "le";
+     }
+ 
+-  xsnprintf (arch_path, sizeof (arch_path), "%s/%s%s", nto_root, arch, endian);
++  arch_len = strlen (nto_root) + 1 + strlen (arch) + strlen (endian) + 1;
++  arch_path = alloca (arch_len);
++  xsnprintf (arch_path, arch_len, "%s/%s%s", nto_root, arch, endian);
+ 
+-  xsnprintf (buf, sizeof (buf), "set solib-absolute-prefix %s", arch_path);
++  len = strlen (FMT) - 2 + strlen (arch_path) + 1;
++  buf =  alloca (len);
++  xsnprintf (buf, len, FMT, arch_path);
+   execute_command (buf, 0);
+ }
+ 

-- 
GNU GDB Debian packaging repository



More information about the Crosstoolchain-logs mailing list