chiark / gitweb /
eglibc (2.11.3-4+deb6u3) squeeze-lts; urgency=medium
[eglibc.git] / debian / patches / hurd-i386 / local-enable-ldconfig.diff
1 # DP: Description: Enable ldconfig and such on hurd-i386
2 # DP: Author: Jeff Bailey <jbailey@nisa.net>
3 # DP: Related Bugs: #309489
4 # DP: Upstream status: Not submitted
5 # DP: Status Details: Upstream disagrees with this patch, but I'm
6 # DP: putting it in so that we have expected Debian behaviour on the
7 # DP: Hurd.  We should review this when the ELF standard supports runpath.
8 # DP: Date: 08 Apr 2003
9   
10 ---
11  elf/ldconfig.c                 |    4 ++++
12  sysdeps/mach/hurd/configure    |    2 ++
13  sysdeps/mach/hurd/configure.in |    2 ++
14  sysdeps/mach/hurd/dl-cache.c   |   29 -----------------------------
15  4 files changed, 8 insertions(+), 29 deletions(-)
16
17 --- a/sysdeps/mach/hurd/configure
18 +++ b/sysdeps/mach/hurd/configure
19 @@ -87,3 +87,5 @@
20  $as_echo "$as_me: error: Hurd headers not installed or too old" >&2;}
21     { (exit 1); exit 1; }; }
22  fi
23 +
24 +use_ldconfig=yes
25 --- a/sysdeps/mach/hurd/configure.in
26 +++ b/sysdeps/mach/hurd/configure.in
27 @@ -36,3 +36,5 @@
28  if test "x$libc_cv_hurd_version" != xok; then
29    AC_MSG_ERROR(Hurd headers not installed or too old)
30  fi
31 +
32 +use_ldconfig=yes
33 --- a/sysdeps/mach/hurd/dl-cache.c
34 +++ /dev/null
35 @@ -1,29 +0,0 @@
36 -/* Stubby version of dl-cache; the Hurd doesn't support this "feature".
37 -   Copyright (C) 1996, 1997 Free Software Foundation, Inc.
38 -   This file is part of the GNU C Library.
39 -
40 -   The GNU C Library is free software; you can redistribute it and/or
41 -   modify it under the terms of the GNU Lesser General Public
42 -   License as published by the Free Software Foundation; either
43 -   version 2.1 of the License, or (at your option) any later version.
44 -
45 -   The GNU C Library is distributed in the hope that it will be useful,
46 -   but WITHOUT ANY WARRANTY; without even the implied warranty of
47 -   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
48 -   Lesser General Public License for more details.
49 -
50 -   You should have received a copy of the GNU Lesser General Public
51 -   License along with the GNU C Library; if not, write to the Free
52 -   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
53 -   02111-1307 USA.  */
54 -
55 -const char *
56 -_dl_load_cache_lookup (const char *name)
57 -{
58 -  return 0;
59 -}
60 -
61 -void
62 -_dl_unload_cache (void)
63 -{
64 -}
65 --- a/elf/ldconfig.c
66 +++ b/elf/ldconfig.c
67 @@ -59,6 +59,10 @@
68  
69  #define PACKAGE _libc_intl_domainname
70  
71 +#ifndef PATH_MAX
72 +#define PATH_MAX 1024
73 +#endif
74 +
75  static const struct
76  {
77    const char *name;