Skip to contentSkip to conversation

package/madplay: remove package

PATCH New Yegor Yefremov 1 participant 1 message Oct 29

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/madplay: remove package

madplay has not seen a release since 0.15.2b in 2004, and the MAD project is no longer maintained upstream.

It now fails to build with musl toolchains, as its bundled getopt implementation uses old-style declarations that are rejected with the C23 default of recent compilers:

getopt.c:400:21: error: too many arguments to function 'getenv'; expected 0, have 1 .../sysroot/usr/include/unistd.h:127:5: error: conflicting types for 'getopt'; have 'int(int, char * const*, const char *)'

Rather than carrying more patches for a dead package, remove it. mpg123 is a maintained alternative to play MPEG audio from the command line.

The libmad and libid3tag libraries are still used by other packages and are kept.

Fixes:
https://autobuild.buildroot.org/results/89e78429da964c08c91f51d3df5a477746649cc7

Assisted-by Claude:claude-opus-5-5
---
 .checkpackageignore                           |   4 -
 Config.in.legacy                              |   8 +
 package/Config.in                             |   1 -
 .../madplay/0001-switch-to-new-alsa-api.patch | 173 ------------------
 .../0002-configure-ac-automake-foreign.patch  |  16 --
 ...ure-ac-use-pkg-config-to-find-id3tag.patch |  23 ---
 ...4-configure-ac-call-AM_MKINSTALLDIRS.patch |  23 ---
 package/madplay/Config.in                     |  21 ---
 package/madplay/madplay.hash                  |   4 -
 package/madplay/madplay.mk                    |  34 ----
 10 files changed, 8 insertions(+), 299 deletions(-)
 delete mode 100644 package/madplay/0001-switch-to-new-alsa-api.patch
 delete mode 100644 package/madplay/0002-configure-ac-automake-foreign.patch
 delete mode 100644 package/madplay/0003-configure-ac-use-pkg-config-to-find-id3tag.patch
 delete mode 100644 package/madplay/0004-configure-ac-call-AM_MKINSTALLDIRS.patch
 delete mode 100644 package/madplay/Config.in
 delete mode 100644 package/madplay/madplay.hash
 delete mode 100644 package/madplay/madplay.mk
.checkpackageignore +0 -4
index a8c1baacbd..0d0c47ee60 100644
@@ -567,10 +567,6 @@ package/lvm2/0002-log-use-freopen-to-reopen-standard-streams.patch lib_patch.Ups
 package/lzma/0001-Remove-static-from-LDFLAGS.patch lib_patch.Upstream
 package/lzop/0001-allow-overriding-modification-time.patch lib_patch.Upstream
 package/macchanger/0001-Fix-missing-include-for-caddr_t.patch lib_patch.Upstream
-package/madplay/0001-switch-to-new-alsa-api.patch lib_patch.Sob lib_patch.Upstream
-package/madplay/0002-configure-ac-automake-foreign.patch lib_patch.Upstream
-package/madplay/0003-configure-ac-use-pkg-config-to-find-id3tag.patch lib_patch.Upstream
-package/madplay/0004-configure-ac-call-AM_MKINSTALLDIRS.patch lib_patch.Upstream
 package/makedumpfile/0002-Handle-__mips64.patch lib_patch.Upstream
 package/mariadb/0001-add-extra-check-for-librt.patch lib_patch.Upstream
 package/mariadb/S97mysqld Shellcheck lib_sysv.Indent lib_sysv.Variables
Config.in.legacy +8 -0
index 29c9b7f9e7..c24aa507c3 100644
@@ -146,6 +146,14 @@ endif
 
 comment "Legacy options removed in 2026.11"
 
+config BR2_PACKAGE_MADPLAY
+	bool "madplay has been removed"
+	select BR2_LEGACY
+	help
+	  madplay has been removed, as it is no longer maintained
+	  upstream (last release in 2004) and fails to build with
+	  recent compilers. Consider using mpg123 instead.
+
 config BR2_PACKAGE_MESA3D_OPENCL
 	bool "Mesa3D OpenCL support is now provided by RustiCL"
 	select BR2_LEGACY
package/Config.in +0 -1
index 796c4f1ad6..71e99cffe2 100644
@@ -29,7 +29,6 @@ menu "Audio and video applications"
 	source "package/jack2/Config.in"
 	source "package/kodi/Config.in"
 	source "package/lame/Config.in"
-	source "package/madplay/Config.in"
 	source "package/minimodem/Config.in"
 	source "package/miraclecast/Config.in"
 	source "package/mjpegtools/Config.in"
package/madplay/0001-switch-to-new-alsa-api.patch deleted +0 -173

173 lines not on this page · raw message

package/madplay/0002-configure-ac-automake-foreign.patch deleted +0 -16
deleted file mode 100644
index 38d1630987..0000000000
@@ -1,16 +0,0 @@
-configure.ac: don't require GNU-specific files when running automake
-
-Signed-off-by: Fabrice Fontaine <[email protected]>
-
-diff -durN madplay-0.15.2b-orig/configure.ac madplay-0.15.2b/configure.ac
---- madplay-0.15.2b-orig/configure.ac	2019-02-14 21:34:01.507212449 +0100
-+++ madplay-0.15.2b/configure.ac	2019-02-14 21:34:23.439336353 +0100
-@@ -26,7 +26,7 @@
- 
- AC_CONFIG_SRCDIR([madplay.c])
- 
--AM_INIT_AUTOMAKE
-+AM_INIT_AUTOMAKE([foreign])
- 
- AM_CONFIG_HEADER([config.h])
- 
package/madplay/0003-configure-ac-use-pkg-config-to-find-id3tag.patch deleted +0 -23
deleted file mode 100644
index 47645edd4c..0000000000
@@ -1,23 +0,0 @@
-configure.ac: use pkg-config to find id3tag
-
-Signed-off-by: Fabrice Fontaine <[email protected]>
-
-diff -durN madplay-0.15.2b-orig/configure.ac madplay-0.15.2b/configure.ac
---- madplay-0.15.2b-orig/configure.ac	2019-02-14 21:34:01.507212449 +0100
-+++ madplay-0.15.2b/configure.ac	2019-02-15 23:24:00.079876087 +0100
-@@ -182,12 +182,13 @@
- *** environment variable to specify its installed location, e.g. -L<dir>.])
- ])
- 
--AC_CHECK_LIB(id3tag, id3_tag_parse, :, [
-+PKG_CHECK_MODULES(ID3TAG, id3tag, [
-+	CFLAGS="$CFLAGS $ID3TAG_CFLAGS" LIBS="$LIBS $ID3TAG_LIBS"], [
- 	AC_MSG_ERROR([libid3tag was not found
- *** You must first install libid3tag before you can build this package.
- *** If libid3tag is already installed, you may need to use the LDFLAGS
- *** environment variable to specify its installed location, e.g. -L<dir>.])
--], [-lz])
-+])
- 
- AC_FUNC_VPRINTF
- AC_CHECK_FUNCS(madvise localeconv)
package/madplay/0004-configure-ac-call-AM_MKINSTALLDIRS.patch deleted +0 -23
deleted file mode 100644
index 448139e0ba..0000000000
@@ -1,23 +0,0 @@
-configure.ac: call AM_MKINSTALLDIRS to substitute @MKINSTALLDIRS@
-
-MKINSTALLDIRS is obsolete and doesn't get automatically called.
-
-Force call AM_MKINSTALLDIRS() macro to substitute every @MKINSTALLDIRS@
-occurrence in *.in files.
-
-Signed-off-by: Giulio Benetti <[email protected]>
-
-diff -urpN madplay-0.15.2b.orig/configure.ac madplay-0.15.2b/configure.ac
---- madplay-0.15.2b.orig/configure.ac	2019-04-16 12:06:03.781018755 +0200
-+++ madplay-0.15.2b/configure.ac	2019-04-16 12:07:48.399162610 +0200
-@@ -146,6 +146,10 @@ ALL_LINGUAS="en es fr hr no"
- AM_GNU_GETTEXT([use-libtool])
- AM_GNU_GETTEXT_VERSION(0.14.1)
- 
-+dnl Substitute MKINSTALLDIRS
-+
-+AM_MKINSTALLDIRS()
-+
- dnl Checks for header files.
- 
- AC_HEADER_STDC
package/madplay/Config.in deleted +0 -21
deleted file mode 100644
index a3373057a1..0000000000
@@ -1,21 +0,0 @@
-config BR2_PACKAGE_MADPLAY
-	bool "madplay"
-	select BR2_PACKAGE_LIBMAD
-	select BR2_PACKAGE_LIBID3TAG
-	help
-	  Command-line front-end to libmad, a high-quality MPEG audio
-	  decoder.  It currently supports MPEG-1 and the MPEG-2
-	  extension to lower sampling frequencies, as well as the de
-	  facto MPEG 2.5 format. All three audio layers - Layer I,
-	  Layer II, and Layer III (i.e. MP3) - are fully implemented.
-
-	  http://www.underbit.com/products/mad/
-
-if BR2_PACKAGE_MADPLAY
-
-config BR2_PACKAGE_MADPLAY_ALSA
-	bool
-	default y
-	depends on BR2_PACKAGE_ALSA_LIB
-
-endif
package/madplay/madplay.hash deleted +0 -4
deleted file mode 100644
index 227702976b..0000000000
@@ -1,4 +0,0 @@
-# Locally computed:
-sha256  5a79c7516ff7560dffc6a14399a389432bc619c905b13d3b73da22fa65acede0  madplay-0.15.2b.tar.gz
-sha256  32b1062f7da84967e7019d01ab805935caa7ab7321a7ced0e30ebe75e5df1670  COPYING
-sha256  915bfd70548f31d11f9b4ffb21f343d1196af96c79d6aaac5663ea46c39dd3a3  COPYRIGHT
package/madplay/madplay.mk deleted +0 -34
deleted file mode 100644
index b9162dd2fd..0000000000
@@ -1,34 +0,0 @@
-################################################################################
-#
-# madplay
-#
-################################################################################
-
-MADPLAY_VERSION = 0.15.2b
-MADPLAY_SITE = http://downloads.sourceforge.net/project/mad/madplay/$(MADPLAY_VERSION)
-MADPLAY_LICENSE = GPL-2.0+
-MADPLAY_LICENSE_FILES = COPYING COPYRIGHT
-MADPLAY_DEPENDENCIES = host-pkgconf libmad libid3tag $(TARGET_NLS_DEPENDENCIES)
-
-# Force autoreconf to be able to use a more recent libtool script, that
-# is able to properly behave in the face of a missing C++ compiler.
-# Also 0003-configure-ac-use-pkg-config-to-find-id3tag.patch
-MADPLAY_AUTORECONF = YES
-
-# madplay uses libmad which has some assembly function that is not present in
-# Thumb mode:
-# Error: selected processor does not support `smull r8,r9,r2,r4' in Thumb mode
-# so, we deactivate Thumb mode
-ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB),y)
-MADPLAY_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -marm"
-endif
-
-# Check if ALSA is built, then we should configure after alsa-lib so
-# ./configure can find alsa-lib.
-ifeq ($(BR2_PACKAGE_MADPLAY_ALSA),y)
-MADPLAY_CONF_OPTS += --with-alsa
-MADPLAY_DEPENDENCIES += alsa-lib
-MADPLAY_CONF_ENV += LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs alsa`"
-endif
-
-$(eval $(autotools-package))
Signature · 6 lines
2.34.1

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