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