Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/qhull/files/
Date: Tue, 03 Jan 2017 23:07:15
Message-Id: 1483484610.7dbd8af9269014bbf124cba65ea4414e07fbe479.monsieurp@gentoo
1 commit: 7dbd8af9269014bbf124cba65ea4414e07fbe479
2 Author: Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Tue Jan 3 16:41:50 2017 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 3 23:03:30 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7dbd8af9
7
8 media-libs/qhull: remove unused patches.
9
10 Closes: https://github.com/gentoo/gentoo/pull/3314
11
12 .../qhull/files/qhull-2010.1-cmake-install.patch | 98 ----------------------
13 .../qhull/files/qhull-2010.1-overflows.patch | 50 -----------
14 media-libs/qhull/files/qhull-3.1-makefile.patch | 74 ----------------
15 3 files changed, 222 deletions(-)
16
17 diff --git a/media-libs/qhull/files/qhull-2010.1-cmake-install.patch b/media-libs/qhull/files/qhull-2010.1-cmake-install.patch
18 deleted file mode 100644
19 index 9e1914d..00000000
20 --- a/media-libs/qhull/files/qhull-2010.1-cmake-install.patch
21 +++ /dev/null
22 @@ -1,98 +0,0 @@
23 -diff -Nur qhull-2010.1.orig/CMakeLists.txt qhull-2010.1/CMakeLists.txt
24 ---- qhull-2010.1.orig/CMakeLists.txt 2010-10-03 23:04:04.000000000 +0100
25 -+++ qhull-2010.1/CMakeLists.txt 2010-10-03 23:26:54.000000000 +0100
26 -@@ -1,8 +1,44 @@
27 - project(qhull)
28 --cmake_minimum_required(VERSION 2.4)
29 --if(COMMAND cmake_policy)
30 -- cmake_policy(SET CMP0003 NEW)
31 --endif(COMMAND cmake_policy)
32 -+cmake_minimum_required(VERSION 2.6)
33 -+
34 -+
35 -+set(QHULL_VERSION "2010.1")
36 -+
37 -+if(INCLUDE_INSTALL_DIR)
38 -+else()
39 -+set(INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/include)
40 -+endif()
41 -+if(LIB_INSTALL_DIR)
42 -+else()
43 -+set(LIB_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/lib)
44 -+endif()
45 -+if(BIN_INSTALL_DIR)
46 -+else()
47 -+set(BIN_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/bin)
48 -+endif()
49 -+if(DOC_INSTALL_DIR)
50 -+else()
51 -+set(DOC_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/share/doc/qhull)
52 -+endif()
53 -+
54 -+message(STATUS)
55 -+message(STATUS "========== qhull Build Information ==========")
56 -+message(STATUS "Build Version: ${QHULL_VERSION}")
57 -+message(STATUS "Install Prefix (CMAKE_INSTALL_PREFIX): ${CMAKE_INSTALL_PREFIX}")
58 -+message(STATUS "Binary Directory (BIN_INSTALL_DIR): ${BIN_INSTALL_DIR}")
59 -+message(STATUS "Library Directory (LIB_INSTALL_DIR): ${LIB_INSTALL_DIR}")
60 -+message(STATUS "Include Directory (INCLUDE_INSTALL_DIR): ${INCLUDE_INSTALL_DIR}")
61 -+message(STATUS "Documentation Directory (DOC_INSTALL_DIR): ${DOC_INSTALL_DIR}")
62 -+message(STATUS)
63 -+message(STATUS "To change any of these options, override them using -D{OPTION_NAME} on the commandline.")
64 -+message(STATUS "To build and install qhull, run \"make\" and \"make install\"")
65 -+message(STATUS)
66 -+
67 -
68 - add_subdirectory(src)
69 -+option(WITH_STATIC_LIBS "Build with a static library" OFF)
70 -+option(WITH_DOCS "Install HTML documentation" OFF)
71 -
72 -+if (WITH_DOCS)
73 -+install(DIRECTORY html/ DESTINATION ${DOC_INSTALL_DIR})
74 -+endif (WITH_DOCS)
75 -diff -Nur qhull-2010.1.orig/src/CMakeLists.txt qhull-2010.1/src/CMakeLists.txt
76 ---- qhull-2010.1.orig/src/CMakeLists.txt 2010-10-03 23:04:04.000000000 +0100
77 -+++ qhull-2010.1/src/CMakeLists.txt 2010-10-04 00:23:47.000000000 +0100
78 -@@ -23,8 +23,25 @@
79 -
80 - file(GLOB qhull_hdr *.h)
81 -
82 --add_library(qhull ${qhull_src})
83 -+add_library(qhull SHARED ${qhull_src})
84 - target_link_libraries(qhull m)
85 -+if(UNIX)
86 -+ if(APPLE)
87 -+ set_target_properties(qhull PROPERTIES
88 -+ INSTALL_NAME_DIR "${LIB_INSTALL_DIR}")
89 -+ else(APPLE)
90 -+ set_target_properties(qhull PROPERTIES
91 -+ INSTALL_RPATH "${LIB_INSTALL_DIR}"
92 -+ INSTALL_RPATH_USE_LINK_PATH TRUE
93 -+ BUILD_WITH_INSTALL_RPATH FALSE)
94 -+ endif(APPLE)
95 -+endif(UNIX)
96 -+
97 -+if(WITH_STATIC_LIBS)
98 -+ add_library(qhullstatic STATIC ${qhull_src})
99 -+ set_property(TARGET qhullstatic PROPERTY OUTPUT_NAME "qhull")
100 -+ install(TARGETS qhullstatic ARCHIVE DESTINATION ${LIB_INSTALL_DIR})
101 -+endif(WITH_STATIC_LIBS)
102 -
103 - set(qhullcmd_SOURCES unix.c)
104 - set(rbox_SOURCES rbox.c)
105 -@@ -36,6 +53,7 @@
106 -
107 - add_executable(qhullcmd ${qhullcmd_SOURCES})
108 - target_link_libraries(qhullcmd qhull)
109 -+set_property(TARGET qhullcmd PROPERTY OUTPUT_NAME "qhull")
110 -
111 - add_executable(rbox ${rbox_SOURCES})
112 - target_link_libraries(rbox qhull)
113 -@@ -52,3 +70,7 @@
114 - add_executable(qhalf ${qhalf_SOURCES})
115 - target_link_libraries(qhalf qhull)
116 -
117 -+install(TARGETS qhull qhullcmd rbox qconvex qdelaunay qvoronoi qhalf
118 -+ RUNTIME DESTINATION ${BIN_INSTALL_DIR}
119 -+ LIBRARY DESTINATION ${LIB_INSTALL_DIR})
120 -+install(FILES ${qhull_hdr} DESTINATION ${INCLUDE_INSTALL_DIR}/qhull)
121
122 diff --git a/media-libs/qhull/files/qhull-2010.1-overflows.patch b/media-libs/qhull/files/qhull-2010.1-overflows.patch
123 deleted file mode 100644
124 index df4aa3d..00000000
125 --- a/media-libs/qhull/files/qhull-2010.1-overflows.patch
126 +++ /dev/null
127 @@ -1,50 +0,0 @@
128 -From 176c01851026125f574a8223ad49ec58b2b58ec0 Mon Sep 17 00:00:00 2001
129 -From: Johannes Obermayr <johannesobermayr@×××.de>
130 -Date: Fri, 23 Jul 2010 20:02:19 +0200
131 -Subject: [PATCH] Fix some serious compiler warnings causing build breakage on openSUSE.
132 -
133 ----
134 - src/global.c | 2 +-
135 - src/rboxlib.c | 6 +++---
136 - 2 files changed, 4 insertions(+), 4 deletions(-)
137 -
138 -diff --git a/src/global.c b/src/global.c
139 -index 3c6141a..4c9f56c 100644
140 ---- a/src/global.c
141 -+++ b/src/global.c
142 -@@ -614,7 +614,7 @@ void qh_initflags(char *command) {
143 - if (command <= &qh qhull_command[0] || command > &qh qhull_command[0] + sizeof(qh qhull_command)) {
144 - if (command != &qh qhull_command[0]) {
145 - *qh qhull_command= '\0';
146 -- strncat( qh qhull_command, command, sizeof( qh qhull_command));
147 -+ strncat(qh qhull_command, command, sizeof(qh qhull_command)-strlen(qh qhull_command)-1);
148 - }
149 - while (*s && !isspace(*s)) /* skip program name */
150 - s++;
151 -diff --git a/src/rboxlib.c b/src/rboxlib.c
152 -index 4f11d22..17d01ac 100644
153 ---- a/src/rboxlib.c
154 -+++ b/src/rboxlib.c
155 -@@ -124,7 +124,7 @@ int qh_rboxpoints(FILE* fout, FILE* ferr, char* rbox_command) {
156 - }
157 -
158 - *command= '\0';
159 -- strncat(command, rbox_command, sizeof(command));
160 -+ strncat(command, rbox_command, sizeof(command)-strlen(command)-1);
161 -
162 - while (*s && !isspace(*s)) /* skip program name */
163 - s++;
164 -@@ -346,8 +346,8 @@ int qh_rboxpoints(FILE* fout, FILE* ferr, char* rbox_command) {
165 - }
166 - }else if (israndom) {
167 - seed= (int)time(&timedata);
168 -- sprintf(seedbuf, " t%d", seed); /* appends an extra t, not worth removing */
169 -- strncat(command, seedbuf, sizeof(command));
170 -+ printf(seedbuf, " t%d", seed); /* appends an extra t, not worth removing */
171 -+ strncat(command, seedbuf, sizeof(command)-strlen(command)-1);
172 - t= strstr(command, " t ");
173 - if (t)
174 - strcpy(t+1, t+3); /* remove " t " */
175 ---
176 -1.6.1
177 -
178
179 diff --git a/media-libs/qhull/files/qhull-3.1-makefile.patch b/media-libs/qhull/files/qhull-3.1-makefile.patch
180 deleted file mode 100644
181 index edb6e17..00000000
182 --- a/media-libs/qhull/files/qhull-3.1-makefile.patch
183 +++ /dev/null
184 @@ -1,74 +0,0 @@
185 ---- Makefile.old 2001-02-11 21:26:08.000000000 -0500
186 -+++ Makefile 2007-11-18 08:03:19.000000000 -0500
187 -@@ -62,7 +62,7 @@
188 -
189 - # OBJS in execution frequency order. CFILES after qhull.c are alphabetical
190 - OBJS = user.o global.o stat.o io.o geom2.o poly2.o \
191 -- merge.o qhull.o geom.o poly.o qset.o mem.o
192 -+ merge.o qhull.o geom.o poly.o qset.o mem.o unix.o
193 -
194 - CFILES= unix.c qhull.c geom.c geom2.c global.c io.c mem.c merge.c poly.c \
195 - poly2.c qset.c stat.c user.c qconvex.c qdelaun.c qhalf.c qvoronoi.c
196 -@@ -78,7 +78,7 @@
197 - qh-poly.htm qh-qhull.htm qh-set.htm qh-stat.htm qh-user.htm \
198 - qdelau_f.htm qhalf.htm qvoronoi.htm qvoron_f.htm rbox.htm
199 -
200 --all: rbox qconvex qdelaunay qhalf qvoronoi qhull
201 -+all: rbox qconvex qdelaunay qhalf qvoronoi qhull libqhull.so
202 -
203 - unix.o: qhull.h user.h mem.h
204 - qconvex.o: qhull.h user.h mem.h
205 -@@ -100,6 +100,8 @@
206 -
207 - .c.o:
208 - $(CC) -c $(CCOPTS1) $<
209 -+ mkdir -p .libs
210 -+ $(CC) -c $(CCOPTS1) -fPIC $< -o .libs/$@
211 -
212 - clean:
213 - rm -f *.o ../core qconvex qdelaunay qhalf qvoronoi qhull
214 -@@ -142,23 +144,23 @@
215 -
216 - # don't use ../qconvex. Does not work on Red Hat Linux
217 - qconvex: qconvex.o libqhull.a
218 -- $(CC) -o qconvex $(CCOPTS2) qconvex.o -L. -lqhull -lm
219 -+ $(CC) -o qconvex $(CCOPTS2) qconvex.o -L. libqhull.a -lm
220 - cp qconvex ..
221 -
222 - qdelaunay: qdelaun.o libqhull.a
223 -- $(CC) -o qdelaunay $(CCOPTS2) qdelaun.o -L. -lqhull -lm
224 -+ $(CC) -o qdelaunay $(CCOPTS2) qdelaun.o -L. libqhull.a -lm
225 - cp qdelaunay ..
226 -
227 - qhalf: qhalf.o libqhull.a
228 -- $(CC) -o qhalf $(CCOPTS2) qhalf.o -L. -lqhull -lm
229 -+ $(CC) -o qhalf $(CCOPTS2) qhalf.o -L. libqhull.a -lm
230 - cp qhalf ..
231 -
232 - qvoronoi: qvoronoi.o libqhull.a
233 -- $(CC) -o qvoronoi $(CCOPTS2) qvoronoi.o -L. -lqhull -lm
234 -+ $(CC) -o qvoronoi $(CCOPTS2) qvoronoi.o -L. libqhull.a -lm
235 - cp qvoronoi ..
236 -
237 - qhull: unix.o libqhull.a
238 -- $(CC) -o qhull $(CCOPTS2) unix.o -L. -lqhull -lm
239 -+ $(CC) -o qhull $(CCOPTS2) unix.o -L. libqhull.a -lm
240 - cp qhull ..
241 - -chmod +x ../eg/q_test ../eg/q_eg ../eg/q_egtest
242 - -cd ..; ./rbox D4 | ./qhull
243 -@@ -179,11 +181,13 @@
244 - cp rbox ..
245 -
246 - user_eg: user_eg.o libqhull.a
247 -- $(CC) -o user_eg $(CCOPTS2) user_eg.o -L. -lqhull -lm
248 -+ $(CC) -o user_eg $(CCOPTS2) user_eg.o -L. libqhull.a -lm
249 - cp user_eg ..
250 -
251 - user_eg2: user_eg2.o libqhull.a
252 -- $(CC) -o user_eg2 $(CCOPTS2) user_eg2.o -L. -lqhull -lm
253 -+ $(CC) -o user_eg2 $(CCOPTS2) user_eg2.o -L. libqhull.a -lm
254 - cp user_eg2 ..
255 -
256 - # end of Makefile
257 -+libqhull.so: $(OBJS)
258 -+ c++ -shared -Xlinker -soname -Xlinker $@ -o libqhull.so $(addprefix .libs/,$(OBJS))