Gentoo Archives: gentoo-commits

From: "Ryan Hill (dirtyepic)" <dirtyepic@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/elfutils/files: elfutils-0.144-sloppy-include.patch
Date: Thu, 04 Feb 2010 08:12:09
Message-Id: E1Ncwoo-0002ui-41@stork.gentoo.org
1 dirtyepic 10/02/04 08:12:06
2
3 Added: elfutils-0.144-sloppy-include.patch
4 Log:
5 Version bump.
6 (Portage version: 2.2_rc62/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 dev-libs/elfutils/files/elfutils-0.144-sloppy-include.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/elfutils/files/elfutils-0.144-sloppy-include.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/elfutils/files/elfutils-0.144-sloppy-include.patch?rev=1.1&content-type=text/plain
13
14 Index: elfutils-0.144-sloppy-include.patch
15 ===================================================================
16 From b337b1fd5f3b3410fe522a690ccee70bce8519ee Mon Sep 17 00:00:00 2001
17 From: Roland McGrath <roland@××××××.com>
18 Date: Fri, 15 Jan 2010 01:02:27 -0800
19 Subject: [PATCH] Fix sloppy #include use, breaks with latest glibc.
20
21 ---
22 src/ChangeLog | 8 ++++++++
23 src/ar.c | 3 ++-
24 src/elflint.c | 1 +
25 src/readelf.c | 1 +
26 src/strip.c | 3 ++-
27 src/unstrip.c | 3 ++-
28 6 files changed, 16 insertions(+), 3 deletions(-)
29
30 diff --git a/src/ChangeLog b/src/ChangeLog
31 index c4b5b05..ee1b733 100644
32 --- a/src/ChangeLog
33 +++ b/src/ChangeLog
34 @@ -1,3 +1,11 @@
35 +2010-01-15 Roland McGrath <roland@××××××.com>
36 +
37 + * ar.c: Include <sys/stat.h>.
38 + * elflint.c: Likewise.
39 + * readelf.c: Likewise.
40 + * strip.c: Likewise.
41 + * unstrip.c: Likewise
42 +
43 2010-01-07 Roland McGrath <roland@××××××.com>
44
45 * readelf.c (print_ehdr): Handle PN_XNUM.
46 diff --git a/src/ar.c b/src/ar.c
47 index 5d7a6e7..149d116 100644
48 --- a/src/ar.c
49 +++ b/src/ar.c
50 @@ -1,5 +1,5 @@
51 /* Create, modify, and extract from archives.
52 - Copyright (C) 2005, 2007, 2009 Red Hat, Inc.
53 + Copyright (C) 2005-2010 Red Hat, Inc.
54 Written by Ulrich Drepper <drepper@××××××.com>, 2005.
55
56 Red Hat elfutils is free software; you can redistribute it and/or modify
57 @@ -45,6 +45,7 @@
58 #include <time.h>
59 #include <unistd.h>
60 #include <sys/mman.h>
61 +#include <sys/stat.h>
62 #include <sys/time.h>
63
64 #include <system.h>
65 diff --git a/src/elflint.c b/src/elflint.c
66 index 63d8389..531122b 100644
67 --- a/src/elflint.c
68 +++ b/src/elflint.c
69 @@ -42,6 +42,7 @@
70 #include <stdlib.h>
71 #include <string.h>
72 #include <unistd.h>
73 +#include <sys/stat.h>
74 #include <sys/param.h>
75
76 #include <elf-knowledge.h>
77 diff --git a/src/readelf.c b/src/readelf.c
78 index 4464866..6ba259c 100644
79 --- a/src/readelf.c
80 +++ b/src/readelf.c
81 @@ -49,6 +49,7 @@
82 #include <time.h>
83 #include <unistd.h>
84 #include <sys/param.h>
85 +#include <sys/stat.h>
86
87 #include <system.h>
88 #include "../libelf/libelfP.h"
89 diff --git a/src/strip.c b/src/strip.c
90 index 32cf0d7..7b2b889 100644
91 --- a/src/strip.c
92 +++ b/src/strip.c
93 @@ -1,5 +1,5 @@
94 /* Discard section not used at runtime from object files.
95 - Copyright (C) 2000-2008, 2009 Red Hat, Inc.
96 + Copyright (C) 2000-2010 Red Hat, Inc.
97 This file is part of Red Hat elfutils.
98 Written by Ulrich Drepper <drepper@××××××.com>, 2000.
99
100 @@ -46,6 +46,7 @@
101 #include <string.h>
102 #include <unistd.h>
103 #include <sys/param.h>
104 +#include <sys/stat.h>
105 #include <sys/time.h>
106
107 #include <elf-knowledge.h>
108 diff --git a/src/unstrip.c b/src/unstrip.c
109 index 284607b..0984e6b 100644
110 --- a/src/unstrip.c
111 +++ b/src/unstrip.c
112 @@ -1,5 +1,5 @@
113 /* Combine stripped files with separate symbols and debug information.
114 - Copyright (C) 2007, 2009 Red Hat, Inc.
115 + Copyright (C) 2007-2010 Red Hat, Inc.
116 This file is part of Red Hat elfutils.
117 Written by Roland McGrath <roland@××××××.com>, 2007.
118
119 @@ -52,6 +52,7 @@
120 #include <stdlib.h>
121 #include <string.h>
122 #include <unistd.h>
123 +#include <sys/stat.h>
124
125 #include <gelf.h>
126 #include <libebl.h>
127 --
128 1.6.2.5