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.58
13 DISTFILE[1]= glib-2.58.3.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=gnu
49 MESON_INSERT_RPATH= gio/meson.build
57 INSTALL_TARGET= install-strip
58 INSTALL_REQ_TOOLCHAIN= yes
59 PLIST_SUB= LIBVERSION=0.5800.3
60 RESETPREFIX={{PREFIX}}
64 VAR_OPSYS[darwin]= MAKE_ENV=DYLD_FALLBACK_LIBRARY_PATH="$$DYLD_FALLBACK_LIBRARY_PATH:{{WRKSRC}}/_build/glib:{{WRKSRC}}/_build/gio:{{WRKSRC}}/_build/gobject:{{WRKSRC}}/_build/gmodule"
67 ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g ; \
68 s|/usr/share/locale/locale|${LOCALBASE}/share/locale/locale|g' \
69 ${WRKSRC}/glib/gutils.c
70 ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
71 ${WRKSRC}/gio/gunixmounts.c \
72 ${WRKSRC}/gio/xdgmime/xdgmime.c \
73 ${WRKSRC}/glib/tests/utils.c
74 ${REINPLACE_CMD} -e "s|python3|python${PYTHON_VER}|g" \
75 -e 's|/docbook.sourceforge.net/|/cdn.docbook.org/|' \
76 -e "/'_XOPEN_SOURCE'/d" \
79 ${REINPLACE_CMD} -e '/_XOPEN_SOURCE/d' \
80 ${WRKSRC}/glib/tests/strfuncs.c
81 for F in ${pyscripts}; do \
82 ${CHMOD} ${BINMODE} ${WRKSRC}/$$F; \
86 @${MKDIR} ${STAGEDIR}${PREFIX}/share/GConf/gsettings
87 @${MKDIR} ${STAGEDIR}${PREFIX}/lib/gio/modules
89 [FILE:205:descriptions/desc.single]
90 GLib provides a simple, abstract, and highly portable set of C support
91 routines such as lists, trees, hashes, memory allocation, and much, much
92 more. It is a foundation for writing portable applications.
96 8f43c31767e88a25da72b52a40f3301fefc49a665b56dc10ee7cc9565cbe7481 4863648 gnome2/glib-2.58.3.tar.xz
99 [FILE:10125:manifests/plist.single]
100 @comment share/glib-2.0/codegen auto-generated
101 %%EXCLUDE-DARWIN%%lib/
102 libgio-2.0.so.%%LIBVERSION%%
103 libglib-2.0.so.%%LIBVERSION%%
104 libgmodule-2.0.so.%%LIBVERSION%%
105 libgobject-2.0.so.%%LIBVERSION%%
106 libgthread-2.0.so.%%LIBVERSION%%
107 %%ONLY-LINUX%%share/bash-completion/completions/
113 %%ONLY-SUNOS%%share/bash-completion/completions/
126 glib-compile-resources
136 include/gio-unix-2.0/gio/
138 gfiledescriptorbased.h
140 gunixcredentialsmessage.h
152 include/glib-2.0/gio/
155 gactiongroupexporter.h
159 gapplicationcommandline.h
162 gbufferedinputstream.h
163 gbufferedoutputstream.h
169 gconverterinputstream.h
170 gconverteroutputstream.h
181 gdbusinterfaceskeleton.h
185 gdbusmethodinvocation.h
190 gdbusobjectmanagerclient.h
191 gdbusobjectmanagerserver.h
193 gdbusobjectskeleton.h
198 gdtlsclientconnection.h
200 gdtlsserverconnection.h
214 gfilteroutputstream.h
234 gmemoryoutputstream.h
240 gnativevolumemonitor.h
248 gpollableinputstream.h
249 gpollableoutputstream.h
254 gproxyaddressenumerator.h
268 gsimpleproxyresolver.h
271 gsocketaddressenumerator.h
275 gsocketcontrolmessage.h
280 gsubprocesslauncher.h
283 gtcpwrapperconnection.h
286 gthreadedsocketservice.h
289 gtlsclientconnection.h
295 gtlsserverconnection.h
301 include/glib-2.0/glib/
379 include/glib-2.0/glib/deprecated/
386 include/glib-2.0/gobject/
393 gobject-autocleanups.h
418 lib/glib-2.0/include/glibconfig.h
424 gmodule-export-2.0.pc
425 gmodule-no-export-2.0.pc
432 share/gdb/auto-load%%RESETPREFIX%%/lib/
433 libglib-2.0.so.%%LIBVERSION%%-gdb.py
434 libgobject-2.0.so.%%LIBVERSION%%-gdb.py
441 share/glib-2.0/gettext/po/Makefile.in.in
442 share/glib-2.0/schemas/gschema.dtd
443 share/glib-2.0/valgrind/glib.supp
444 share/locale/af/LC_MESSAGES/glib20.mo
445 share/locale/am/LC_MESSAGES/glib20.mo
446 share/locale/an/LC_MESSAGES/glib20.mo
447 share/locale/ar/LC_MESSAGES/glib20.mo
448 share/locale/as/LC_MESSAGES/glib20.mo
449 share/locale/ast/LC_MESSAGES/glib20.mo
450 share/locale/az/LC_MESSAGES/glib20.mo
451 share/locale/be/LC_MESSAGES/glib20.mo
452 share/locale/be@latin/LC_MESSAGES/glib20.mo
453 share/locale/bg/LC_MESSAGES/glib20.mo
454 share/locale/bn/LC_MESSAGES/glib20.mo
455 share/locale/bn_IN/LC_MESSAGES/glib20.mo
456 share/locale/bs/LC_MESSAGES/glib20.mo
457 share/locale/ca/LC_MESSAGES/glib20.mo
458 share/locale/ca@valencia/LC_MESSAGES/glib20.mo
459 share/locale/cs/LC_MESSAGES/glib20.mo
460 share/locale/cy/LC_MESSAGES/glib20.mo
461 share/locale/da/LC_MESSAGES/glib20.mo
462 share/locale/de/LC_MESSAGES/glib20.mo
463 share/locale/dz/LC_MESSAGES/glib20.mo
464 share/locale/el/LC_MESSAGES/glib20.mo
465 share/locale/en@shaw/LC_MESSAGES/glib20.mo
466 share/locale/en_CA/LC_MESSAGES/glib20.mo
467 share/locale/en_GB/LC_MESSAGES/glib20.mo
468 share/locale/eo/LC_MESSAGES/glib20.mo
469 share/locale/es/LC_MESSAGES/glib20.mo
470 share/locale/et/LC_MESSAGES/glib20.mo
471 share/locale/eu/LC_MESSAGES/glib20.mo
472 share/locale/fa/LC_MESSAGES/glib20.mo
473 share/locale/fi/LC_MESSAGES/glib20.mo
474 share/locale/fr/LC_MESSAGES/glib20.mo
475 share/locale/fur/LC_MESSAGES/glib20.mo
476 share/locale/ga/LC_MESSAGES/glib20.mo
477 share/locale/gd/LC_MESSAGES/glib20.mo
478 share/locale/gl/LC_MESSAGES/glib20.mo
479 share/locale/gu/LC_MESSAGES/glib20.mo
480 share/locale/he/LC_MESSAGES/glib20.mo
481 share/locale/hi/LC_MESSAGES/glib20.mo
482 share/locale/hr/LC_MESSAGES/glib20.mo
483 share/locale/hu/LC_MESSAGES/glib20.mo
484 share/locale/hy/LC_MESSAGES/glib20.mo
485 share/locale/id/LC_MESSAGES/glib20.mo
486 share/locale/is/LC_MESSAGES/glib20.mo
487 share/locale/it/LC_MESSAGES/glib20.mo
488 share/locale/ja/LC_MESSAGES/glib20.mo
489 share/locale/ka/LC_MESSAGES/glib20.mo
490 share/locale/kk/LC_MESSAGES/glib20.mo
491 share/locale/kn/LC_MESSAGES/glib20.mo
492 share/locale/ko/LC_MESSAGES/glib20.mo
493 share/locale/ku/LC_MESSAGES/glib20.mo
494 share/locale/lt/LC_MESSAGES/glib20.mo
495 share/locale/lv/LC_MESSAGES/glib20.mo
496 share/locale/mai/LC_MESSAGES/glib20.mo
497 share/locale/mg/LC_MESSAGES/glib20.mo
498 share/locale/mk/LC_MESSAGES/glib20.mo
499 share/locale/ml/LC_MESSAGES/glib20.mo
500 share/locale/mn/LC_MESSAGES/glib20.mo
501 share/locale/mr/LC_MESSAGES/glib20.mo
502 share/locale/ms/LC_MESSAGES/glib20.mo
503 share/locale/nb/LC_MESSAGES/glib20.mo
504 share/locale/nds/LC_MESSAGES/glib20.mo
505 share/locale/ne/LC_MESSAGES/glib20.mo
506 share/locale/nl/LC_MESSAGES/glib20.mo
507 share/locale/nn/LC_MESSAGES/glib20.mo
508 share/locale/oc/LC_MESSAGES/glib20.mo
509 share/locale/or/LC_MESSAGES/glib20.mo
510 share/locale/pa/LC_MESSAGES/glib20.mo
511 share/locale/pl/LC_MESSAGES/glib20.mo
512 share/locale/ps/LC_MESSAGES/glib20.mo
513 share/locale/pt/LC_MESSAGES/glib20.mo
514 share/locale/pt_BR/LC_MESSAGES/glib20.mo
515 share/locale/ro/LC_MESSAGES/glib20.mo
516 share/locale/ru/LC_MESSAGES/glib20.mo
517 share/locale/rw/LC_MESSAGES/glib20.mo
518 share/locale/si/LC_MESSAGES/glib20.mo
519 share/locale/sk/LC_MESSAGES/glib20.mo
520 share/locale/sl/LC_MESSAGES/glib20.mo
521 share/locale/sq/LC_MESSAGES/glib20.mo
522 share/locale/sr/LC_MESSAGES/glib20.mo
523 share/locale/sr@ije/LC_MESSAGES/glib20.mo
524 share/locale/sr@latin/LC_MESSAGES/glib20.mo
525 share/locale/sv/LC_MESSAGES/glib20.mo
526 share/locale/ta/LC_MESSAGES/glib20.mo
527 share/locale/te/LC_MESSAGES/glib20.mo
528 share/locale/tg/LC_MESSAGES/glib20.mo
529 share/locale/th/LC_MESSAGES/glib20.mo
530 share/locale/tl/LC_MESSAGES/glib20.mo
531 share/locale/tr/LC_MESSAGES/glib20.mo
532 share/locale/tt/LC_MESSAGES/glib20.mo
533 share/locale/ug/LC_MESSAGES/glib20.mo
534 share/locale/uk/LC_MESSAGES/glib20.mo
535 share/locale/vi/LC_MESSAGES/glib20.mo
536 share/locale/wa/LC_MESSAGES/glib20.mo
537 share/locale/xh/LC_MESSAGES/glib20.mo
538 share/locale/yi/LC_MESSAGES/glib20.mo
539 share/locale/zh_CN/LC_MESSAGES/glib20.mo
540 share/locale/zh_HK/LC_MESSAGES/glib20.mo
541 share/locale/zh_TW/LC_MESSAGES/glib20.mo
546 gio-querymodules.1.gz
548 glib-compile-resources.1.gz
549 glib-compile-schemas.1.gz
559 @dir share/GConf/gsettings
560 @postexec %D/bin/gio-querymodules %D/lib/gio/modules 2>/dev/null || /usr/bin/true
561 @postexec %D/bin/glib-compile-schemas %D/share/glib-2.0/schemas 2>/dev/null || /usr/bin/true
562 @postunexec /bin/rm -f %D/share/glib-2.0/schemas/gschemas.compiled || /usr/bin/true
565 [FILE:631:patches/patch-gio_glib-compile-schemas.c]
566 --- gio/glib-compile-schemas.c.orig 2018-12-18 14:51:13 UTC
567 +++ gio/glib-compile-schemas.c
568 @@ -1233,6 +1233,7 @@ parse_state_start_schema (ParseState *s
573 if (path && (g_str_has_prefix (path, "/apps/") ||
574 g_str_has_prefix (path, "/desktop/") ||
575 g_str_has_prefix (path, "/system/")))
576 @@ -1245,6 +1246,7 @@ parse_state_start_schema (ParseState *s
577 g_printerr ("%s\n", message);
582 state->schema_state = schema_state_new (path, gettext_domain,
583 extends, extends_name, list_of);
586 [FILE:232:patches/patch-gio_glocalfileinfo.c]
587 --- gio/glocalfileinfo.c.orig 2018-12-18 14:51:13 UTC
588 +++ gio/glocalfileinfo.c
594 +# define _POSIX_PTHREAD_SEMANTICS 1
599 #ifdef HAVE_SYS_TIME_H
602 [FILE:285:patches/patch-gio_gsocket.c]
603 --- gio/gsocket.c.orig 2018-12-18 14:51:13 UTC
613 #define GOBJECT_COMPILATION
614 #include "gobject/gtype-private.h" /* For _PRELUDE type define */
615 #undef GOBJECT_COMPILATION
618 [FILE:654:patches/patch-gio_gunixmount.c]
619 --- gio/gunixmount.c.orig 2018-12-18 14:51:13 UTC
621 @@ -356,12 +356,17 @@ g_unix_mount_eject (GMount *
624 GUnixMount *unix_mount = G_UNIX_MOUNT (mount);
625 +#if ! defined(__FreeBSD__) && ! defined(__DragonFly__)
626 char *argv[] = {"eject", NULL, NULL};
628 if (unix_mount->mount_path != NULL)
629 argv[1] = unix_mount->mount_path;
631 argv[1] = unix_mount->device_path;
633 + char *argv[] = {"cdcontrol", "-f", NULL, "eject", NULL};
634 + argv[2] = unix_mount->device_path;
637 eject_unmount_do (mount, cancellable, callback, user_data, argv);
641 [FILE:256:patches/patch-gio_gunixmounts.c]
642 --- gio/gunixmounts.c.orig 2018-12-18 14:51:13 UTC
643 +++ gio/gunixmounts.c
649 +#define mnt_opts mnt_mntopts
652 #include "gunixmounts.h"
653 #include "glocalfileprivate.h"
657 [FILE:571:patches/patch-gio_gunixvolume.c]
658 --- gio/gunixvolume.c.orig 2018-12-18 14:51:13 UTC
659 +++ gio/gunixvolume.c
660 @@ -365,9 +365,14 @@ g_unix_volume_eject (GVolume
663 GUnixVolume *unix_volume = G_UNIX_VOLUME (volume);
664 +#if defined(__FreeBSD__) || defined(__DragonFly__)
665 + const gchar *argv[] = {"cdcontrol", "-f", NULL, "eject", NULL};
666 + argv[2] = unix_volume->device_path;
668 const gchar *argv[] = { "eject", NULL, NULL };
670 argv[1] = unix_volume->device_path;
673 eject_mount_do (volume, cancellable, callback, user_data, argv);
677 [FILE:237:patches/patch-gio_tests_include.c]
678 --- glib/tests/include.c.orig 2018-12-18 14:51:14 UTC
679 +++ glib/tests/include.c
681 #define _POSIX_C_SOURCE 199309L
684 +#include <sys/types.h>
690 [FILE:343:patches/patch-gio_xdgmime_xdgmime.c]
691 --- gio/xdgmime/xdgmime.c.orig 2018-12-18 14:51:13 UTC
692 +++ gio/xdgmime/xdgmime.c
693 @@ -255,7 +255,7 @@ xdg_run_command_on_dirs (XdgDirectoryFun
695 xdg_data_dirs = getenv ("XDG_DATA_DIRS");
696 if (xdg_data_dirs == NULL)
697 - xdg_data_dirs = "/usr/local/share/:/usr/share/";
698 + xdg_data_dirs = "/usr/local/share/";
704 [FILE:766:patches/patch-gio_xdgmime_xdgmimecache.h]
705 --- gio/xdgmime/xdgmimecache.h.orig 2018-12-18 14:51:13 UTC
706 +++ gio/xdgmime/xdgmimecache.h
707 @@ -44,6 +44,9 @@ typedef struct _XdgMimeCache XdgMimeCach
708 #define _xdg_mime_cache_get_icon XDG_RESERVED_ENTRY(cache_get_icon)
709 #define _xdg_mime_cache_get_generic_icon XDG_RESERVED_ENTRY(cache_get_generic_icon)
710 #define _xdg_mime_cache_glob_dump XDG_RESERVED_ENTRY(cache_glob_dump)
711 +#define _xdg_mime_cache_is_valid_mime_type XDG_RESERVED_ENTRY(cache_is_valid_mime_type)
712 +#define _xdg_mime_cache_mime_type_equal XDG_RESERVED_ENTRY(cache_mime_type_equal)
713 +#define _xdg_mime_cache_media_type_equal XDG_RESERVED_ENTRY(cache_media_type_equal)
716 extern XdgMimeCache **_caches;
719 [FILE:228:patches/patch-glib_fix_hidden]
720 --- glib/gmem.c.orig 2018-12-18 14:51:14 UTC
723 #include "gbacktrace.h"
724 #include "gtestutils.h"
726 +#include "gthreadprivate.h"
727 #include "glib_trace.h"
732 [FILE:534:patches/patch-glib_gconvert.c]
733 Work around our situation of having both libiconv in libc and libiconv from
736 --- glib/gconvert.c.orig 2018-12-18 14:51:14 UTC
739 #error GNU libiconv in use but included iconv.h not from libiconv
741 #if !defined(USE_LIBICONV_GNU) && defined (_LIBICONV_H) \
742 - && !defined (__APPLE_CC__) && !defined (__LP_64__)
743 + && !defined (LIBICONV_PLUG) && !defined (__APPLE_CC__) && !defined (__LP_64__)
744 #error GNU libiconv not in use but included iconv.h is from libiconv
749 [FILE:824:patches/patch-glib_gutils.c]
750 --- glib/gutils.c.orig 2018-12-18 14:51:14 UTC
757 +# define _POSIX_PTHREAD_SEMANTICS 1
758 +# undef HAVE_SYS_AUXV_H
763 @@ -2043,7 +2047,7 @@ g_get_system_data_dirs (void)
766 if (!data_dirs || !data_dirs[0])
767 - data_dirs = "/usr/local/share/:/usr/share/";
768 + data_dirs = "/usr/local/share/";
770 data_dir_vector = g_strsplit (data_dirs, G_SEARCHPATH_SEPARATOR_S, 0);
772 @@ -2119,7 +2123,7 @@ g_get_system_config_dirs (void)
775 if (!conf_dirs || !conf_dirs[0])
776 - conf_dirs = "/etc/xdg";
777 + conf_dirs = "/usr/local/etc/xdg:/etc/xdg";
779 conf_dir_vector = g_strsplit (conf_dirs, G_SEARCHPATH_SEPARATOR_S, 0);
783 [FILE:615:patches/patch-glib_tests_gdatetime.c]
784 --- glib/tests/gdatetime.c.orig 2018-12-18 14:51:14 UTC
785 +++ glib/tests/gdatetime.c
786 @@ -2092,7 +2092,7 @@ test_find_interval (void)
790 - tz = g_time_zone_new ("America/Toronto");
791 + tz = g_time_zone_new ("America/Toronto Eastern");
792 #elif defined G_OS_WIN32
793 tz = g_time_zone_new ("Eastern Standard Time");
795 @@ -2125,7 +2125,7 @@ test_adjust_time (void)
799 - tz = g_time_zone_new ("America/Toronto");
800 + tz = g_time_zone_new ("America/Toronto Eastern");
801 #elif defined G_OS_WIN32
802 tz = g_time_zone_new ("Eastern Standard Time");
806 [FILE:287:patches/patch-glib_tests_utils.c]
807 --- glib/tests/utils.c.orig 2018-12-18 14:51:14 UTC
808 +++ glib/tests/utils.c
809 @@ -441,7 +441,7 @@ test_xdg_dirs (void)
811 xdg = (gchar *)g_getenv ("XDG_CONFIG_DIRS");
814 + xdg = "/usr/local/etc/xdg:/etc/xdg";
816 dirs = g_get_system_config_dirs ();
820 [FILE:500:patches/patch-gmodule_gmodule-dl.c]
821 --- gmodule/gmodule-dl.c.orig 2018-12-18 14:51:14 UTC
822 +++ gmodule/gmodule-dl.c
823 @@ -106,6 +106,7 @@ _g_module_open (const gchar *file_name,
825 _g_module_self (void)
827 +#if ! defined(__FreeBSD__) && ! defined(__DragonFly__)
830 /* to query symbols from the program itself, special link options
831 @@ -128,6 +129,9 @@ _g_module_self (void)
832 g_module_set_error (fetch_dlerror (TRUE));
836 + return RTLD_DEFAULT;
843 [FILE:638:patches/patch-m4macros_attributes.m4]
844 --- m4macros/attributes.m4.orig 2018-12-18 14:51:14 UTC
845 +++ m4macros/attributes.m4
846 @@ -86,7 +86,7 @@ AC_DEFUN([CC_NOUNDEFINED], [
847 dnl FreeBSD (et al.) does not complete linking for shared objects when pthreads
848 dnl are requested, as different implementations are present; to avoid problems
849 dnl use -Wl,-z,defs only for those platform not behaving this way.
850 - *-freebsd* | *-openbsd*) ;;
851 + *-freebsd* | *-openbsd* | *-dragonfly*) ;;
853 dnl First of all check for the --no-undefined variant of GNU ld. This allows
854 dnl for a much more readable commandline, so that people can understand what
857 [FILE:624:files/special.mk]
858 glib_MAN= gtester.1 gtester-report.1 glib-gettextize.1
859 gio_MAN= gdbus.1 gsettings.1 gio-querymodules.1 \
860 glib-compile-schemas.1 gapplication.1 \
861 glib-compile-resources.1 gresource.1 gdbus-codegen.1
862 gobject_MAN= glib-genmarshal.1 glib-mkenums.1 gobject-query.1
863 pyscripts= gio/tests/gengiotypefuncs.py \
864 gio/gio-querymodules-wrapper.py \
865 glib/update-gtranslit.py \
866 tests/gen-casefold-txt.py \
867 tests/gen-casemap-txt.py
869 POST_PLIST_TARGET= my-autolist
872 (cd ${STAGEDIR}${PREFIX} && ${FIND} share/glib-2.0/codegen \
873 \( -type f -o -type l \) 2>/dev/null | ${SORT}) \
874 >> ${WRKDIR}/.manifest.single.mktmp
877 [FILE:837:dragonfly/patch-meson.build]
878 --- meson.build.orig 2018-12-18 14:51:14 UTC
880 @@ -1771,10 +1771,6 @@ endif
881 # proxy-libintl subproject.
882 # FIXME: glib-gettext.m4 has much more checks to detect broken/uncompatible
883 # implementations. This could be extended if issues are found in some platforms.
884 -if cc.has_function('ngettext')
886 - have_bind_textdomain_codeset = cc.has_function('bind_textdomain_codeset')
888 libintl = cc.find_library('intl', required : false)
889 if not libintl.found()
890 libintl = subproject('proxy-libintl').get_variable('intl_dep')
891 @@ -1783,7 +1779,6 @@ else
892 have_bind_textdomain_codeset = cc.has_function('bind_textdomain_codeset',
893 dependencies : libintl)
897 glib_conf.set('HAVE_BIND_TEXTDOMAIN_CODESET', have_bind_textdomain_codeset)
901 [FILE:837:freebsd/patch-meson.build]
902 --- meson.build.orig 2018-12-18 14:51:14 UTC
904 @@ -1771,10 +1771,6 @@ endif
905 # proxy-libintl subproject.
906 # FIXME: glib-gettext.m4 has much more checks to detect broken/uncompatible
907 # implementations. This could be extended if issues are found in some platforms.
908 -if cc.has_function('ngettext')
910 - have_bind_textdomain_codeset = cc.has_function('bind_textdomain_codeset')
912 libintl = cc.find_library('intl', required : false)
913 if not libintl.found()
914 libintl = subproject('proxy-libintl').get_variable('intl_dep')
915 @@ -1783,7 +1779,6 @@ else
916 have_bind_textdomain_codeset = cc.has_function('bind_textdomain_codeset',
917 dependencies : libintl)
921 glib_conf.set('HAVE_BIND_TEXTDOMAIN_CODESET', have_bind_textdomain_codeset)
925 [FILE:1695:sunos/patch-gio_tests_meson.build]
926 --- gio/tests/meson.build.orig 2018-12-18 14:51:13 UTC
927 +++ gio/tests/meson.build
928 @@ -25,6 +25,8 @@ giotypefuncs_inc = custom_target(
929 input : gio_headers + [gioenumtypes_h] + gobject_install_headers,
930 command: [gengiotypefuncs_prog, '@OUTPUT@', '@INPUT@'])
932 +sun_socket = cc.find_library('socket')
934 # Test programs buildable on all platforms
935 # FIXME: We are using list of dictionnaries until we can depend on Meson 0.48.0
936 # that supports '+=' operator on dictionnaries.
937 @@ -67,7 +69,7 @@ gio_tests = [{
938 'simple-async-result' : {},
940 'sleepy-stream' : {},
942 + 'socket' : { 'dependencies' : [sun_socket] },
943 'socket-listener' : {},
944 'socket-service' : {},
946 @@ -129,11 +131,11 @@ if host_machine.system() != 'windows'
947 'dependencies' : [libgdbus_example_objectmanager_dep],
948 'install_rpath' : installed_tests_execdir
950 - 'gdbus-peer-object-manager' : {},
951 + 'gdbus-peer-object-manager' : {'dependencies' : [sun_socket]},
953 'socket-address' : {},
954 - 'stream-rw_all' : {},
956 + 'stream-rw_all' : {'dependencies' : [sun_socket]},
957 + 'unix-fd' : {'dependencies' : [sun_socket]},
960 'g-file-info-filesystem-readonly' : {},
961 @@ -285,7 +287,7 @@ if host_machine.system() != 'windows'
962 # This test is currently unreliable
963 executable('gdbus-overflow', 'gdbus-overflow.c',
964 c_args : test_c_args,
965 - dependencies : common_gio_tests_deps,
966 + dependencies : [common_gio_tests_deps, sun_socket],
967 install_dir : installed_tests_execdir,
968 install : installed_tests_enabled)
972 [FILE:837:sunos/patch-meson.build]
973 --- meson.build.orig 2018-12-18 14:51:14 UTC
975 @@ -1771,10 +1771,6 @@ endif
976 # proxy-libintl subproject.
977 # FIXME: glib-gettext.m4 has much more checks to detect broken/uncompatible
978 # implementations. This could be extended if issues are found in some platforms.
979 -if cc.has_function('ngettext')
981 - have_bind_textdomain_codeset = cc.has_function('bind_textdomain_codeset')
983 libintl = cc.find_library('intl', required : false)
984 if not libintl.found()
985 libintl = subproject('proxy-libintl').get_variable('intl_dep')
986 @@ -1783,7 +1779,6 @@ else
987 have_bind_textdomain_codeset = cc.has_function('bind_textdomain_codeset',
988 dependencies : libintl)
992 glib_conf.set('HAVE_BIND_TEXTDOMAIN_CODESET', have_bind_textdomain_codeset)
996 [FILE:368:sunos/patch-tests_meson.build]
997 --- tests/meson.build.orig 2018-12-18 14:51:14 UTC
998 +++ tests/meson.build
999 @@ -45,10 +45,6 @@ tests = [{
1001 'unicode-caseconv' : {},
1002 'unicode-encoding' : {},
1004 - 'dependencies' : [libgmodule_dep],
1005 - 'export_dynamic' : true,
1008 'source' : 'cxx-test.cpp',
1009 'include_directories' : gmoduleinc,
1012 [FILE:2798:darwin/patch-meson.build]
1013 --- meson.build.orig 2018-12-18 14:51:14 UTC
1015 @@ -609,42 +609,23 @@ glib_have_os_x_9_or_later = false
1016 glib_have_carbon = false
1017 glib_have_cocoa = false
1018 if host_system == 'darwin'
1019 - add_languages('objc')
1020 - objcc = meson.get_compiler('objc')
1022 osx_ldflags += ['-Wl,-framework,CoreFoundation']
1024 - # Mac OS X Carbon support
1025 - glib_have_carbon = objcc.compiles('''#include <Carbon/Carbon.h>
1026 - #include <CoreServices/CoreServices.h>''',
1027 - name : 'Mac OS X Carbon support')
1028 + glib_have_carbon = false
1029 + glib_have_cocoa = false
1030 + glib_have_os_x_9_or_later = true
1033 glib_conf.set('HAVE_CARBON', true)
1034 osx_ldflags += '-Wl,-framework,Carbon'
1035 - glib_have_os_x_9_or_later = objcc.compiles('''#include <AvailabilityMacros.h>
1036 - #if MAC_OS_X_VERSION_MIN_REQUIRED < 1090
1037 - #error Compiling for minimum OS X version before 10.9
1039 - name : 'OS X 9 or later')
1042 - # Mac OS X Cocoa support
1043 - glib_have_cocoa = objcc.compiles('''#include <Cocoa/Cocoa.h>
1044 - #ifdef GNUSTEP_BASE_VERSION
1045 - #error "Detected GNUstep, not Cocoa"
1047 - name : 'Mac OS X Cocoa support')
1050 glib_conf.set('HAVE_COCOA', true)
1051 osx_ldflags += ['-Wl,-framework,Foundation', '-Wl,-framework,AppKit']
1054 - # FIXME: libgio mix C and objC source files and there is no way to reliably
1055 - # know which language flags it's going to use to link. Add to both languages
1056 - # for now. See https://github.com/mesonbuild/meson/issues/3585.
1057 - add_project_link_arguments(osx_ldflags, language : ['objc', 'c'])
1060 # Check for futex(2)
1061 @@ -1771,10 +1752,6 @@ endif
1062 # proxy-libintl subproject.
1063 # FIXME: glib-gettext.m4 has much more checks to detect broken/uncompatible
1064 # implementations. This could be extended if issues are found in some platforms.
1065 -if cc.has_function('ngettext')
1067 - have_bind_textdomain_codeset = cc.has_function('bind_textdomain_codeset')
1069 libintl = cc.find_library('intl', required : false)
1070 if not libintl.found()
1071 libintl = subproject('proxy-libintl').get_variable('intl_dep')
1072 @@ -1783,7 +1760,6 @@ else
1073 have_bind_textdomain_codeset = cc.has_function('bind_textdomain_codeset',
1074 dependencies : libintl)
1078 glib_conf.set('HAVE_BIND_TEXTDOMAIN_CODESET', have_bind_textdomain_codeset)