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.60
13 DISTFILE[1]= glib-2.60.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=gnu
52 INSTALL_TARGET= install-strip
53 INSTALL_REQ_TOOLCHAIN= yes
54 PLIST_SUB= LIBVERSION=0.6000.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
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.
91 20865d8b96840d89d9340fc485b4b1131c1bb24d16a258a22d642c3bb1b44353 4584416 gnome2/glib-2.60.0.tar.xz
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/
108 %%ONLY-SUNOS%%share/bash-completion/completions/
121 glib-compile-resources
131 include/gio-unix-2.0/gio/
133 gfiledescriptorbased.h
135 gunixcredentialsmessage.h
147 include/glib-2.0/gio/
150 gactiongroupexporter.h
154 gapplicationcommandline.h
157 gbufferedinputstream.h
158 gbufferedoutputstream.h
164 gconverterinputstream.h
165 gconverteroutputstream.h
176 gdbusinterfaceskeleton.h
180 gdbusmethodinvocation.h
185 gdbusobjectmanagerclient.h
186 gdbusobjectmanagerserver.h
188 gdbusobjectskeleton.h
193 gdtlsclientconnection.h
195 gdtlsserverconnection.h
209 gfilteroutputstream.h
229 gmemoryoutputstream.h
235 gnativevolumemonitor.h
243 gpollableinputstream.h
244 gpollableoutputstream.h
249 gproxyaddressenumerator.h
263 gsimpleproxyresolver.h
266 gsocketaddressenumerator.h
270 gsocketcontrolmessage.h
275 gsubprocesslauncher.h
278 gtcpwrapperconnection.h
281 gthreadedsocketservice.h
284 gtlsclientconnection.h
290 gtlsserverconnection.h
296 include/glib-2.0/glib/
374 include/glib-2.0/glib/deprecated/
381 include/glib-2.0/gobject/
389 gobject-autocleanups.h
414 lib/glib-2.0/include/glibconfig.h
420 gmodule-export-2.0.pc
421 gmodule-no-export-2.0.pc
424 libexec/installed-tests/glib/
425 appinfo-test-gnome.desktop
426 appinfo-test-notgnome.desktop
428 appinfo-test2.desktop
433 share/gdb/auto-load%%RESETPREFIX%%/lib/
434 libglib-2.0.so.%%LIBVERSION%%-gdb.py
435 libgobject-2.0.so.%%LIBVERSION%%-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
547 gio-querymodules.1.gz
549 glib-compile-resources.1.gz
550 glib-compile-schemas.1.gz
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
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
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);
583 state->schema_state = schema_state_new (path, gettext_domain,
584 extends, extends_name, list_of);
587 [FILE:232:patches/patch-gio_glocalfileinfo.c]
588 --- gio/glocalfileinfo.c.orig 2019-03-04 20:06:13 UTC
589 +++ gio/glocalfileinfo.c
595 +# define _POSIX_PTHREAD_SEMANTICS 1
600 #ifdef HAVE_SYS_TIME_H
603 [FILE:285:patches/patch-gio_gsocket.c]
604 --- gio/gsocket.c.orig 2019-03-04 20:06:13 UTC
614 #define GOBJECT_COMPILATION
615 #include "gobject/gtype-private.h" /* For _PRELUDE type define */
616 #undef GOBJECT_COMPILATION
619 [FILE:654:patches/patch-gio_gunixmount.c]
620 --- gio/gunixmount.c.orig 2019-03-04 20:06:14 UTC
622 @@ -356,12 +356,17 @@ g_unix_mount_eject (GMount *
625 GUnixMount *unix_mount = G_UNIX_MOUNT (mount);
626 +#if ! defined(__FreeBSD__) && ! defined(__DragonFly__)
627 char *argv[] = {"eject", NULL, NULL};
629 if (unix_mount->mount_path != NULL)
630 argv[1] = unix_mount->mount_path;
632 argv[1] = unix_mount->device_path;
634 + char *argv[] = {"cdcontrol", "-f", NULL, "eject", NULL};
635 + argv[2] = unix_mount->device_path;
638 eject_unmount_do (mount, cancellable, callback, user_data, argv);
642 [FILE:256:patches/patch-gio_gunixmounts.c]
643 --- gio/gunixmounts.c.orig 2019-03-04 20:06:14 UTC
644 +++ gio/gunixmounts.c
650 +#define mnt_opts mnt_mntopts
653 #include "gunixmounts.h"
654 #include "glocalfileprivate.h"
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
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;
669 const gchar *argv[] = { "eject", NULL, NULL };
671 argv[1] = unix_volume->device_path;
674 eject_mount_do (volume, cancellable, callback, user_data, argv);
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
682 #define _POSIX_C_SOURCE 199309L
685 +#include <sys/types.h>
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");
697 if (xdg_data_dirs == NULL)
698 - xdg_data_dirs = "/usr/local/share/:/usr/share/";
699 + xdg_data_dirs = "/usr/local/share/";
701 /* Work out how many dirs we’re dealing with. */
702 if (xdg_data_home != NULL || home != NULL)
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)
717 extern XdgMimeCache **_caches;
720 [FILE:228:patches/patch-glib_fix_hidden]
721 --- glib/gmem.c.orig 2019-03-04 20:06:14 UTC
724 #include "gbacktrace.h"
725 #include "gtestutils.h"
727 +#include "gthreadprivate.h"
728 #include "glib_trace.h"
733 [FILE:534:patches/patch-glib_gconvert.c]
734 Work around our situation of having both libiconv in libc and libiconv from
737 --- glib/gconvert.c.orig 2019-03-04 20:06:14 UTC
740 #error GNU libiconv in use but included iconv.h not from libiconv
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
750 [FILE:803:patches/patch-glib_gutils.c]
751 --- glib/gutils.c.orig 2019-03-04 20:06:14 UTC
758 +# define _POSIX_PTHREAD_SEMANTICS 1
759 +# undef HAVE_SYS_AUXV_H
762 #include "gutilsprivate.h"
764 @@ -2080,7 +2084,7 @@ g_build_system_data_dirs (void)
767 if (!data_dirs || !data_dirs[0])
768 - data_dirs = "/usr/local/share/:/usr/share/";
769 + data_dirs = "/usr/local/share/";
771 data_dir_vector = g_strsplit (data_dirs, G_SEARCHPATH_SEPARATOR_S, 0);
773 @@ -2174,7 +2178,7 @@ g_build_system_config_dirs (void)
776 if (!conf_dirs || !conf_dirs[0])
777 - conf_dirs = "/etc/xdg";
778 + conf_dirs = "/usr/local/etc/xdg:/etc/xdg";
780 conf_dir_vector = g_strsplit (conf_dirs, G_SEARCHPATH_SEPARATOR_S, 0);
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)
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");
796 @@ -2125,7 +2125,7 @@ test_adjust_time (void)
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");
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)
812 xdg = (gchar *)g_getenv ("XDG_CONFIG_DIRS");
815 + xdg = "/usr/local/etc/xdg:/etc/xdg";
817 dirs = g_get_system_config_dirs ();
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,
826 _g_module_self (void)
828 +#if ! defined(__FreeBSD__) && ! defined(__DragonFly__)
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));
837 + return RTLD_DEFAULT;
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*) ;;
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
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
870 POST_PLIST_TARGET= 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
878 [FILE:837:dragonfly/patch-meson.build]
879 --- meson.build.orig 2019-03-04 20:06:14 UTC
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')
887 - have_bind_textdomain_codeset = cc.has_function('bind_textdomain_codeset')
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)
898 glib_conf.set('HAVE_BIND_TEXTDOMAIN_CODESET', have_bind_textdomain_codeset)
902 [FILE:837:freebsd/patch-meson.build]
903 --- meson.build.orig 2019-03-04 20:06:14 UTC
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')
911 - have_bind_textdomain_codeset = cc.has_function('bind_textdomain_codeset')
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)
922 glib_conf.set('HAVE_BIND_TEXTDOMAIN_CODESET', have_bind_textdomain_codeset)
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@'])
933 +sun_socket = cc.find_library('socket')
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' : {},
941 'sleepy-stream' : {},
943 + 'socket' : { 'dependencies' : [sun_socket] },
944 'socket-listener' : {},
945 'socket-service' : {},
947 @@ -129,11 +131,11 @@ if host_machine.system() != 'windows'
948 'dependencies' : [libgdbus_example_objectmanager_dep],
949 'install_rpath' : installed_tests_execdir
951 - 'gdbus-peer-object-manager' : {},
952 + 'gdbus-peer-object-manager' : {'dependencies' : [sun_socket]},
954 'socket-address' : {},
955 - 'stream-rw_all' : {},
957 + 'stream-rw_all' : {'dependencies' : [sun_socket]},
958 + 'unix-fd' : {'dependencies' : [sun_socket]},
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)
973 [FILE:837:sunos/patch-meson.build]
974 --- meson.build.orig 2018-12-18 14:51:14 UTC
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')
982 - have_bind_textdomain_codeset = cc.has_function('bind_textdomain_codeset')
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)
993 glib_conf.set('HAVE_BIND_TEXTDOMAIN_CODESET', have_bind_textdomain_codeset)
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 = [{
1002 'unicode-caseconv' : {},
1003 'unicode-encoding' : {},
1005 - 'dependencies' : [libgmodule_dep],
1006 - 'export_dynamic' : true,
1009 'source' : 'cxx-test.cpp',
1010 'include_directories' : gmoduleinc,
1013 [FILE:2798:darwin/patch-meson.build]
1014 --- meson.build.orig 2018-12-18 14:51:14 UTC
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')
1023 osx_ldflags += ['-Wl,-framework,CoreFoundation']
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
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
1040 - name : 'OS X 9 or later')
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"
1048 - name : 'Mac OS X Cocoa support')
1051 glib_conf.set('HAVE_COCOA', true)
1052 osx_ldflags += ['-Wl,-framework,Foundation', '-Wl,-framework,AppKit']
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'])
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')
1068 - have_bind_textdomain_codeset = cc.has_function('bind_textdomain_codeset')
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)
1079 glib_conf.set('HAVE_BIND_TEXTDOMAIN_CODESET', have_bind_textdomain_codeset)