Skip to contentSkip to conversation

package/utfcpp: new package

PATCH Applied Bernd Kuhls 2 participants 4 messages Jan 18, 2025 – Feb 4, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/utfcpp: new package

Needed for taglib 2.x:
https://github.com/taglib/taglib/commit/6ed0ca28db0d12a75572c0f5dcefdc5ebb34cc21

Upstream discourages the use of CMakeList.txt to install the package:
https://github.com/nemtrif/utfcpp/commit/4965d378fb141a21c8afa7c283a8af4725e6a57e

---
 DEVELOPERS                 |  1 +
 package/Config.in          |  1 +
 package/utfcpp/Config.in   |  6 ++++++
 package/utfcpp/utfcpp.hash |  3 +++
 package/utfcpp/utfcpp.mk   | 23 +++++++++++++++++++++++
 5 files changed, 34 insertions(+)
 create mode 100644 package/utfcpp/Config.in
 create mode 100644 package/utfcpp/utfcpp.hash
 create mode 100644 package/utfcpp/utfcpp.mk
DEVELOPERS +1 -0
index 354a006190..d26e059e04 100644
@@ -506,6 +506,7 @@ F:	package/tor/
 F:	package/transmission/
 F:	package/tvheadend/
 F:	package/unixodbc/
+F:	package/utfcpp/
 F:	package/vlc/
 F:	package/wget/
 F:	package/wireless-regdb/
package/Config.in +1 -0
index 8aa3a6cc43..6478d017c8 100644
@@ -2357,6 +2357,7 @@ menu "Text and terminal handling"
 	source "package/tclap/Config.in"
 	source "package/termcolor/Config.in"
 	source "package/utf8proc/Config.in"
+	source "package/utfcpp/Config.in"
 endmenu
 
 endmenu
package/utfcpp/Config.in new file +6 -0
new file mode 100644
index 0000000000..d48209aef2
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_UTFCPP
+	bool "utfcpp"
+	help
+	  UTF-8 with C++ in a Portable Way
+
+	  https://github.com/nemtrif/utfcpp
package/utfcpp/utfcpp.hash new file +3 -0
new file mode 100644
index 0000000000..65b3ad2a88
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256  6920a6a5d6a04b9a89b2a89af7132f8acefd46e0c2a7b190350539e9213816c0  utfcpp-4.0.6.tar.gz
+sha256  c9bff75738922193e67fa726fa225535870d2aa1059f91452c411736284ad566  LICENSE
package/utfcpp/utfcpp.mk new file +23 -0
new file mode 100644
index 0000000000..3a4613841e
@@ -0,0 +1,23 @@
+################################################################################
+#
+# taglib
+#
+################################################################################
+
+UTFCPP_VERSION = 4.0.6
+UTFCPP_SITE = $(call github,nemtrif,utfcpp,v$(UTFCPP_VERSION))
+UTFCPP_LICENSE = BSL-1.0
+UTFCPP_LICENSE_FILES = LICENSE
+
+# utfcpp is a header-only library, it only makes sense
+# to have it installed into the staging directory.
+UTFCPP_INSTALL_STAGING = YES
+UTFCPP_INSTALL_TARGET = NO
+
+define UTFCPP_INSTALL_STAGING_CMDS
+	mkdir -p $(STAGING_DIR)/usr/include/utf8/
+	$(INSTALL) -m 0644 $(@D)/source/utf8.h $(STAGING_DIR)/usr/include/utf8.h
+	$(INSTALL) -m 0644 $(@D)/source/utf8/* $(STAGING_DIR)/usr/include/utf8/
+endef
+
+$(eval $(generic-package))
Signature · 6 lines
2.39.5

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 2/2 package/taglib: bump version to 2.0.2

Changelog: https://github.com/taglib/taglib/blob/master/CHANGELOG.md

Needs utfcpp:
https://github.com/taglib/taglib/commit/6ed0ca28db0d12a75572c0f5dcefdc5ebb34cc21

Switched _SITE to https.

---
 package/taglib/Config.in   | 1 +
 package/taglib/taglib.hash | 2 +-
 package/taglib/taglib.mk   | 5 +++--
 3 files changed, 5 insertions(+), 3 deletions(-)
package/taglib/Config.in +1 -0
index 6a87a13215..5b641a9653 100644
@@ -2,6 +2,7 @@ config BR2_PACKAGE_TAGLIB
 	bool "taglib"
 	depends on BR2_INSTALL_LIBSTDCPP
 	depends on BR2_USE_WCHAR
+	select BR2_PACKAGE_UTFCPP
 	help
 	  TagLib is a library for reading and editing the meta-data of
 	  several popular audio formats. Currently it supports both
package/taglib/taglib.hash +1 -1
index e83aa451f3..bbf5dd26d5 100644
@@ -1,4 +1,4 @@
 # Locally calculated
-sha256  c8da2b10f1bfec2cd7dbfcd33f4a2338db0765d851a50583d410bacf055cfd0b  taglib-1.13.1.tar.gz
+sha256  0de288d7fe34ba133199fd8512f19cc1100196826eafcb67a33b224ec3a59737  taglib-2.0.2.tar.gz
 sha256  dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551  COPYING.LGPL
 sha256  53692a2ed6c6a2c6ec9b32dd0b820dfae91e0a1fcdf625ca9ed0bdf8705fcc4f  COPYING.MPL
package/taglib/taglib.mk +3 -2
index 9bdf05b85d..005a6cc728 100644
@@ -4,9 +4,10 @@
 #
 ################################################################################
 
-TAGLIB_VERSION = 1.13.1
-TAGLIB_SITE = http://taglib.github.io/releases
+TAGLIB_VERSION = 2.0.2
+TAGLIB_SITE = https://taglib.org/releases
 TAGLIB_INSTALL_STAGING = YES
+TAGLIB_DEPENDENCIES += utfcpp
 TAGLIB_LICENSE = LGPL-2.1 or MPL-1.1
 TAGLIB_LICENSE_FILES = COPYING.LGPL COPYING.MPL
 TAGLIB_CPE_ID_VENDOR = taglib
Signature · 6 lines
2.39.5

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Re: [Buildroot] [PATCH 2/2] package/taglib: bump version to 2.0.2

package/taglib/taglib.mk line 10

Quoted 6 lines · On Sat, 18 Jan 2025 22:40:53 +0100 Bernd Kuhls <[email protected]> wrote:
package/taglib/taglib.mk +3 -2
-TAGLIB_VERSION = 1.13.1
-TAGLIB_SITE = http://taglib.github.io/releases
+TAGLIB_VERSION = 2.0.2
+TAGLIB_SITE = https://taglib.org/releases
 TAGLIB_INSTALL_STAGING = YES
+TAGLIB_DEPENDENCIES += utfcpp

= sign was enough here, += is not necessary.

Applied with this change. Thanks!

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw
In reply to Bernd Kuhls

Hello,

package/utfcpp/Config.in line 6

Quoted 12 lines · On Sat, 18 Jan 2025 22:40:52 +0100 Bernd Kuhls <[email protected]> wrote:
package/utfcpp/Config.in new file +6 -0
new file mode 100644
index 0000000000..d48209aef2
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_UTFCPP
+	bool "utfcpp"
+	help
+	  UTF-8 with C++ in a Portable Way
+
+	  https://github.com/nemtrif/utfcpp

I've added a dependency on BR2_INSTALL_LIBSTDCPP here. Even though strictly speaking for utfcpp itself, it is needed for all packages that will use it, so it makes sense to "annotate" this as a dependency on utfcpp.

Applied, thanks!

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot