Ravenports generated: 08 Oct 2018 08:53
[ravenports.git] / bucket_73 / glib
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               glib
4 VERSION=                2.58.1
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.58
13 DISTFILE[1]=            glib-2.58.1.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 BUILD_DEPENDS=          xmlto:single:standard
22 BUILDRUN_DEPENDS=       pcre:static:standard
23                         pcre:shared:standard
24                         libffi:single:standard
25 RUN_DEPENDS=            zlib:static:standard
26
27 USES=                   gettext-tools gettext-runtime gmake libtool
28                         perl:build pkgconfig python:build shebangfix zlib
29                         meson iconv
30
31 LICENSE=                LGPL21+:single
32 LICENSE_TERMS=          single:{{WRKDIR}}/TERMS
33 LICENSE_FILE=           LGPL21+:{{WRKSRC}}/COPYING
34 LICENSE_AWK=            TERMS:"__G_LIB_H__"
35 LICENSE_SOURCE=         TERMS:{{WRKSRC}}/glib/glib.h
36 LICENSE_SCHEME=         solo
37
38 FPC_EQUIVALENT=         devel/glib20
39 MESON_ARGS=             -Diconv=gnu
40                         -Dselinux=false
41                         -Dxattr=false
42                         -Dlibmount=false
43                         -Ddtrace=false
44                         -Dman=true
45                         -Dgtk_doc=false
46                         -Dfam=false
47                         -Dinternal_pcre=false
48                         -Db_lundef=false
49 MESON_INSERT_RPATH=     gio/meson.build
50                         glib/meson.build
51                         gobject/meson.build
52                         gmodule/meson.build
53                         gthread/meson.build
54 SHEBANG_FILES=          */*.pl
55                         {{pyscripts}}
56
57 INSTALL_TARGET=         install-strip
58 INSTALL_REQ_TOOLCHAIN=  yes
59 PLIST_SUB=              LIBVERSION=0.5800.1
60                         RESETPREFIX={{PREFIX}}
61
62 SET_DEBUGGING_ON=       yes
63 OPTIMIZER_LEVEL=        0
64 VAR_OPSYS[darwin]=      MAKE_ENV=DYLD_FALLBACK_LIBRARY_PATH="$$DYLD_FALLBACK_LIBRARY_PATH:{{WRKSRC}}/_build/glib:{{WRKSRC}}/_build/gio:{{WRKSRC}}/_build/gobject:{{WRKSRC}}/_build/gmodule"
65
66 post-patch:
67         ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g ; \
68                 s|/usr/share/locale/locale|${LOCALBASE}/share/locale/locale|g' \
69                         ${WRKSRC}/glib/gutils.c
70         ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
71                 ${WRKSRC}/gio/gunixmounts.c \
72                 ${WRKSRC}/gio/xdgmime/xdgmime.c \
73                 ${WRKSRC}/glib/tests/utils.c
74         ${REINPLACE_CMD} -e "s|python3|python${PYTHON_VER}|g" \
75                 -e 's|/docbook.sourceforge.net/|/cdn.docbook.org/|' \
76                 -e "/'_XOPEN_SOURCE'/d" \
77                 -e "/-Werror=/d" \
78                 ${WRKSRC}/meson.build
79         ${REINPLACE_CMD} -e '/_XOPEN_SOURCE/d' \
80                 ${WRKSRC}/glib/tests/strfuncs.c
81         for F in ${pyscripts}; do \
82                 ${CHMOD} ${BINMODE} ${WRKSRC}/$$F; \
83         done
84
85 post-install:
86         @${MKDIR} ${STAGEDIR}${PREFIX}/share/GConf/gsettings
87         @${MKDIR} ${STAGEDIR}${PREFIX}/lib/gio/modules
88
89 [FILE:205:descriptions/desc.single]
90 GLib provides a simple, abstract, and highly portable set of C support
91 routines such as lists, trees, hashes, memory allocation, and much, much
92 more.  It is a foundation for writing portable applications.
93
94
95 [FILE:104:distinfo]
96 97d6a9d926b6aa3dfaadad3077cfb43eec74432ab455dff14250c769d526d7d6      4906444 gnome2/glib-2.58.1.tar.xz
97
98
99 [FILE:10125:manifests/plist.single]
100 @comment share/glib-2.0/codegen auto-generated
101 %%EXCLUDE-DARWIN%%lib/
102  libgio-2.0.so.%%LIBVERSION%%
103  libglib-2.0.so.%%LIBVERSION%%
104  libgmodule-2.0.so.%%LIBVERSION%%
105  libgobject-2.0.so.%%LIBVERSION%%
106  libgthread-2.0.so.%%LIBVERSION%%
107 %%ONLY-LINUX%%share/bash-completion/completions/
108  gapplication
109  gdbus
110  gio
111  gresource
112  gsettings
113 %%ONLY-SUNOS%%share/bash-completion/completions/
114  gapplication
115  gdbus
116  gio
117  gresource
118  gsettings
119 bin/
120  gapplication
121  gdbus
122  gdbus-codegen
123  gio
124  gio-launch-desktop
125  gio-querymodules
126  glib-compile-resources
127  glib-compile-schemas
128  glib-genmarshal
129  glib-gettextize
130  glib-mkenums
131  gobject-query
132  gresource
133  gsettings
134  gtester
135  gtester-report
136 include/gio-unix-2.0/gio/
137  gdesktopappinfo.h
138  gfiledescriptorbased.h
139  gunixconnection.h
140  gunixcredentialsmessage.h
141  gunixfdlist.h
142  gunixfdmessage.h
143  gunixinputstream.h
144  gunixmounts.h
145  gunixoutputstream.h
146  gunixsocketaddress.h
147 include/glib-2.0/
148  glib-object.h
149  glib-unix.h
150  glib.h
151  gmodule.h
152 include/glib-2.0/gio/
153  gaction.h
154  gactiongroup.h
155  gactiongroupexporter.h
156  gactionmap.h
157  gappinfo.h
158  gapplication.h
159  gapplicationcommandline.h
160  gasyncinitable.h
161  gasyncresult.h
162  gbufferedinputstream.h
163  gbufferedoutputstream.h
164  gbytesicon.h
165  gcancellable.h
166  gcharsetconverter.h
167  gcontenttype.h
168  gconverter.h
169  gconverterinputstream.h
170  gconverteroutputstream.h
171  gcredentials.h
172  gdatagrambased.h
173  gdatainputstream.h
174  gdataoutputstream.h
175  gdbusactiongroup.h
176  gdbusaddress.h
177  gdbusauthobserver.h
178  gdbusconnection.h
179  gdbuserror.h
180  gdbusinterface.h
181  gdbusinterfaceskeleton.h
182  gdbusintrospection.h
183  gdbusmenumodel.h
184  gdbusmessage.h
185  gdbusmethodinvocation.h
186  gdbusnameowning.h
187  gdbusnamewatching.h
188  gdbusobject.h
189  gdbusobjectmanager.h
190  gdbusobjectmanagerclient.h
191  gdbusobjectmanagerserver.h
192  gdbusobjectproxy.h
193  gdbusobjectskeleton.h
194  gdbusproxy.h
195  gdbusserver.h
196  gdbusutils.h
197  gdrive.h
198  gdtlsclientconnection.h
199  gdtlsconnection.h
200  gdtlsserverconnection.h
201  gemblem.h
202  gemblemedicon.h
203  gfile.h
204  gfileattribute.h
205  gfileenumerator.h
206  gfileicon.h
207  gfileinfo.h
208  gfileinputstream.h
209  gfileiostream.h
210  gfilemonitor.h
211  gfilenamecompleter.h
212  gfileoutputstream.h
213  gfilterinputstream.h
214  gfilteroutputstream.h
215  gicon.h
216  ginetaddress.h
217  ginetaddressmask.h
218  ginetsocketaddress.h
219  ginitable.h
220  ginputstream.h
221  gio-autocleanups.h
222  gio.h
223  gioenums.h
224  gioenumtypes.h
225  gioerror.h
226  giomodule.h
227  gioscheduler.h
228  giostream.h
229  giotypes.h
230  glistmodel.h
231  gliststore.h
232  gloadableicon.h
233  gmemoryinputstream.h
234  gmemoryoutputstream.h
235  gmenu.h
236  gmenuexporter.h
237  gmenumodel.h
238  gmount.h
239  gmountoperation.h
240  gnativevolumemonitor.h
241  gnetworkaddress.h
242  gnetworking.h
243  gnetworkmonitor.h
244  gnetworkservice.h
245  gnotification.h
246  goutputstream.h
247  gpermission.h
248  gpollableinputstream.h
249  gpollableoutputstream.h
250  gpollableutils.h
251  gpropertyaction.h
252  gproxy.h
253  gproxyaddress.h
254  gproxyaddressenumerator.h
255  gproxyresolver.h
256  gremoteactiongroup.h
257  gresolver.h
258  gresource.h
259  gseekable.h
260  gsettings.h
261  gsettingsbackend.h
262  gsettingsschema.h
263  gsimpleaction.h
264  gsimpleactiongroup.h
265  gsimpleasyncresult.h
266  gsimpleiostream.h
267  gsimplepermission.h
268  gsimpleproxyresolver.h
269  gsocket.h
270  gsocketaddress.h
271  gsocketaddressenumerator.h
272  gsocketclient.h
273  gsocketconnectable.h
274  gsocketconnection.h
275  gsocketcontrolmessage.h
276  gsocketlistener.h
277  gsocketservice.h
278  gsrvtarget.h
279  gsubprocess.h
280  gsubprocesslauncher.h
281  gtask.h
282  gtcpconnection.h
283  gtcpwrapperconnection.h
284  gtestdbus.h
285  gthemedicon.h
286  gthreadedsocketservice.h
287  gtlsbackend.h
288  gtlscertificate.h
289  gtlsclientconnection.h
290  gtlsconnection.h
291  gtlsdatabase.h
292  gtlsfiledatabase.h
293  gtlsinteraction.h
294  gtlspassword.h
295  gtlsserverconnection.h
296  gvfs.h
297  gvolume.h
298  gvolumemonitor.h
299  gzlibcompressor.h
300  gzlibdecompressor.h
301 include/glib-2.0/glib/
302  galloca.h
303  garray.h
304  gasyncqueue.h
305  gatomic.h
306  gbacktrace.h
307  gbase64.h
308  gbitlock.h
309  gbookmarkfile.h
310  gbytes.h
311  gcharset.h
312  gchecksum.h
313  gconvert.h
314  gdataset.h
315  gdate.h
316  gdatetime.h
317  gdir.h
318  genviron.h
319  gerror.h
320  gfileutils.h
321  ggettext.h
322  ghash.h
323  ghmac.h
324  ghook.h
325  ghostutils.h
326  gi18n-lib.h
327  gi18n.h
328  giochannel.h
329  gkeyfile.h
330  glib-autocleanups.h
331  glist.h
332  gmacros.h
333  gmain.h
334  gmappedfile.h
335  gmarkup.h
336  gmem.h
337  gmessages.h
338  gnode.h
339  goption.h
340  gpattern.h
341  gpoll.h
342  gprimes.h
343  gprintf.h
344  gqsort.h
345  gquark.h
346  gqueue.h
347  grand.h
348  grcbox.h
349  grefcount.h
350  grefstring.h
351  gregex.h
352  gscanner.h
353  gsequence.h
354  gshell.h
355  gslice.h
356  gslist.h
357  gspawn.h
358  gstdio.h
359  gstrfuncs.h
360  gstring.h
361  gstringchunk.h
362  gtestutils.h
363  gthread.h
364  gthreadpool.h
365  gtimer.h
366  gtimezone.h
367  gtrashstack.h
368  gtree.h
369  gtypes.h
370  gunicode.h
371  gurifuncs.h
372  gutils.h
373  guuid.h
374  gvariant.h
375  gvarianttype.h
376  gversion.h
377  gversionmacros.h
378  gwin32.h
379 include/glib-2.0/glib/deprecated/
380  gallocator.h
381  gcache.h
382  gcompletion.h
383  gmain.h
384  grel.h
385  gthread.h
386 include/glib-2.0/gobject/
387  gbinding.h
388  gboxed.h
389  gclosure.h
390  genums.h
391  glib-types.h
392  gmarshal.h
393  gobject-autocleanups.h
394  gobject.h
395  gobjectnotifyqueue.c
396  gparam.h
397  gparamspecs.h
398  gsignal.h
399  gsourceclosure.h
400  gtype.h
401  gtypemodule.h
402  gtypeplugin.h
403  gvalue.h
404  gvaluearray.h
405  gvaluecollector.h
406  gvaluetypes.h
407 lib/
408  libgio-2.0.so
409  libgio-2.0.so.0
410  libglib-2.0.so
411  libglib-2.0.so.0
412  libgmodule-2.0.so
413  libgmodule-2.0.so.0
414  libgobject-2.0.so
415  libgobject-2.0.so.0
416  libgthread-2.0.so
417  libgthread-2.0.so.0
418 lib/glib-2.0/include/glibconfig.h
419 lib/pkgconfig/
420  gio-2.0.pc
421  gio-unix-2.0.pc
422  glib-2.0.pc
423  gmodule-2.0.pc
424  gmodule-export-2.0.pc
425  gmodule-no-export-2.0.pc
426  gobject-2.0.pc
427  gthread-2.0.pc
428 share/aclocal/
429  glib-2.0.m4
430  glib-gettext.m4
431  gsettings.m4
432 share/gdb/auto-load%%RESETPREFIX%%/lib/
433  libglib-2.0.so.%%LIBVERSION%%-gdb.py
434  libgobject-2.0.so.%%LIBVERSION%%-gdb.py
435 share/gettext/its/
436  gschema.its
437  gschema.loc
438 share/glib-2.0/gdb/
439  glib_gdb.py
440  gobject_gdb.py
441 share/glib-2.0/gettext/po/Makefile.in.in
442 share/glib-2.0/schemas/gschema.dtd
443 share/glib-2.0/valgrind/glib.supp
444 share/locale/af/LC_MESSAGES/glib20.mo
445 share/locale/am/LC_MESSAGES/glib20.mo
446 share/locale/an/LC_MESSAGES/glib20.mo
447 share/locale/ar/LC_MESSAGES/glib20.mo
448 share/locale/as/LC_MESSAGES/glib20.mo
449 share/locale/ast/LC_MESSAGES/glib20.mo
450 share/locale/az/LC_MESSAGES/glib20.mo
451 share/locale/be/LC_MESSAGES/glib20.mo
452 share/locale/be@latin/LC_MESSAGES/glib20.mo
453 share/locale/bg/LC_MESSAGES/glib20.mo
454 share/locale/bn/LC_MESSAGES/glib20.mo
455 share/locale/bn_IN/LC_MESSAGES/glib20.mo
456 share/locale/bs/LC_MESSAGES/glib20.mo
457 share/locale/ca/LC_MESSAGES/glib20.mo
458 share/locale/ca@valencia/LC_MESSAGES/glib20.mo
459 share/locale/cs/LC_MESSAGES/glib20.mo
460 share/locale/cy/LC_MESSAGES/glib20.mo
461 share/locale/da/LC_MESSAGES/glib20.mo
462 share/locale/de/LC_MESSAGES/glib20.mo
463 share/locale/dz/LC_MESSAGES/glib20.mo
464 share/locale/el/LC_MESSAGES/glib20.mo
465 share/locale/en@shaw/LC_MESSAGES/glib20.mo
466 share/locale/en_CA/LC_MESSAGES/glib20.mo
467 share/locale/en_GB/LC_MESSAGES/glib20.mo
468 share/locale/eo/LC_MESSAGES/glib20.mo
469 share/locale/es/LC_MESSAGES/glib20.mo
470 share/locale/et/LC_MESSAGES/glib20.mo
471 share/locale/eu/LC_MESSAGES/glib20.mo
472 share/locale/fa/LC_MESSAGES/glib20.mo
473 share/locale/fi/LC_MESSAGES/glib20.mo
474 share/locale/fr/LC_MESSAGES/glib20.mo
475 share/locale/fur/LC_MESSAGES/glib20.mo
476 share/locale/ga/LC_MESSAGES/glib20.mo
477 share/locale/gd/LC_MESSAGES/glib20.mo
478 share/locale/gl/LC_MESSAGES/glib20.mo
479 share/locale/gu/LC_MESSAGES/glib20.mo
480 share/locale/he/LC_MESSAGES/glib20.mo
481 share/locale/hi/LC_MESSAGES/glib20.mo
482 share/locale/hr/LC_MESSAGES/glib20.mo
483 share/locale/hu/LC_MESSAGES/glib20.mo
484 share/locale/hy/LC_MESSAGES/glib20.mo
485 share/locale/id/LC_MESSAGES/glib20.mo
486 share/locale/is/LC_MESSAGES/glib20.mo
487 share/locale/it/LC_MESSAGES/glib20.mo
488 share/locale/ja/LC_MESSAGES/glib20.mo
489 share/locale/ka/LC_MESSAGES/glib20.mo
490 share/locale/kk/LC_MESSAGES/glib20.mo
491 share/locale/kn/LC_MESSAGES/glib20.mo
492 share/locale/ko/LC_MESSAGES/glib20.mo
493 share/locale/ku/LC_MESSAGES/glib20.mo
494 share/locale/lt/LC_MESSAGES/glib20.mo
495 share/locale/lv/LC_MESSAGES/glib20.mo
496 share/locale/mai/LC_MESSAGES/glib20.mo
497 share/locale/mg/LC_MESSAGES/glib20.mo
498 share/locale/mk/LC_MESSAGES/glib20.mo
499 share/locale/ml/LC_MESSAGES/glib20.mo
500 share/locale/mn/LC_MESSAGES/glib20.mo
501 share/locale/mr/LC_MESSAGES/glib20.mo
502 share/locale/ms/LC_MESSAGES/glib20.mo
503 share/locale/nb/LC_MESSAGES/glib20.mo
504 share/locale/nds/LC_MESSAGES/glib20.mo
505 share/locale/ne/LC_MESSAGES/glib20.mo
506 share/locale/nl/LC_MESSAGES/glib20.mo
507 share/locale/nn/LC_MESSAGES/glib20.mo
508 share/locale/oc/LC_MESSAGES/glib20.mo
509 share/locale/or/LC_MESSAGES/glib20.mo
510 share/locale/pa/LC_MESSAGES/glib20.mo
511 share/locale/pl/LC_MESSAGES/glib20.mo
512 share/locale/ps/LC_MESSAGES/glib20.mo
513 share/locale/pt/LC_MESSAGES/glib20.mo
514 share/locale/pt_BR/LC_MESSAGES/glib20.mo
515 share/locale/ro/LC_MESSAGES/glib20.mo
516 share/locale/ru/LC_MESSAGES/glib20.mo
517 share/locale/rw/LC_MESSAGES/glib20.mo
518 share/locale/si/LC_MESSAGES/glib20.mo
519 share/locale/sk/LC_MESSAGES/glib20.mo
520 share/locale/sl/LC_MESSAGES/glib20.mo
521 share/locale/sq/LC_MESSAGES/glib20.mo
522 share/locale/sr/LC_MESSAGES/glib20.mo
523 share/locale/sr@ije/LC_MESSAGES/glib20.mo
524 share/locale/sr@latin/LC_MESSAGES/glib20.mo
525 share/locale/sv/LC_MESSAGES/glib20.mo
526 share/locale/ta/LC_MESSAGES/glib20.mo
527 share/locale/te/LC_MESSAGES/glib20.mo
528 share/locale/tg/LC_MESSAGES/glib20.mo
529 share/locale/th/LC_MESSAGES/glib20.mo
530 share/locale/tl/LC_MESSAGES/glib20.mo
531 share/locale/tr/LC_MESSAGES/glib20.mo
532 share/locale/tt/LC_MESSAGES/glib20.mo
533 share/locale/ug/LC_MESSAGES/glib20.mo
534 share/locale/uk/LC_MESSAGES/glib20.mo
535 share/locale/vi/LC_MESSAGES/glib20.mo
536 share/locale/wa/LC_MESSAGES/glib20.mo
537 share/locale/xh/LC_MESSAGES/glib20.mo
538 share/locale/yi/LC_MESSAGES/glib20.mo
539 share/locale/zh_CN/LC_MESSAGES/glib20.mo
540 share/locale/zh_HK/LC_MESSAGES/glib20.mo
541 share/locale/zh_TW/LC_MESSAGES/glib20.mo
542 share/man/man1/
543  gapplication.1.gz
544  gdbus-codegen.1.gz
545  gdbus.1.gz
546  gio-querymodules.1.gz
547  gio.1.gz
548  glib-compile-resources.1.gz
549  glib-compile-schemas.1.gz
550  glib-genmarshal.1.gz
551  glib-gettextize.1.gz
552  glib-mkenums.1.gz
553  gobject-query.1.gz
554  gresource.1.gz
555  gsettings.1.gz
556  gtester-report.1.gz
557  gtester.1.gz
558 @dir lib/gio/modules
559 @dir share/GConf/gsettings
560 @postexec %D/bin/gio-querymodules %D/lib/gio/modules 2>/dev/null || /usr/bin/true
561 @postexec %D/bin/glib-compile-schemas %D/share/glib-2.0/schemas 2>/dev/null || /usr/bin/true
562 @postunexec /bin/rm -f %D/share/glib-2.0/schemas/gschemas.compiled || /usr/bin/true
563
564
565 [FILE:631:patches/patch-gio_glib-compile-schemas.c]
566 --- gio/glib-compile-schemas.c.orig     2018-08-30 17:12:08 UTC
567 +++ gio/glib-compile-schemas.c
568 @@ -1233,6 +1233,7 @@ parse_state_start_schema (ParseState  *s
569        return;
570      }
571  
572 +#if 0
573    if (path && (g_str_has_prefix (path, "/apps/") ||
574                 g_str_has_prefix (path, "/desktop/") ||
575                 g_str_has_prefix (path, "/system/")))
576 @@ -1245,6 +1246,7 @@ parse_state_start_schema (ParseState  *s
577        g_printerr ("%s\n", message);
578        g_free (message);
579      }
580 +#endif
581  
582    state->schema_state = schema_state_new (path, gettext_domain,
583                                            extends, extends_name, list_of);
584
585
586 [FILE:232:patches/patch-gio_glocalfileinfo.c]
587 --- gio/glocalfileinfo.c.orig   2018-09-21 14:23:52 UTC
588 +++ gio/glocalfileinfo.c
589 @@ -22,6 +22,10 @@
590  
591  #include "config.h"
592  
593 +#ifdef __sun__
594 +#  define      _POSIX_PTHREAD_SEMANTICS 1
595 +#endif
596 +
597  #include <glib.h>
598  
599  #ifdef HAVE_SYS_TIME_H
600
601
602 [FILE:285:patches/patch-gio_gsocket.c]
603 --- gio/gsocket.c.orig  2018-08-30 17:12:08 UTC
604 +++ gio/gsocket.c
605 @@ -56,6 +56,10 @@
606  #include <sys/uio.h>
607  #endif
608  
609 +#ifdef __sun__
610 +#define _XPG4_2        1
611 +#endif
612 +
613  #define GOBJECT_COMPILATION
614  #include "gobject/gtype-private.h" /* For _PRELUDE type define */
615  #undef GOBJECT_COMPILATION
616
617
618 [FILE:654:patches/patch-gio_gunixmount.c]
619 --- gio/gunixmount.c.orig       2018-08-30 17:12:08 UTC
620 +++ gio/gunixmount.c
621 @@ -356,12 +356,17 @@ g_unix_mount_eject (GMount             *
622                      gpointer             user_data)
623  {
624    GUnixMount *unix_mount = G_UNIX_MOUNT (mount);
625 +#if ! defined(__FreeBSD__) && ! defined(__DragonFly__)
626    char *argv[] = {"eject", NULL, NULL};
627  
628    if (unix_mount->mount_path != NULL)
629      argv[1] = unix_mount->mount_path;
630    else
631      argv[1] = unix_mount->device_path;
632 +#else
633 +   char *argv[] = {"cdcontrol", "-f", NULL, "eject", NULL};
634 +   argv[2] = unix_mount->device_path;
635 +#endif
636  
637    eject_unmount_do (mount, cancellable, callback, user_data, argv);
638  }
639
640
641 [FILE:256:patches/patch-gio_gunixmounts.c]
642 --- gio/gunixmounts.c.orig      2018-09-21 14:23:52 UTC
643 +++ gio/gunixmounts.c
644 @@ -63,6 +63,10 @@
645  #define O_BINARY 0
646  #endif
647  
648 +#ifdef __sun__
649 +#define mnt_opts       mnt_mntopts
650 +#endif
651 +
652  #include "gunixmounts.h"
653  #include "glocalfileprivate.h"
654  #include "gfile.h"
655
656
657 [FILE:571:patches/patch-gio_gunixvolume.c]
658 --- gio/gunixvolume.c.orig      2018-08-30 17:12:08 UTC
659 +++ gio/gunixvolume.c
660 @@ -365,9 +365,14 @@ g_unix_volume_eject (GVolume
661                       gpointer             user_data)
662  {
663    GUnixVolume *unix_volume = G_UNIX_VOLUME (volume);
664 +#if defined(__FreeBSD__) || defined(__DragonFly__)
665 +  const gchar *argv[] = {"cdcontrol", "-f", NULL, "eject", NULL};
666 +  argv[2] = unix_volume->device_path;
667 +#else
668    const gchar *argv[] = { "eject", NULL, NULL };
669  
670    argv[1] = unix_volume->device_path;
671 +#endif
672  
673    eject_mount_do (volume, cancellable, callback, user_data, argv);
674  }
675
676
677 [FILE:237:patches/patch-gio_tests_include.c]
678 --- glib/tests/include.c.orig   2018-08-30 17:12:09 UTC
679 +++ glib/tests/include.c
680 @@ -3,6 +3,7 @@
681  #define _POSIX_C_SOURCE 199309L
682  #undef _GNU_SOURCE
683  #undef _XOPEN_SOURCE
684 +#include <sys/types.h>
685  #include <pthread.h>
686  #include <glib.h>
687  
688
689
690 [FILE:343:patches/patch-gio_xdgmime_xdgmime.c]
691 --- gio/xdgmime/xdgmime.c.orig  2018-08-30 17:12:08 UTC
692 +++ gio/xdgmime/xdgmime.c
693 @@ -255,7 +255,7 @@ xdg_run_command_on_dirs (XdgDirectoryFun
694  
695    xdg_data_dirs = getenv ("XDG_DATA_DIRS");
696    if (xdg_data_dirs == NULL)
697 -    xdg_data_dirs = "/usr/local/share/:/usr/share/";
698 +    xdg_data_dirs = "/usr/local/share/";
699  
700    ptr = xdg_data_dirs;
701  
702
703
704 [FILE:766:patches/patch-gio_xdgmime_xdgmimecache.h]
705 --- gio/xdgmime/xdgmimecache.h.orig     2018-08-30 17:12:08 UTC
706 +++ gio/xdgmime/xdgmimecache.h
707 @@ -44,6 +44,9 @@ typedef struct _XdgMimeCache XdgMimeCach
708  #define _xdg_mime_cache_get_icon                      XDG_RESERVED_ENTRY(cache_get_icon)
709  #define _xdg_mime_cache_get_generic_icon              XDG_RESERVED_ENTRY(cache_get_generic_icon)
710  #define _xdg_mime_cache_glob_dump                     XDG_RESERVED_ENTRY(cache_glob_dump)
711 +#define _xdg_mime_cache_is_valid_mime_type            XDG_RESERVED_ENTRY(cache_is_valid_mime_type)
712 +#define _xdg_mime_cache_mime_type_equal               XDG_RESERVED_ENTRY(cache_mime_type_equal)
713 +#define _xdg_mime_cache_media_type_equal              XDG_RESERVED_ENTRY(cache_media_type_equal)
714  #endif
715  
716  extern XdgMimeCache **_caches;
717
718
719 [FILE:228:patches/patch-glib_fix_hidden]
720 --- glib/gmem.c.orig    2018-08-30 17:12:08 UTC
721 +++ glib/gmem.c
722 @@ -38,6 +38,7 @@
723  #include "gbacktrace.h"
724  #include "gtestutils.h"
725  #include "gthread.h"
726 +#include "gthreadprivate.h"
727  #include "glib_trace.h"
728  
729  /* notes on macros:
730
731
732 [FILE:534:patches/patch-glib_gconvert.c]
733 Work around our situation of having both libiconv in libc and libiconv from
734 ports installed.
735
736 --- glib/gconvert.c.orig        2018-08-30 17:12:08 UTC
737 +++ glib/gconvert.c
738 @@ -55,7 +55,7 @@
739  #error GNU libiconv in use but included iconv.h not from libiconv
740  #endif
741  #if !defined(USE_LIBICONV_GNU) && defined (_LIBICONV_H) \
742 -     && !defined (__APPLE_CC__) && !defined (__LP_64__)
743 +  && !defined (LIBICONV_PLUG) && !defined (__APPLE_CC__) && !defined (__LP_64__)
744  #error GNU libiconv not in use but included iconv.h is from libiconv
745  #endif
746  
747
748
749 [FILE:824:patches/patch-glib_gutils.c]
750 --- glib/gutils.c.orig  2018-09-21 14:23:53 UTC
751 +++ glib/gutils.c
752 @@ -28,6 +28,10 @@
753  
754  #include "config.h"
755  
756 +#ifdef __sun__
757 +#  define      _POSIX_PTHREAD_SEMANTICS 1
758 +#  undef       HAVE_SYS_AUXV_H
759 +#endif
760  #include "gutils.h"
761  
762  #include <stdarg.h>
763 @@ -2043,7 +2047,7 @@ g_get_system_data_dirs (void)
764  
765  #ifndef G_OS_WIN32
766        if (!data_dirs || !data_dirs[0])
767 -          data_dirs = "/usr/local/share/:/usr/share/";
768 +          data_dirs = "/usr/local/share/";
769  
770        data_dir_vector = g_strsplit (data_dirs, G_SEARCHPATH_SEPARATOR_S, 0);
771  #else
772 @@ -2119,7 +2123,7 @@ g_get_system_config_dirs (void)
773         }
774  #else
775        if (!conf_dirs || !conf_dirs[0])
776 -          conf_dirs = "/etc/xdg";
777 +          conf_dirs = "/usr/local/etc/xdg:/etc/xdg";
778  
779        conf_dir_vector = g_strsplit (conf_dirs, G_SEARCHPATH_SEPARATOR_S, 0);
780  #endif
781
782
783 [FILE:615:patches/patch-glib_tests_gdatetime.c]
784 --- glib/tests/gdatetime.c.orig 2018-08-30 17:12:09 UTC
785 +++ glib/tests/gdatetime.c
786 @@ -2047,7 +2047,7 @@ test_find_interval (void)
787    gint i1, i2;
788  
789  #ifdef G_OS_UNIX
790 -  tz = g_time_zone_new ("America/Toronto");
791 +  tz = g_time_zone_new ("America/Toronto Eastern");
792  #elif defined G_OS_WIN32
793    tz = g_time_zone_new ("Eastern Standard Time");
794  #endif
795 @@ -2080,7 +2080,7 @@ test_adjust_time (void)
796    gint i1, i2;
797  
798  #ifdef G_OS_UNIX
799 -  tz = g_time_zone_new ("America/Toronto");
800 +  tz = g_time_zone_new ("America/Toronto Eastern");
801  #elif defined G_OS_WIN32
802    tz = g_time_zone_new ("Eastern Standard Time");
803  #endif
804
805
806 [FILE:287:patches/patch-glib_tests_utils.c]
807 --- glib/tests/utils.c.orig     2018-08-30 17:12:09 UTC
808 +++ glib/tests/utils.c
809 @@ -441,7 +441,7 @@ test_xdg_dirs (void)
810  
811    xdg = (gchar *)g_getenv ("XDG_CONFIG_DIRS");
812    if (!xdg)
813 -    xdg = "/etc/xdg";
814 +    xdg = "/usr/local/etc/xdg:/etc/xdg";
815  
816    dirs = g_get_system_config_dirs ();
817  
818
819
820 [FILE:500:patches/patch-gmodule_gmodule-dl.c]
821 --- gmodule/gmodule-dl.c.orig   2018-08-30 17:12:09 UTC
822 +++ gmodule/gmodule-dl.c
823 @@ -106,6 +106,7 @@ _g_module_open (const gchar *file_name,
824  static gpointer
825  _g_module_self (void)
826  {
827 +#if ! defined(__FreeBSD__) && ! defined(__DragonFly__)
828    gpointer handle;
829    
830    /* to query symbols from the program itself, special link options
831 @@ -128,6 +129,9 @@ _g_module_self (void)
832      g_module_set_error (fetch_dlerror (TRUE));
833    
834    return handle;
835 +#else
836 +  return RTLD_DEFAULT;
837 +#endif
838  }
839  
840  static void
841
842
843 [FILE:638:patches/patch-m4macros_attributes.m4]
844 --- m4macros/attributes.m4.orig 2018-08-30 17:12:09 UTC
845 +++ m4macros/attributes.m4
846 @@ -86,7 +86,7 @@ AC_DEFUN([CC_NOUNDEFINED], [
847       dnl FreeBSD (et al.) does not complete linking for shared objects when pthreads
848       dnl are requested, as different implementations are present; to avoid problems
849       dnl use -Wl,-z,defs only for those platform not behaving this way.
850 -     *-freebsd* | *-openbsd*) ;;
851 +     *-freebsd* | *-openbsd* | *-dragonfly*) ;;
852       *)
853          dnl First of all check for the --no-undefined variant of GNU ld. This allows
854          dnl for a much more readable commandline, so that people can understand what
855
856
857 [FILE:648:files/special.mk]
858 glib_MAN=       gtester.1 gtester-report.1 glib-gettextize.1
859 gio_MAN=        gdbus.1 gsettings.1 gio-querymodules.1 \
860                 glib-compile-schemas.1 gapplication.1 \
861                 glib-compile-resources.1 gresource.1 gdbus-codegen.1
862 gobject_MAN=    glib-genmarshal.1 glib-mkenums.1 gobject-query.1
863 pyscripts=      gio/tests/gengiotypefuncs.py \
864                 gio/gio-querymodules-wrapper.py \
865                 glib/update-gtranslit.py \
866                 glib/gtester-report \
867                 tests/gen-casefold-txt.py \
868                 tests/gen-casemap-txt.py
869
870 POST_PLIST_TARGET=      my-autolist
871
872 my-autolist:
873         (cd ${STAGEDIR}${PREFIX} && ${FIND} share/glib-2.0/codegen \
874         \( -type f -o -type l \) 2>/dev/null | ${SORT}) \
875         >> ${WRKDIR}/.manifest.single.mktmp
876
877
878 [FILE:579:dragonfly/patch-meson.build]
879 --- meson.build.orig    2018-09-21 14:23:53 UTC
880 +++ meson.build
881 @@ -1744,14 +1744,10 @@ endif
882  # proxy-libintl subproject.
883  # FIXME: glib-gettext.m4 has much more checks to detect broken/uncompatible
884  # implementations. This could be extended if issues are found in some platforms.
885 -if cc.has_function('ngettext')
886 -  libintl = []
887 -else
888    libintl = cc.find_library('intl', required : false)
889    if not libintl.found()
890      libintl = subproject('proxy-libintl').get_variable('intl_dep')
891    endif
892 -endif
893  
894  # We require gettext to always be present
895  glib_conf.set('HAVE_DCGETTEXT', 1)
896
897
898 [FILE:579:freebsd/patch-meson.build]
899 --- meson.build.orig    2018-09-21 14:23:53 UTC
900 +++ meson.build
901 @@ -1744,14 +1744,10 @@ endif
902  # proxy-libintl subproject.
903  # FIXME: glib-gettext.m4 has much more checks to detect broken/uncompatible
904  # implementations. This could be extended if issues are found in some platforms.
905 -if cc.has_function('ngettext')
906 -  libintl = []
907 -else
908    libintl = cc.find_library('intl', required : false)
909    if not libintl.found()
910      libintl = subproject('proxy-libintl').get_variable('intl_dep')
911    endif
912 -endif
913  
914  # We require gettext to always be present
915  glib_conf.set('HAVE_DCGETTEXT', 1)
916
917
918 [FILE:1640:sunos/patch-gio_tests_meson.build]
919 --- gio/tests/meson.build.orig  2018-09-21 14:23:52 UTC
920 +++ gio/tests/meson.build
921 @@ -14,6 +14,8 @@ giotypefuncs_inc = custom_target(
922    input : gio_headers + [gioenumtypes_h] + gobject_install_headers,
923    command: [gengiotypefuncs_prog, '@OUTPUT@', '@INPUT@'])
924  
925 +sun_socket = cc.find_library('socket')
926 +
927  #  Test programs buildable on all platforms
928  # FIXME: We are using list of dictionnaries until we can depend on Meson 0.48.0
929  # that supports '+=' operator on dictionnaries.
930 @@ -56,7 +58,7 @@ gio_tests = [{
931    'simple-async-result' : {},
932    'simple-proxy' : {},
933    'sleepy-stream' : {},
934 -  'socket' : {},
935 +  'socket' : { 'dependencies' : [sun_socket] },
936    'socket-listener' : {},
937    'socket-service' : {},
938    'srvtarget' : {},
939 @@ -121,11 +123,11 @@ if host_machine.system() != 'windows'
940    gio_tests += [{
941      'file' : {},
942      'gdbus-peer' : {'dependencies' : [libgdbus_example_objectmanager_dep]},
943 -    'gdbus-peer-object-manager' : {},
944 +    'gdbus-peer-object-manager' : {'dependencies' : [sun_socket]},
945      'live-g-file' : {},
946      'socket-address' : {},
947 -    'stream-rw_all' : {},
948 -    'unix-fd' : {},
949 +    'stream-rw_all' : {'dependencies' : [sun_socket]},
950 +    'unix-fd' : {'dependencies' : [sun_socket]},
951      'unix-mounts' : {},
952      'unix-streams' : {},
953      'g-file-info-filesystem-readonly' : {},
954 @@ -248,7 +250,7 @@ if host_machine.system() != 'windows'
955    executable('gdbus-overflow', 'gdbus-overflow.c',
956        install : false,
957        c_args : test_c_args,
958 -      dependencies : common_gio_tests_deps)
959 +      dependencies : [common_gio_tests_deps, sun_socket])
960  
961    gio_tests += [{
962      'gdbus-connection-flush' : {
963
964
965 [FILE:579:sunos/patch-meson.build]
966 --- meson.build.orig    2018-09-21 14:23:53 UTC
967 +++ meson.build
968 @@ -1744,14 +1744,10 @@ endif
969  # proxy-libintl subproject.
970  # FIXME: glib-gettext.m4 has much more checks to detect broken/uncompatible
971  # implementations. This could be extended if issues are found in some platforms.
972 -if cc.has_function('ngettext')
973 -  libintl = []
974 -else
975    libintl = cc.find_library('intl', required : false)
976    if not libintl.found()
977      libintl = subproject('proxy-libintl').get_variable('intl_dep')
978    endif
979 -endif
980  
981  # We require gettext to always be present
982  glib_conf.set('HAVE_DCGETTEXT', 1)
983
984
985 [FILE:2540:darwin/patch-meson.build]
986 --- meson.build.orig    2018-09-21 14:23:53 UTC
987 +++ meson.build
988 @@ -609,42 +609,23 @@ glib_have_os_x_9_or_later = false
989  glib_have_carbon = false
990  glib_have_cocoa = false
991  if host_system == 'darwin'
992 -  add_languages('objc')
993 -  objcc = meson.get_compiler('objc')
994  
995    osx_ldflags += ['-Wl,-framework,CoreFoundation']
996  
997 -  # Mac OS X Carbon support
998 -  glib_have_carbon = objcc.compiles('''#include <Carbon/Carbon.h>
999 -                                       #include <CoreServices/CoreServices.h>''',
1000 -                                    name : 'Mac OS X Carbon support')
1001 +  glib_have_carbon = false
1002 +  glib_have_cocoa = false 
1003 +  glib_have_os_x_9_or_later = true
1004  
1005    if glib_have_carbon
1006      glib_conf.set('HAVE_CARBON', true)
1007      osx_ldflags += '-Wl,-framework,Carbon'
1008 -    glib_have_os_x_9_or_later = objcc.compiles('''#include <AvailabilityMacros.h>
1009 -                                                  #if MAC_OS_X_VERSION_MIN_REQUIRED < 1090
1010 -                                                  #error Compiling for minimum OS X version before 10.9
1011 -                                                  #endif''',
1012 -                                               name : 'OS X 9 or later')
1013    endif
1014  
1015 -  # Mac OS X Cocoa support
1016 -  glib_have_cocoa = objcc.compiles('''#include <Cocoa/Cocoa.h>
1017 -                                      #ifdef GNUSTEP_BASE_VERSION
1018 -                                      #error "Detected GNUstep, not Cocoa"
1019 -                                      #endif''',
1020 -                                   name : 'Mac OS X Cocoa support')
1021 -
1022    if glib_have_cocoa
1023      glib_conf.set('HAVE_COCOA', true)
1024      osx_ldflags += ['-Wl,-framework,Foundation', '-Wl,-framework,AppKit']
1025    endif
1026  
1027 -  # FIXME: libgio mix C and objC source files and there is no way to reliably
1028 -  # know which language flags it's going to use to link. Add to both languages
1029 -  # for now. See https://github.com/mesonbuild/meson/issues/3585.
1030 -  add_project_link_arguments(osx_ldflags, language : ['objc', 'c'])
1031  endif
1032  
1033  # Check for futex(2)
1034 @@ -1744,14 +1725,10 @@ endif
1035  # proxy-libintl subproject.
1036  # FIXME: glib-gettext.m4 has much more checks to detect broken/uncompatible
1037  # implementations. This could be extended if issues are found in some platforms.
1038 -if cc.has_function('ngettext')
1039 -  libintl = []
1040 -else
1041    libintl = cc.find_library('intl', required : false)
1042    if not libintl.found()
1043      libintl = subproject('proxy-libintl').get_variable('intl_dep')
1044    endif
1045 -endif
1046  
1047  # We require gettext to always be present
1048  glib_conf.set('HAVE_DCGETTEXT', 1)
1049