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