Ravenports generated: 12 Sep 2017 17:18
[ravenports.git] / bucket_73 / glib
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               glib
4 VERSION=                2.54.0
5 KEYWORDS=               devel
6 VARIANTS=               standard
7 SDESC[standard]=        Some useful routines of C programming
8 HOMEPAGE=               https://www.gtk.org/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            GNOME/glib/2.54
13 DISTFILE[1]=            glib-2.54.0.tar.xz:main
14 DIST_SUBDIR=            gnome2
15 DF_INDEX=               1
16 SPKGS[standard]=        single
17
18 OPTIONS_AVAILABLE=      none
19 OPTIONS_STANDARD=       none
20
21 BUILDRUN_DEPENDS=       pcre:static:standard
22                         pcre:shared:standard
23                         libffi:single:standard
24
25 USES=                   gettext-tools gettext-runtime gmake libtool
26                         perl:build pkgconfig python:build shebangfix zlib
27
28 FPC_EQUIVALENT=         devel/glib20
29 SHEBANG_FILES=          */*.pl
30
31 MUST_CONFIGURE=         gnu
32 CONFIGURE_ARGS=         --disable-gtk-doc
33                         --with-html-dir={{PREFIX}}/share/doc
34                         --disable-man
35                         --without-xml-catalog
36                         --enable-static=yes
37                         --with-pcre=system
38                         --disable-fam
39                         --disable-dtrace
40                         --disable-libmount
41                         --with-libiconv=gnu
42 CONFIGURE_ENV=          ac_cv_header_sys_inotify_h=
43
44 INSTALL_TARGET=         install-strip
45 INSTALL_REQ_TOOLCHAIN=  yes
46 PLIST_SUB=              LIBVERSION=0.5400.0
47                         RESETPREFIX={{PREFIX}}
48
49 post-patch:
50         @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g ; \
51                 s|/usr/share/locale/locale|${LOCALBASE}/share/locale/locale|g' \
52                         ${WRKSRC}/glib/gutils.c
53         @${REINPLACE_CMD} -e 's|inotify_support=yes|inotify_support=no| ; \
54                 s|-Werror|| ; \
55                 s|#define HAVE_SYS_INOTIFY_H 1||' ${WRKSRC}/configure
56
57 post-install:
58         @${MKDIR} ${STAGEDIR}${PREFIX}/share/GConf/gsettings
59         @${MKDIR} ${STAGEDIR}${PREFIX}/lib/gio/modules
60 .for m in glib gio gobject
61         ${INSTALL_MAN} ${${m}_MAN:S|^|${WRKSRC}/docs/reference/${m}/|} \
62                 ${STAGEDIR}${MANPREFIX}/man/man1
63 .endfor
64
65 [FILE:205:descriptions/desc.single]
66 GLib provides a simple, abstract, and highly portable set of C support
67 routines such as lists, trees, hashes, memory allocation, and much, much
68 more.  It is a foundation for writing portable applications.
69
70
71 [FILE:104:distinfo]
72 fe22998ff0394ec31e6e5511c379b74011bee61a4421bca7fcab223dfbe0fc6a      7822508 gnome2/glib-2.54.0.tar.xz
73
74
75 [FILE:10055:manifests/plist.single]
76 bin/
77  gapplication
78  gdbus
79  gdbus-codegen
80  gio
81  gio-querymodules
82  glib-compile-resources
83  glib-compile-schemas
84  glib-genmarshal
85  glib-gettextize
86  glib-mkenums
87  gobject-query
88  gresource
89  gsettings
90  gtester
91  gtester-report
92 share/bash-completion/completions/
93  gdbus
94  gsettings
95  gresource
96 include/gio-unix-2.0/gio/
97  gdesktopappinfo.h
98  gfiledescriptorbased.h
99  gunixconnection.h
100  gunixcredentialsmessage.h
101  gunixfdlist.h
102  gunixfdmessage.h
103  gunixinputstream.h
104  gunixmounts.h
105  gunixoutputstream.h
106  gunixsocketaddress.h
107 include/glib-2.0/gio/
108  gaction.h
109  gactiongroup.h
110  gactiongroupexporter.h
111  gactionmap.h
112  gappinfo.h
113  gapplication.h
114  gapplicationcommandline.h
115  gasyncinitable.h
116  gasyncresult.h
117  gbufferedinputstream.h
118  gbufferedoutputstream.h
119  gbytesicon.h
120  gcancellable.h
121  gcharsetconverter.h
122  gcontenttype.h
123  gconverter.h
124  gconverterinputstream.h
125  gconverteroutputstream.h
126  gcredentials.h
127  gdatagrambased.h
128  gdatainputstream.h
129  gdataoutputstream.h
130  gdbusactiongroup.h
131  gdbusaddress.h
132  gdbusauthobserver.h
133  gdbusconnection.h
134  gdbuserror.h
135  gdbusinterface.h
136  gdbusinterfaceskeleton.h
137  gdbusintrospection.h
138  gdbusmenumodel.h
139  gdbusmessage.h
140  gdbusmethodinvocation.h
141  gdbusnameowning.h
142  gdbusnamewatching.h
143  gdbusobject.h
144  gdbusobjectmanager.h
145  gdbusobjectmanagerclient.h
146  gdbusobjectmanagerserver.h
147  gdbusobjectproxy.h
148  gdbusobjectskeleton.h
149  gdbusproxy.h
150  gdbusserver.h
151  gdbusutils.h
152  gdrive.h
153  gdtlsclientconnection.h
154  gdtlsconnection.h
155  gdtlsserverconnection.h
156  gemblem.h
157  gemblemedicon.h
158  gfile.h
159  gfileattribute.h
160  gfileenumerator.h
161  gfileicon.h
162  gfileinfo.h
163  gfileinputstream.h
164  gfileiostream.h
165  gfilemonitor.h
166  gfilenamecompleter.h
167  gfileoutputstream.h
168  gfilterinputstream.h
169  gfilteroutputstream.h
170  gicon.h
171  ginetaddress.h
172  ginetaddressmask.h
173  ginetsocketaddress.h
174  ginitable.h
175  ginputstream.h
176  gio-autocleanups.h
177  gio.h
178  gioenums.h
179  gioenumtypes.h
180  gioerror.h
181  giomodule.h
182  gioscheduler.h
183  giostream.h
184  giotypes.h
185  glistmodel.h
186  gliststore.h
187  gloadableicon.h
188  gmemoryinputstream.h
189  gmemoryoutputstream.h
190  gmenu.h
191  gmenuexporter.h
192  gmenumodel.h
193  gmount.h
194  gmountoperation.h
195  gnativevolumemonitor.h
196  gnetworkaddress.h
197  gnetworking.h
198  gnetworkmonitor.h
199  gnetworkservice.h
200  gnotification.h
201  goutputstream.h
202  gpermission.h
203  gpollableinputstream.h
204  gpollableoutputstream.h
205  gpollableutils.h
206  gpropertyaction.h
207  gproxy.h
208  gproxyaddress.h
209  gproxyaddressenumerator.h
210  gproxyresolver.h
211  gremoteactiongroup.h
212  gresolver.h
213  gresource.h
214  gseekable.h
215  gsettings.h
216  gsettingsbackend.h
217  gsettingsschema.h
218  gsimpleaction.h
219  gsimpleactiongroup.h
220  gsimpleasyncresult.h
221  gsimpleiostream.h
222  gsimplepermission.h
223  gsimpleproxyresolver.h
224  gsocket.h
225  gsocketaddress.h
226  gsocketaddressenumerator.h
227  gsocketclient.h
228  gsocketconnectable.h
229  gsocketconnection.h
230  gsocketcontrolmessage.h
231  gsocketlistener.h
232  gsocketservice.h
233  gsrvtarget.h
234  gsubprocess.h
235  gsubprocesslauncher.h
236  gtask.h
237  gtcpconnection.h
238  gtcpwrapperconnection.h
239  gtestdbus.h
240  gthemedicon.h
241  gthreadedsocketservice.h
242  gtlsbackend.h
243  gtlscertificate.h
244  gtlsclientconnection.h
245  gtlsconnection.h
246  gtlsdatabase.h
247  gtlsfiledatabase.h
248  gtlsinteraction.h
249  gtlspassword.h
250  gtlsserverconnection.h
251  gvfs.h
252  gvolume.h
253  gvolumemonitor.h
254  gzlibcompressor.h
255  gzlibdecompressor.h
256 include/glib-2.0/
257  glib-object.h
258  glib-unix.h
259  glib.h
260 include/glib-2.0/glib/deprecated/
261  gallocator.h
262  gcache.h
263  gcompletion.h
264  gmain.h
265  grel.h
266  gthread.h
267 include/glib-2.0/glib/
268  galloca.h
269  garray.h
270  gasyncqueue.h
271  gatomic.h
272  gbacktrace.h
273  gbase64.h
274  gbitlock.h
275  gbookmarkfile.h
276  gbytes.h
277  gcharset.h
278  gchecksum.h
279  gconvert.h
280  gdataset.h
281  gdate.h
282  gdatetime.h
283  gdir.h
284  genviron.h
285  gerror.h
286  gfileutils.h
287  ggettext.h
288  ghash.h
289  ghmac.h
290  ghook.h
291  ghostutils.h
292  gi18n-lib.h
293  gi18n.h
294  giochannel.h
295  gkeyfile.h
296  glib-autocleanups.h
297  glist.h
298  gmacros.h
299  gmain.h
300  gmappedfile.h
301  gmarkup.h
302  gmem.h
303  gmessages.h
304  gnode.h
305  goption.h
306  gpattern.h
307  gpoll.h
308  gprimes.h
309  gprintf.h
310  gqsort.h
311  gquark.h
312  gqueue.h
313  grand.h
314  gregex.h
315  gscanner.h
316  gsequence.h
317  gshell.h
318  gslice.h
319  gslist.h
320  gspawn.h
321  gstdio.h
322  gstrfuncs.h
323  gstring.h
324  gstringchunk.h
325  gtestutils.h
326  gthread.h
327  gthreadpool.h
328  gtimer.h
329  gtimezone.h
330  gtrashstack.h
331  gtree.h
332  gtypes.h
333  gunicode.h
334  gurifuncs.h
335  gutils.h
336  guuid.h
337  gvariant.h
338  gvarianttype.h
339  gversion.h
340  gversionmacros.h
341  gwin32.h
342 include/glib-2.0/
343  gmodule.h
344 include/glib-2.0/gobject/
345  gbinding.h
346  gboxed.h
347  gclosure.h
348  genums.h
349  glib-types.h
350  gmarshal.h
351  gobject-autocleanups.h
352  gobject.h
353  gobjectnotifyqueue.c
354  gparam.h
355  gparamspecs.h
356  gsignal.h
357  gsourceclosure.h
358  gtype.h
359  gtypemodule.h
360  gtypeplugin.h
361  gvalue.h
362  gvaluearray.h
363  gvaluecollector.h
364  gvaluetypes.h
365 lib/glib-2.0/include/glibconfig.h
366 lib/
367  libgio-2.0.a
368  libgio-2.0.so
369  libgio-2.0.so.0
370  libgio-2.0.so.%%LIBVERSION%%
371  libglib-2.0.a
372  libglib-2.0.so
373  libglib-2.0.so.0
374  libglib-2.0.so.%%LIBVERSION%%
375  libgmodule-2.0.a
376  libgmodule-2.0.so
377  libgmodule-2.0.so.0
378  libgmodule-2.0.so.%%LIBVERSION%%
379  libgobject-2.0.a
380  libgobject-2.0.so
381  libgobject-2.0.so.0
382  libgobject-2.0.so.%%LIBVERSION%%
383  libgthread-2.0.a
384  libgthread-2.0.so
385  libgthread-2.0.so.0
386  libgthread-2.0.so.%%LIBVERSION%%
387 lib/pkgconfig/
388  gio-2.0.pc
389  gio-unix-2.0.pc
390  glib-2.0.pc
391  gmodule-2.0.pc
392  gmodule-export-2.0.pc
393  gmodule-no-export-2.0.pc
394  gobject-2.0.pc
395  gthread-2.0.pc
396 share/man/man1/
397  gapplication.1.gz
398  gdbus-codegen.1.gz
399  gdbus.1.gz
400  gio-querymodules.1.gz
401  glib-compile-resources.1.gz
402  glib-compile-schemas.1.gz
403  glib-genmarshal.1.gz
404  glib-gettextize.1.gz
405  glib-mkenums.1.gz
406  gobject-query.1.gz
407  gresource.1.gz
408  gsettings.1.gz
409  gtester-report.1.gz
410  gtester.1.gz
411 share/aclocal/
412  glib-2.0.m4
413  glib-gettext.m4
414  gsettings.m4
415 share/bash-completion/completions/
416  gapplication
417 share/gdb/auto-load%%RESETPREFIX%%/lib/
418  libglib-2.0.so.%%LIBVERSION%%-gdb.py
419  libgobject-2.0.so.%%LIBVERSION%%-gdb.py
420 share/gettext/its/
421  gschema.its
422  gschema.loc
423 @comment share/glib-2.0/codegen auto-generated
424 share/glib-2.0/gdb/
425  glib_gdb.py
426  gobject_gdb.py
427 share/glib-2.0/gettext/po/Makefile.in.in
428 share/glib-2.0/schemas/gschema.dtd
429 share/glib-2.0/valgrind/glib.supp
430 share/locale/af/LC_MESSAGES/glib20.mo
431 share/locale/am/LC_MESSAGES/glib20.mo
432 share/locale/an/LC_MESSAGES/glib20.mo
433 share/locale/ar/LC_MESSAGES/glib20.mo
434 share/locale/as/LC_MESSAGES/glib20.mo
435 share/locale/ast/LC_MESSAGES/glib20.mo
436 share/locale/az/LC_MESSAGES/glib20.mo
437 share/locale/be/LC_MESSAGES/glib20.mo
438 share/locale/be@latin/LC_MESSAGES/glib20.mo
439 share/locale/bg/LC_MESSAGES/glib20.mo
440 share/locale/bn/LC_MESSAGES/glib20.mo
441 share/locale/bn_IN/LC_MESSAGES/glib20.mo
442 share/locale/bs/LC_MESSAGES/glib20.mo
443 share/locale/ca/LC_MESSAGES/glib20.mo
444 share/locale/ca@valencia/LC_MESSAGES/glib20.mo
445 share/locale/cs/LC_MESSAGES/glib20.mo
446 share/locale/cy/LC_MESSAGES/glib20.mo
447 share/locale/da/LC_MESSAGES/glib20.mo
448 share/locale/de/LC_MESSAGES/glib20.mo
449 share/locale/dz/LC_MESSAGES/glib20.mo
450 share/locale/el/LC_MESSAGES/glib20.mo
451 share/locale/en@shaw/LC_MESSAGES/glib20.mo
452 share/locale/en_CA/LC_MESSAGES/glib20.mo
453 share/locale/en_GB/LC_MESSAGES/glib20.mo
454 share/locale/eo/LC_MESSAGES/glib20.mo
455 share/locale/es/LC_MESSAGES/glib20.mo
456 share/locale/et/LC_MESSAGES/glib20.mo
457 share/locale/eu/LC_MESSAGES/glib20.mo
458 share/locale/fa/LC_MESSAGES/glib20.mo
459 share/locale/fi/LC_MESSAGES/glib20.mo
460 share/locale/fr/LC_MESSAGES/glib20.mo
461 share/locale/fur/LC_MESSAGES/glib20.mo
462 share/locale/ga/LC_MESSAGES/glib20.mo
463 share/locale/gd/LC_MESSAGES/glib20.mo
464 share/locale/gl/LC_MESSAGES/glib20.mo
465 share/locale/gu/LC_MESSAGES/glib20.mo
466 share/locale/he/LC_MESSAGES/glib20.mo
467 share/locale/hi/LC_MESSAGES/glib20.mo
468 share/locale/hr/LC_MESSAGES/glib20.mo
469 share/locale/hu/LC_MESSAGES/glib20.mo
470 share/locale/hy/LC_MESSAGES/glib20.mo
471 share/locale/id/LC_MESSAGES/glib20.mo
472 share/locale/is/LC_MESSAGES/glib20.mo
473 share/locale/it/LC_MESSAGES/glib20.mo
474 share/locale/ja/LC_MESSAGES/glib20.mo
475 share/locale/ka/LC_MESSAGES/glib20.mo
476 share/locale/kk/LC_MESSAGES/glib20.mo
477 share/locale/kn/LC_MESSAGES/glib20.mo
478 share/locale/ko/LC_MESSAGES/glib20.mo
479 share/locale/ku/LC_MESSAGES/glib20.mo
480 share/locale/lt/LC_MESSAGES/glib20.mo
481 share/locale/lv/LC_MESSAGES/glib20.mo
482 share/locale/mai/LC_MESSAGES/glib20.mo
483 share/locale/mg/LC_MESSAGES/glib20.mo
484 share/locale/mk/LC_MESSAGES/glib20.mo
485 share/locale/ml/LC_MESSAGES/glib20.mo
486 share/locale/mn/LC_MESSAGES/glib20.mo
487 share/locale/mr/LC_MESSAGES/glib20.mo
488 share/locale/ms/LC_MESSAGES/glib20.mo
489 share/locale/nb/LC_MESSAGES/glib20.mo
490 share/locale/nds/LC_MESSAGES/glib20.mo
491 share/locale/ne/LC_MESSAGES/glib20.mo
492 share/locale/nl/LC_MESSAGES/glib20.mo
493 share/locale/nn/LC_MESSAGES/glib20.mo
494 share/locale/oc/LC_MESSAGES/glib20.mo
495 share/locale/or/LC_MESSAGES/glib20.mo
496 share/locale/pa/LC_MESSAGES/glib20.mo
497 share/locale/pl/LC_MESSAGES/glib20.mo
498 share/locale/ps/LC_MESSAGES/glib20.mo
499 share/locale/pt/LC_MESSAGES/glib20.mo
500 share/locale/pt_BR/LC_MESSAGES/glib20.mo
501 share/locale/ro/LC_MESSAGES/glib20.mo
502 share/locale/ru/LC_MESSAGES/glib20.mo
503 share/locale/rw/LC_MESSAGES/glib20.mo
504 share/locale/si/LC_MESSAGES/glib20.mo
505 share/locale/sk/LC_MESSAGES/glib20.mo
506 share/locale/sl/LC_MESSAGES/glib20.mo
507 share/locale/sq/LC_MESSAGES/glib20.mo
508 share/locale/sr/LC_MESSAGES/glib20.mo
509 share/locale/sr@ije/LC_MESSAGES/glib20.mo
510 share/locale/sr@latin/LC_MESSAGES/glib20.mo
511 share/locale/sv/LC_MESSAGES/glib20.mo
512 share/locale/ta/LC_MESSAGES/glib20.mo
513 share/locale/te/LC_MESSAGES/glib20.mo
514 share/locale/tg/LC_MESSAGES/glib20.mo
515 share/locale/th/LC_MESSAGES/glib20.mo
516 share/locale/tl/LC_MESSAGES/glib20.mo
517 share/locale/tr/LC_MESSAGES/glib20.mo
518 share/locale/tt/LC_MESSAGES/glib20.mo
519 share/locale/ug/LC_MESSAGES/glib20.mo
520 share/locale/uk/LC_MESSAGES/glib20.mo
521 share/locale/vi/LC_MESSAGES/glib20.mo
522 share/locale/wa/LC_MESSAGES/glib20.mo
523 share/locale/xh/LC_MESSAGES/glib20.mo
524 share/locale/yi/LC_MESSAGES/glib20.mo
525 share/locale/zh_CN/LC_MESSAGES/glib20.mo
526 share/locale/zh_HK/LC_MESSAGES/glib20.mo
527 share/locale/zh_TW/LC_MESSAGES/glib20.mo
528 @dir lib/gio/modules
529 @dir share/GConf/gsettings
530 @postexec %D/bin/glib-compile-schemas %D/share/glib-2.0/schemas 2>/dev/null || /usr/bin/true
531 @postunexec /bin/rm -f %D/share/glib-2.0/schemas/gschemas.compiled || /usr/bin/true
532 @postexec %D/bin/gio-querymodules %D/lib/gio/modules 2>/dev/null || /usr/bin/true
533
534
535 [FILE:1895:patches/patch-bug739424]
536 From 22656f16c29591207c667362e2a42fd348fe8494 Mon Sep 17 00:00:00 2001
537 From: Martin Pieuchot <mpi@openbsd.org>
538 Date: Fri, 28 Apr 2017 15:06:52 +0200
539 Subject: [PATCH] kqueue: fix use-after-free of ``kqueue_sub''.
540
541 Since ``kqueue_sub'' are not refcounted it is common to see a thread
542 freeing one of them while another thread is manipulating them.  This
543 leads to crashs reported in:
544         https://bugzilla.gnome.org/show_bug.cgi?id=739424
545
546 To prevent such crash, make sure the threads are holding ``hash_lock''
547 when manipulating such items.
548 ---
549  gio/kqueue/kqueue-helper.c | 6 ++++--
550  1 file changed, 4 insertions(+), 2 deletions(-)
551
552 diff --git a/gio/kqueue/kqueue-helper.c b/gio/kqueue/kqueue-helper.c
553 index d4e66cd4d..84b9ef164 100644
554 --- gio/kqueue/kqueue-helper.c
555 +++ gio/kqueue/kqueue-helper.c
556 @@ -291,10 +291,10 @@ process_kqueue_notifications (GIOChannel   *gioc,
557  
558    G_LOCK (hash_lock);
559    sub = (kqueue_sub *) g_hash_table_lookup (subs_hash_table, GINT_TO_POINTER (n.fd));
560 -  G_UNLOCK (hash_lock);
561  
562    if (sub == NULL)
563      {
564 +      G_UNLOCK (hash_lock);
565        KH_W ("Got a notification for a deleted or non-existing subscription %d",
566               n.fd);
567        return TRUE;
568 @@ -336,6 +336,7 @@ process_kqueue_notifications (GIOChannel   *gioc,
569          g_file_monitor_source_handle_event (source, mask, NULL, NULL, NULL, g_get_monotonic_time ());
570      }
571  
572 +  G_UNLOCK (hash_lock);
573    return TRUE;
574  }
575  
576 @@ -451,13 +452,14 @@ _kh_start_watching (kqueue_sub *sub)
577  
578    G_LOCK (hash_lock);
579    g_hash_table_insert (subs_hash_table, GINT_TO_POINTER (sub->fd), sub);
580 -  G_UNLOCK (hash_lock);
581  
582    _kqueue_thread_push_fd (sub->fd);
583    
584    /* Bump the kqueue thread. It will pick up a new sub entry to monitor */
585    if (!_ku_write (kqueue_socket_pair[0], "A", 1))
586      KH_W ("Failed to bump the kqueue thread (add fd, error %d)", errno);
587 +  G_UNLOCK (hash_lock);
588 +
589    return TRUE;
590  }
591  
592 -- 
593 2.12.2
594
595
596
597 [FILE:354:patches/patch-config.h.in]
598 --- config.h.in.orig    2017-09-11 00:18:50 UTC
599 +++ config.h.in
600 @@ -180,6 +180,9 @@
601  /* Define to 1 if you have the `getresuid' function. */
602  #undef HAVE_GETRESUID
603  
604 +/* Define to 1 if you have the `sysctlbyname' function. */
605 +#undef HAVE_SYSCTLBYNAME
606 +
607  /* Define if the GNU gettext() function is already present or preinstalled. */
608  #undef HAVE_GETTEXT
609  
610
611
612 [FILE:424:patches/patch-configure]
613 --- configure.orig      2017-09-11 00:18:49 UTC
614 +++ configure
615 @@ -27408,9 +27408,12 @@ case $host in
616    *android*)
617      G_THREAD_LIBS_FOR_GTHREAD="$G_THREAD_LIBS"
618      ;;
619 -  *-*-freebsd*|*-*-linux*)
620 +  *-*-linux*)
621      G_THREAD_LIBS_FOR_GTHREAD="`echo $G_THREAD_LIBS | sed s/-pthread/-lpthread/`"
622      ;;
623 +  *-*-freebsd*)
624 +    LDFLAGS="$LDFLAGS -pthread"
625 +    ;;    
626    *)
627      G_THREAD_LIBS_FOR_GTHREAD="$G_THREAD_LIBS"
628      ;;
629
630
631 [FILE:329:patches/patch-docs_reference_Makefile.in]
632 --- docs/reference/Makefile.in.orig     2017-09-11 00:18:51 UTC
633 +++ docs/reference/Makefile.in
634 @@ -437,7 +437,7 @@ target_alias = @target_alias@
635  top_build_prefix = @top_build_prefix@
636  top_builddir = @top_builddir@
637  top_srcdir = @top_srcdir@
638 -SUBDIRS = glib gobject gio
639 +SUBDIRS = #glib gobject gio
640  all: all-recursive
641  
642  .SUFFIXES:
643
644
645 [FILE:631:patches/patch-gio_glib-compile-schemas.c]
646 --- gio/glib-compile-schemas.c.orig     2017-08-07 14:58:31 UTC
647 +++ gio/glib-compile-schemas.c
648 @@ -1219,6 +1219,7 @@ parse_state_start_schema (ParseState  *s
649        return;
650      }
651  
652 +#if 0
653    if (path && (g_str_has_prefix (path, "/apps/") ||
654                 g_str_has_prefix (path, "/desktop/") ||
655                 g_str_has_prefix (path, "/system/")))
656 @@ -1231,6 +1232,7 @@ parse_state_start_schema (ParseState  *s
657        g_printerr ("%s\n", message);
658        g_free (message);
659      }
660 +#endif
661  
662    state->schema_state = schema_state_new (path, gettext_domain,
663                                            extends, extends_name, list_of);
664
665
666 [FILE:661:patches/patch-gio_gunixmount.c]
667 --- gio/gunixmount.c.orig       2014-09-21 13:00:08.875162804 +0200
668 +++ gio/gunixmount.c    2014-09-21 13:00:14.327163623 +0200
669 @@ -353,12 +353,17 @@
670                      gpointer             user_data)
671  {
672    GUnixMount *unix_mount = G_UNIX_MOUNT (mount);
673 +#if ! defined(__FreeBSD__) && ! defined(__DragonFly__)
674    char *argv[] = {"eject", NULL, NULL};
675  
676    if (unix_mount->mount_path != NULL)
677      argv[1] = unix_mount->mount_path;
678    else
679      argv[1] = unix_mount->device_path;
680 +#else
681 +   char *argv[] = {"cdcontrol", "-f", NULL, "eject", NULL};
682 +   argv[2] = unix_mount->device_path;
683 +#endif
684  
685    eject_unmount_do (mount, cancellable, callback, user_data, argv);
686  }
687
688
689 [FILE:590:patches/patch-gio_gunixvolume.c]
690 --- gio/gunixvolume.c.orig      2014-03-20 04:50:45.000000000 +0100
691 +++ gio/gunixvolume.c   2014-03-24 20:44:40.000000000 +0100
692 @@ -356,9 +356,14 @@
693                       gpointer             user_data)
694  {
695    GUnixVolume *unix_volume = G_UNIX_VOLUME (volume);
696 +#if defined(__FreeBSD__) || defined(__DragonFly__)
697 +  const gchar *argv[] = {"cdcontrol", "-f", NULL, "eject", NULL};
698 +  argv[2] = unix_volume->device_path;
699 +#else
700    const gchar *argv[] = { "eject", NULL, NULL };
701  
702    argv[1] = unix_volume->device_path;
703 +#endif
704  
705    eject_mount_do (volume, cancellable, callback, user_data, argv);
706  }
707
708
709 [FILE:279:patches/patch-gio_tests_include.c]
710 --- glib/tests/include.c.orig   2012-03-06 12:11:39.000000000 +0100
711 +++ glib/tests/include.c        2012-03-06 12:13:17.000000000 +0100
712 @@ -3,6 +3,7 @@
713  #define _POSIX_C_SOURCE 0
714  #undef _GNU_SOURCE
715  #undef _XOPEN_SOURCE
716 +#include <sys/types.h>
717  #include <pthread.h>
718  #include <glib.h>
719  
720
721
722 [FILE:328:patches/patch-gio_xdgmime_xdgmime.c]
723 --- gio/xdgmime/xdgmime.c.orig  Mon Nov  8 22:25:27 2004
724 +++ gio/xdgmime/xdgmime.c       Sat Nov 13 10:27:22 2004
725 @@ -204,7 +204,7 @@
726  
727    xdg_data_dirs = getenv ("XDG_DATA_DIRS");
728    if (xdg_data_dirs == NULL)
729 -    xdg_data_dirs = "/usr/local/share/:/usr/share/";
730 +    xdg_data_dirs = "/usr/local/share/";
731  
732    ptr = xdg_data_dirs;
733  
734
735
736 [FILE:814:patches/patch-gio_xdgmime_xdgmimecache.h]
737 --- gio/xdgmime/xdgmimecache.h.orig     2008-06-12 10:25:40.000000000 -0400
738 +++ gio/xdgmime/xdgmimecache.h  2008-06-14 00:49:59.000000000 -0400
739 @@ -46,6 +46,9 @@ typedef struct _XdgMimeCache XdgMimeCach
740  #define _xdg_mime_cache_get_icon                      XDG_RESERVED_ENTRY(cache_get_icon)
741  #define _xdg_mime_cache_get_generic_icon              XDG_RESERVED_ENTRY(cache_get_generic_icon)
742  #define _xdg_mime_cache_glob_dump                     XDG_RESERVED_ENTRY(cache_glob_dump)
743 +#define _xdg_mime_cache_is_valid_mime_type            XDG_RESERVED_ENTRY(cache_is_valid_mime_type)
744 +#define _xdg_mime_cache_mime_type_equal               XDG_RESERVED_ENTRY(cache_mime_type_equal)
745 +#define _xdg_mime_cache_media_type_equal              XDG_RESERVED_ENTRY(cache_media_type_equal)
746  #endif
747  
748  extern XdgMimeCache **_caches;
749
750
751 [FILE:257:patches/patch-glib_fix_hidden]
752 --- glib/gmem.c.orig    2011-02-10 00:31:42.000000000 +0100
753 +++ glib/gmem.c 2011-12-07 00:21:38.000000000 +0100
754 @@ -39,6 +39,7 @@
755  #include "gbacktrace.h"
756  #include "gtestutils.h"
757  #include "gthread.h"
758 +#include "gthreadprivate.h"
759  #include "glib_trace.h"
760  
761  
762
763
764 [FILE:582:patches/patch-glib_gconvert.c]
765 Work around our situation of having both libiconv in libc and libiconv from
766 ports installed.
767
768 --- glib/gconvert.c.orig        2014-02-08 10:15:50.000000000 +0100
769 +++ glib/gconvert.c     2014-02-08 10:16:52.000000000 +0100
770 @@ -62,7 +62,7 @@
771  #error GNU libiconv in use but included iconv.h not from libiconv
772  #endif
773  #if !defined(USE_LIBICONV_GNU) && defined (_LIBICONV_H) \
774 -     && !defined (__APPLE_CC__) && !defined (__LP_64__)
775 +  && !defined (LIBICONV_PLUG) && !defined (__APPLE_CC__) && !defined (__LP_64__)
776  #error GNU libiconv not in use but included iconv.h is from libiconv
777  #endif
778  
779
780
781 [FILE:762:patches/patch-glib_gutils.c]
782 --- glib/gutils.c.orig  Wed Mar 23 09:55:02 2005
783 +++ glib/gutils.c       Thu Apr  7 01:06:16 2005
784 @@ -1929,7 +1929,7 @@ g_get_system_data_dirs (void)
785        data_dirs = (gchar *) g_getenv ("XDG_DATA_DIRS");
786  
787        if (!data_dirs || !data_dirs[0])
788 -          data_dirs = "/usr/local/share/:/usr/share/";
789 +          data_dirs = "/usr/local/share/";
790  
791        data_dir_vector = g_strsplit (data_dirs, G_SEARCHPATH_SEPARATOR_S, 0);
792  #endif
793 @@ -1983,7 +1983,7 @@ g_get_system_config_dirs (void)
794        conf_dirs = (gchar *) g_getenv ("XDG_CONFIG_DIRS");
795  
796        if (!conf_dirs || !conf_dirs[0])
797 -          conf_dirs = "/etc/xdg";
798 +          conf_dirs = "/usr/local/etc/xdg:/etc/xdg";
799  
800        conf_dir_vector = g_strsplit (conf_dirs, G_SEARCHPATH_SEPARATOR_S, 0);
801  #endif
802
803
804 [FILE:321:patches/patch-glib_libcharset_Makefile.in]
805 --- glib/libcharset/Makefile.in.orig    2010-08-08 12:46:01.000000000 +0200
806 +++ glib/libcharset/Makefile.in 2010-08-08 12:46:01.000000000 +0200
807 @@ -566,7 +566,7 @@ install-dvi: install-dvi-am
808  
809  install-dvi-am:
810  
811 -install-exec-am: install-exec-local
812 +install-exec-am: # install-exec-local
813  
814  install-html: install-html-am
815  
816
817
818 [FILE:613:patches/patch-glib_tests_gdatetime.c]
819 --- glib/tests/gdatetime.c.orig 2014-03-09 10:29:13.925231275 +0000
820 +++ glib/tests/gdatetime.c      2014-03-09 10:30:18.235227107 +0000
821 @@ -1322,7 +1322,7 @@
822    gint i1, i2;
823  
824  #ifdef G_OS_UNIX
825 -  tz = g_time_zone_new ("America/Toronto");
826 +  tz = g_time_zone_new ("America/Toronto Eastern");
827  #elif defined G_OS_WIN32
828    tz = g_time_zone_new ("Eastern Standard Time");
829  #endif
830 @@ -1355,7 +1355,7 @@
831    gint i1, i2;
832  
833  #ifdef G_OS_UNIX
834 -  tz = g_time_zone_new ("America/Toronto");
835 +  tz = g_time_zone_new ("America/Toronto Eastern");
836  #elif defined G_OS_WIN32
837    tz = g_time_zone_new ("Eastern Standard Time");
838  #endif
839
840
841 [FILE:314:patches/patch-glib_tests_utils.c]
842 --- glib/tests/utils.c.orig     2012-09-24 02:19:54.000000000 +0000
843 +++ glib/tests/utils.c  2012-09-24 02:20:48.000000000 +0000
844 @@ -416,7 +416,7 @@
845  
846    xdg = (gchar *)g_getenv ("XDG_CONFIG_DIRS");
847    if (!xdg)
848 -    xdg = "/etc/xdg";
849 +    xdg = "/usr/local/etc/xdg:/etc/xdg";
850  
851    dirs = g_get_system_config_dirs ();
852  
853
854
855 [FILE:464:patches/patch-gmodule_gmodule-dl.c]
856 --- gmodule/gmodule-dl.c.orig   Sat Feb 17 08:28:07 2001
857 +++ gmodule/gmodule-dl.c        Fri Jan 18 09:48:45 2002
858 @@ -104,6 +104,7 @@
859  static gpointer
860  _g_module_self (void)
861  {
862 +#if ! defined(__FreeBSD__) && ! defined(__DragonFly__)
863    gpointer handle;
864    
865    /* to query symbols from the program itself, special link options
866 @@ -115,6 +116,9 @@
867      g_module_set_error (fetch_dlerror (TRUE));
868    
869    return handle;
870 +#else
871 +  return RTLD_DEFAULT;
872 +#endif
873  }
874  
875  static void
876
877
878 [FILE:460:files/special.mk]
879 glib_MAN=       gtester.1 gtester-report.1 glib-gettextize.1
880 gio_MAN=        gdbus.1 gsettings.1 gio-querymodules.1 \
881                 glib-compile-schemas.1 gapplication.1 \
882                 glib-compile-resources.1 gresource.1 gdbus-codegen.1
883 gobject_MAN=    glib-genmarshal.1 glib-mkenums.1 gobject-query.1
884
885 POST_PLIST_TARGET=      my-autolist
886
887 my-autolist:
888         (cd ${STAGEDIR}${PREFIX} && ${FIND} share/glib-2.0/codegen \
889         \( -type f -o -type l \) 2>/dev/null | ${SORT}) \
890         >> ${WRKDIR}/.manifest.single.mktmp
891
892
893 [FILE:426:dragonfly/patch-configure]
894 --- configure.orig      2014-11-19 18:13:44.754895000 +0100
895 +++ configure   2014-11-19 18:13:51.674905000 +0100
896 @@ -23261,7 +23261,7 @@
897  fi
898  done
899  
900 -for ac_func in getmntent_r setmntent endmntent hasmntopt getfsstat getvfsstat fallocate
901 +for ac_func in getmntent_r setmntent endmntent hasmntopt getfsstat fallocate
902  do :
903    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
904  ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
905