Jan Alexander Steffens (heftig) pushed to branch main at Arch Linux / Packaging / Packages / mpg123
Commits: c40a248c by Jan Alexander Steffens (heftig) at 2023-09-27T16:59:41+02:00 1.32.1-2: unbreak gstreamer build - - - - - 3 changed files: - + .SRCINFO - PKGBUILD - + largename-hack.diff Changes: ===================================== .SRCINFO ===================================== @@ -0,0 +1,26 @@ +pkgbase = mpg123 + pkgdesc = Console based real time MPEG Audio Player for Layer 1, 2 and 3 + pkgver = 1.32.1 + pkgrel = 2 + url = https://sourceforge.net/projects/mpg123 + arch = x86_64 + license = LGPL2.1 + makedepends = sdl2 + makedepends = jack + makedepends = libpulse + depends = alsa-lib + optdepends = sdl2: for sdl audio support + optdepends = jack: for jack audio support + optdepends = libpulse: for pulse audio support + optdepends = perl: for conplay + provides = libmpg123.so + provides = libout123.so + source = https://downloads.sourceforge.net/sourceforge/mpg123/mpg123-1.32.1.tar.bz2 + source = https://downloads.sourceforge.net/sourceforge/mpg123/mpg123-1.32.1.tar.bz2.sig + source = largename-hack.diff + validpgpkeys = D021FF8ECF4BE09719D61A27231C4CBC60D5CAFE + sha512sums = 084f4575d3ad88373a04035778b40e4871b6da969f42b426c76d9539632baa12534d7f0f9b976be228fd313dea9c31f7a259e0a8b56d044c7e89fefdf897def2 + sha512sums = SKIP + sha512sums = bde9d7ae91e1dd8f420b876c71d0d8b30d3cd190b56cf3515754fe202b20f1b74a161b390db46b212428aec0590c9e12cceb09f12e1d599a5356d871bbd361dc + +pkgname = mpg123 ===================================== PKGBUILD ===================================== @@ -3,7 +3,7 @@ pkgname=mpg123 pkgver=1.32.1 -pkgrel=1 +pkgrel=2 pkgdesc='Console based real time MPEG Audio Player for Layer 1, 2 and 3' url="https://sourceforge.net/projects/mpg123" arch=('x86_64') @@ -15,11 +15,29 @@ optdepends=('sdl2: for sdl audio support' 'libpulse: for pulse audio support' 'perl: for conplay') provides=(libmpg123.so libout123.so) -source=(https://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2{,.sig}) +source=(https://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2{,.sig} + largename-hack.diff) sha512sums=('084f4575d3ad88373a04035778b40e4871b6da969f42b426c76d9539632baa12534d7f0f9b976be228fd313dea9c31f7a259e0a8b56d044c7e89fefdf897def2' - 'SKIP') + 'SKIP' + 'bde9d7ae91e1dd8f420b876c71d0d8b30d3cd190b56cf3515754fe202b20f1b74a161b390db46b212428aec0590c9e12cceb09f12e1d599a5356d871bbd361dc') validpgpkeys=('D021FF8ECF4BE09719D61A27231C4CBC60D5CAFE') +prepare() { + cd ${pkgname}-${pkgver} + + # Unbreak downstream compiles which add -D_FILE_OFFSET_BITS=64 even when off_t + # is already 64-bits long. Meson does this (e.g. when building GStreamer) + # + # Otherwise, when _FILE_OFFSET_BITS is defined, mpg123.h uses it to rename + # functions with a suffix of _64, but these functions do not exist because + # configure disables the largefile API when off_t is natively 64-bit. + # + # Do not apply this hack to lib32-mpg123 or other i686 builds. + # + # https://sourceforge.net/p/mpg123/bugs/361/ + patch -Np1 -i ../largename-hack.diff +} + build() { cd ${pkgname}-${pkgver} ./configure \ ===================================== largename-hack.diff ===================================== @@ -0,0 +1,9 @@ +diff -Nurp mpg123-1.32.1/libmpg123.pc.in mpg123-1.32.1-hack64/libmpg123.pc.in +--- mpg123-1.32.1/libmpg123.pc.in 2023-09-24 08:15:03.000000000 +0200 ++++ mpg123-1.32.1-hack64/libmpg123.pc.in 2023-09-27 16:23:21.201087382 +0200 +@@ -9,4 +9,4 @@ Requires: + Version: @PACKAGE_VERSION@ + Libs: -L${libdir} -lmpg123 + Libs.private: @LIBMPG123_LIBS@ +-Cflags: -I${includedir} ++Cflags: -I${includedir} -DMPG123_NO_LARGENAME View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/mpg123/-/commit/c40a248c86bf4e113ad5c3c5b3c9064cb7b8d440 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/mpg123/-/commit/c40a248c86bf4e113ad5c3c5b3c9064cb7b8d440 You're receiving this email because of your account on gitlab.archlinux.org.