Gentoo Archives: gentoo-commits

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libmelf/files/
Date: Thu, 23 Nov 2017 22:21:42
Message-Id: 1511475677.55deed904e8bcb263ef2bd28621275b0d6278220.robbat2@gentoo
1 commit: 55deed904e8bcb263ef2bd28621275b0d6278220
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Wed Nov 22 17:20:25 2017 +0000
4 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 23 22:21:17 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55deed90
7
8 dev-libs/libmelf: remove unused patch
9
10 Fixes: https://github.com/gentoo/gentoo/pull/6261
11 (cherry picked from commit 6221a05542b1d366acf0d8dbb44fbbe59a9a3b9d)
12 Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
13
14 .../files/libmelf-0.4.0-gcc-makefile-cleanup.patch | 129 ---------------------
15 1 file changed, 129 deletions(-)
16
17 diff --git a/dev-libs/libmelf/files/libmelf-0.4.0-gcc-makefile-cleanup.patch b/dev-libs/libmelf/files/libmelf-0.4.0-gcc-makefile-cleanup.patch
18 deleted file mode 100644
19 index ddf7c8a1ca0..00000000000
20 --- a/dev-libs/libmelf/files/libmelf-0.4.0-gcc-makefile-cleanup.patch
21 +++ /dev/null
22 @@ -1,129 +0,0 @@
23 -diff -Nuar --exclude '*~' libmelf-0.4.0.orig/example/Makefile.in libmelf-0.4.0/example/Makefile.in
24 ---- libmelf-0.4.0.orig/example/Makefile.in 2003-03-24 00:48:22.000000000 -0800
25 -+++ libmelf-0.4.0/example/Makefile.in 2010-05-31 19:56:43.546947560 -0700
26 -@@ -1,7 +1,13 @@
27 - cc=@CC@
28 - DEFINES=@DEFINES@
29 -+OPTFLAGS=-Wall -O3
30 -+CFLAGS=${DEFINES} ${OPTFLAGS} -I..
31 -+BINS = sign test new
32 -
33 --all:
34 -- ${CC} ${DEFINES} -I.. -Wall -O3 sign.c -o sign ../libmelf.a
35 -- ${CC} ${DEFINES} -I.. -Wall -O3 test.c -o test ../libmelf.a
36 -- ${CC} ${DEFINES} -I.. -Wall -O3 new.c -o new ../libmelf.a
37 -+%: %.c
38 -+ ${CC} $(CFLAGS) $^ -o $@ -L.. -lmelf
39 -+
40 -+all: $(BINS)
41 -+
42 -+clean:
43 -+ -rm -f $(BINS)
44 -diff -Nuar --exclude '*~' libmelf-0.4.0.orig/Makefile.in libmelf-0.4.0/Makefile.in
45 ---- libmelf-0.4.0.orig/Makefile.in 2003-11-07 22:09:10.000000000 -0800
46 -+++ libmelf-0.4.0/Makefile.in 2010-05-31 19:58:12.172822406 -0700
47 -@@ -6,35 +6,43 @@
48 - DEFINES=@DEFINES@ -DMELF_COMP
49 - INCLUDES=-I.
50 - PREFIX=@PREFIX@
51 --CFLAGS=${DEBUG} ${DEFINES} ${INCLUDES} -Wall -O3
52 --LFLAGS=${DEBUG} ${DEFINES} ${INCLUDES} -Wall -O3 -o
53 -+OPTFLAGS=-Wall -O3
54 -+CFLAGS=${DEBUG} ${DEFINES} ${INCLUDES} ${OPTFLAGS}
55 -+LFLAGS=${DEBUG} ${DEFINES} ${INCLUDES} ${OPTFLAGS} -o
56 -+LIBDIR=lib
57 - LIBS=
58 - OBJS=melf.o melf_dynamic.o melf_elf.o melf_list.o melf_note.o melf_program.o melf_reloc.o \
59 - melf_res.o melf_section.o melf_string.o melf_symbol.o melf_symbolTable.o
60 -
61 --all: ${OBJS}
62 -- ar rc ${STATICBIN} ${OBJS} && ranlib ${STATICBIN}
63 -- @SHAREDEXEC@
64 -- cd example && make
65 -- cd tools && make
66 -+all: ${STATICBIN} ${DYNAMICBIN}
67 -+ cd example && $(MAKE)
68 -+ cd tools && $(MAKE)
69 -
70 - *.c.${O}:
71 - ${CC} ${CFLAGS} $*.c
72 -
73 -+${STATICBIN}: ${OBJS}
74 -+ ar rc ${STATICBIN} ${OBJS} && ranlib ${STATICBIN}
75 -+${DYNAMICBIN}: ${OBJS}
76 -+ @SHAREDEXEC@
77 -+
78 - clean:
79 - rm -f *.o ${STATICBIN} ${DYNAMICBIN} example/test example/new example/sign tools/elfres config.*
80 -- cd tools && make clean
81 -+ cd tools && $(MAKE) clean
82 -
83 --distclean:
84 -- make clean
85 -+distclean: clean
86 - rm -f Makefile example/Makefile stdelf.h
87 -- cd tools && make distclean
88 -+ cd tools && $(MAKE) distclean
89 -
90 - install: ${OBJS} ${STATICBIN}
91 -- cp libmelf.a ${PREFIX}/lib
92 -- cp libmelf.so ${PREFIX}/lib
93 -+ cp ${STATICBIN} ${PREFIX}/$(LIBDIR)
94 -+ cp ${DYNAMICBIN} ${PREFIX}/$(LIBDIR)
95 - cp melf.h ${PREFIX}/include
96 - cp stdelf.h ${PREFIX}/include
97 -
98 - uninstall:
99 -- rm -f ${PREFIX}/lib/libmelf.a ${PREFIX}/lib/libmelf.so ${PREFIX}/include/melf.h ${PREFIX}/include/stdelf.h
100 -+ -rm -f \
101 -+ ${PREFIX}/$(LIBDIR)/${STATICBIN} \
102 -+ ${PREFIX}/$(LIBDIR)/${DYNAMICBIN} \
103 -+ ${PREFIX}/include/melf.h \
104 -+ ${PREFIX}/include/stdelf.h
105 -diff -Nuar --exclude '*~' libmelf-0.4.0.orig/melf_dynamic.c libmelf-0.4.0/melf_dynamic.c
106 ---- libmelf-0.4.0.orig/melf_dynamic.c 2004-01-08 23:25:32.000000000 -0800
107 -+++ libmelf-0.4.0/melf_dynamic.c 2010-05-31 19:35:59.230823053 -0700
108 -@@ -227,7 +227,7 @@
109 - return NULL;
110 -
111 - dynamic->content = (void *)base;
112 -- (unsigned char *)base += dynamic->contentLength;
113 -+ /*(unsigned char *)*/ base += dynamic->contentLength;
114 - dynamic->contentLength = newLength;
115 -
116 - base->d_tag = DT_NULL;
117 -diff -Nuar --exclude '*~' libmelf-0.4.0.orig/melf_note.c libmelf-0.4.0/melf_note.c
118 ---- libmelf-0.4.0.orig/melf_note.c 2004-01-08 23:25:56.000000000 -0800
119 -+++ libmelf-0.4.0/melf_note.c 2010-05-31 19:36:11.535947632 -0700
120 -@@ -205,7 +205,7 @@
121 - return NULL;
122 -
123 - note->content = (void *)base;
124 -- (unsigned char *)base += note->contentLength;
125 -+ /*(unsigned char *)*/ base += note->contentLength;
126 -
127 - memset(base, 0, newLength - note->contentLength);
128 -
129 -diff -Nuar --exclude '*~' libmelf-0.4.0.orig/tools/Makefile.in libmelf-0.4.0/tools/Makefile.in
130 ---- libmelf-0.4.0.orig/tools/Makefile.in 2003-09-17 01:03:49.000000000 -0700
131 -+++ libmelf-0.4.0/tools/Makefile.in 2010-05-31 19:57:55.126198024 -0700
132 -@@ -1,11 +1,15 @@
133 - cc=@CC@
134 - DEFINES=@DEFINES@
135 -+CFLAGS=${DEFINES} ${OPTFLAGS} -I..
136 -+BINS=elfres
137 -
138 --all:
139 -- ${CC} ${DEFINES} -I.. -Wall -O3 elfres.c -o elfres ../libmelf.a
140 -+%: %.c
141 -+ ${CC} $(CFLAGS) $^ -o $@ -L.. -lmelf
142 -+
143 -+all: $(BINS)
144 -
145 - clean:
146 -- rm -f elfres
147 -+ -rm -f $(BINS)
148 -
149 - distclean:
150 -- rm -f elfres Makefile
151 -+ -rm -f $(BINS) Makefile