easytag: fix for change in id3lib ABI

This commit is contained in:
Đoàn Trần Công Danh 2022-11-17 22:46:20 +07:00
parent 449728c10c
commit f8ef88cff6
2 changed files with 51 additions and 1 deletions

View File

@ -0,0 +1,50 @@
Index: easytag-2.4.3/src/tags/id3lib/c_wrapper.cpp
===================================================================
--- easytag-2.4.3.orig/src/tags/id3lib/c_wrapper.cpp
+++ easytag-2.4.3/src/tags/id3lib/c_wrapper.cpp
@@ -39,10 +39,10 @@ extern "C"
// Tag wrappers
//
- ID3_C_EXPORT bool CCONV
+ ID3_C_EXPORT ID3_Bool CCONV
ID3Field_SetEncoding(ID3Field *field, ID3_TextEnc enc)
{
- bool changed = false;
+ ID3_Bool changed = ID3_False;
if (field)
{
ID3_CATCH(changed = reinterpret_cast<ID3_Field *>(field)->SetEncoding(enc));
@@ -61,10 +61,10 @@ extern "C"
return enc;
}
- ID3_C_EXPORT bool CCONV
+ ID3_C_EXPORT ID3_Bool CCONV
ID3Field_IsEncodable(const ID3Field *field)
{
- bool isEncodable = false;
+ ID3_Bool isEncodable = ID3_False;
if (field)
{
ID3_CATCH(isEncodable = reinterpret_cast<const ID3_Field *>(field)->IsEncodable());
Index: easytag-2.4.3/src/tags/id3lib/id3_bugfix.h
===================================================================
--- easytag-2.4.3.orig/src/tags/id3lib/id3_bugfix.h
+++ easytag-2.4.3/src/tags/id3lib/id3_bugfix.h
@@ -29,13 +29,13 @@
G_BEGIN_DECLS
#if !HAVE_DECL_ID3FIELD_SETENCODING
-ID3_C_EXPORT bool CCONV ID3Field_SetEncoding (ID3Field *field, ID3_TextEnc enc);
+ID3_C_EXPORT ID3_Bool CCONV ID3Field_SetEncoding (ID3Field *field, ID3_TextEnc enc);
#endif /* !HAVE_DECL_ID3FIELD_SETENCODING */
#if !HAVE_DECL_ID3FIELD_GETENCODING
ID3_C_EXPORT ID3_TextEnc CCONV ID3Field_GetEncoding (const ID3Field *field);
#endif /* !HAVE_DECL_ID3FIELD_GETENCODING */
#if !HAVE_DECL_ID3FIELD_ISENCODABLE
-ID3_C_EXPORT bool CCONV ID3Field_IsEncodable (const ID3Field *field);
+ID3_C_EXPORT ID3_Bool CCONV ID3Field_IsEncodable (const ID3Field *field);
#endif /* !HAVE_DECL_ID3FIELD_ISENCODABLE */
ID3_C_EXPORT ID3_FieldType CCONV ID3Field_GetType (const ID3Field *field);
//ID3_C_EXPORT ID3_FieldID CCONV ID3Field_GetID (const ID3Field *field);

View File

@ -1,7 +1,7 @@
# Template file for 'easytag'
pkgname=easytag
version=2.4.3
revision=1
revision=2
build_style=gnu-configure
hostmakedepends="gdk-pixbuf glib-devel intltool itstool pkg-config"
makedepends="gtk+3-devel id3lib-devel libid3tag-devel libvorbis-devel