From cedf867bbf3182e2282e58598e24ed4ee7b338e3 Mon Sep 17 00:00:00 2001 From: Enric Morales Date: Fri, 10 May 2024 10:26:04 +0200 Subject: [PATCH] mpg321: remove --- pkgs/applications/audio/mpg321/default.nix | 53 ------------------- pkgs/development/libraries/libmad/default.nix | 3 +- pkgs/top-level/aliases.nix | 1 + pkgs/top-level/all-packages.nix | 2 - 4 files changed, 2 insertions(+), 57 deletions(-) delete mode 100644 pkgs/applications/audio/mpg321/default.nix diff --git a/pkgs/applications/audio/mpg321/default.nix b/pkgs/applications/audio/mpg321/default.nix deleted file mode 100644 index e00b6722f38d..000000000000 --- a/pkgs/applications/audio/mpg321/default.nix +++ /dev/null @@ -1,53 +0,0 @@ -{lib, stdenv, fetchurl, fetchpatch, libao, libmad, libid3tag, zlib, alsa-lib -# Specify default libao output plugin to use (e.g. "alsa", "pulse" …). -# If null, it will use the libao system default. -, defaultAudio ? null -}: - -stdenv.mkDerivation rec { - pname = "mpg321"; - version = "0.3.2"; - - src = fetchurl { - url = "mirror://sourceforge/mpg321/${version}/mpg321_${version}.orig.tar.gz"; - sha256 = "0ki8mh76bbmdh77qsiw682dvi8y468yhbdabqwg05igmwc1wqvq5"; - }; - - patches = [ - (fetchpatch { - name = "CVE-2018-7263.patch"; - url = "https://sources.debian.org/data/main/m/mpg321/0.3.2-3/debian/patches/handle_illegal_bitrate_value.patch"; - sha256 = "15simp5fjvm9b024ryfh441rkh2d5bcrizqkzlrh07n9sm7fkw6x"; - }) - # Apple defines semun already. Skip redefining it to fix build errors. - (fetchpatch { - url = "https://raw.githubusercontent.com/Homebrew/formula-patches/85fa66a9/mpg321/0.3.2.patch"; - sha256 = "sha256-qFYpKpE9PZSzOJrnsQINZi6FvUVX0anRyOvlF5eOYqE="; - }) - ]; - - hardeningDisable = [ "format" ]; - - # Workaround build failure on -fno-common toolchains like upstream - # gcc-10. Otherwise build fails as: - # ld: volume.o:/build/mpg321-0.3.2-orig/mpg321.h:119: multiple definition of - # `loop_remaining'; mpg321.o:/build/mpg321-0.3.2-orig/mpg321.h:119: first defined here - env.NIX_CFLAGS_COMPILE = "-fcommon"; - - configureFlags = - [ ("--enable-alsa=" + (if stdenv.isLinux then "yes" else "no")) ] - ++ (lib.optional (defaultAudio != null) - "--with-default-audio=${defaultAudio}"); - - buildInputs = [libao libid3tag libmad zlib] - ++ lib.optional stdenv.isLinux alsa-lib; - - installTargets = [ "install" "install-man" ]; - - meta = with lib; { - description = "Command-line MP3 player"; - homepage = "https://mpg321.sourceforge.net/"; - license = licenses.gpl2; - platforms = platforms.unix; - }; -} diff --git a/pkgs/development/libraries/libmad/default.nix b/pkgs/development/libraries/libmad/default.nix index b9096fce9ef0..eee6b4faa5d3 100644 --- a/pkgs/development/libraries/libmad/default.nix +++ b/pkgs/development/libraries/libmad/default.nix @@ -7,7 +7,6 @@ # for passthru.tests , audacity , mpd -, mpg321 , normalize , ocamlPackages , streamripper @@ -70,7 +69,7 @@ stdenv.mkDerivation rec { preConfigure = "autoconf"; passthru.tests = { - inherit audacity mpd mpg321 normalize streamripper vlc; + inherit audacity mpd normalize streamripper vlc; ocaml-mad = ocamlPackages.mad; }; diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index bc61e38b973f..6115838d4817 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -826,6 +826,7 @@ mapAliases ({ mozart = throw "'mozart' has been renamed to/replaced by 'mozart2-binary'"; # Converted to throw 2023-09-10 mpc_cli = mpc-cli; # moved from top-level 2022-01-24 mpd_clientlib = libmpdclient; # Added 2021-02-11 + mpg321 = throw "'mpg321' has been removed due to it being unmaintained by upstream. Consider using mpg123 instead."; # Added 2024-05-10 mumble_git = throw "'mumble_git' has been renamed to/replaced by 'pkgs.mumble'"; # Converted to throw 2023-09-10 murmur_git = throw "'murmur_git' has been renamed to/replaced by 'pkgs.murmur'"; # Converted to throw 2023-09-10 mutt-with-sidebar = mutt; # Added 2022-09-17 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2f97ad44b874..a0a3e57fbd28 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -32980,8 +32980,6 @@ with pkgs; withConplay = false; }; - mpg321 = callPackage ../applications/audio/mpg321 { }; - mpc-cli = callPackage ../applications/audio/mpc { inherit (python3Packages) sphinx; };