Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libdex for openSUSE:Factory checked in at 2024-06-03 17:44:52 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libdex (Old) and /work/SRC/openSUSE:Factory/.libdex.new.24587 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "libdex" Mon Jun 3 17:44:52 2024 rev:6 rq:1178278 version:0.6.1 Changes: -------- --- /work/SRC/openSUSE:Factory/libdex/libdex.changes 2024-03-20 21:19:17.376944843 +0100 +++ /work/SRC/openSUSE:Factory/.libdex.new.24587/libdex.changes 2024-06-03 17:45:06.102639325 +0200 @@ -1,0 +2,6 @@ +Mon Jun 3 09:53:11 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org> + +- Update to version 0.6.1: + + Adds Fiber support for macOS on Apple Silicon. + +------------------------------------------------------------------- Old: ---- libdex-0.6.0.obscpio New: ---- libdex-0.6.1.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libdex.spec ++++++ --- /var/tmp/diff_new_pack.Hi791a/_old 2024-06-03 17:45:08.494726817 +0200 +++ /var/tmp/diff_new_pack.Hi791a/_new 2024-06-03 17:45:08.494726817 +0200 @@ -20,7 +20,7 @@ %bcond_with profiling Name: libdex -Version: 0.6.0 +Version: 0.6.1 Release: 0 Summary: Library supporting "Deferred Execution" for GNOME and GTK License: LGPL-2.1-or-later ++++++ _service ++++++ --- /var/tmp/diff_new_pack.Hi791a/_old 2024-06-03 17:45:08.534728281 +0200 +++ /var/tmp/diff_new_pack.Hi791a/_new 2024-06-03 17:45:08.538728426 +0200 @@ -3,7 +3,7 @@ <service name="obs_scm" mode="manual"> <param name="scm">git</param> <param name="url">https://gitlab.gnome.org/GNOME/libdex.git</param> - <param name="revision">0.6.0</param> + <param name="revision">0.6.1</param> <param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param> <param name="versionrewrite-pattern">v?(.*)\+0</param> <param name="versionrewrite-replacement">\1</param> ++++++ libdex-0.6.0.obscpio -> libdex-0.6.1.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libdex-0.6.0/NEWS new/libdex-0.6.1/NEWS --- old/libdex-0.6.0/NEWS 2024-03-15 22:01:51.000000000 +0100 +++ new/libdex-0.6.1/NEWS 2024-05-30 23:43:57.000000000 +0200 @@ -1,3 +1,8 @@ +libdex 0.6.1 +============ + + * Adds Fiber support for macOS on Apple Silicon + libdex 0.6.0 ============ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libdex-0.6.0/meson.build new/libdex-0.6.1/meson.build --- old/libdex-0.6.0/meson.build 2024-03-15 22:01:51.000000000 +0100 +++ new/libdex-0.6.1/meson.build 2024-05-30 23:43:57.000000000 +0200 @@ -1,5 +1,5 @@ project('libdex', 'c', - version: '0.6.0', + version: '0.6.1', meson_version: '>= 0.62.0', default_options: [ 'warning_level=2', 'werror=false', 'c_std=gnu11', ], ) @@ -55,7 +55,11 @@ if host_machine.system() == 'darwin' # known alignment for darwin where we're using helpers - config_h.set('ALIGN_OF_UCONTEXT', 8) + if host_machine.cpu_family() == 'aarch64' + config_h.set('ALIGN_OF_UCONTEXT', 16) + else + config_h.set('ALIGN_OF_UCONTEXT', 8) + endif elif host_machine.system() == 'windows' # Unset else diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libdex-0.6.0/src/asm.S new/libdex-0.6.1/src/asm.S --- old/libdex-0.6.0/src/asm.S 2024-03-15 22:01:51.000000000 +0100 +++ new/libdex-0.6.1/src/asm.S 2024-05-30 23:43:57.000000000 +0200 @@ -3,37 +3,38 @@ #include "config.h" #if defined(__FreeBSD__) && defined(__i386__) && __FreeBSD__ < 5 -#define NEEDX86CONTEXT 1 -#define SET setmcontext -#define GET getmcontext +# define NEEDX86CONTEXT 1 +# define SET setmcontext +# define GET getmcontext #endif #if defined(__OpenBSD__) && defined(__i386__) -#define NEEDX86CONTEXT 1 -#define SET setmcontext -#define GET getmcontext +# define NEEDX86CONTEXT 1 +# define SET setmcontext +# define GET getmcontext #endif #if defined(__APPLE__) -#if defined(__i386__) -#define NEEDX86CONTEXT 1 -#define SET _setmcontext -#define GET _getmcontext -#elif defined(__x86_64__) -#define NEEDAMD64CONTEXT 1 -#define SET _setmcontext -#define GET _getmcontext -#else -#define NEEDPOWERCONTEXT 1 -#define SET __setmcontext -#define GET __getmcontext -#endif +# if defined(__i386__) +# define NEEDX86CONTEXT 1 +# define SET _setmcontext +# define GET _getmcontext +# elif defined(__x86_64__) +# define NEEDAMD64CONTEXT 1 +# define SET _setmcontext +# define GET _getmcontext +# elif defined(__aarch64__) +# else +# define NEEDPOWERCONTEXT 1 +# define SET __setmcontext +# define GET __getmcontext +# endif #endif #if defined(__linux__) && defined(__mips__) && !defined(HAVE_UCONTEXT_H) -#define NEEDMIPSCONTEXT 1 -#define SET setmcontext -#define GET getmcontext +# define NEEDMIPSCONTEXT 1 +# define SET setmcontext +# define GET getmcontext #endif #ifdef NEEDX86CONTEXT diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libdex-0.6.0/src/dex-fiber-context-private.h new/libdex-0.6.1/src/dex-fiber-context-private.h --- old/libdex-0.6.0/src/dex-fiber-context-private.h 2024-03-15 22:01:51.000000000 +0100 +++ new/libdex-0.6.1/src/dex-fiber-context-private.h 2024-05-30 23:43:57.000000000 +0200 @@ -104,9 +104,11 @@ start_hi = 0; #endif + G_GNUC_BEGIN_IGNORE_DEPRECATIONS makecontext (ucontext, G_CALLBACK (dex_fiber_context_start), 2, start_lo, start_hi); + G_GNUC_END_IGNORE_DEPRECATIONS } static inline void @@ -124,7 +126,10 @@ #endif memset (ucontext, 0, sizeof *ucontext); + + G_GNUC_BEGIN_IGNORE_DEPRECATIONS getcontext (ucontext); + G_GNUC_END_IGNORE_DEPRECATIONS /* If stack is NULL, then this is a context used to save state * such as from the original stack in the fiber scheduler. @@ -159,11 +164,13 @@ { int r; + G_GNUC_BEGIN_IGNORE_DEPRECATIONS #if ALIGN_OF_UCONTEXT > GLIB_SIZEOF_VOID_P r = swapcontext (*old_context, *new_context); #else r = swapcontext (old_context, new_context); #endif + G_GNUC_END_IGNORE_DEPRECATIONS #ifndef G_DISABLE_ASSERT if G_UNLIKELY (r != 0) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libdex-0.6.0/src/dex-ucontext-private.h new/libdex-0.6.1/src/dex-ucontext-private.h --- old/libdex-0.6.0/src/dex-ucontext-private.h 2024-03-15 22:01:51.000000000 +0100 +++ new/libdex-0.6.1/src/dex-ucontext-private.h 2024-05-30 23:43:57.000000000 +0200 @@ -46,42 +46,49 @@ #define USE_UCONTEXT 1 #if defined(__OpenBSD__) || defined(__mips__) -#undef USE_UCONTEXT -#define USE_UCONTEXT 0 +# undef USE_UCONTEXT +# define USE_UCONTEXT 0 #endif #if defined(__APPLE__) # include <AvailabilityMacros.h> # if defined(MAC_OS_X_VERSION_10_5) -# undef USE_UCONTEXT -# define USE_UCONTEXT 0 +# if !defined(__aarch64__) +# undef USE_UCONTEXT +# define USE_UCONTEXT 0 +# endif # endif #endif #if USE_UCONTEXT +# if defined(__APPLE__) && !defined(_XOPEN_SOURCE) +# define _XOPEN_SOURCE +# endif # include <ucontext.h> #endif #if defined(__FreeBSD__) && __FreeBSD__ < 5 extern int getmcontext(mcontext_t*); extern void setmcontext(const mcontext_t*); -#define setcontext(u) setmcontext(&(u)->uc_mcontext) -#define getcontext(u) getmcontext(&(u)->uc_mcontext) +# define setcontext(u) setmcontext(&(u)->uc_mcontext) +# define getcontext(u) getmcontext(&(u)->uc_mcontext) extern int swapcontext(ucontext_t*, const ucontext_t*); extern void makecontext(ucontext_t*, void(*)(void), int, ...); #endif #if defined(__APPLE__) -# define mcontext libthread_mcontext -# define mcontext_t libthread_mcontext_t -# define ucontext libthread_ucontext -# define ucontext_t libthread_ucontext_t -# if defined(__i386__) -# include "386-ucontext.h" -# elif defined(__x86_64__) -# include "amd64-ucontext.h" -# else -# include "power-ucontext.h" +# if !defined(__aarch64__) +# define mcontext libthread_mcontext +# define mcontext_t libthread_mcontext_t +# define ucontext libthread_ucontext +# define ucontext_t libthread_ucontext_t +# if defined(__i386__) +# include "386-ucontext.h" +# elif defined(__x86_64__) +# include "amd64-ucontext.h" +# else +# include "power-ucontext.h" +# endif # endif #endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libdex-0.6.0/src/dex-ucontext.c new/libdex-0.6.1/src/dex-ucontext.c --- old/libdex-0.6.0/src/dex-ucontext.c 2024-03-15 22:01:51.000000000 +0100 +++ new/libdex-0.6.1/src/dex-ucontext.c 2024-05-30 23:43:57.000000000 +0200 @@ -7,26 +7,27 @@ #include "dex-ucontext-private.h" #if defined(__APPLE__) -#if defined(__i386__) -#define NEEDX86MAKECONTEXT -#define NEEDSWAPCONTEXT -#elif defined(__x86_64__) -#define NEEDAMD64MAKECONTEXT -#define NEEDSWAPCONTEXT -#else -#define NEEDPOWERMAKECONTEXT -#define NEEDSWAPCONTEXT -#endif +# if defined(__i386__) +# define NEEDX86MAKECONTEXT +# define NEEDSWAPCONTEXT +# elif defined(__x86_64__) +# define NEEDAMD64MAKECONTEXT +# define NEEDSWAPCONTEXT +# elif defined(__aarch64__) +# else +# define NEEDPOWERMAKECONTEXT +# define NEEDSWAPCONTEXT +# endif #endif #if defined(__FreeBSD__) && defined(__i386__) && __FreeBSD__ < 5 -#define NEEDX86MAKECONTEXT -#define NEEDSWAPCONTEXT +# define NEEDX86MAKECONTEXT +# define NEEDSWAPCONTEXT #endif #if defined(__OpenBSD__) && defined(__i386__) -#define NEEDX86MAKECONTEXT -#define NEEDSWAPCONTEXT +# define NEEDX86MAKECONTEXT +# define NEEDSWAPCONTEXT #endif #ifdef NEEDPOWERMAKECONTEXT diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libdex-0.6.0/src/meson.build new/libdex-0.6.1/src/meson.build --- old/libdex-0.6.0/src/meson.build 2024-03-15 22:01:51.000000000 +0100 +++ new/libdex-0.6.1/src/meson.build 2024-05-30 23:43:57.000000000 +0200 @@ -124,6 +124,13 @@ '-DDEX_COMPILATION', ] +if host_machine.system() == 'darwin' + libdex_c_args += [ + # needed for setcontext/makecontext/swapcontext + '-D_XOPEN_SOURCE', + ] +endif + libdex_static = static_library('dex-@0@'.format(api_version), libdex_sources, dependencies: libdex_deps, gnu_symbol_visibility: 'hidden', ++++++ libdex.obsinfo ++++++ --- /var/tmp/diff_new_pack.Hi791a/_old 2024-06-03 17:45:08.706734571 +0200 +++ /var/tmp/diff_new_pack.Hi791a/_new 2024-06-03 17:45:08.710734718 +0200 @@ -1,5 +1,5 @@ name: libdex -version: 0.6.0 -mtime: 1710536511 -commit: 7a5757ea1b702e7fcf8312bcfe7a373ee89c787a +version: 0.6.1 +mtime: 1717105437 +commit: 76c7da206eeaf0ce9d32bde1b1b3fea5ddab27c9
participants (1)
-
Source-Sync