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.54
13 DISTFILE[1]= glib-2.54.1.tar.xz:main
16 SPKGS[standard]= single
18 OPTIONS_AVAILABLE= none
19 OPTIONS_STANDARD= none
21 BUILDRUN_DEPENDS= pcre:static:standard
23 libffi:single:standard
25 USES= gettext-tools gettext-runtime gmake libtool
26 perl:build pkgconfig python:build shebangfix zlib
28 FPC_EQUIVALENT= devel/glib20
32 CONFIGURE_ARGS= --disable-gtk-doc
33 --with-html-dir={{PREFIX}}/share/doc
42 CONFIGURE_ENV= ac_cv_header_sys_inotify_h=
44 INSTALL_TARGET= install-strip
45 INSTALL_REQ_TOOLCHAIN= yes
46 PLIST_SUB= LIBVERSION=0.5400.1
47 RESETPREFIX={{PREFIX}}
50 @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g ; \
51 s|/usr/share/locale/locale|${LOCALBASE}/share/locale/locale|g' \
52 ${WRKSRC}/glib/gutils.c
53 @${REINPLACE_CMD} -e 's|inotify_support=yes|inotify_support=no| ; \
55 s|#define HAVE_SYS_INOTIFY_H 1||' ${WRKSRC}/configure
58 @${MKDIR} ${STAGEDIR}${PREFIX}/share/GConf/gsettings
59 @${MKDIR} ${STAGEDIR}${PREFIX}/lib/gio/modules
60 .for m in glib gio gobject
61 ${INSTALL_MAN} ${${m}_MAN:S|^|${WRKSRC}/docs/reference/${m}/|} \
62 ${STAGEDIR}${MANPREFIX}/man/man1
65 [FILE:205:descriptions/desc.single]
66 GLib provides a simple, abstract, and highly portable set of C support
67 routines such as lists, trees, hashes, memory allocation, and much, much
68 more. It is a foundation for writing portable applications.
72 50c01b1419324f10fbf9b9709ec2164b18586968bdce7540583bf32302cf47a3 7829104 gnome2/glib-2.54.1.tar.xz
75 [FILE:10055:manifests/plist.single]
82 glib-compile-resources
92 share/bash-completion/completions/
96 include/gio-unix-2.0/gio/
98 gfiledescriptorbased.h
100 gunixcredentialsmessage.h
107 include/glib-2.0/gio/
110 gactiongroupexporter.h
114 gapplicationcommandline.h
117 gbufferedinputstream.h
118 gbufferedoutputstream.h
124 gconverterinputstream.h
125 gconverteroutputstream.h
136 gdbusinterfaceskeleton.h
140 gdbusmethodinvocation.h
145 gdbusobjectmanagerclient.h
146 gdbusobjectmanagerserver.h
148 gdbusobjectskeleton.h
153 gdtlsclientconnection.h
155 gdtlsserverconnection.h
169 gfilteroutputstream.h
189 gmemoryoutputstream.h
195 gnativevolumemonitor.h
203 gpollableinputstream.h
204 gpollableoutputstream.h
209 gproxyaddressenumerator.h
223 gsimpleproxyresolver.h
226 gsocketaddressenumerator.h
230 gsocketcontrolmessage.h
235 gsubprocesslauncher.h
238 gtcpwrapperconnection.h
241 gthreadedsocketservice.h
244 gtlsclientconnection.h
250 gtlsserverconnection.h
260 include/glib-2.0/glib/deprecated/
267 include/glib-2.0/glib/
344 include/glib-2.0/gobject/
351 gobject-autocleanups.h
365 lib/glib-2.0/include/glibconfig.h
370 libgio-2.0.so.%%LIBVERSION%%
374 libglib-2.0.so.%%LIBVERSION%%
378 libgmodule-2.0.so.%%LIBVERSION%%
382 libgobject-2.0.so.%%LIBVERSION%%
386 libgthread-2.0.so.%%LIBVERSION%%
392 gmodule-export-2.0.pc
393 gmodule-no-export-2.0.pc
400 gio-querymodules.1.gz
401 glib-compile-resources.1.gz
402 glib-compile-schemas.1.gz
415 share/bash-completion/completions/
417 share/gdb/auto-load%%RESETPREFIX%%/lib/
418 libglib-2.0.so.%%LIBVERSION%%-gdb.py
419 libgobject-2.0.so.%%LIBVERSION%%-gdb.py
423 @comment share/glib-2.0/codegen auto-generated
427 share/glib-2.0/gettext/po/Makefile.in.in
428 share/glib-2.0/schemas/gschema.dtd
429 share/glib-2.0/valgrind/glib.supp
430 share/locale/af/LC_MESSAGES/glib20.mo
431 share/locale/am/LC_MESSAGES/glib20.mo
432 share/locale/an/LC_MESSAGES/glib20.mo
433 share/locale/ar/LC_MESSAGES/glib20.mo
434 share/locale/as/LC_MESSAGES/glib20.mo
435 share/locale/ast/LC_MESSAGES/glib20.mo
436 share/locale/az/LC_MESSAGES/glib20.mo
437 share/locale/be/LC_MESSAGES/glib20.mo
438 share/locale/be@latin/LC_MESSAGES/glib20.mo
439 share/locale/bg/LC_MESSAGES/glib20.mo
440 share/locale/bn/LC_MESSAGES/glib20.mo
441 share/locale/bn_IN/LC_MESSAGES/glib20.mo
442 share/locale/bs/LC_MESSAGES/glib20.mo
443 share/locale/ca/LC_MESSAGES/glib20.mo
444 share/locale/ca@valencia/LC_MESSAGES/glib20.mo
445 share/locale/cs/LC_MESSAGES/glib20.mo
446 share/locale/cy/LC_MESSAGES/glib20.mo
447 share/locale/da/LC_MESSAGES/glib20.mo
448 share/locale/de/LC_MESSAGES/glib20.mo
449 share/locale/dz/LC_MESSAGES/glib20.mo
450 share/locale/el/LC_MESSAGES/glib20.mo
451 share/locale/en@shaw/LC_MESSAGES/glib20.mo
452 share/locale/en_CA/LC_MESSAGES/glib20.mo
453 share/locale/en_GB/LC_MESSAGES/glib20.mo
454 share/locale/eo/LC_MESSAGES/glib20.mo
455 share/locale/es/LC_MESSAGES/glib20.mo
456 share/locale/et/LC_MESSAGES/glib20.mo
457 share/locale/eu/LC_MESSAGES/glib20.mo
458 share/locale/fa/LC_MESSAGES/glib20.mo
459 share/locale/fi/LC_MESSAGES/glib20.mo
460 share/locale/fr/LC_MESSAGES/glib20.mo
461 share/locale/fur/LC_MESSAGES/glib20.mo
462 share/locale/ga/LC_MESSAGES/glib20.mo
463 share/locale/gd/LC_MESSAGES/glib20.mo
464 share/locale/gl/LC_MESSAGES/glib20.mo
465 share/locale/gu/LC_MESSAGES/glib20.mo
466 share/locale/he/LC_MESSAGES/glib20.mo
467 share/locale/hi/LC_MESSAGES/glib20.mo
468 share/locale/hr/LC_MESSAGES/glib20.mo
469 share/locale/hu/LC_MESSAGES/glib20.mo
470 share/locale/hy/LC_MESSAGES/glib20.mo
471 share/locale/id/LC_MESSAGES/glib20.mo
472 share/locale/is/LC_MESSAGES/glib20.mo
473 share/locale/it/LC_MESSAGES/glib20.mo
474 share/locale/ja/LC_MESSAGES/glib20.mo
475 share/locale/ka/LC_MESSAGES/glib20.mo
476 share/locale/kk/LC_MESSAGES/glib20.mo
477 share/locale/kn/LC_MESSAGES/glib20.mo
478 share/locale/ko/LC_MESSAGES/glib20.mo
479 share/locale/ku/LC_MESSAGES/glib20.mo
480 share/locale/lt/LC_MESSAGES/glib20.mo
481 share/locale/lv/LC_MESSAGES/glib20.mo
482 share/locale/mai/LC_MESSAGES/glib20.mo
483 share/locale/mg/LC_MESSAGES/glib20.mo
484 share/locale/mk/LC_MESSAGES/glib20.mo
485 share/locale/ml/LC_MESSAGES/glib20.mo
486 share/locale/mn/LC_MESSAGES/glib20.mo
487 share/locale/mr/LC_MESSAGES/glib20.mo
488 share/locale/ms/LC_MESSAGES/glib20.mo
489 share/locale/nb/LC_MESSAGES/glib20.mo
490 share/locale/nds/LC_MESSAGES/glib20.mo
491 share/locale/ne/LC_MESSAGES/glib20.mo
492 share/locale/nl/LC_MESSAGES/glib20.mo
493 share/locale/nn/LC_MESSAGES/glib20.mo
494 share/locale/oc/LC_MESSAGES/glib20.mo
495 share/locale/or/LC_MESSAGES/glib20.mo
496 share/locale/pa/LC_MESSAGES/glib20.mo
497 share/locale/pl/LC_MESSAGES/glib20.mo
498 share/locale/ps/LC_MESSAGES/glib20.mo
499 share/locale/pt/LC_MESSAGES/glib20.mo
500 share/locale/pt_BR/LC_MESSAGES/glib20.mo
501 share/locale/ro/LC_MESSAGES/glib20.mo
502 share/locale/ru/LC_MESSAGES/glib20.mo
503 share/locale/rw/LC_MESSAGES/glib20.mo
504 share/locale/si/LC_MESSAGES/glib20.mo
505 share/locale/sk/LC_MESSAGES/glib20.mo
506 share/locale/sl/LC_MESSAGES/glib20.mo
507 share/locale/sq/LC_MESSAGES/glib20.mo
508 share/locale/sr/LC_MESSAGES/glib20.mo
509 share/locale/sr@ije/LC_MESSAGES/glib20.mo
510 share/locale/sr@latin/LC_MESSAGES/glib20.mo
511 share/locale/sv/LC_MESSAGES/glib20.mo
512 share/locale/ta/LC_MESSAGES/glib20.mo
513 share/locale/te/LC_MESSAGES/glib20.mo
514 share/locale/tg/LC_MESSAGES/glib20.mo
515 share/locale/th/LC_MESSAGES/glib20.mo
516 share/locale/tl/LC_MESSAGES/glib20.mo
517 share/locale/tr/LC_MESSAGES/glib20.mo
518 share/locale/tt/LC_MESSAGES/glib20.mo
519 share/locale/ug/LC_MESSAGES/glib20.mo
520 share/locale/uk/LC_MESSAGES/glib20.mo
521 share/locale/vi/LC_MESSAGES/glib20.mo
522 share/locale/wa/LC_MESSAGES/glib20.mo
523 share/locale/xh/LC_MESSAGES/glib20.mo
524 share/locale/yi/LC_MESSAGES/glib20.mo
525 share/locale/zh_CN/LC_MESSAGES/glib20.mo
526 share/locale/zh_HK/LC_MESSAGES/glib20.mo
527 share/locale/zh_TW/LC_MESSAGES/glib20.mo
529 @dir share/GConf/gsettings
530 @postexec %D/bin/glib-compile-schemas %D/share/glib-2.0/schemas 2>/dev/null || /usr/bin/true
531 @postunexec /bin/rm -f %D/share/glib-2.0/schemas/gschemas.compiled || /usr/bin/true
532 @postexec %D/bin/gio-querymodules %D/lib/gio/modules 2>/dev/null || /usr/bin/true
535 [FILE:1894:patches/patch-bug739424]
536 From 22656f16c29591207c667362e2a42fd348fe8494 Mon Sep 17 00:00:00 2001
537 From: Martin Pieuchot <mpi@openbsd.org>
538 Date: Fri, 28 Apr 2017 15:06:52 +0200
539 Subject: [PATCH] kqueue: fix use-after-free of ``kqueue_sub''.
541 Since ``kqueue_sub'' are not refcounted it is common to see a thread
542 freeing one of them while another thread is manipulating them. This
543 leads to crashs reported in:
544 https://bugzilla.gnome.org/show_bug.cgi?id=739424
546 To prevent such crash, make sure the threads are holding ``hash_lock''
547 when manipulating such items.
549 gio/kqueue/kqueue-helper.c | 6 ++++--
550 1 file changed, 4 insertions(+), 2 deletions(-)
552 diff --git a/gio/kqueue/kqueue-helper.c b/gio/kqueue/kqueue-helper.c
553 index d4e66cd4d..84b9ef164 100644
554 --- gio/kqueue/kqueue-helper.c.orig 2017-03-10 01:36:23 UTC
555 +++ gio/kqueue/kqueue-helper.c
556 @@ -291,10 +291,10 @@ process_kqueue_notifications (GIOChannel
559 sub = (kqueue_sub *) g_hash_table_lookup (subs_hash_table, GINT_TO_POINTER (n.fd));
560 - G_UNLOCK (hash_lock);
564 + G_UNLOCK (hash_lock);
565 KH_W ("Got a notification for a deleted or non-existing subscription %d",
568 @@ -336,6 +336,7 @@ process_kqueue_notifications (GIOChannel
569 g_file_monitor_source_handle_event (source, mask, NULL, NULL, NULL, g_get_monotonic_time ());
572 + G_UNLOCK (hash_lock);
576 @@ -451,13 +452,14 @@ _kh_start_watching (kqueue_sub *sub)
579 g_hash_table_insert (subs_hash_table, GINT_TO_POINTER (sub->fd), sub);
580 - G_UNLOCK (hash_lock);
582 _kqueue_thread_push_fd (sub->fd);
584 /* Bump the kqueue thread. It will pick up a new sub entry to monitor */
585 if (!_ku_write (kqueue_socket_pair[0], "A", 1))
586 KH_W ("Failed to bump the kqueue thread (add fd, error %d)", errno);
587 + G_UNLOCK (hash_lock);
594 [FILE:354:patches/patch-config.h.in]
595 --- config.h.in.orig 2017-09-11 00:18:50 UTC
598 /* Define to 1 if you have the `getresuid' function. */
599 #undef HAVE_GETRESUID
601 +/* Define to 1 if you have the `sysctlbyname' function. */
602 +#undef HAVE_SYSCTLBYNAME
604 /* Define if the GNU gettext() function is already present or preinstalled. */
609 [FILE:329:patches/patch-docs_reference_Makefile.in]
610 --- docs/reference/Makefile.in.orig 2017-09-11 00:18:51 UTC
611 +++ docs/reference/Makefile.in
612 @@ -437,7 +437,7 @@ target_alias = @target_alias@
613 top_build_prefix = @top_build_prefix@
614 top_builddir = @top_builddir@
615 top_srcdir = @top_srcdir@
616 -SUBDIRS = glib gobject gio
617 +SUBDIRS = #glib gobject gio
623 [FILE:631:patches/patch-gio_glib-compile-schemas.c]
624 --- gio/glib-compile-schemas.c.orig 2017-08-07 14:58:31 UTC
625 +++ gio/glib-compile-schemas.c
626 @@ -1219,6 +1219,7 @@ parse_state_start_schema (ParseState *s
631 if (path && (g_str_has_prefix (path, "/apps/") ||
632 g_str_has_prefix (path, "/desktop/") ||
633 g_str_has_prefix (path, "/system/")))
634 @@ -1231,6 +1232,7 @@ parse_state_start_schema (ParseState *s
635 g_printerr ("%s\n", message);
640 state->schema_state = schema_state_new (path, gettext_domain,
641 extends, extends_name, list_of);
644 [FILE:654:patches/patch-gio_gunixmount.c]
645 --- gio/gunixmount.c.orig 2017-07-13 23:03:39 UTC
647 @@ -356,12 +356,17 @@ g_unix_mount_eject (GMount *
650 GUnixMount *unix_mount = G_UNIX_MOUNT (mount);
651 +#if ! defined(__FreeBSD__) && ! defined(__DragonFly__)
652 char *argv[] = {"eject", NULL, NULL};
654 if (unix_mount->mount_path != NULL)
655 argv[1] = unix_mount->mount_path;
657 argv[1] = unix_mount->device_path;
659 + char *argv[] = {"cdcontrol", "-f", NULL, "eject", NULL};
660 + argv[2] = unix_mount->device_path;
663 eject_unmount_do (mount, cancellable, callback, user_data, argv);
667 [FILE:571:patches/patch-gio_gunixvolume.c]
668 --- gio/gunixvolume.c.orig 2017-07-13 23:03:39 UTC
669 +++ gio/gunixvolume.c
670 @@ -360,9 +360,14 @@ g_unix_volume_eject (GVolume
673 GUnixVolume *unix_volume = G_UNIX_VOLUME (volume);
674 +#if defined(__FreeBSD__) || defined(__DragonFly__)
675 + const gchar *argv[] = {"cdcontrol", "-f", NULL, "eject", NULL};
676 + argv[2] = unix_volume->device_path;
678 const gchar *argv[] = { "eject", NULL, NULL };
680 argv[1] = unix_volume->device_path;
683 eject_mount_do (volume, cancellable, callback, user_data, argv);
687 [FILE:237:patches/patch-gio_tests_include.c]
688 --- glib/tests/include.c.orig 2016-10-22 05:21:44 UTC
689 +++ glib/tests/include.c
691 #define _POSIX_C_SOURCE 199309L
694 +#include <sys/types.h>
700 [FILE:343:patches/patch-gio_xdgmime_xdgmime.c]
701 --- gio/xdgmime/xdgmime.c.orig 2017-07-13 23:03:39 UTC
702 +++ gio/xdgmime/xdgmime.c
703 @@ -255,7 +255,7 @@ xdg_run_command_on_dirs (XdgDirectoryFun
705 xdg_data_dirs = getenv ("XDG_DATA_DIRS");
706 if (xdg_data_dirs == NULL)
707 - xdg_data_dirs = "/usr/local/share/:/usr/share/";
708 + xdg_data_dirs = "/usr/local/share/";
714 [FILE:766:patches/patch-gio_xdgmime_xdgmimecache.h]
715 --- gio/xdgmime/xdgmimecache.h.orig 2017-07-13 23:03:39 UTC
716 +++ gio/xdgmime/xdgmimecache.h
717 @@ -44,6 +44,9 @@ typedef struct _XdgMimeCache XdgMimeCach
718 #define _xdg_mime_cache_get_icon XDG_RESERVED_ENTRY(cache_get_icon)
719 #define _xdg_mime_cache_get_generic_icon XDG_RESERVED_ENTRY(cache_get_generic_icon)
720 #define _xdg_mime_cache_glob_dump XDG_RESERVED_ENTRY(cache_glob_dump)
721 +#define _xdg_mime_cache_is_valid_mime_type XDG_RESERVED_ENTRY(cache_is_valid_mime_type)
722 +#define _xdg_mime_cache_mime_type_equal XDG_RESERVED_ENTRY(cache_mime_type_equal)
723 +#define _xdg_mime_cache_media_type_equal XDG_RESERVED_ENTRY(cache_media_type_equal)
726 extern XdgMimeCache **_caches;
729 [FILE:228:patches/patch-glib_fix_hidden]
730 --- glib/gmem.c.orig 2017-07-13 23:03:39 UTC
733 #include "gbacktrace.h"
734 #include "gtestutils.h"
736 +#include "gthreadprivate.h"
737 #include "glib_trace.h"
742 [FILE:534:patches/patch-glib_gconvert.c]
743 Work around our situation of having both libiconv in libc and libiconv from
746 --- glib/gconvert.c.orig 2017-07-13 23:03:39 UTC
749 #error GNU libiconv in use but included iconv.h not from libiconv
751 #if !defined(USE_LIBICONV_GNU) && defined (_LIBICONV_H) \
752 - && !defined (__APPLE_CC__) && !defined (__LP_64__)
753 + && !defined (LIBICONV_PLUG) && !defined (__APPLE_CC__) && !defined (__LP_64__)
754 #error GNU libiconv not in use but included iconv.h is from libiconv
759 [FILE:648:patches/patch-glib_gutils.c]
760 --- glib/gutils.c.orig 2017-08-15 20:27:00 UTC
762 @@ -2017,7 +2017,7 @@ g_get_system_data_dirs (void)
765 if (!data_dirs || !data_dirs[0])
766 - data_dirs = "/usr/local/share/:/usr/share/";
767 + data_dirs = "/usr/local/share/";
769 data_dir_vector = g_strsplit (data_dirs, G_SEARCHPATH_SEPARATOR_S, 0);
771 @@ -2093,7 +2093,7 @@ g_get_system_config_dirs (void)
774 if (!conf_dirs || !conf_dirs[0])
775 - conf_dirs = "/etc/xdg";
776 + conf_dirs = "/usr/local/etc/xdg:/etc/xdg";
778 conf_dir_vector = g_strsplit (conf_dirs, G_SEARCHPATH_SEPARATOR_S, 0);
782 [FILE:275:patches/patch-glib_libcharset_Makefile.in]
783 --- glib/libcharset/Makefile.in.orig 2017-09-11 00:18:52 UTC
784 +++ glib/libcharset/Makefile.in
785 @@ -1395,7 +1395,7 @@ install-dvi: install-dvi-am
789 -install-exec-am: install-exec-local
790 +install-exec-am: # install-exec-local
792 install-html: install-html-am
796 [FILE:615:patches/patch-glib_tests_gdatetime.c]
797 --- glib/tests/gdatetime.c.orig 2017-08-19 13:39:20 UTC
798 +++ glib/tests/gdatetime.c
799 @@ -1520,7 +1520,7 @@ test_find_interval (void)
803 - tz = g_time_zone_new ("America/Toronto");
804 + tz = g_time_zone_new ("America/Toronto Eastern");
805 #elif defined G_OS_WIN32
806 tz = g_time_zone_new ("Eastern Standard Time");
808 @@ -1553,7 +1553,7 @@ test_adjust_time (void)
812 - tz = g_time_zone_new ("America/Toronto");
813 + tz = g_time_zone_new ("America/Toronto Eastern");
814 #elif defined G_OS_WIN32
815 tz = g_time_zone_new ("Eastern Standard Time");
819 [FILE:287:patches/patch-glib_tests_utils.c]
820 --- glib/tests/utils.c.orig 2016-10-22 05:21:44 UTC
821 +++ glib/tests/utils.c
822 @@ -440,7 +440,7 @@ test_xdg_dirs (void)
824 xdg = (gchar *)g_getenv ("XDG_CONFIG_DIRS");
827 + xdg = "/usr/local/etc/xdg:/etc/xdg";
829 dirs = g_get_system_config_dirs ();
833 [FILE:500:patches/patch-gmodule_gmodule-dl.c]
834 --- gmodule/gmodule-dl.c.orig 2017-07-13 23:03:39 UTC
835 +++ gmodule/gmodule-dl.c
836 @@ -106,6 +106,7 @@ _g_module_open (const gchar *file_name,
838 _g_module_self (void)
840 +#if ! defined(__FreeBSD__) && ! defined(__DragonFly__)
843 /* to query symbols from the program itself, special link options
844 @@ -127,6 +128,9 @@ _g_module_self (void)
845 g_module_set_error (fetch_dlerror (TRUE));
849 + return RTLD_DEFAULT;
856 [FILE:460:files/special.mk]
857 glib_MAN= gtester.1 gtester-report.1 glib-gettextize.1
858 gio_MAN= gdbus.1 gsettings.1 gio-querymodules.1 \
859 glib-compile-schemas.1 gapplication.1 \
860 glib-compile-resources.1 gresource.1 gdbus-codegen.1
861 gobject_MAN= glib-genmarshal.1 glib-mkenums.1 gobject-query.1
863 POST_PLIST_TARGET= my-autolist
866 (cd ${STAGEDIR}${PREFIX} && ${FIND} share/glib-2.0/codegen \
867 \( -type f -o -type l \) 2>/dev/null | ${SORT}) \
868 >> ${WRKDIR}/.manifest.single.mktmp
871 [FILE:426:dragonfly/patch-configure]
872 --- configure.orig 2014-11-19 18:13:44.754895000 +0100
873 +++ configure 2014-11-19 18:13:51.674905000 +0100
874 @@ -23261,7 +23261,7 @@
878 -for ac_func in getmntent_r setmntent endmntent hasmntopt getfsstat getvfsstat fallocate
879 +for ac_func in getmntent_r setmntent endmntent hasmntopt getfsstat fallocate
881 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
882 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"