External, Non-PPA KXStudio Repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

173 lines
5.1KB

  1. From 6785ee4357b24b247e61cbdf1e9332080e3959eb Mon Sep 17 00:00:00 2001
  2. From: Michael R Sweet <michael.r.sweet@gmail.com>
  3. Date: Tue, 14 Dec 2021 21:23:35 -0500
  4. Subject: [PATCH] Fix POSIX thread cleanup code - _mxml_fini shouldn't be
  5. calling the global destructor, just deleting the per-thread key.
  6. Bump version to 3.3.1.
  7. ---
  8. CHANGES.md | 6 ++++++
  9. configure | 20 ++++++++++----------
  10. configure.ac | 2 +-
  11. mxml-private.c | 6 ------
  12. vcnet/config.h | 2 +-
  13. xcode/config.h | 2 +-
  14. 6 files changed, 19 insertions(+), 19 deletions(-)
  15. diff --git a/CHANGES.md b/CHANGES.md
  16. index 964a51c..2c5d532 100644
  17. --- a/CHANGES.md
  18. +++ b/CHANGES.md
  19. @@ -1,3 +1,9 @@
  20. +# Changes in Mini-XML 3.3.1
  21. +
  22. +- Fixed a POSIX thread cleanup bug on macOS - per-thread data destructor called
  23. + twice.
  24. +
  25. +
  26. # Changes in Mini-XML 3.3
  27. - Cleaned up usage of `free` throughout the library (Issue #276)
  28. diff --git a/configure b/configure
  29. index 88f2afc..9ef9427 100755
  30. --- a/configure
  31. +++ b/configure
  32. @@ -1,6 +1,6 @@
  33. #! /bin/sh
  34. # Guess values for system-dependent variables and create Makefiles.
  35. -# Generated by GNU Autoconf 2.71 for Mini-XML 3.3.
  36. +# Generated by GNU Autoconf 2.71 for Mini-XML 3.3.1.
  37. #
  38. # Report bugs to <https://github.com/michaelrsweet/mxml/issues>.
  39. #
  40. @@ -610,8 +610,8 @@ MAKEFLAGS=
  41. # Identity of this package.
  42. PACKAGE_NAME='Mini-XML'
  43. PACKAGE_TARNAME='mxml'
  44. -PACKAGE_VERSION='3.3'
  45. -PACKAGE_STRING='Mini-XML 3.3'
  46. +PACKAGE_VERSION='3.3.1'
  47. +PACKAGE_STRING='Mini-XML 3.3.1'
  48. PACKAGE_BUGREPORT='https://github.com/michaelrsweet/mxml/issues'
  49. PACKAGE_URL='https://www.msweet.org/mxml'
  50. @@ -1301,7 +1301,7 @@ if test "$ac_init_help" = "long"; then
  51. # Omit some internal or obsolete options to make the list less imposing.
  52. # This message is too long to be a string in the A/UX 3.1 sh.
  53. cat <<_ACEOF
  54. -\`configure' configures Mini-XML 3.3 to adapt to many kinds of systems.
  55. +\`configure' configures Mini-XML 3.3.1 to adapt to many kinds of systems.
  56. Usage: $0 [OPTION]... [VAR=VALUE]...
  57. @@ -1367,7 +1367,7 @@ fi
  58. if test -n "$ac_init_help"; then
  59. case $ac_init_help in
  60. - short | recursive ) echo "Configuration of Mini-XML 3.3:";;
  61. + short | recursive ) echo "Configuration of Mini-XML 3.3.1:";;
  62. esac
  63. cat <<\_ACEOF
  64. @@ -1470,7 +1470,7 @@ fi
  65. test -n "$ac_init_help" && exit $ac_status
  66. if $ac_init_version; then
  67. cat <<\_ACEOF
  68. -Mini-XML configure 3.3
  69. +Mini-XML configure 3.3.1
  70. generated by GNU Autoconf 2.71
  71. Copyright (C) 2021 Free Software Foundation, Inc.
  72. @@ -1770,7 +1770,7 @@ cat >config.log <<_ACEOF
  73. This file contains any messages produced by compilers while
  74. running configure, to aid debugging if configure makes a mistake.
  75. -It was created by Mini-XML $as_me 3.3, which was
  76. +It was created by Mini-XML $as_me 3.3.1, which was
  77. generated by GNU Autoconf 2.71. Invocation command line was
  78. $ $0$ac_configure_args_raw
  79. @@ -2831,7 +2831,7 @@ ac_config_headers="$ac_config_headers config.h"
  80. -VERSION="3.3"
  81. +VERSION="3.3.1"
  82. printf "%s\n" "#define MXML_VERSION \"Mini-XML v$VERSION\"" >>confdefs.h
  83. @@ -6012,7 +6012,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  84. # report actual input values of CONFIG_FILES etc. instead of their
  85. # values after options handling.
  86. ac_log="
  87. -This file was extended by Mini-XML $as_me 3.3, which was
  88. +This file was extended by Mini-XML $as_me 3.3.1, which was
  89. generated by GNU Autoconf 2.71. Invocation command line was
  90. CONFIG_FILES = $CONFIG_FILES
  91. @@ -6077,7 +6077,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\
  92. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  93. ac_cs_config='$ac_cs_config_escaped'
  94. ac_cs_version="\\
  95. -Mini-XML config.status 3.3
  96. +Mini-XML config.status 3.3.1
  97. configured by $0, generated by GNU Autoconf 2.71,
  98. with options \\"\$ac_cs_config\\"
  99. diff --git a/configure.ac b/configure.ac
  100. index 633a2e3..1b4b3ae 100644
  101. --- a/configure.ac
  102. +++ b/configure.ac
  103. @@ -14,7 +14,7 @@ AC_PREREQ([2.70])
  104. dnl Package name and version...
  105. -AC_INIT([Mini-XML], [3.3], [https://github.com/michaelrsweet/mxml/issues], [mxml], [https://www.msweet.org/mxml])
  106. +AC_INIT([Mini-XML], [3.3.1], [https://github.com/michaelrsweet/mxml/issues], [mxml], [https://www.msweet.org/mxml])
  107. dnl This line is provided to ensure that you don't run the autoheader program
  108. diff --git a/mxml-private.c b/mxml-private.c
  109. index 8c1c58d..3f3ab6c 100644
  110. --- a/mxml-private.c
  111. +++ b/mxml-private.c
  112. @@ -165,12 +165,6 @@ _mxml_destructor(void *g) /* I - Global data */
  113. static void
  114. _MXML_FINI(void)
  115. {
  116. - _mxml_global_t *global; /* Global data */
  117. -
  118. -
  119. - if ((global = (_mxml_global_t *)pthread_getspecific(_mxml_key)) != NULL)
  120. - _mxml_destructor(global);
  121. -
  122. pthread_key_delete(_mxml_key);
  123. }
  124. diff --git a/vcnet/config.h b/vcnet/config.h
  125. index 9fd99ed..bf9207c 100644
  126. --- a/vcnet/config.h
  127. +++ b/vcnet/config.h
  128. @@ -63,7 +63,7 @@
  129. * Version number...
  130. */
  131. -#define MXML_VERSION "Mini-XML v3.3"
  132. +#define MXML_VERSION "Mini-XML v3.3.1"
  133. /*
  134. diff --git a/xcode/config.h b/xcode/config.h
  135. index d627820..4cb3556 100644
  136. --- a/xcode/config.h
  137. +++ b/xcode/config.h
  138. @@ -24,7 +24,7 @@
  139. * Version number...
  140. */
  141. -#define MXML_VERSION "Mini-XML v3.3"
  142. +#define MXML_VERSION "Mini-XML v3.3.1"
  143. /*