pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/audio/lame
Module Name: pkgsrc
Committed By: thor
Date: Sun Jul 12 12:54:39 UTC 2026
Modified Files:
pkgsrc/audio/lame: Makefile PLIST distinfo options.mk
pkgsrc/audio/lame/patches: patch-ab patch-ad
Removed Files:
pkgsrc/audio/lame/patches: patch-include_libmp3lame.sym
Log Message:
lame: update to 4.0
This drops one patch and adds usage of pkg-config and libmpg123. Also
unicode option is now recommened. You really want unicode handling
for metadata these days.
Changes:
LAME 4.0 July 11 2026
Security scores assume LAME runs under a non-privileged account. For
frontend-only entries, scores also assume the command line is sanitized
or restricted before reaching LAME; integrators who pass unsanitized
or fully scripted command-line input directly may see higher practical
severity than stated.
Security
Fixed a stack buffer overflow in the Blade-style encoder
DLL (lame_enc.dll): beInitStream() copied a caller-supplied
configuration structure using an unchecked, caller-controlled
size, so an oversized or compiler-mismatched size could overwrite
the stack. The size is now bounds-checked and the packed structure
layout is consistent across MSVC and GCC/MinGW builds. [CVSS 8.4,
Blade DLL]. Fix by Alexander Leidinger.
Fixed an integer underflow in the AIFF header parser
(parse_aiff_header()): a crafted file with a FORM chunk size
below 4 wrapped the unsigned chunk-size counter to a huge value,
sending the chunk-scanning loop into an effectively unbounded spin
(a hang) on a tiny malicious input. The size is now validated
before it is decremented. [CVSS 5.5, AIFF frontend]. Fix by
Alexander Leidinger.
Alexander Leidinger
Bump the major version to 4.0 (minor reset to 0). The LAME tag
embedded in every encoded MP3 has a fixed 9-byte field for the
encoder version string; since 3.100 the 3-digit minor version
left no room for the trailing alpha/beta/release marker character,
which was silently dropped.
Fix building with recent GCC and Clang, which rejected the
UTF-8 ID3 tag functions as an incompatible pointer type. Also
fixes the corrupted genre written by --id3v2-utf8 --tg. Patch
submitted by Rudi Heitbaum, patch ticket [ #102 ]; thanks to
lazka for reporting, bug ticket [ #523 ].
Export the UTF-8 ID3 tag functions id3tag_set_textinfo_utf8
and id3tag_set_comment_utf8 from the shared library, and fix a
possible crash on out-of-memory in the ID3v2 user-defined tag
setters, bug ticket [ #518 ].
LAME 3.101 July 09 2026
Robert Hegemann
Patch submitted by KO Myung-Hun, patch ticket [ #80 ] OS/2 patches
Patch submitted by Elio Blanca, patch ticket [ #82 ] Take
advantage of terminal width on printing file names
Bug fix for item [ #496 ] A critical bug in init_xrpow_core_sse
Bug fix for item [ #500 ] Buffer overflow in encoder
Bug fix for item [ #501 ] Encoder: Assertion 'eov->bitrate_index
<= cfg->vbr_max_bitrate_index' failed during ABR encoding
Bug fix for item [ #444 ] msacmdrv.h (structure packing alignment)
Alexander Leidinger
Add faster CRC routine. The speed improvement is very small for
typical use cases, but may be valuable if a lot of independent
encodes are running and/or for a very long time. Patch by Robert
Kausch of the fre:ac project.
Fix configure script glob-ranges matching of compiler
versions. This may result in faster code if no compiler
optimization flags are specified during the configure step. This
is part of patch ticket [ #491 ] lame 3.100 slower than 3.99.5
Disable Takehiros IEEE753 hack by default. On modern CPUs
(anything more recent from AMD than hammer/k8; Intel: Core2,
i3/5/7/9 and similar -- no idea about recent Atom/Pentium) it
is a speed pessimization. Add a configure option for it so that
it can be enabled on old CPUs.
Update to more recent autotools based scripts, this may or may
not fix issues during the configure stage for less popular or
more recent OS or architectures.
Use external libmpg123 instead of internal mpglib for
mpeg decoding (unix-like systems which use the autotools
("configure; make; make install") build system). There are years
of improvements in libmpg123 which we do not have in mpglib. Patch
by Thomas Orgis of the mpg123 project.
Update the Visual Studio project files to Visual Studio
2019. Patch by Michel Fink.
Remove the macosx XCode project files, nobody stepped up to
update them for the libmpg123 changes.
Add ID3v2.4 support (UTF-8 ID3 tags). Patch by "kris".
Add pkg-config support. Patch by Nicolas Boulenguez(Debian).
Add IPv6 support for mp3rtp. This includes an incompatible
change to the command line arguments for existing use cases /
scripts. Patch by Surabhi.
To generate a diff of this commit:
cvs rdiff -u -r1.94 -r1.95 pkgsrc/audio/lame/Makefile
cvs rdiff -u -r1.9 -r1.10 pkgsrc/audio/lame/PLIST
cvs rdiff -u -r1.33 -r1.34 pkgsrc/audio/lame/distinfo
cvs rdiff -u -r1.5 -r1.6 pkgsrc/audio/lame/options.mk
cvs rdiff -u -r1.12 -r1.13 pkgsrc/audio/lame/patches/patch-ab
cvs rdiff -u -r1.5 -r1.6 pkgsrc/audio/lame/patches/patch-ad
cvs rdiff -u -r1.1 -r0 pkgsrc/audio/lame/patches/patch-include_libmp3lame.sym
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/audio/lame/Makefile
diff -u pkgsrc/audio/lame/Makefile:1.94 pkgsrc/audio/lame/Makefile:1.95
--- pkgsrc/audio/lame/Makefile:1.94 Mon Apr 21 16:21:39 2025
+++ pkgsrc/audio/lame/Makefile Sun Jul 12 12:54:39 2026
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.94 2025/04/21 16:21:39 wiz Exp $
+# $NetBSD: Makefile,v 1.95 2026/07/12 12:54:39 thor Exp $
-DISTNAME= lame-3.100
+DISTNAME= lame-4.0
CATEGORIES= audio
-PKGREVISION= 7
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=lame/}
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
@@ -12,6 +11,7 @@ LICENSE= gnu-lgpl-v2
GNU_CONFIGURE= yes
USE_TOOLS+= gmake
+USE_TOOLS+= pkg-config
USE_LIBTOOL= yes
USE_LANGUAGES= c c++
USE_FEATURES+= strnlen
@@ -36,6 +36,7 @@ TOOL_DEPENDS+= nasm>=0.98:../../devel/n
CONFIGURE_ARGS+= --enable-nasm
.endif
+.include "../../audio/mpg123/buildlink3.mk"
.include "../../mk/curses.buildlink3.mk"
.include "../../mk/termcap.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/audio/lame/PLIST
diff -u pkgsrc/audio/lame/PLIST:1.9 pkgsrc/audio/lame/PLIST:1.10
--- pkgsrc/audio/lame/PLIST:1.9 Tue Nov 29 20:26:48 2011
+++ pkgsrc/audio/lame/PLIST Sun Jul 12 12:54:39 2026
@@ -1,8 +1,9 @@
-@comment $NetBSD: PLIST,v 1.9 2011/11/29 20:26:48 wiz Exp $
+@comment $NetBSD: PLIST,v 1.10 2026/07/12 12:54:39 thor Exp $
bin/lame
${PLIST.gtk}bin/mp3x
include/lame/lame.h
lib/libmp3lame.la
+lib/pkgconfig/lame.pc
man/man1/lame.1
share/doc/lame/about.html
share/doc/lame/abr.html
Index: pkgsrc/audio/lame/distinfo
diff -u pkgsrc/audio/lame/distinfo:1.33 pkgsrc/audio/lame/distinfo:1.34
--- pkgsrc/audio/lame/distinfo:1.33 Tue Oct 26 09:59:03 2021
+++ pkgsrc/audio/lame/distinfo Sun Jul 12 12:54:39 2026
@@ -1,9 +1,8 @@
-$NetBSD: distinfo,v 1.33 2021/10/26 09:59:03 nia Exp $
+$NetBSD: distinfo,v 1.34 2026/07/12 12:54:39 thor Exp $
-BLAKE2s (lame-3.100.tar.gz) = ce4c0ac95eb460eb2b88ac6d8375fd4eab1a2ad0fb93df64c823eb55b8ea61c5
-SHA512 (lame-3.100.tar.gz) = 0844b9eadb4aacf8000444621451277de365041cc1d97b7f7a589da0b7a23899310afd4e4d81114b9912aa97832621d20588034715573d417b2923948c08634b
-Size (lame-3.100.tar.gz) = 1524133 bytes
-SHA1 (patch-ab) = ef244006f1b172a0027de65a95fa11f5bce62da8
-SHA1 (patch-ad) = 9783edc46232eeb14f1174606963cdd3a2c601fc
-SHA1 (patch-include_libmp3lame.sym) = 2278fa631fb8ce05864d3ef09a45c0b3d73ab065
+BLAKE2s (lame-4.0.tar.gz) = ee14c01c3707ba0f11744780f3239ed2ca1e5353216399ab0f498bdc54a316bb
+SHA512 (lame-4.0.tar.gz) = 70fa51fe84dd499d171ebf6c05ec82399eb8b0148fb4c08470a61efe9cf826474132ee98166dc63ee5c3646b2c8e955680e4306dd26f590b7810732ab486dd8b
+Size (lame-4.0.tar.gz) = 1496810 bytes
+SHA1 (patch-ab) = 58386a008e8c2c59574440a7d5f4356b764dda1a
+SHA1 (patch-ad) = aee2ea463394dd636966001c5e134801cdbcc09e
SHA1 (patch-libmp3lame_lame.c) = ed64ba64c857dc6acb008105546699c95ac125b5
Index: pkgsrc/audio/lame/options.mk
diff -u pkgsrc/audio/lame/options.mk:1.5 pkgsrc/audio/lame/options.mk:1.6
--- pkgsrc/audio/lame/options.mk:1.5 Sun Nov 7 15:27:26 2010
+++ pkgsrc/audio/lame/options.mk Sun Jul 12 12:54:39 2026
@@ -1,7 +1,9 @@
-# $NetBSD: options.mk,v 1.5 2010/11/07 15:27:26 shattered Exp $
+# $NetBSD: options.mk,v 1.6 2026/07/12 12:54:39 thor Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.lame
PKG_SUPPORTED_OPTIONS= gtk sndfile unicode
+# We really want to work with unicode (ID3 Tags) in 2026.
+PKG_SUGGESTED_OPTIONS= unicode
.include "../../mk/bsd.options.mk"
@@ -16,7 +18,6 @@ PLIST.gtk= yes
.if !empty(PKG_OPTIONS:Msndfile)
CONFIGURE_ARGS+= --with-fileio=sndfile
-CONFIGURE_ARGS+= --with-sndfile-prefix=${BUILDLINK_PREFIX.libsndfile}
USE_TOOLS+= pkg-config
. include "../../audio/libsndfile/buildlink3.mk"
.endif
Index: pkgsrc/audio/lame/patches/patch-ab
diff -u pkgsrc/audio/lame/patches/patch-ab:1.12 pkgsrc/audio/lame/patches/patch-ab:1.13
--- pkgsrc/audio/lame/patches/patch-ab:1.12 Mon Dec 4 08:20:37 2017
+++ pkgsrc/audio/lame/patches/patch-ab Sun Jul 12 12:54:39 2026
@@ -1,10 +1,10 @@
-$NetBSD: patch-ab,v 1.12 2017/12/04 08:20:37 he Exp $
+$NetBSD: patch-ab,v 1.13 2026/07/12 12:54:39 thor Exp $
Change where html doc files are installed.
---- doc/html/Makefile.in.orig 2017-10-13 20:21:58.000000000 +0000
+--- doc/html/Makefile.in.orig 2026-07-10 18:25:39.000000000 +0000
+++ doc/html/Makefile.in
-@@ -298,7 +298,7 @@ top_builddir = @top_builddir@
+@@ -315,7 +315,7 @@ top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
AUTOMAKE_OPTIONS = foreign
pkgdocdir = $(docdir)/$(PACKAGE)
Index: pkgsrc/audio/lame/patches/patch-ad
diff -u pkgsrc/audio/lame/patches/patch-ad:1.5 pkgsrc/audio/lame/patches/patch-ad:1.6
--- pkgsrc/audio/lame/patches/patch-ad:1.5 Mon Dec 4 08:20:37 2017
+++ pkgsrc/audio/lame/patches/patch-ad Sun Jul 12 12:54:39 2026
@@ -1,10 +1,10 @@
-$NetBSD: patch-ad,v 1.5 2017/12/04 08:20:37 he Exp $
+$NetBSD: patch-ad,v 1.6 2026/07/12 12:54:39 thor Exp $
Add <float.h> include.
---- libmp3lame/machine.h.orig 2012-02-07 14:04:51.000000000 +0000
+--- libmp3lame/machine.h.orig 2026-07-10 18:16:21.000000000 +0000
+++ libmp3lame/machine.h
-@@ -131,6 +131,7 @@ char *strchr(), *strrchr();
+@@ -127,6 +127,7 @@ char *strchr(), *strrchr();
# include <float.h>
# define FLOAT_MAX FLT_MAX
#else
Home |
Main Index |
Thread Index |
Old Index