Ravenports generated: 10 Feb 2024 22:55
[ravenports.git] / bucket_73 / glib
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               glib
4 VERSION=                2.78.4
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.78
13 DISTFILE[1]=            glib-2.78.4.tar.xz:main
14 DIST_SUBDIR=            gnome2
15 DF_INDEX=               1
16 SPKGS[standard]=        complete
17                         primary
18                         dev
19                         man
20                         nls
21
22 OPTIONS_AVAILABLE=      none
23 OPTIONS_STANDARD=       none
24
25 BUILD_DEPENDS=          xmlto:single:standard
26                         libffi:dev:standard
27 BUILDRUN_DEPENDS=       libffi:primary:standard
28 EXRUN[dev]=             zlib:dev:standard
29                         pcre2:dev:standard
30                         libffi:dev:standard
31
32 USES=                   pcre2 gettext gmake libtool perl:build pkgconfig
33                         python:build shebangfix zlib meson iconv cpe
34
35 LICENSE=                LGPL21+:primary
36 LICENSE_TERMS=          primary:{{WRKDIR}}/TERMS
37 LICENSE_FILE=           LGPL21+:{{WRKSRC}}/COPYING
38 LICENSE_AWK=            TERMS:"__G_LIB_H__"
39 LICENSE_SOURCE=         TERMS:{{WRKSRC}}/glib/glib.h
40 LICENSE_SCHEME=         solo
41
42 CPE_VENDOR=             gnome
43 FPC_EQUIVALENT=         devel/glib20
44 MESON_ARGS=             -Dselinux=disabled
45                         -Dxattr=false
46                         -Dlibmount=disabled
47                         -Ddtrace=false
48                         -Dman=true
49                         -Dgtk_doc=false
50                         -Db_lundef=false
51                         -Dtests=false
52 SHEBANG_FILES=          */*.pl
53                         {{pyscripts}}
54
55 INSTALL_TARGET=         install-strip
56 INSTALL_REQ_TOOLCHAIN=  yes
57 PLIST_SUB=              LIBVERSION=0.7800.4
58                         RESETPREFIX={{PREFIX}}
59
60 SET_DEBUGGING_ON=       yes
61 OPTIMIZER_LEVEL=        0
62 VAR_OPSYS[sunos]=       CFLAGS=-fPIC
63                         LDFLAGS=-lintl
64                         LDFLAGS=-liconv
65                         LDFLAGS=-lnsl
66                         LDFLAGS=-lsocket
67 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"
68
69 post-patch:
70         for F in ${pyscripts}; do \
71                 ${CHMOD} ${BINMODE} ${WRKSRC}/$$F; \
72         done
73
74 post-install:
75         ${MKDIR} ${STAGEDIR}${PREFIX}/share/GConf/gsettings
76         ${MKDIR} ${STAGEDIR}${PREFIX}/lib/gio/modules
77         ${RM} -r ${STAGEDIR}${PREFIX}/libexec
78
79 pre-configure:
80         ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g ; \
81                 s|/usr/share/locale/locale|${LOCALBASE}/share/locale/locale|g' \
82                         ${WRKSRC}/glib/gutils.c
83         ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
84                 ${WRKSRC}/gio/gunixmounts.c \
85                 ${WRKSRC}/gio/xdgmime/xdgmime.c \
86                 ${WRKSRC}/glib/tests/utils.c
87         ${REINPLACE_CMD} \
88                 -e "s|http://docbook.sourceforge.net/release/xsl/current/|file://${LOCALBASE}/share/xsl/docbook/|" \
89                 ${WRKSRC}/meson.build
90
91 [FILE:205:descriptions/desc.primary]
92 GLib provides a simple, abstract, and highly portable set of C support
93 routines such as lists, trees, hashes, memory allocation, and much, much
94 more.  It is a foundation for writing portable applications.
95
96
97 [FILE:104:distinfo]
98 24b8e0672dca120cc32d394bccb85844e732e04fe75d18bb0573b2dbc7548f63      5331892 gnome2/glib-2.78.4.tar.xz
99
100
101 [FILE:1588:manifests/plist.primary]
102 @comment share/glib-2.0/codegen auto-generated
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-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 lib/
132  libgio-2.0.so.%%LIBVERSION%%
133  libgio-2.0.so.0
134  libglib-2.0.so.%%LIBVERSION%%
135  libglib-2.0.so.0
136  libgmodule-2.0.so.%%LIBVERSION%%
137  libgmodule-2.0.so.0
138  libgobject-2.0.so.%%LIBVERSION%%
139  libgobject-2.0.so.0
140  libgthread-2.0.so.%%LIBVERSION%%
141  libgthread-2.0.so.0
142 lib/glib-2.0/include/glibconfig.h
143 share/gdb/auto-load%%RESETPREFIX%%/lib/
144  libglib-2.0.so.%%LIBVERSION%%-gdb.py
145  libgobject-2.0.so.%%LIBVERSION%%-gdb.py
146 share/gettext/its/
147  gschema.its
148  gschema.loc
149 share/glib-2.0/codegen/
150  __init__.py
151  codegen.py
152  codegen_docbook.py
153  codegen_main.py
154  codegen_md.py
155  codegen_rst.py
156  config.py
157  dbustypes.py
158  parser.py
159  utils.py
160 share/glib-2.0/dtds/gresource.dtd
161 share/glib-2.0/gdb/
162  glib_gdb.py
163  gobject_gdb.py
164 share/glib-2.0/gettext/po/Makefile.in.in
165 share/glib-2.0/schemas/gschema.dtd
166 share/glib-2.0/valgrind/glib.supp
167 @dir lib/gio/modules
168 @dir share/GConf/gsettings
169 @postexec %D/bin/gio-querymodules %D/lib/gio/modules 2>/dev/null || /usr/bin/true
170 @postexec %D/bin/glib-compile-schemas %D/share/glib-2.0/schemas 2>/dev/null || /usr/bin/true
171 @postunexec /bin/rm -f %D/share/glib-2.0/schemas/gschemas.compiled || /usr/bin/true
172
173
174 [FILE:4915:manifests/plist.dev]
175 include/gio-unix-2.0/gio/
176  gdesktopappinfo.h
177  gfiledescriptorbased.h
178  gunixfdmessage.h
179  gunixinputstream.h
180  gunixmounts.h
181  gunixoutputstream.h
182 include/glib-2.0/
183  glib-object.h
184  glib-unix.h
185  glib.h
186  gmodule.h
187 include/glib-2.0/gio/
188  gaction.h
189  gactiongroup.h
190  gactiongroupexporter.h
191  gactionmap.h
192  gappinfo.h
193  gapplication.h
194  gapplicationcommandline.h
195  gasyncinitable.h
196  gasyncresult.h
197  gbufferedinputstream.h
198  gbufferedoutputstream.h
199  gbytesicon.h
200  gcancellable.h
201  gcharsetconverter.h
202  gcontenttype.h
203  gconverter.h
204  gconverterinputstream.h
205  gconverteroutputstream.h
206  gcredentials.h
207  gdatagrambased.h
208  gdatainputstream.h
209  gdataoutputstream.h
210  gdbusactiongroup.h
211  gdbusaddress.h
212  gdbusauthobserver.h
213  gdbusconnection.h
214  gdbuserror.h
215  gdbusinterface.h
216  gdbusinterfaceskeleton.h
217  gdbusintrospection.h
218  gdbusmenumodel.h
219  gdbusmessage.h
220  gdbusmethodinvocation.h
221  gdbusnameowning.h
222  gdbusnamewatching.h
223  gdbusobject.h
224  gdbusobjectmanager.h
225  gdbusobjectmanagerclient.h
226  gdbusobjectmanagerserver.h
227  gdbusobjectproxy.h
228  gdbusobjectskeleton.h
229  gdbusproxy.h
230  gdbusserver.h
231  gdbusutils.h
232  gdebugcontroller.h
233  gdebugcontrollerdbus.h
234  gdrive.h
235  gdtlsclientconnection.h
236  gdtlsconnection.h
237  gdtlsserverconnection.h
238  gemblem.h
239  gemblemedicon.h
240  gfile.h
241  gfileattribute.h
242  gfileenumerator.h
243  gfileicon.h
244  gfileinfo.h
245  gfileinputstream.h
246  gfileiostream.h
247  gfilemonitor.h
248  gfilenamecompleter.h
249  gfileoutputstream.h
250  gfilterinputstream.h
251  gfilteroutputstream.h
252  gicon.h
253  ginetaddress.h
254  ginetaddressmask.h
255  ginetsocketaddress.h
256  ginitable.h
257  ginputstream.h
258  gio-autocleanups.h
259  gio-visibility.h
260  gio.h
261  gioenums.h
262  gioenumtypes.h
263  gioerror.h
264  giomodule.h
265  gioscheduler.h
266  giostream.h
267  giotypes.h
268  glistmodel.h
269  gliststore.h
270  gloadableicon.h
271  gmemoryinputstream.h
272  gmemorymonitor.h
273  gmemoryoutputstream.h
274  gmenu.h
275  gmenuexporter.h
276  gmenumodel.h
277  gmount.h
278  gmountoperation.h
279  gnativesocketaddress.h
280  gnativevolumemonitor.h
281  gnetworkaddress.h
282  gnetworking.h
283  gnetworkmonitor.h
284  gnetworkservice.h
285  gnotification.h
286  goutputstream.h
287  gpermission.h
288  gpollableinputstream.h
289  gpollableoutputstream.h
290  gpollableutils.h
291  gpowerprofilemonitor.h
292  gpropertyaction.h
293  gproxy.h
294  gproxyaddress.h
295  gproxyaddressenumerator.h
296  gproxyresolver.h
297  gremoteactiongroup.h
298  gresolver.h
299  gresource.h
300  gseekable.h
301  gsettings.h
302  gsettingsbackend.h
303  gsettingsschema.h
304  gsimpleaction.h
305  gsimpleactiongroup.h
306  gsimpleasyncresult.h
307  gsimpleiostream.h
308  gsimplepermission.h
309  gsimpleproxyresolver.h
310  gsocket.h
311  gsocketaddress.h
312  gsocketaddressenumerator.h
313  gsocketclient.h
314  gsocketconnectable.h
315  gsocketconnection.h
316  gsocketcontrolmessage.h
317  gsocketlistener.h
318  gsocketservice.h
319  gsrvtarget.h
320  gsubprocess.h
321  gsubprocesslauncher.h
322  gtask.h
323  gtcpconnection.h
324  gtcpwrapperconnection.h
325  gtestdbus.h
326  gthemedicon.h
327  gthreadedsocketservice.h
328  gtlsbackend.h
329  gtlscertificate.h
330  gtlsclientconnection.h
331  gtlsconnection.h
332  gtlsdatabase.h
333  gtlsfiledatabase.h
334  gtlsinteraction.h
335  gtlspassword.h
336  gtlsserverconnection.h
337  gunixconnection.h
338  gunixcredentialsmessage.h
339  gunixfdlist.h
340  gunixsocketaddress.h
341  gvfs.h
342  gvolume.h
343  gvolumemonitor.h
344  gzlibcompressor.h
345  gzlibdecompressor.h
346 include/glib-2.0/glib/
347  galloca.h
348  garray.h
349  gasyncqueue.h
350  gatomic.h
351  gbacktrace.h
352  gbase64.h
353  gbitlock.h
354  gbookmarkfile.h
355  gbytes.h
356  gcharset.h
357  gchecksum.h
358  gconvert.h
359  gdataset.h
360  gdate.h
361  gdatetime.h
362  gdir.h
363  genviron.h
364  gerror.h
365  gfileutils.h
366  ggettext.h
367  ghash.h
368  ghmac.h
369  ghook.h
370  ghostutils.h
371  gi18n-lib.h
372  gi18n.h
373  giochannel.h
374  gkeyfile.h
375  glib-autocleanups.h
376  glib-typeof.h
377  glib-visibility.h
378  glist.h
379  gmacros.h
380  gmain.h
381  gmappedfile.h
382  gmarkup.h
383  gmem.h
384  gmessages.h
385  gnode.h
386  goption.h
387  gpathbuf.h
388  gpattern.h
389  gpoll.h
390  gprimes.h
391  gprintf.h
392  gqsort.h
393  gquark.h
394  gqueue.h
395  grand.h
396  grcbox.h
397  grefcount.h
398  grefstring.h
399  gregex.h
400  gscanner.h
401  gsequence.h
402  gshell.h
403  gslice.h
404  gslist.h
405  gspawn.h
406  gstdio.h
407  gstrfuncs.h
408  gstring.h
409  gstringchunk.h
410  gstrvbuilder.h
411  gtestutils.h
412  gthread.h
413  gthreadpool.h
414  gtimer.h
415  gtimezone.h
416  gtrashstack.h
417  gtree.h
418  gtypes.h
419  gunicode.h
420  guri.h
421  gutils.h
422  guuid.h
423  gvariant.h
424  gvarianttype.h
425  gversion.h
426  gversionmacros.h
427  gwin32.h
428 include/glib-2.0/glib/deprecated/
429  gallocator.h
430  gcache.h
431  gcompletion.h
432  gmain.h
433  grel.h
434  gthread.h
435 include/glib-2.0/gmodule/gmodule-visibility.h
436 include/glib-2.0/gobject/
437  gbinding.h
438  gbindinggroup.h
439  gboxed.h
440  gclosure.h
441  genums.h
442  glib-enumtypes.h
443  glib-types.h
444  gmarshal.h
445  gobject-autocleanups.h
446  gobject-visibility.h
447  gobject.h
448  gobjectnotifyqueue.c
449  gparam.h
450  gparamspecs.h
451  gsignal.h
452  gsignalgroup.h
453  gsourceclosure.h
454  gtype.h
455  gtypemodule.h
456  gtypeplugin.h
457  gvalue.h
458  gvaluearray.h
459  gvaluecollector.h
460  gvaluetypes.h
461 lib/
462  libgio-2.0.so
463  libglib-2.0.so
464  libgmodule-2.0.so
465  libgobject-2.0.so
466  libgthread-2.0.so
467 lib/pkgconfig/
468  gio-2.0.pc
469  gio-unix-2.0.pc
470  glib-2.0.pc
471  gmodule-2.0.pc
472  gmodule-export-2.0.pc
473  gmodule-no-export-2.0.pc
474  gobject-2.0.pc
475  gthread-2.0.pc
476 share/aclocal/
477  glib-2.0.m4
478  glib-gettext.m4
479  gsettings.m4
480
481
482 [FILE:306:manifests/plist.man]
483 share/man/man1/
484  gapplication.1.gz
485  gdbus-codegen.1.gz
486  gdbus.1.gz
487  gio-querymodules.1.gz
488  gio.1.gz
489  glib-compile-resources.1.gz
490  glib-compile-schemas.1.gz
491  glib-genmarshal.1.gz
492  glib-gettextize.1.gz
493  glib-mkenums.1.gz
494  gobject-query.1.gz
495  gresource.1.gz
496  gsettings.1.gz
497  gtester-report.1.gz
498  gtester.1.gz
499
500
501 [FILE:3855:manifests/plist.nls]
502 share/locale/ab/LC_MESSAGES/glib20.mo
503 share/locale/af/LC_MESSAGES/glib20.mo
504 share/locale/am/LC_MESSAGES/glib20.mo
505 share/locale/an/LC_MESSAGES/glib20.mo
506 share/locale/ar/LC_MESSAGES/glib20.mo
507 share/locale/as/LC_MESSAGES/glib20.mo
508 share/locale/ast/LC_MESSAGES/glib20.mo
509 share/locale/az/LC_MESSAGES/glib20.mo
510 share/locale/be/LC_MESSAGES/glib20.mo
511 share/locale/be@latin/LC_MESSAGES/glib20.mo
512 share/locale/bg/LC_MESSAGES/glib20.mo
513 share/locale/bn/LC_MESSAGES/glib20.mo
514 share/locale/bn_IN/LC_MESSAGES/glib20.mo
515 share/locale/bs/LC_MESSAGES/glib20.mo
516 share/locale/ca/LC_MESSAGES/glib20.mo
517 share/locale/ca@valencia/LC_MESSAGES/glib20.mo
518 share/locale/cs/LC_MESSAGES/glib20.mo
519 share/locale/cy/LC_MESSAGES/glib20.mo
520 share/locale/da/LC_MESSAGES/glib20.mo
521 share/locale/de/LC_MESSAGES/glib20.mo
522 share/locale/dz/LC_MESSAGES/glib20.mo
523 share/locale/el/LC_MESSAGES/glib20.mo
524 share/locale/en@shaw/LC_MESSAGES/glib20.mo
525 share/locale/en_CA/LC_MESSAGES/glib20.mo
526 share/locale/en_GB/LC_MESSAGES/glib20.mo
527 share/locale/eo/LC_MESSAGES/glib20.mo
528 share/locale/es/LC_MESSAGES/glib20.mo
529 share/locale/et/LC_MESSAGES/glib20.mo
530 share/locale/eu/LC_MESSAGES/glib20.mo
531 share/locale/fa/LC_MESSAGES/glib20.mo
532 share/locale/fi/LC_MESSAGES/glib20.mo
533 share/locale/fr/LC_MESSAGES/glib20.mo
534 share/locale/fur/LC_MESSAGES/glib20.mo
535 share/locale/ga/LC_MESSAGES/glib20.mo
536 share/locale/gd/LC_MESSAGES/glib20.mo
537 share/locale/gl/LC_MESSAGES/glib20.mo
538 share/locale/gu/LC_MESSAGES/glib20.mo
539 share/locale/he/LC_MESSAGES/glib20.mo
540 share/locale/hi/LC_MESSAGES/glib20.mo
541 share/locale/hr/LC_MESSAGES/glib20.mo
542 share/locale/hu/LC_MESSAGES/glib20.mo
543 share/locale/hy/LC_MESSAGES/glib20.mo
544 share/locale/id/LC_MESSAGES/glib20.mo
545 share/locale/ie/LC_MESSAGES/glib20.mo
546 share/locale/is/LC_MESSAGES/glib20.mo
547 share/locale/it/LC_MESSAGES/glib20.mo
548 share/locale/ja/LC_MESSAGES/glib20.mo
549 share/locale/ka/LC_MESSAGES/glib20.mo
550 share/locale/kk/LC_MESSAGES/glib20.mo
551 share/locale/kn/LC_MESSAGES/glib20.mo
552 share/locale/ko/LC_MESSAGES/glib20.mo
553 share/locale/ku/LC_MESSAGES/glib20.mo
554 share/locale/lt/LC_MESSAGES/glib20.mo
555 share/locale/lv/LC_MESSAGES/glib20.mo
556 share/locale/mai/LC_MESSAGES/glib20.mo
557 share/locale/mg/LC_MESSAGES/glib20.mo
558 share/locale/mk/LC_MESSAGES/glib20.mo
559 share/locale/ml/LC_MESSAGES/glib20.mo
560 share/locale/mn/LC_MESSAGES/glib20.mo
561 share/locale/mr/LC_MESSAGES/glib20.mo
562 share/locale/ms/LC_MESSAGES/glib20.mo
563 share/locale/nb/LC_MESSAGES/glib20.mo
564 share/locale/nds/LC_MESSAGES/glib20.mo
565 share/locale/ne/LC_MESSAGES/glib20.mo
566 share/locale/nl/LC_MESSAGES/glib20.mo
567 share/locale/nn/LC_MESSAGES/glib20.mo
568 share/locale/oc/LC_MESSAGES/glib20.mo
569 share/locale/or/LC_MESSAGES/glib20.mo
570 share/locale/pa/LC_MESSAGES/glib20.mo
571 share/locale/pl/LC_MESSAGES/glib20.mo
572 share/locale/ps/LC_MESSAGES/glib20.mo
573 share/locale/pt/LC_MESSAGES/glib20.mo
574 share/locale/pt_BR/LC_MESSAGES/glib20.mo
575 share/locale/ro/LC_MESSAGES/glib20.mo
576 share/locale/ru/LC_MESSAGES/glib20.mo
577 share/locale/rw/LC_MESSAGES/glib20.mo
578 share/locale/si/LC_MESSAGES/glib20.mo
579 share/locale/sk/LC_MESSAGES/glib20.mo
580 share/locale/sl/LC_MESSAGES/glib20.mo
581 share/locale/sq/LC_MESSAGES/glib20.mo
582 share/locale/sr/LC_MESSAGES/glib20.mo
583 share/locale/sr@ije/LC_MESSAGES/glib20.mo
584 share/locale/sr@latin/LC_MESSAGES/glib20.mo
585 share/locale/sv/LC_MESSAGES/glib20.mo
586 share/locale/ta/LC_MESSAGES/glib20.mo
587 share/locale/te/LC_MESSAGES/glib20.mo
588 share/locale/tg/LC_MESSAGES/glib20.mo
589 share/locale/th/LC_MESSAGES/glib20.mo
590 share/locale/tl/LC_MESSAGES/glib20.mo
591 share/locale/tr/LC_MESSAGES/glib20.mo
592 share/locale/tt/LC_MESSAGES/glib20.mo
593 share/locale/ug/LC_MESSAGES/glib20.mo
594 share/locale/uk/LC_MESSAGES/glib20.mo
595 share/locale/vi/LC_MESSAGES/glib20.mo
596 share/locale/wa/LC_MESSAGES/glib20.mo
597 share/locale/xh/LC_MESSAGES/glib20.mo
598 share/locale/yi/LC_MESSAGES/glib20.mo
599 share/locale/zh_CN/LC_MESSAGES/glib20.mo
600 share/locale/zh_HK/LC_MESSAGES/glib20.mo
601 share/locale/zh_TW/LC_MESSAGES/glib20.mo
602
603
604 [FILE:631:patches/patch-gio_glib-compile-schemas.c]
605 --- gio/glib-compile-schemas.c.orig     2023-12-06 18:03:55 UTC
606 +++ gio/glib-compile-schemas.c
607 @@ -1232,6 +1232,7 @@ parse_state_start_schema (ParseState  *s
608        return;
609      }
610  
611 +#if 0
612    if (path && (g_str_has_prefix (path, "/apps/") ||
613                 g_str_has_prefix (path, "/desktop/") ||
614                 g_str_has_prefix (path, "/system/")))
615 @@ -1244,6 +1245,7 @@ parse_state_start_schema (ParseState  *s
616        g_printerr ("%s\n", message);
617        g_free (message);
618      }
619 +#endif
620  
621    state->schema_state = schema_state_new (path, gettext_domain,
622                                            extends, extends_name, list_of);
623
624
625 [FILE:232:patches/patch-gio_glocalfileinfo.c]
626 --- gio/glocalfileinfo.c.orig   2023-12-06 18:03:55 UTC
627 +++ gio/glocalfileinfo.c
628 @@ -24,6 +24,10 @@
629  
630  #include "config.h"
631  
632 +#ifdef __sun__
633 +#  define      _POSIX_PTHREAD_SEMANTICS 1
634 +#endif
635 +
636  #include <glib.h>
637  
638  #ifdef HAVE_SYS_TIME_H
639
640
641 [FILE:285:patches/patch-gio_gsocket.c]
642 --- gio/gsocket.c.orig  2023-12-06 18:03:55 UTC
643 +++ gio/gsocket.c
644 @@ -58,6 +58,10 @@
645  #include <sys/uio.h>
646  #endif
647  
648 +#ifdef __sun__
649 +#define _XPG4_2        1
650 +#endif
651 +
652  #define GOBJECT_COMPILATION
653  #include "gobject/gtype-private.h" /* For _PRELUDE type define */
654  #undef GOBJECT_COMPILATION
655
656
657 [FILE:675:patches/patch-gio_gunixmount.c]
658 --- gio/gunixmount.c.orig       2023-12-06 18:03:55 UTC
659 +++ gio/gunixmount.c
660 @@ -360,12 +360,17 @@ g_unix_mount_eject (GMount             *
661                      gpointer             user_data)
662  {
663    GUnixMount *unix_mount = G_UNIX_MOUNT (mount);
664 +#if ! defined(__FreeBSD__) && ! defined(__DragonFly__)
665    char *argv[] = {"eject", NULL, NULL};
666  
667    if (unix_mount->mount_path != NULL)
668      argv[1] = unix_mount->mount_path;
669    else
670      argv[1] = unix_mount->device_path;
671 +#else
672 +   char *argv[] = {"cdcontrol", "-f", NULL, "eject", NULL};
673 +   argv[2] = unix_mount->device_path;
674 +#endif
675  
676    eject_unmount_do (mount, cancellable, callback, user_data, argv, "[gio] eject mount");
677  }
678
679
680 [FILE:292:patches/patch-gio_gunixmounts.c]
681 --- gio/gunixmounts.c.orig      2023-12-06 18:03:55 UTC
682 +++ gio/gunixmounts.c
683 @@ -74,6 +74,10 @@ extern char* hasmntopt(const struct mnte
684  #define O_BINARY 0
685  #endif
686  
687 +#ifdef __sun__
688 +#define mnt_opts       mnt_mntopts
689 +#endif
690 +
691  #include "gunixmounts.h"
692  #include "gfile.h"
693  #include "gfilemonitor.h"
694
695
696 [FILE:593:patches/patch-gio_gunixvolume.c]
697 --- gio/gunixvolume.c.orig      2023-12-06 18:03:55 UTC
698 +++ gio/gunixvolume.c
699 @@ -369,9 +369,14 @@ g_unix_volume_eject (GVolume
700                       gpointer             user_data)
701  {
702    GUnixVolume *unix_volume = G_UNIX_VOLUME (volume);
703 +#if defined(__FreeBSD__) || defined(__DragonFly__)
704 +  const gchar *argv[] = {"cdcontrol", "-f", NULL, "eject", NULL};
705 +  argv[2] = unix_volume->device_path;
706 +#else
707    const gchar *argv[] = { "eject", NULL, NULL };
708  
709    argv[1] = unix_volume->device_path;
710 +#endif
711  
712    eject_mount_do (volume, cancellable, callback, user_data, argv, "[gio] eject volume");
713  }
714
715
716 [FILE:452:patches/patch-gio_xdgmime_xdgmime.c]
717 The /usr/local value is replaced by post-patch target
718
719 --- gio/xdgmime/xdgmime.c.orig  2023-12-06 18:03:55 UTC
720 +++ gio/xdgmime/xdgmime.c
721 @@ -228,7 +228,7 @@ xdg_init_dirs (void)
722    xdg_data_dirs = getenv ("XDG_DATA_DIRS");
723  
724    if (xdg_data_dirs == NULL)
725 -    xdg_data_dirs = "/usr/local/share/:/usr/share/";
726 +    xdg_data_dirs = "/usr/local/share/";
727  
728    /* Work out how many dirs we’re dealing with. */
729    if (xdg_data_home != NULL || home != NULL)
730
731
732 [FILE:766:patches/patch-gio_xdgmime_xdgmimecache.h]
733 --- gio/xdgmime/xdgmimecache.h.orig     2023-12-06 18:03:55 UTC
734 +++ gio/xdgmime/xdgmimecache.h
735 @@ -30,6 +30,9 @@ typedef struct _XdgMimeCache XdgMimeCach
736  #define _xdg_mime_cache_get_icon                      XDG_RESERVED_ENTRY(cache_get_icon)
737  #define _xdg_mime_cache_get_generic_icon              XDG_RESERVED_ENTRY(cache_get_generic_icon)
738  #define _xdg_mime_cache_glob_dump                     XDG_RESERVED_ENTRY(cache_glob_dump)
739 +#define _xdg_mime_cache_is_valid_mime_type            XDG_RESERVED_ENTRY(cache_is_valid_mime_type)
740 +#define _xdg_mime_cache_mime_type_equal               XDG_RESERVED_ENTRY(cache_mime_type_equal)
741 +#define _xdg_mime_cache_media_type_equal              XDG_RESERVED_ENTRY(cache_media_type_equal)
742  #endif
743  
744  extern XdgMimeCache **_caches;
745
746
747 [FILE:386:patches/patch-glib_fix_hidden]
748 --- glib/gmem.c.orig    2023-12-06 18:03:55 UTC
749 +++ glib/gmem.c
750 @@ -38,8 +38,10 @@
751  
752  #if defined(HAVE_MEMALIGN) || defined(HAVE__ALIGNED_MALLOC)
753  /* Required for _aligned_malloc() and _aligned_free() on Windows */
754 +#if !defined(__FreeBSD__)
755  #include <malloc.h>
756  #endif
757 +#endif
758  
759  #ifdef HAVE__ALIGNED_MALLOC
760  /* _aligned_malloc() takes parameters of aligned_malloc() in reverse order */
761
762
763 [FILE:352:patches/patch-glib_gcharset.c]
764 --- glib/gcharset.c.orig        2023-12-06 18:03:55 UTC
765 +++ glib/gcharset.c
766 @@ -288,6 +288,11 @@ _g_get_ctype_charset (const char **chars
767  
768  #ifdef HAVE_LANGINFO_CODESET
769    raw = nl_langinfo (CODESET);
770 +# if defined __NetBSD__
771 +  if (strcmp(raw, "646") == 0) {
772 +     raw = "ASCII";
773 +  }
774 +# endif
775  #else
776    G_LOCK (aliases);
777    raw = _g_locale_charset_raw ();
778
779
780 [FILE:608:patches/patch-glib_gconvert.c]
781 --- glib/gconvert.c.orig        2023-12-06 18:03:55 UTC
782 +++ glib/gconvert.c
783 @@ -216,6 +216,18 @@ g_iconv_open (const gchar  *to_codeset,
784               const gchar  *from_codeset)
785  {
786    iconv_t cd;
787 +#if defined __NetBSD__
788 +  {
789 +    const char * nbsd_new_codeset;
790 +    const char * nbsd_old_codeset;
791 +
792 +    nbsd_new_codeset = (strcmp(to_codeset, "646")) ? to_codeset : "ASCII";
793 +    nbsd_old_codeset = (strcmp(from_codeset, "646")) ? from_codeset : "ASCII";
794 +
795 +   if (try_conversion (nbsd_new_codeset, nbsd_old_codeset, &cd))
796 +      goto out;
797 +  }
798 +#endif
799    
800    if (!try_conversion (to_codeset, from_codeset, &cd))
801      {
802
803
804 [FILE:228:patches/patch-glib_giounix.c]
805 --- glib/giounix.c.orig 2023-12-06 18:03:55 UTC
806 +++ glib/giounix.c
807 @@ -33,7 +33,9 @@
808  
809  #include "config.h"
810  
811 +#ifndef __sun__
812  #define _POSIX_SOURCE          /* for SSIZE_MAX */
813 +#endif
814  
815  #include <sys/types.h>
816  #include <sys/stat.h>
817
818
819 [FILE:274:patches/patch-glib_glib-unix.c]
820 --- glib/glib-unix.c.orig       2023-12-06 18:03:55 UTC
821 +++ glib/glib-unix.c
822 @@ -29,6 +29,9 @@
823  
824  #include <string.h>
825  #include <sys/types.h>
826 +#ifdef __sun
827 +#define _POSIX_PTHREAD_SEMANTICS 1
828 +#endif
829  #include <pwd.h>
830  
831  G_STATIC_ASSERT (sizeof (ssize_t) == GLIB_SIZEOF_SSIZE_T);
832
833
834 [FILE:854:patches/patch-glib_gutils.c]
835 /usr/local value is replaced by post-patch target
836
837 --- glib/gutils.c.orig  2023-12-06 18:03:55 UTC
838 +++ glib/gutils.c
839 @@ -30,6 +30,10 @@
840  
841  #include "config.h"
842  
843 +#ifdef __sun__
844 +#  define      _POSIX_PTHREAD_SEMANTICS 1
845 +#  undef       HAVE_SYS_AUXV_H
846 +#endif
847  #include "gutils.h"
848  #include "gutilsprivate.h"
849  
850 @@ -2695,7 +2699,7 @@ g_build_system_data_dirs (void)
851     */
852  #ifndef G_OS_WIN32
853    if (!data_dirs || !data_dirs[0])
854 -    data_dirs = "/usr/local/share/:/usr/share/";
855 +    data_dirs = "/usr/local/share/";
856  
857    data_dir_vector = g_strsplit (data_dirs, G_SEARCHPATH_SEPARATOR_S, 0);
858  #else
859 @@ -2792,7 +2796,7 @@ g_build_system_config_dirs (void)
860      }
861  #else
862    if (!conf_dirs || !conf_dirs[0])
863 -    conf_dirs = "/etc/xdg";
864 +    conf_dirs = "/usr/local/etc/xdg:/etc/xdg";
865  
866    conf_dir_vector = g_strsplit (conf_dirs, G_SEARCHPATH_SEPARATOR_S, 0);
867  #endif
868
869
870 [FILE:524:patches/patch-glib_libcharset_localcharset.c]
871 --- glib/libcharset/localcharset.c.orig 2023-12-06 18:03:55 UTC
872 +++ glib/libcharset/localcharset.c
873 @@ -287,6 +287,12 @@ _g_locale_charset_raw (void)
874  
875    /* Most systems support nl_langinfo (CODESET) nowadays.  */
876    codeset = nl_langinfo (CODESET);
877 +# if defined(__NetBSD__)
878 +  /* If "646" is returned on NetBSD iconv cannot convert it so override. */
879 +  if (strcmp(codeset, "646") == 0) {
880 +     codeset = "ASCII";
881 +  }
882 +# endif
883  
884  #  ifdef __CYGWIN__
885    /* Cygwin 2006 does not have locales.  nl_langinfo (CODESET) always
886
887
888 [FILE:295:patches/patch-glib_tests_include.c]
889 --- glib/tests/include.c.orig   2023-12-06 18:03:55 UTC
890 +++ glib/tests/include.c
891 @@ -1,8 +1,11 @@
892  /* Test case for bug 659866 */
893  
894 +#ifndef __sun
895  #define _POSIX_C_SOURCE 199309L
896  #undef _GNU_SOURCE
897  #undef _XOPEN_SOURCE
898 +#endif
899 +#include <sys/types.h>
900  #include <pthread.h>
901  #include <glib.h>
902  
903
904
905 [FILE:287:patches/patch-glib_tests_utils.c]
906 --- glib/tests/utils.c.orig     2023-12-06 18:03:55 UTC
907 +++ glib/tests/utils.c
908 @@ -850,7 +850,7 @@ test_xdg_dirs (void)
909  
910    xdg = (gchar *)g_getenv ("XDG_CONFIG_DIRS");
911    if (!xdg)
912 -    xdg = "/etc/xdg";
913 +    xdg = "/usr/local/etc/xdg:/etc/xdg";
914  
915    dirs = g_get_system_config_dirs ();
916  
917
918
919 [FILE:474:patches/patch-gmodule_gmodule-dl.c]
920 --- gmodule/gmodule-dl.c.orig   2023-12-06 18:03:55 UTC
921 +++ gmodule/gmodule-dl.c
922 @@ -153,6 +153,7 @@ _g_module_open (const gchar *file_name,
923  static gpointer
924  _g_module_self (void)
925  {
926 +#if ! defined(__FreeBSD__) && ! defined(__DragonFly__)
927    gpointer handle;
928    
929    /* to query symbols from the program itself, special link options
930 @@ -177,6 +178,9 @@ _g_module_self (void)
931    unlock_dlerror ();
932    
933    return handle;
934 +#else
935 +  return RTLD_DEFAULT;
936 +#endif
937  }
938  
939  static void
940
941
942 [FILE:877:patches/patch-meson.build]
943 --- meson.build.orig    2023-12-06 18:03:55 UTC
944 +++ meson.build
945 @@ -2147,7 +2147,7 @@ if libintl.found() and libintl.type_name
946    #
947    # Meson's builtin dependency lookup as of 0.60.0 doesn't check for
948    # pthread, so we do this manually here.
949 -  if cc.has_function('ngettext', dependencies : libintl, prefix: libintl_prefix)
950 +  if cc.has_function('ngettext', dependencies : libintl, prefix: libintl_prefix) and host_system != 'sunos'
951      libintl_deps += [libintl]
952    else
953      libintl_iconv = cc.find_library('iconv', required : false)
954 @@ -2348,8 +2348,7 @@ env_program = find_program('env', requir
955  
956  # FIXME: How to detect Solaris? https://github.com/mesonbuild/meson/issues/1578
957  if host_system == 'sunos'
958 -  glib_conf.set('_XOPEN_SOURCE_EXTENDED', 1)
959 -  glib_conf.set('_XOPEN_SOURCE', 2)
960 +  glib_conf.set('_XOPEN_SOURCE', 600)
961    glib_conf.set('__EXTENSIONS__',1)
962  endif
963  
964
965
966 [FILE:532:files/special.mk]
967 glib_MAN=       gtester.1 gtester-report.1 glib-gettextize.1
968 gio_MAN=        gdbus.1 gsettings.1 gio-querymodules.1 \
969                 glib-compile-schemas.1 gapplication.1 \
970                 glib-compile-resources.1 gresource.1 gdbus-codegen.1
971 gobject_MAN=    glib-genmarshal.1 glib-mkenums.1 gobject-query.1
972 pyscripts=      gio/tests/gengiotypefuncs.py \
973                 glib/update-gtranslit.py \
974
975
976 POST_PLIST_TARGET=      my-autolist
977
978 my-autolist:
979         (cd ${STAGEDIR}${PREFIX} && ${FIND} share/glib-2.0/codegen \
980         \( -type f -o -type l \) 2>/dev/null | ${SORT}) \
981         >> ${WRKDIR}/.manifest.single.mktmp
982
983
984 [FILE:877:darwin/patch-meson.build]
985 --- meson.build.orig    2023-12-06 18:03:55 UTC
986 +++ meson.build
987 @@ -2147,7 +2147,7 @@ if libintl.found() and libintl.type_name
988    #
989    # Meson's builtin dependency lookup as of 0.60.0 doesn't check for
990    # pthread, so we do this manually here.
991 -  if cc.has_function('ngettext', dependencies : libintl, prefix: libintl_prefix)
992 +  if cc.has_function('ngettext', dependencies : libintl, prefix: libintl_prefix) and host_system != 'sunos'
993      libintl_deps += [libintl]
994    else
995      libintl_iconv = cc.find_library('iconv', required : false)
996 @@ -2348,8 +2348,7 @@ env_program = find_program('env', requir
997  
998  # FIXME: How to detect Solaris? https://github.com/mesonbuild/meson/issues/1578
999  if host_system == 'sunos'
1000 -  glib_conf.set('_XOPEN_SOURCE_EXTENDED', 1)
1001 -  glib_conf.set('_XOPEN_SOURCE', 2)
1002 +  glib_conf.set('_XOPEN_SOURCE', 600)
1003    glib_conf.set('__EXTENSIONS__',1)
1004  endif
1005  
1006