package/{gettext-gnu, libtextstyle}: bump to version 0.22
PATCH v2 1/1 package/{gettext-gnu, libtextstyle}: bump to version 0.22
Release notes:
https://lists.gnu.org/archive/html/info-gnu/2020-07/msg00009.html
https://lists.gnu.org/archive/html/info-gnu/2023-06/msg00003.html
Removed patch 0001, the patched file is not present in this release. Removed patch 0002 which was applied upstream.
Link libtextstyle.hash to gettext-gnu.hash.
Added comments about other files to be updated during version bumps.
Since upstream commit
https://github.com/autotools-mirror/gettext/commit/785a89e5df994c2b242f082d60de89e2d520aa4a
gettext-runtime is a build-dependency for gettext-tools so we add the needed HOST_GETTEXT_GNU_PRE_{CONFIGURE, BUILD}_HOOKS.
---
v2: fixed host build, added more comments (Thomas)
link libtextstyle.hash to gettext-gnu.hash
.checkpackageignore | 2 - .../0001-error_print_progname.patch | 20 --- ...-buld-gettext-tools-seperately-part1.patch | 142 ------------------ package/gettext-gnu/gettext-gnu.hash | 7 +- package/gettext-gnu/gettext-gnu.mk | 21 ++- package/gettext-tiny/gettext-tiny.hash | 4 +- package/gettext-tiny/gettext-tiny.mk | 5 +- package/libtextstyle/libtextstyle.hash | 7 +- package/libtextstyle/libtextstyle.mk | 5 +- 9 files changed, 30 insertions(+), 183 deletions(-) delete mode 100644 package/gettext-gnu/0001-error_print_progname.patch delete mode 100644 package/gettext-gnu/0002-restore-the-ability-to-buld-gettext-tools-seperately-part1.patch mode change 100644 => 120000 package/libtextstyle/libtextstyle.hash
.checkpackageignore +0 -2
@@ -520,8 +520,6 @@ package/genpart/0001-fix-return-code.patch Upstream package/genromfs/0001-build-system.patch Sob Upstream package/gensio/0001-Fix-missing-EVP_PKEY_ED25519-build-error-on-libressl.patch Upstream package/gerbera/S99gerbera Indent -package/gettext-gnu/0001-error_print_progname.patch Upstream -package/gettext-gnu/0002-restore-the-ability-to-buld-gettext-tools-seperately-part1.patch Upstream package/giblib/0001-fix-imlib2-detection.patch Upstream package/giflib/0001-Makefile-add-targets-to-manage-static-building.patch Upstream package/git-crypt/0001-fix-build-with-libressl-3.5.0.patch Upstream
package/gettext-gnu/0001-error_print_progname.patch deleted +0 -20
@@ -1,20 +0,0 @@ -[Updated to apply cleanly with 0.20.1] -Signed-off-by: Adam Duskett <[email protected]> ---- -diff --git a/gettext-tools/gnulib-lib/error.h b/gettext-tools/gnulib-lib/error.h -index 61771cc..4221684 100644 ---- a/gettext-tools/gnulib-lib/error.h -+++ b/gettext-tools/gnulib-lib/error.h -@@ -68,7 +68,10 @@ extern void error_at_line (int __status, int __errnum, const char *__fname, - /* If NULL, error will flush stdout, then print on stderr the program - name, a colon and a space. Otherwise, error will call this - function without parameters instead. */ --extern DLL_VARIABLE void (*error_print_progname) (void); -+#ifndef __UCLIBC__ -+extern DLL_VARIABLE -+#endif -+void (*error_print_progname) (void); - - /* This variable is incremented each time 'error' is called. */ - extern DLL_VARIABLE unsigned int error_message_count; ---
package/gettext-gnu/0002-restore-the-ability-to-buld-gettext-tools-seperately-part1.patch deleted +0 -142
142 lines not on this page · raw message
package/gettext-gnu/gettext-gnu.hash +4 -3
@@ -1,7 +1,8 @@ -# From https://lists.gnu.org/archive/html/info-gnu/2019-05/msg00011.html -sha1 62f4a6a2fd5f80bfd0e66c497a04094fa3e07b90 gettext-0.20.1.tar.xz +# Please keep in sync with package/gettext-tiny/gettext-tiny.hash +# From https://lists.gnu.org/archive/html/info-gnu/2023-06/msg00003.html +sha1 d9666d3b9c47a84c814d32e76fa75f60ec23756f gettext-0.22.tar.xz # Locally calculated -sha256 53f02fbbec9e798b0faaf7c73272f83608e835c6288dd58be6c9bb54624a3800 gettext-0.20.1.tar.xz +sha256 0e60393a47061567b46875b249b7d2788b092d6457d656145bb0e7e6a3e26d93 gettext-0.22.tar.xz sha256 e79e9c8a0c85d735ff98185918ec94ed7d175efc377012787aebcf3b80f0d90b COPYING sha256 3fe5361f24b7c49ba12911c08f5a33f9cb18871d95d9fb881f5b8a4793e04288 gettext-runtime/intl/COPYING.LIB
package/gettext-gnu/gettext-gnu.mk +17 -4
@@ -4,8 +4,9 @@ # ################################################################################ -# Please keep in sync with package/libtextstyle/libtextstyle.mk -GETTEXT_GNU_VERSION = 0.20.1 +# Please keep in sync with package/libtextstyle/libtextstyle.mk and +# GETTEXT_TINY_ARCHIVE_VERSION in gettext-tiny/gettext-tiny.mk +GETTEXT_GNU_VERSION = 0.22 GETTEXT_GNU_SITE = $(BR2_GNU_MIRROR)/gettext GETTEXT_GNU_SOURCE = gettext-$(GETTEXT_GNU_VERSION).tar.xz GETTEXT_GNU_INSTALL_STAGING = YES
@@ -13,8 +14,6 @@ GETTEXT_GNU_LICENSE = LGPL-2.1+ (libintl), GPL-3.0+ (the rest) GETTEXT_GNU_LICENSE_FILES = COPYING gettext-runtime/intl/COPYING.LIB GETTEXT_GNU_CPE_ID_VENDOR = gnu GETTEXT_GNU_CPE_ID_PRODUCT = gettext -# 0002-restore-the-ability-to-buld-gettext-tools-seperately-part1.patch -GETTEXT_GNU_AUTORECONF = YES GETTEXT_GNU_PROVIDES = gettext GETTEXT_GNU_DEPENDENCIES = $(if $(BR2_PACKAGE_LIBICONV),libiconv)
@@ -67,6 +66,20 @@ endef GETTEXT_GNU_POST_PATCH_HOOKS += HOST_GETTEXT_GNU_DISABLE_UNNEEDED HOST_GETTEXT_GNU_POST_PATCH_HOOKS += HOST_GETTEXT_GNU_DISABLE_UNNEEDED +# gettext-tools depends on gettext-runtime +define HOST_GETTEXT_GNU_CONFIGURE_RUNTIME + cd $(@D)/$(GETTEXT_GNU_SUBDIR); \ + $(HOST_CONFIGURE_OPTS) \ + ./configure --prefix=$(HOST_DIR) \ + $(HOST_GETTEXT_GNU_CONF_OPTS) +endef +HOST_GETTEXT_GNU_PRE_CONFIGURE_HOOKS += HOST_GETTEXT_GNU_CONFIGURE_RUNTIME + +define HOST_GETTEXT_GNU_BUILD_RUNTIME + $(HOST_MAKE_ENV) $(MAKE) -C $(@D)/$(GETTEXT_GNU_SUBDIR) install +endef +HOST_GETTEXT_GNU_PRE_BUILD_HOOKS += HOST_GETTEXT_GNU_BUILD_RUNTIME + define GETTEXT_GNU_REMOVE_UNNEEDED $(RM) -rf $(TARGET_DIR)/usr/share/gettext/ABOUT-NLS rmdir --ignore-fail-on-non-empty $(TARGET_DIR)/usr/share/gettext
package/gettext-tiny/gettext-tiny.hash +2 -2
@@ -2,5 +2,5 @@ sha256 29cc165e27e83d2bb3760118c2368eadab550830d962d758e51bd36eb860f383 gettext-tiny-0.3.2.tar.gz sha256 4c938aa3d8fa3c184bba5e87a8a2febc89560627c9d0567536879e3eca1a7b4f LICENSE sha256 e79e9c8a0c85d735ff98185918ec94ed7d175efc377012787aebcf3b80f0d90b extra/COPYING -# From https://lists.gnu.org/archive/html/info-gnu/2019-05/msg00011.html -sha1 62f4a6a2fd5f80bfd0e66c497a04094fa3e07b90 gettext-0.20.1.tar.xz +# From https://lists.gnu.org/archive/html/info-gnu/2023-06/msg00003.html +sha1 d9666d3b9c47a84c814d32e76fa75f60ec23756f gettext-0.22.tar.xz
package/gettext-tiny/gettext-tiny.mk +3 -2
@@ -13,8 +13,9 @@ HOST_GETTEXT_TINY_LICENSE_FILES = LICENSE extra/COPYING GETTEXT_TINY_PROVIDES = gettext -# needed for gettextize -GETTEXT_TINY_ARCHIVE_VERSION = 0.20.1 +# Please keep in sync with package/libtextstyle/libtextstyle.mk and +# package/gettext-gnu/gettext-gnu.mk +GETTEXT_TINY_ARCHIVE_VERSION = 0.22 GETTEXT_TINY_EXTRA_GETTEXT_FILES = \ gettext-tools/misc/gettextize.in \
package/libtextstyle/libtextstyle.hash deleted +0 -6
@@ -1,6 +0,0 @@ -# From https://lists.gnu.org/archive/html/info-gnu/2019-05/msg00011.html -sha1 62f4a6a2fd5f80bfd0e66c497a04094fa3e07b90 gettext-0.20.1.tar.xz - -# Locally calculated -sha256 53f02fbbec9e798b0faaf7c73272f83608e835c6288dd58be6c9bb54624a3800 gettext-0.20.1.tar.xz -sha256 e79e9c8a0c85d735ff98185918ec94ed7d175efc377012787aebcf3b80f0d90b COPYING
package/libtextstyle/libtextstyle.hash new file +1 -0
@@ -0,0 +1 @@ +../gettext-gnu/gettext-gnu.hash
package/libtextstyle/libtextstyle.mk +3 -2
@@ -4,8 +4,9 @@ # ################################################################################ -# Please keep in sync with package/gettext-gnu/gettext-gnu.mk -LIBTEXTSTYLE_VERSION = 0.20.1 +# Please keep in sync with package/gettext-gnu/gettext-gnu.mk and +# GETTEXT_TINY_ARCHIVE_VERSION in gettext-tiny/gettext-tiny.mk +LIBTEXTSTYLE_VERSION = 0.22 LIBTEXTSTYLE_SITE = $(BR2_GNU_MIRROR)/gettext LIBTEXTSTYLE_SOURCE = gettext-$(LIBTEXTSTYLE_VERSION).tar.xz LIBTEXTSTYLE_INSTALL_STAGING = YES
Signature · 6 lines
2.39.2 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Bernd, All,
On 2023-08-18 16:42 +0200, Bernd Kuhls spake thusly:
Quoted 7 lines
Release notes:
https://lists.gnu.org/archive/html/info-gnu/2020-07/msg00009.html
https://lists.gnu.org/archive/html/info-gnu/2023-06/msg00003.htmlRemoved patch 0001, the patched file is not present in this release. Removed patch 0002 which was applied upstream.
Quoted 8 lines
Link libtextstyle.hash to gettext-gnu.hash.
Added comments about other files to be updated during version bumps.
Since upstream commit
https://github.com/autotools-mirror/gettext/commit/785a89e5df994c2b242f082d60de89e2d520aa4a
gettext-runtime is a build-dependency for gettext-tools so we add the needed HOST_GETTEXT_GNU_PRE_{CONFIGURE, BUILD}_HOOKS.
[--SNIP--]
package/gettext-gnu/gettext-gnu.mk line 9
Quoted 13 lines
package/gettext-gnu/gettext-gnu.mk +3
-2@@ -4,8 +4,9 @@ # ################################################################################ -# Please keep in sync with package/libtextstyle/libtextstyle.mk -GETTEXT_GNU_VERSION = 0.20.1 +# Please keep in sync with package/libtextstyle/libtextstyle.mk and +# GETTEXT_TINY_ARCHIVE_VERSION in gettext-tiny/gettext-tiny.mk +GETTEXT_GNU_VERSION = 0.22
So we now have three files that must be kept in sync, and experience has shown that, even though we do have such comments about keeping things in sync, people actualy do not read those comments and we have seen one package being bumped but not the other (not just about gettext, but mesa3d, bluez5, protobuf...)
Maybe it woud make sense to introduce a shared version string, à-la qt5;
package/gettext/gettext.mk
GETTEXT_VERSION = 0.22
include $(wildcard package/gettext/*/*.mk)
package/gettext/gettext-gnu/gettect-gnu.mk
GETTEXT_GNU_VERSION = $(GETTEXT_VERSION)
package/gettext/gettext-tiny/gettext-tiny/mk
$(SED) 's,@ARCHIVE_VERSION@,$(GETTEXT_VERSION),' $(@D)/gettextize
package/gettext/libtextstyle/libtextstyle.mk
LIBTEXTSTYLE_VERSION = $(GETTEXT_VERSION)But see below....
[--SNIP--]
package/gettext-gnu/gettext-gnu.mk endef · line 71
Quoted 3 lines
package/gettext-gnu/gettext-gnu.mk +3
-0+# gettext-tools depends on gettext-runtime +define HOST_GETTEXT_GNU_CONFIGURE_RUNTIME + cd $(@D)/$(GETTEXT_GNU_SUBDIR); \
You're mixing the target _SUBDIR with host build; that's not clean.
If we can't have proper separation of tiools and runtime for the host variant, then let's just stop this dance and build host-gettext at the root of the package (e.g. let's just drop HOST_GETTEEXT_GNU_SUBDIR).
And see below...
package/gettext-gnu/gettext-gnu.mk endef · line 81
Quoted 10 lines
package/gettext-gnu/gettext-gnu.mk +10
-0+ $(HOST_CONFIGURE_OPTS) \ + ./configure --prefix=$(HOST_DIR) \ + $(HOST_GETTEXT_GNU_CONF_OPTS) +endef +HOST_GETTEXT_GNU_PRE_CONFIGURE_HOOKS += HOST_GETTEXT_GNU_CONFIGURE_RUNTIME + +define HOST_GETTEXT_GNU_BUILD_RUNTIME + $(HOST_MAKE_ENV) $(MAKE) -C $(@D)/$(GETTEXT_GNU_SUBDIR) install +endef +HOST_GETTEXT_GNU_PRE_BUILD_HOOKS += HOST_GETTEXT_GNU_BUILD_RUNTIME
As far as I understand, this installs stuff into $(HOST_DIR) at build time. That is definitely not correct.
What happens when gettext is built as a whole? Certainly, the runtime library is not installed by the time the tools are built, so the gettext buildsystem has provising for using as-yet-uninstalled libraries when linking the tools.
The reason to only build gettext-tools for the host package, was to not suffer from the whole build time. But if we now need to build the runtime, then that gain in buildtime is now very limited.
So, back to my porposal above: if we need the runtime for the tools, then let's build the whole package.
And thus we can drop host-libtextstyle too.
Thoughts?
Regards,
Yann E. MORIN.
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
A message that is not in the archive (sent off-list or not yet received): 20230819125702.GG1134940__46104.2901662708$1692449855$gmane$org@scaer
Hi Yann,
Quoted 1 line
You're mixing the target
_SUBDIRwith host build; that's not clean.
after seeing the discussion[1] about the build-time improvements, which led to the current situation, I decided not to enter the discussion about its rationale ;) This lead to my un-clean code.
Quoted 3 lines
If we can't have proper separation of tiools and runtime for the host variant, then let's just stop this dance and build host-gettext at the root of the package (e.g. let's just drop
HOST_GETTEEXT_GNU_SUBDIR).
+1, and thanks for starting the discussion ;)
Quoted 2 lines
As far as I understand, this installs stuff into $(HOST_DIR) at build time. That is definitely not correct.
You are right, it's hackish.
Quoted 2 lines
So, back to my porposal above: if we need the runtime for the tools, then let's build the whole package.
+1
Regards, Bernd
[1] https://lists.buildroot.org/pipermail/buildroot/2014-June/401411.html
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Bernd, All,
On 2023-08-19 16:03 +0200, Bernd Kuhls spake thusly:
Quoted 2 lines
Quoted 1 line
You're mixing the target
_SUBDIRwith host build; that's not clean.after seeing the discussion[1] about the build-time improvements,
He, things can change in 9 years! ;-)
Quoted 4 lines
Quoted 3 lines
If we can't have proper separation of tiools and runtime for the host variant, then let's just stop this dance and build host-gettext at the root of the package (e.g. let's just drop
HOST_GETTEEXT_GNU_SUBDIR).+1, and thanks for starting the discussion ;)
Note that we can't just drop the HOST_GETTEXT_GNU_SUBDIR assignment, because the host variant inherits the target setting, so if we drop HOST_GETTEXT_GNU_SUBDIR, it's gonna be set to "gettext-runtime".
Instead, we'll have to override it with:
# Don't inherit the target setting; build the whole package:
HOST_GETTEXT_GNU_SUBDIR = .
Quoted 3 lines
Quoted 2 lines
As far as I understand, this installs stuff into $(HOST_DIR) at build time. That is definitely not correct.
You are right, it's hackish.
But it had merit to trigger reviewing the current situation.
Thanks!
Regards,
Yann E. MORIN.
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot