1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= Some useful routines of C programming
8 HOMEPAGE= https://www.gtk.org/
12 SITES[main]= GNOME/glib/2.62
13 DISTFILE[1]= glib-2.62.0.tar.xz:main
16 SPKGS[standard]= single
18 OPTIONS_AVAILABLE= none
19 OPTIONS_STANDARD= none
21 BUILD_DEPENDS= xmlto:single:standard
22 BUILDRUN_DEPENDS= pcre:static:standard
24 libffi:single:standard
25 RUN_DEPENDS= zlib:static:standard
27 USES= gettext-tools gettext-runtime gmake libtool
28 perl:build pkgconfig python:build shebangfix zlib
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
38 FPC_EQUIVALENT= devel/glib20
39 MESON_ARGS= -Diconv=external
52 INSTALL_TARGET= install-strip
53 INSTALL_REQ_TOOLCHAIN= yes
54 PLIST_SUB= LIBVERSION=0.6200.0
55 RESETPREFIX={{PREFIX}}
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"
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" \
74 ${REINPLACE_CMD} -e '/_XOPEN_SOURCE/d' \
75 ${WRKSRC}/glib/tests/strfuncs.c
76 for F in ${pyscripts}; do \
77 ${CHMOD} ${BINMODE} ${WRKSRC}/$$F; \
81 @${MKDIR} ${STAGEDIR}${PREFIX}/share/GConf/gsettings
82 @${MKDIR} ${STAGEDIR}${PREFIX}/lib/gio/modules
83 ${RM} -r ${STAGEDIR}${PREFIX}/libexec
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.
92 6c257205a0a343b662c9961a58bb4ba1f1e31c82f5c6b909ec741194abc3da10 4676280 gnome2/glib-2.62.0.tar.xz
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/
109 %%ONLY-SUNOS%%share/bash-completion/completions/
122 glib-compile-resources
132 include/gio-unix-2.0/gio/
134 gfiledescriptorbased.h
136 gunixcredentialsmessage.h
148 include/glib-2.0/gio/
151 gactiongroupexporter.h
155 gapplicationcommandline.h
158 gbufferedinputstream.h
159 gbufferedoutputstream.h
165 gconverterinputstream.h
166 gconverteroutputstream.h
177 gdbusinterfaceskeleton.h
181 gdbusmethodinvocation.h
186 gdbusobjectmanagerclient.h
187 gdbusobjectmanagerserver.h
189 gdbusobjectskeleton.h
194 gdtlsclientconnection.h
196 gdtlsserverconnection.h
210 gfilteroutputstream.h
230 gmemoryoutputstream.h
236 gnativesocketaddress.h
237 gnativevolumemonitor.h
245 gpollableinputstream.h
246 gpollableoutputstream.h
251 gproxyaddressenumerator.h
265 gsimpleproxyresolver.h
268 gsocketaddressenumerator.h
272 gsocketcontrolmessage.h
277 gsubprocesslauncher.h
280 gtcpwrapperconnection.h
283 gthreadedsocketservice.h
286 gtlsclientconnection.h
292 gtlsserverconnection.h
298 include/glib-2.0/glib/
376 include/glib-2.0/glib/deprecated/
383 include/glib-2.0/gobject/
391 gobject-autocleanups.h
416 lib/glib-2.0/include/glibconfig.h
422 gmodule-export-2.0.pc
423 gmodule-no-export-2.0.pc
430 share/gdb/auto-load%%RESETPREFIX%%/lib/
431 libglib-2.0.so.%%LIBVERSION%%-gdb.py
432 libgobject-2.0.so.%%LIBVERSION%%-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
544 gio-querymodules.1.gz
546 glib-compile-resources.1.gz
547 glib-compile-schemas.1.gz
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
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
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);
580 state->schema_state = schema_state_new (path, gettext_domain,
581 extends, extends_name, list_of);
584 [FILE:232:patches/patch-gio_glocalfileinfo.c]
585 --- gio/glocalfileinfo.c.orig 2019-09-05 16:56:48 UTC
586 +++ gio/glocalfileinfo.c
592 +# define _POSIX_PTHREAD_SEMANTICS 1
597 #ifdef HAVE_SYS_TIME_H
600 [FILE:285:patches/patch-gio_gsocket.c]
601 --- gio/gsocket.c.orig 2019-09-05 16:56:48 UTC
611 #define GOBJECT_COMPILATION
612 #include "gobject/gtype-private.h" /* For _PRELUDE type define */
613 #undef GOBJECT_COMPILATION
616 [FILE:654:patches/patch-gio_gunixmount.c]
617 --- gio/gunixmount.c.orig 2019-09-05 16:56:48 UTC
619 @@ -356,12 +356,17 @@ g_unix_mount_eject (GMount *
622 GUnixMount *unix_mount = G_UNIX_MOUNT (mount);
623 +#if ! defined(__FreeBSD__) && ! defined(__DragonFly__)
624 char *argv[] = {"eject", NULL, NULL};
626 if (unix_mount->mount_path != NULL)
627 argv[1] = unix_mount->mount_path;
629 argv[1] = unix_mount->device_path;
631 + char *argv[] = {"cdcontrol", "-f", NULL, "eject", NULL};
632 + argv[2] = unix_mount->device_path;
635 eject_unmount_do (mount, cancellable, callback, user_data, argv);
639 [FILE:256:patches/patch-gio_gunixmounts.c]
640 --- gio/gunixmounts.c.orig 2019-09-05 16:56:48 UTC
641 +++ gio/gunixmounts.c
647 +#define mnt_opts mnt_mntopts
650 #include "gunixmounts.h"
651 #include "glocalfileprivate.h"
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
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;
666 const gchar *argv[] = { "eject", NULL, NULL };
668 argv[1] = unix_volume->device_path;
671 eject_mount_do (volume, cancellable, callback, user_data, argv);
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
679 #define _POSIX_C_SOURCE 199309L
682 +#include <sys/types.h>
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");
694 if (xdg_data_dirs == NULL)
695 - xdg_data_dirs = "/usr/local/share/:/usr/share/";
696 + xdg_data_dirs = "/usr/local/share/";
698 /* Work out how many dirs we’re dealing with. */
699 if (xdg_data_home != NULL || home != NULL)
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)
714 extern XdgMimeCache **_caches;
717 [FILE:228:patches/patch-glib_fix_hidden]
718 --- glib/gmem.c.orig 2019-09-05 16:56:49 UTC
721 #include "gbacktrace.h"
722 #include "gtestutils.h"
724 +#include "gthreadprivate.h"
725 #include "glib_trace.h"
730 [FILE:803:patches/patch-glib_gutils.c]
731 --- glib/gutils.c.orig 2019-09-05 16:56:49 UTC
738 +# define _POSIX_PTHREAD_SEMANTICS 1
739 +# undef HAVE_SYS_AUXV_H
742 #include "gutilsprivate.h"
744 @@ -2067,7 +2071,7 @@ g_build_system_data_dirs (void)
747 if (!data_dirs || !data_dirs[0])
748 - data_dirs = "/usr/local/share/:/usr/share/";
749 + data_dirs = "/usr/local/share/";
751 data_dir_vector = g_strsplit (data_dirs, G_SEARCHPATH_SEPARATOR_S, 0);
753 @@ -2161,7 +2165,7 @@ g_build_system_config_dirs (void)
756 if (!conf_dirs || !conf_dirs[0])
757 - conf_dirs = "/etc/xdg";
758 + conf_dirs = "/usr/local/etc/xdg:/etc/xdg";
760 conf_dir_vector = g_strsplit (conf_dirs, G_SEARCHPATH_SEPARATOR_S, 0);
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)
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");
776 @@ -2297,7 +2297,7 @@ test_adjust_time (void)
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");
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)
792 xdg = (gchar *)g_getenv ("XDG_CONFIG_DIRS");
795 + xdg = "/usr/local/etc/xdg:/etc/xdg";
797 dirs = g_get_system_config_dirs ();
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,
806 _g_module_self (void)
808 +#if ! defined(__FreeBSD__) && ! defined(__DragonFly__)
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));
817 + return RTLD_DEFAULT;
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*) ;;
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
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
850 POST_PLIST_TARGET= 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
858 [FILE:837:dragonfly/patch-meson.build]
859 --- meson.build.orig 2019-09-05 16:56:49 UTC
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')
867 - have_bind_textdomain_codeset = cc.has_function('bind_textdomain_codeset')
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)
878 glib_conf.set('HAVE_BIND_TEXTDOMAIN_CODESET', have_bind_textdomain_codeset)
882 [FILE:837:freebsd/patch-meson.build]
883 --- meson.build.orig 2019-09-05 16:56:49 UTC
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')
891 - have_bind_textdomain_codeset = cc.has_function('bind_textdomain_codeset')
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)
902 glib_conf.set('HAVE_BIND_TEXTDOMAIN_CODESET', have_bind_textdomain_codeset)
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@'])
913 +sun_socket = cc.find_library('socket')
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' : {},
921 'sleepy-stream' : {},
923 + 'socket' : { 'dependencies' : [sun_socket] },
924 'socket-listener' : {},
925 'socket-service' : {},
927 @@ -129,11 +131,11 @@ if host_machine.system() != 'windows'
928 'dependencies' : [libgdbus_example_objectmanager_dep],
929 'install_rpath' : installed_tests_execdir
931 - 'gdbus-peer-object-manager' : {},
932 + 'gdbus-peer-object-manager' : {'dependencies' : [sun_socket]},
934 'socket-address' : {},
935 - 'stream-rw_all' : {},
937 + 'stream-rw_all' : {'dependencies' : [sun_socket]},
938 + 'unix-fd' : {'dependencies' : [sun_socket]},
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)
953 [FILE:837:sunos/patch-meson.build]
954 --- meson.build.orig 2018-12-18 14:51:14 UTC
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')
962 - have_bind_textdomain_codeset = cc.has_function('bind_textdomain_codeset')
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)
973 glib_conf.set('HAVE_BIND_TEXTDOMAIN_CODESET', have_bind_textdomain_codeset)
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 = [{
982 'unicode-caseconv' : {},
983 'unicode-encoding' : {},
985 - 'dependencies' : [libgmodule_dep],
986 - 'export_dynamic' : true,
989 'source' : 'cxx-test.cpp',
990 'include_directories' : gmoduleinc,
993 [FILE:2798:darwin/patch-meson.build]
994 --- meson.build.orig 2018-12-18 14:51:14 UTC
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')
1003 osx_ldflags += ['-Wl,-framework,CoreFoundation']
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
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
1020 - name : 'OS X 9 or later')
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"
1028 - name : 'Mac OS X Cocoa support')
1031 glib_conf.set('HAVE_COCOA', true)
1032 osx_ldflags += ['-Wl,-framework,Foundation', '-Wl,-framework,AppKit']
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'])
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')
1048 - have_bind_textdomain_codeset = cc.has_function('bind_textdomain_codeset')
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)
1059 glib_conf.set('HAVE_BIND_TEXTDOMAIN_CODESET', have_bind_textdomain_codeset)