1
0
mirror of https://github.com/gryf/gryf-overlay.git synced 2026-04-20 08:33:31 +02:00

Fixes for the easytag compilation issues.

This commit is contained in:
2023-02-26 18:04:19 +01:00
parent 5d313c8232
commit d3294f61d8
8 changed files with 40 additions and 49 deletions
@@ -0,0 +1,12 @@
diff -ur a/src/misc.c b/src/misc.c
--- a/src/misc.c 2013-02-05 23:42:37.000000000 +0100
+++ b/src/misc.c 2023-02-26 17:08:00.397236011 +0100
@@ -479,7 +479,7 @@
/* Get the current date */
memcpy(&t0, localtime(&t), sizeof(struct tm));
/* Put the current year in 'current_year' tab */
- sprintf(current_year,"%04d",1900+t0.tm_year);
+ snprintf(current_year,sizeof(current_year),"%04d",1900+t0.tm_year%1000u);
tmp = &current_year[4-strlen(year)];
if ( atoi(year) <= atoi(tmp) )
@@ -1,18 +1,6 @@
diff -ur easytag-2.1.8/src/misc.c easytag-2.1.8_patched/src/misc.c
--- easytag-2.1.8/src/misc.c 2013-02-05 23:42:37.000000000 +0100
+++ easytag-2.1.8_patched/src/misc.c 2019-10-19 14:51:12.006783244 +0200
@@ -463,7 +463,7 @@
{
const gchar *year;
gchar *tmp, *tmp1;
- gchar current_year[5];
+ gchar current_year[12];
time_t t;
struct tm t0;
diff -ur easytag-2.1.8/src/wavpack_tag.c easytag-2.1.8_patched/src/wavpack_tag.c
--- easytag-2.1.8/src/wavpack_tag.c 2013-02-05 23:42:37.000000000 +0100
+++ easytag-2.1.8_patched/src/wavpack_tag.c 2019-10-19 14:51:02.606783007 +0200
diff -ur a/src/wavpack_tag.c b/src/wavpack_tag.c
--- a/src/wavpack_tag.c 2023-02-26 17:09:51.951580194 +0100
+++ b/src/wavpack_tag.c 2023-02-26 17:10:41.316617543 +0100
@@ -82,8 +82,6 @@
*/
gboolean Wavpack_Tag_Read_File_Tag (gchar *filename, File_Tag *FileTag)
@@ -1,5 +1,6 @@
--- easytag.desktop.in
+++ easytag.desktop.in
diff -ur a/easytag.desktop.in b/easytag.desktop.in
--- a/easytag.desktop.in 2013-01-16 10:02:13.000000000 +0100
+++ b/easytag.desktop.in 2023-02-26 16:55:03.448909358 +0100
@@ -6,7 +6,7 @@
Type=Application
Icon=easytag
@@ -1,5 +1,6 @@
--- Makefile.am
+++ Makefile.am
diff -ur a/Makefile.am b/Makefile.am
--- a/Makefile.am 2023-02-26 16:56:34.458821825 +0100
+++ b/Makefile.am 2023-02-26 16:56:46.391072567 +0100
@@ -197,11 +197,6 @@
$(AM_V_at)$(POST_UNINSTALL)
test -n "$(DESTDIR)" || $(UPDATE_ICON_CACHE) "$(iconthemedir)"
@@ -1,5 +1,6 @@
--- easytag-2.1.8/configure.ac
+++ easytag-2.1.8/configure.ac
diff -ur a/configure.ac b/configure.ac
--- a/configure.ac 2023-02-26 16:55:55.682006975 +0100
+++ b/configure.ac 2023-02-26 16:56:13.722386073 +0100
@@ -202,7 +202,7 @@
TAGLIB_DEPS="taglib_c >= 1.6.0"
AS_IF([test "x$enable_mp4" != "xno"],
@@ -1,11 +0,0 @@
--- configure.ac
+++ configure.ac
@@ -239,7 +239,7 @@
AC_MSG_RESULT([$have_ws2])])
dnl Check that the compiler accepts the given warning flags.
-warning_flags="-Wall -Wstrict-prototypes -Wnested-externs -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=format-security -Werror=format=2 -Werror=missing-include-dirs -Werror=declaration-after-statement"
+warning_flags="-Wall -Wstrict-prototypes -Wnested-externs"
realsave_CFLAGS="$CFLAGS"
for option in $warning_flags; do