diff options
Diffstat (limited to 'glib-patches/glib-only.patch')
-rw-r--r-- | glib-patches/glib-only.patch | 361 |
1 files changed, 361 insertions, 0 deletions
diff --git a/glib-patches/glib-only.patch b/glib-patches/glib-only.patch new file mode 100644 index 0000000..7adbc09 --- /dev/null +++ b/glib-patches/glib-only.patch | |||
@@ -0,0 +1,361 @@ | |||
1 | diff --git a/glib/Makefile.am b/glib/Makefile.am | ||
2 | index f5c510d..95c71de 100644 | ||
3 | --- a/glib/Makefile.am | ||
4 | +++ b/glib/Makefile.am | ||
5 | @@ -6,10 +6,8 @@ include $(top_srcdir)/Makefile.decl | ||
6 | |||
7 | ACLOCAL_AMFLAGS = -I m4macros ${ACLOCAL_FLAGS} | ||
8 | |||
9 | -SUBDIRS = . m4macros glib gmodule gthread gobject gio tests po docs | ||
10 | -DIST_SUBDIRS = $(SUBDIRS) build | ||
11 | - | ||
12 | -bin_SCRIPTS = glib-gettextize | ||
13 | +SUBDIRS = . m4macros glib | ||
14 | +DIST_SUBDIRS = $(SUBDIRS) | ||
15 | |||
16 | AM_CPPFLAGS = \ | ||
17 | -DG_LOG_DOMAIN=g_log_domain_glib \ | ||
18 | @@ -18,85 +16,18 @@ AM_CPPFLAGS = \ | ||
19 | -DGLIB_COMPILATION | ||
20 | |||
21 | EXTRA_DIST += \ | ||
22 | - ChangeLog.pre-2-20 \ | ||
23 | - ChangeLog.pre-2-18 \ | ||
24 | - ChangeLog.pre-2-16 \ | ||
25 | - ChangeLog.pre-2-14 \ | ||
26 | - ChangeLog.pre-2-12 \ | ||
27 | - ChangeLog.pre-2-10 \ | ||
28 | - ChangeLog.pre-2-8 \ | ||
29 | - ChangeLog.pre-2-6 \ | ||
30 | - ChangeLog.pre-2-4 \ | ||
31 | - ChangeLog.pre-2-2 \ | ||
32 | - ChangeLog.pre-2-0 \ | ||
33 | - ChangeLog.pre-1-2 \ | ||
34 | - glib-zip.in \ | ||
35 | - NEWS.pre-1-3 \ | ||
36 | acglib.m4 \ | ||
37 | - sanity_check \ | ||
38 | - README.commits \ | ||
39 | README.in \ | ||
40 | - INSTALL.in \ | ||
41 | - README.win32 \ | ||
42 | - HACKING \ | ||
43 | - autogen.sh \ | ||
44 | Makefile.decl \ | ||
45 | - mkinstalldirs \ | ||
46 | - makefile.msc \ | ||
47 | - msvc_recommended_pragmas.h \ | ||
48 | - config.h.win32.in \ | ||
49 | - po/po2tbl.sed.in \ | ||
50 | - glib-2.0.pc.in \ | ||
51 | - gobject-2.0.pc.in \ | ||
52 | - gmodule-2.0.pc.in \ | ||
53 | - gmodule-export-2.0.pc.in \ | ||
54 | - gmodule-no-export-2.0.pc.in \ | ||
55 | - gthread-2.0.pc.in \ | ||
56 | - gio-2.0.pc.in \ | ||
57 | - gio-unix-2.0.pc.in \ | ||
58 | - gio-windows-2.0.pc.in | ||
59 | + mkinstalldirs | ||
60 | |||
61 | |||
62 | # These may be in the builddir too | ||
63 | BUILT_EXTRA_DIST = \ | ||
64 | - README \ | ||
65 | - INSTALL \ | ||
66 | - ChangeLog \ | ||
67 | - config.h.win32 \ | ||
68 | - gtk-doc.make | ||
69 | + README | ||
70 | |||
71 | CONFIGURE_DEPENDENCIES = acglib.m4 | ||
72 | |||
73 | -ChangeLog: | ||
74 | - $(AM_V_GEN) if test -d "$(srcdir)/.git"; then \ | ||
75 | - (GIT_DIR=$(top_srcdir)/.git ./missing --run git log GLIB_2_20_0^^.. --stat) | fmt --split-only > $@.tmp \ | ||
76 | - && mv -f $@.tmp $@ \ | ||
77 | - || ($(RM) $@.tmp; \ | ||
78 | - echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \ | ||
79 | - (test -f $@ || echo git-log is required to generate this file >> $@)); \ | ||
80 | - else \ | ||
81 | - test -f $@ || \ | ||
82 | - (echo A git checkout and git-log is required to generate ChangeLog >&2 && \ | ||
83 | - echo A git checkout and git-log is required to generate this file >> $@); \ | ||
84 | - fi | ||
85 | - | ||
86 | -pkgconfigdir = $(libdir)/pkgconfig | ||
87 | -pkgconfig_DATA = glib-2.0.pc gobject-2.0.pc gmodule-2.0.pc gmodule-export-2.0.pc gmodule-no-export-2.0.pc gthread-2.0.pc gio-2.0.pc | ||
88 | - | ||
89 | -if OS_UNIX | ||
90 | -pkgconfig_DATA += gio-unix-2.0.pc | ||
91 | -endif | ||
92 | - | ||
93 | -if OS_WIN32 | ||
94 | -pkgconfig_DATA += gio-windows-2.0.pc | ||
95 | -endif | ||
96 | - | ||
97 | -$(pkgconfig_DATA): config.status | ||
98 | - | ||
99 | -# install mkinstalldirs for glib-gettextize's benefit | ||
100 | -gettextdir = $(datadir)/glib-2.0/gettext | ||
101 | -gettext_SCRIPTS = mkinstalldirs | ||
102 | - | ||
103 | # build documentation when doing distcheck | ||
104 | DISTCHECK_CONFIGURE_FLAGS = --enable-debug --enable-gtk-doc --enable-man --disable-maintainer-mode | ||
105 | |||
106 | @@ -107,7 +38,7 @@ distclean-local: lcov-clean | ||
107 | rm -f $(BUILT_EXTRA_DIST); \ | ||
108 | fi | ||
109 | |||
110 | -.PHONY: files release sanity snapshot ChangeLog | ||
111 | +.PHONY: files release sanity snapshot | ||
112 | |||
113 | files: | ||
114 | @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \ | ||
115 | diff --git a/glib/configure.ac b/glib/configure.ac | ||
116 | index 48868d2..ca862c5 100644 | ||
117 | --- a/glib/configure.ac | ||
118 | +++ b/glib/configure.ac | ||
119 | @@ -457,19 +457,6 @@ dnl | ||
120 | dnl gettext support | ||
121 | dnl | ||
122 | |||
123 | -ALL_LINGUAS="`grep -v '^#' "$srcdir/po/LINGUAS" | tr '\n' ' '`" | ||
124 | -AC_SUBST([CONFIG_STATUS_DEPENDENCIES],['$(top_srcdir)/po/LINGUAS']) | ||
125 | -GLIB_GNU_GETTEXT | ||
126 | - | ||
127 | -if test "$gt_cv_have_gettext" != "yes" ; then | ||
128 | - AC_MSG_ERROR([ | ||
129 | -*** You must have either have gettext support in your C library, or use the | ||
130 | -*** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html | ||
131 | -]) | ||
132 | -fi | ||
133 | - | ||
134 | -LIBS="$INTLLIBS $LIBS" | ||
135 | - | ||
136 | GETTEXT_PACKAGE=glib20 | ||
137 | AC_SUBST(GETTEXT_PACKAGE) | ||
138 | AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, ["$GETTEXT_PACKAGE"], | ||
139 | @@ -2555,35 +2542,6 @@ if test $cross_compiling = yes; then | ||
140 | fi | ||
141 | fi | ||
142 | |||
143 | -dnl ************************** | ||
144 | -dnl *** Checks for gtk-doc *** | ||
145 | -dnl ************************** | ||
146 | - | ||
147 | -GTK_DOC_CHECK([1.15], [--flavour no-tmpl]) | ||
148 | - | ||
149 | -AC_ARG_ENABLE(man, | ||
150 | - [AC_HELP_STRING([--enable-man], | ||
151 | - [regenerate man pages from Docbook [default=no]])],enable_man=yes, | ||
152 | - enable_man=no) | ||
153 | - | ||
154 | -if test "${enable_man}" != no; then | ||
155 | -dnl | ||
156 | -dnl Check for xsltproc | ||
157 | -dnl | ||
158 | -AC_PATH_PROG([XSLTPROC], [xsltproc]) | ||
159 | - if test -z "$XSLTPROC"; then | ||
160 | - enable_man=no | ||
161 | - fi | ||
162 | - | ||
163 | - dnl check for DocBook DTD and stylesheets in the local catalog. | ||
164 | - JH_CHECK_XML_CATALOG([-//OASIS//DTD DocBook XML V4.1.2//EN], | ||
165 | - [DocBook XML DTD V4.1.2],,enable_man=no) | ||
166 | - JH_CHECK_XML_CATALOG([http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl], | ||
167 | - [DocBook XSL Stylesheets],,enable_man=no) | ||
168 | -fi | ||
169 | - | ||
170 | -AM_CONDITIONAL(ENABLE_MAN, test x$enable_man != xno) | ||
171 | - | ||
172 | dnl | ||
173 | dnl Tracing | ||
174 | dnl | ||
175 | @@ -3484,87 +3442,22 @@ AC_SUBST(gio_INCLUDES) | ||
176 | |||
177 | |||
178 | AC_CONFIG_FILES([ | ||
179 | -glib-2.0.pc | ||
180 | -gmodule-2.0.pc | ||
181 | -gmodule-export-2.0.pc | ||
182 | -gmodule-no-export-2.0.pc | ||
183 | -gthread-2.0.pc | ||
184 | -gobject-2.0.pc | ||
185 | -gio-2.0.pc | ||
186 | -gio-unix-2.0.pc | ||
187 | -gio-windows-2.0.pc | ||
188 | -glib-zip | ||
189 | -glib-gettextize | ||
190 | Makefile | ||
191 | -build/Makefile | ||
192 | -build/win32/Makefile | ||
193 | -build/win32/dirent/Makefile | ||
194 | -build/win32/vs9/Makefile | ||
195 | -build/win32/vs10/Makefile | ||
196 | glib/Makefile | ||
197 | -glib/glib.stp | ||
198 | glib/libcharset/Makefile | ||
199 | glib/gnulib/Makefile | ||
200 | glib/pcre/Makefile | ||
201 | glib/update-pcre/Makefile | ||
202 | -glib/tests/Makefile | ||
203 | -gmodule/Makefile | ||
204 | -gmodule/gmoduleconf.h | ||
205 | -gobject/Makefile | ||
206 | -gobject/gobject.stp | ||
207 | -gobject/glib-mkenums | ||
208 | -gobject/tests/Makefile | ||
209 | -gthread/Makefile | ||
210 | -gio/Makefile | ||
211 | -gio/gdbus-2.0/codegen/Makefile | ||
212 | -gio/gdbus-2.0/codegen/config.py | ||
213 | -gio/xdgmime/Makefile | ||
214 | -gio/inotify/Makefile | ||
215 | -gio/fen/Makefile | ||
216 | -gio/fam/Makefile | ||
217 | -gio/win32/Makefile | ||
218 | -gio/tests/Makefile | ||
219 | -gio/tests/gdbus-object-manager-example/Makefile | ||
220 | -po/Makefile.in | ||
221 | -docs/Makefile | ||
222 | -docs/reference/Makefile | ||
223 | -docs/reference/glib/Makefile | ||
224 | -docs/reference/glib/version.xml | ||
225 | -docs/reference/gobject/Makefile | ||
226 | -docs/reference/gobject/version.xml | ||
227 | -docs/reference/gio/Makefile | ||
228 | -docs/reference/gio/gdbus-object-manager-example/Makefile | ||
229 | -docs/reference/gio/version.xml | ||
230 | -tests/Makefile | ||
231 | -tests/gobject/Makefile | ||
232 | -tests/refcount/Makefile | ||
233 | m4macros/Makefile | ||
234 | ]) | ||
235 | |||
236 | -AC_CONFIG_COMMANDS([chmod-scripts], | ||
237 | -[chmod 0755 glib-zip | ||
238 | -chmod 0755 glib-gettextize | ||
239 | -chmod 0755 gobject/glib-mkenums]) | ||
240 | - | ||
241 | # we want to invoke this macro solely so that the config.status script | ||
242 | # and automake generated makefiles know about these generated files. | ||
243 | # They are only needed to distcheck the package | ||
244 | if false; then | ||
245 | AC_CONFIG_FILES([ | ||
246 | - INSTALL | ||
247 | README | ||
248 | - config.h.win32 | ||
249 | - glib/glibconfig.h.win32 | ||
250 | - glib/makefile.msc | ||
251 | glib/glib.rc | ||
252 | - gmodule/makefile.msc | ||
253 | - gmodule/gmodule.rc | ||
254 | - gobject/makefile.msc | ||
255 | - gobject/gobject.rc | ||
256 | - gthread/makefile.msc | ||
257 | - gthread/gthread.rc | ||
258 | - gio/gio.rc | ||
259 | - tests/makefile.msc | ||
260 | ]) | ||
261 | fi | ||
262 | |||
263 | diff --git a/glib/glib/Makefile.am b/glib/glib/Makefile.am | ||
264 | index ac73a8c..6fb3a34 100644 | ||
265 | --- a/glib/glib/Makefile.am | ||
266 | +++ b/glib/glib/Makefile.am | ||
267 | @@ -35,9 +35,9 @@ else | ||
268 | MAYBE_PCRE = pcre | ||
269 | endif | ||
270 | |||
271 | -SUBDIRS = libcharset $(PRINTF_SUBDIR) $(MAYBE_PCRE) update-pcre . tests | ||
272 | +SUBDIRS = libcharset $(PRINTF_SUBDIR) $(MAYBE_PCRE) update-pcre . | ||
273 | |||
274 | -DIST_SUBDIRS = libcharset gnulib pcre update-pcre tests | ||
275 | +DIST_SUBDIRS = libcharset gnulib pcre update-pcre | ||
276 | |||
277 | AM_CPPFLAGS = \ | ||
278 | $(glib_INCLUDES) \ | ||
279 | @@ -53,7 +53,6 @@ glib.def: glib.symbols | ||
280 | if OS_LINUX | ||
281 | if HAVE_GNUC_VISIBILITY | ||
282 | TESTS_ENVIRONMENT = GLIB_DEBUG_FLAGS="$(GLIB_DEBUG_FLAGS)" | ||
283 | -TESTS = abicheck.sh | ||
284 | endif | ||
285 | endif | ||
286 | |||
287 | @@ -66,12 +65,10 @@ MIRRORING_TAB_SOURCE = \ | ||
288 | # The compilation of GRegex can be disabled, but the source files must | ||
289 | # be distributed. | ||
290 | EXTRA_DIST += \ | ||
291 | - makefile.msc.in \ | ||
292 | glib.rc.in \ | ||
293 | gen-iswide-table.py \ | ||
294 | gen-unicode-tables.pl \ | ||
295 | gen-script-table.pl \ | ||
296 | - glibconfig.h.win32.in \ | ||
297 | abicheck.sh \ | ||
298 | glib.symbols \ | ||
299 | gregex.c \ | ||
300 | @@ -86,8 +83,6 @@ CLEANFILES= libglib-gdb.py | ||
301 | |||
302 | # These may be in the builddir too | ||
303 | BUILT_EXTRA_DIST = \ | ||
304 | - makefile.msc \ | ||
305 | - glibconfig.h.win32 \ | ||
306 | glib.rc | ||
307 | |||
308 | lib_LTLIBRARIES = libglib-2.0.la | ||
309 | @@ -116,7 +111,6 @@ deprecated_sources = \ | ||
310 | |||
311 | libglib_2_0_la_SOURCES = \ | ||
312 | $(deprecated_sources) \ | ||
313 | - glib_probes.d \ | ||
314 | garray.c \ | ||
315 | gasyncqueue.c \ | ||
316 | gasyncqueueprivate.h \ | ||
317 | @@ -382,24 +376,6 @@ libglib_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \ | ||
318 | |||
319 | INSTALL_PROGS= | ||
320 | |||
321 | -if ENABLE_DTRACE | ||
322 | -glib_probes.h: glib_probes.d Makefile | ||
323 | - $(AM_V_GEN) $(DTRACE) -C -h -s $< -o $@.tmp | ||
324 | - @$(SED) -e "s,define STAP_HAS_SEMAPHORES 1,undef STAP_HAS_SEMAPHORES," < $@.tmp > $@ && rm -f $@.tmp | ||
325 | -glib_probes.o: glib_probes.d Makefile | ||
326 | - $(AM_V_GEN) $(DTRACE) -G -s $< -o $@ | ||
327 | -BUILT_SOURCES += glib_probes.h glib_probes.o | ||
328 | -CLEANFILES += glib_probes.h glib_probes.h.tmp | ||
329 | -libglib_2_0_la_LIBADD += glib_probes.o | ||
330 | -endif | ||
331 | - | ||
332 | -if ENABLE_SYSTEMTAP | ||
333 | -tapset_in_files = glib.stp.in | ||
334 | -tapsetdir = @ABS_TAPSET_DIR@ | ||
335 | -tapset_DATA = $(tapset_in_files:.stp.in=.stp) | ||
336 | -EXTRA_DIST += $(tapset_in_files) | ||
337 | -endif | ||
338 | - | ||
339 | gspawn-win32-helper-console.c: | ||
340 | echo '#define HELPER_CONSOLE' >$@ | ||
341 | echo '#include "gspawn-win32-helper.c"' >>$@ | ||
342 | @@ -461,7 +437,7 @@ endif | ||
343 | glib-2.0.lib: libglib-2.0.la glib.def | ||
344 | lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libglib-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:$(builddir)/glib.def -out:$@ | ||
345 | |||
346 | -dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/glib.vcproj ../build/win32/vs10/glib.vcxproj ../build/win32/vs10/glib.vcxproj.filters | ||
347 | +dist-hook: $(BUILT_EXTRA_DIST) | ||
348 | files='$(BUILT_EXTRA_DIST)'; \ | ||
349 | for f in $$files; do \ | ||
350 | if test -f $$f; then d=.; else d=$(srcdir); fi; \ | ||
351 | diff --git a/glib/glib/gnulib/Makefile.am b/glib/glib/gnulib/Makefile.am | ||
352 | index ae8283d..a8666ff 100644 | ||
353 | --- a/glib/glib/gnulib/Makefile.am | ||
354 | +++ b/glib/glib/gnulib/Makefile.am | ||
355 | @@ -17,6 +17,3 @@ libgnulib_la_SOURCES = \ | ||
356 | printf.c \ | ||
357 | printf.h \ | ||
358 | g-gnulib.h | ||
359 | - | ||
360 | - | ||
361 | -EXTRA_DIST += makefile.msc | ||