package/libcuefile: remove package

Last release 2011: https://www.musepack.net/index.php?pg=src

Please note that patch 0003 contains crlf line endings.

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Bernd Kuhls
2025-12-30 12:45:29 +01:00
committed by Thomas Petazzoni
parent c2645a3312
commit 05ca9bfcdb
9 changed files with 6 additions and 127 deletions

View File

@@ -523,7 +523,6 @@ package/libb64/0001-Integer-overflows.patch lib_patch.Upstream
package/libb64/0002-Initialize-C++-objects.patch lib_patch.Upstream
package/libcdaudio/0001-libcdaudio-enable-autoreconf.patch lib_patch.Upstream
package/libcgicc/0001-disable-documentation-option.patch lib_patch.Sob lib_patch.Upstream
package/libcuefile/0001-fix-static-link.patch lib_patch.Upstream
package/libdaemon/0001-testd-use-unistd-h-instead-of-sys-unistd-h.patch lib_patch.Upstream
package/libdnet/0001-python-makefile.patch lib_patch.Upstream
package/libdrm/0001-tests-meson.build-disable-nouveau-tests-for-static-b.patch lib_patch.Upstream

View File

@@ -146,6 +146,12 @@ endif
comment "Legacy options removed in 2026.02"
config BR2_PACKAGE_LIBCUEFILE
bool "libcuefile has been removed"
select BR2_LEGACY
help
libcuefile is unmaintained and has been removed
config BR2_PACKAGE_MPD_MUSEPACK
bool "musepack support in mpd has been removed"
select BR2_LEGACY

View File

@@ -1547,7 +1547,6 @@ menu "Audio/Sound"
source "package/libcdio-paranoia/Config.in"
source "package/libcodec2/Config.in"
source "package/libcue/Config.in"
source "package/libcuefile/Config.in"
source "package/libg7221/Config.in"
source "package/libgsm/Config.in"
source "package/libid3tag/Config.in"

View File

@@ -1,25 +0,0 @@
Fix static only build
Make sure to build the shared library only if BUILD_SHARED_LIBS is
ON. Normally, CMake takes care of this automatically, but libcuefile
wants to build both the shared and static variants, so the normal
logic of CMake doesn't apply.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Index: b/src/CMakeLists.txt
===================================================================
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -4,7 +4,11 @@
add_library(cuefile-static STATIC cd cdtext cue_parse cue_print cue_scan cuefile time toc toc_parse toc_print toc_scan)
set_target_properties(cuefile-static PROPERTIES OUTPUT_NAME cuefile CLEAN_DIRECT_OUTPUT 1)
+if (BUILD_SHARED_LIBS)
add_library(cuefile-shared SHARED cd cdtext cue_parse cue_print cue_scan cuefile time toc toc_parse toc_print toc_scan)
set_target_properties(cuefile-shared PROPERTIES OUTPUT_NAME cuefile CLEAN_DIRECT_OUTPUT 1 VERSION 0.0.0 SOVERSION 0)
install(TARGETS cuefile-static cuefile-shared LIBRARY DESTINATION "lib${LIB_SUFFIX}" ARCHIVE DESTINATION "lib${LIB_SUFFIX}")
+else (BUILD_SHARED_LIBS)
+install(TARGETS cuefile-static LIBRARY DESTINATION "lib${LIB_SUFFIX}" ARCHIVE DESTINATION "lib${LIB_SUFFIX}")
+endif (BUILD_SHARED_LIBS)

View File

@@ -1,27 +0,0 @@
From 7dd8752f5aa2dccbaccb4c28a23f659df3bc0d19 Mon Sep 17 00:00:00 2001
From: DJ Delorie <dj@redhat.com>
Date: Thu, 27 Apr 2023 17:24:58 -0400
Subject: [PATCH] Fix C99 compatibility issue
Related to:
<https://fedoraproject.org/wiki/Changes/PortingToModernC>
<https://fedoraproject.org/wiki/Toolchain/PortingToModernC>
See Also https://bugzilla.redhat.com/show_bug.cgi?id=2190307
Signed-off-by: DJ Delorie <dj@redhat.com>
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Upstream: https://src.fedoraproject.org/rpms/libcuefile/blob/7dd8752f5aa2dccbaccb4c28a23f659df3bc0d19/f/libcuefile-fedora-c99.patch
---
diff -rup a/src/cue_parse.c b/src/cue_parse.c
--- a/src/cue_parse.c 2011-06-18 07:28:43.000000000 -0400
+++ b/src/cue_parse.c 2023-04-27 16:10:13.314263314 -0400
@@ -1513,6 +1513,8 @@ void yyerror (char *s)
fprintf(stderr, "%d: %s\n", cue_lineno, s);
}
+void cue_delete_buffer(void);
+
Cd *cue_parse (FILE *fp)
{
cue_yyin = fp;

View File

@@ -1,35 +0,0 @@
From bf7598c2f5a40d16f16a9649bb6415c3594c0a45 Mon Sep 17 00:00:00 2001
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Date: Tue, 16 Dec 2025 10:26:49 +0100
Subject: [PATCH] CMakeLists.txt: fix compat with CMake 4
Fixes:
CMake Error at CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED):
Compatibility with CMake < 3.5 has been removed from CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
Upstream: N/A, dead
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c1e4a8b..96bf5b4 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
+CMAKE_MINIMUM_REQUIRED(VERSION 3.5)
project(libcuefile C)
--
2.52.0

View File

@@ -1,6 +0,0 @@
config BR2_PACKAGE_LIBCUEFILE
bool "libcuefile"
help
Cue File library from Musepack
http://www.musepack.net/

View File

@@ -1,7 +0,0 @@
# From https://www.musepack.net/index.php?pg=src
md5 1a6ac52e1080fd54f0f59372345f1e4e libcuefile_r475.tar.gz
# Calculated based on the hash above
sha256 b681ca6772b3f64010d24de57361faecf426ee6182f5969fcf29b3f649133fe7 libcuefile_r475.tar.gz
# Hash for license file:
sha256 32b1062f7da84967e7019d01ab805935caa7ab7321a7ced0e30ebe75e5df1670 COPYING

View File

@@ -1,25 +0,0 @@
################################################################################
#
# libcuefile
#
################################################################################
LIBCUEFILE_VERSION = 475
LIBCUEFILE_SITE = http://files.musepack.net/source
LIBCUEFILE_SOURCE = libcuefile_r$(LIBCUEFILE_VERSION).tar.gz
LIBCUEFILE_INSTALL_STAGING = YES
LIBCUEFILE_LICENSE = GPL-2.0+
LIBCUEFILE_LICENSE_FILES = COPYING
define LIBCUEFILE_INSTALL_STAGING_INCLUDES
cp -r $(@D)/include $(STAGING_DIR)/usr
endef
define LIBCUEFILE_INSTALL_TARGET_INCLUDES
cp -r $(@D)/include $(TARGET_DIR)/usr
endef
LIBCUEFILE_POST_INSTALL_STAGING_HOOKS += LIBCUEFILE_INSTALL_STAGING_INCLUDES
LIBCUEFILE_POST_INSTALL_TARGET_HOOKS += LIBCUEFILE_INSTALL_TARGET_INCLUDES
$(eval $(cmake-package))