[gentoo-commits] repo/gentoo:master commit in: media-sound/mpg321/files/, media-sound/mpg321/
commit: ba6b4630d2b4cc294a3057b1f4770650bcb12c87 Author: Ionen Wolkens gentoo org> AuthorDate: Sat Oct 15 15:07:09 2022 + Commit: Ionen Wolkens gentoo org> CommitDate: Sat Oct 15 20:06:45 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba6b4630 media-sound/mpg321: drop ipv6 USE + fix build w/ upcoming clang16 clang fixes also fixed lto issues wrt #860876. Closes: https://bugs.gentoo.org/860876 Closes: https://bugs.gentoo.org/874312 Signed-off-by: Ionen Wolkens gentoo.org> .../mpg321/files/mpg321-0.3.2-clang16.patch| 79 ++ ...{mpg321-0.3.2.ebuild => mpg321-0.3.2-r1.ebuild} | 7 +- 2 files changed, 83 insertions(+), 3 deletions(-) diff --git a/media-sound/mpg321/files/mpg321-0.3.2-clang16.patch b/media-sound/mpg321/files/mpg321-0.3.2-clang16.patch new file mode 100644 index ..a2d49edf0e89 --- /dev/null +++ b/media-sound/mpg321/files/mpg321-0.3.2-clang16.patch @@ -0,0 +1,79 @@ +https://bugs.gentoo.org/860876 +https://bugs.gentoo.org/874312 +--- a/fft.c b/fft.c +@@ -148,5 +148,5 @@ + printf("%i is reversed to %i and maps to %i %i\n", i, bitReverse[i], bitReverse[i] * 2, (bitReverse[i] * 2) + 1); + #endif +-sound_sample* ptr = &(input[bitReverse[i] * 2]); ++const sound_sample* ptr = &(input[bitReverse[i] * 2]); + *realptr++ = (ptr[0] + ptr[1]) / 2; + *imagptr++ = 0; +--- a/mpg321.c b/mpg321.c +@@ -100,5 +100,5 @@ + pid_t output_pid; + /* Not used for the moment. It only works for CBR http/ftp retrieved files */ +-extern http_file_length; ++extern int http_file_length; + #ifdef HAVE_ALSA + /* ALSA Volume Range */ +--- a/mpg321.h b/mpg321.h +@@ -177,4 +177,5 @@ + + /* network functions */ ++void do_basicauth(); + int tcp_open(char * address, int port); + int udp_open(char * address, int port); +@@ -189,4 +190,5 @@ + enum mad_flow output(void *data, struct mad_header const *header, struct mad_pcm *pcm); + int calc_length(char *file, buffer*buf ); ++int calc_http_length(buffer *buf); + + static enum mad_flow handle_error(void *data, struct mad_stream *stream, struct mad_frame *frame); +@@ -199,6 +201,8 @@ + void check_ao_default_play_device(); + void check_default_play_device(); ++int check_default_play_device_buffer(); + int playdevice_is_live(); + void open_ao_playdevice(struct mad_header const *header); ++ao_device *open_ao_playdevice_buffer(struct mad_header const *header); + + /* remote control (-R) functions */ +@@ -230,4 +234,10 @@ + RETSIGTYPE handle_sigchld(int sig); + ++#ifdef HAVE_ALSA ++int init_alsa_volume_control(char *name); ++long mpg321_alsa_get_volume(); ++void mpg321_alsa_set_volume(long value); ++#endif ++ + /* FFT data structures */ + #define FFT_BUFFER_SIZE_LOG 9 +@@ -243,5 +253,5 @@ + + typedef short int sound_sample; +-//void fft_perform(const sound_sample *input, double *output, fft_state *state); ++void fft_perform(const sound_sample *input, double *output, fft_state *state); + + fft_state *fft_init(void); +--- a/options.c b/options.c +@@ -45,5 +45,5 @@ + extern int auth_enable; + extern int auth_enable_var; +-extern remote_restart; ++extern int remote_restart; + /*Basic Authentication Arguments*/ + char *basic_auth = NULL; +--- a/volume.c b/volume.c +@@ -29,5 +29,5 @@ + int init_alsa_volume_control(char *name) + { +- char *elemnam; ++ const char *elemnam; + snd_mixer_open(&mixer,0); + snd_mixer_attach(mixer,name); diff --git a/media-sound/mpg321/mpg321-0.3.2.ebuild b/media-sound/mpg321/mpg321-0.3.2-r1.ebuild similarity index 92% rename from media-sound/mpg321/mpg321-0.3.2.ebuild rename to media-sound/mpg321/mpg321-0.3.2-r1.ebuild index 119b2b4c559d..689440e6caa4 100644 --- a/media-sound/mpg321/mpg321-0.3.2.ebuild +++ b/media-sound/mpg321/mpg321-0.3.2-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -11,7 +11,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P/-/_}.orig.tar.gz -> ${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~ppc-macos" -IUSE="alsa ipv6" +IUSE="alsa" RDEPEND="app-eselect/eselect-mpg123 >=media-libs/libao-1:= @@ -28,6 +28,7 @@ PATCHES=( "${FILESDIR}/${P}-format-security.patch" "${FILESDIR}/${P}-CVE-2019-14247.patch" "${FILESDIR}/${P}-gcc10.patch" + "${FILESDIR}/${P}-clang16.patch" ) src_prepare() { @@ -38,7 +39,7 @@ src_prepare() { src_configure() { econf \ --disable-mpg123-symlink \ - $(use_enable ipv6) \ + --enable-ipv6 \ $(use_enable alsa) }
[gentoo-commits] repo/gentoo:master commit in: media-sound/mpg321/
commit: 893d9015d4dd4f55b5e80289935e42ce5cd5f7ef Author: Yixun Lan gentoo org> AuthorDate: Thu Sep 2 08:57:01 2021 + Commit: Yixun Lan gentoo org> CommitDate: Thu Sep 2 10:03:36 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=893d9015 media-sound/mpg321: keyword ~riscv Package-Manager: Portage-3.0.22, Repoman-3.0.3 Signed-off-by: Yixun Lan gentoo.org> media-sound/mpg321/mpg321-0.3.2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media-sound/mpg321/mpg321-0.3.2.ebuild b/media-sound/mpg321/mpg321-0.3.2.ebuild index 4ce38f65331..119b2b4c559 100644 --- a/media-sound/mpg321/mpg321-0.3.2.ebuild +++ b/media-sound/mpg321/mpg321-0.3.2.ebuild @@ -10,7 +10,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P/-/_}.orig.tar.gz -> ${P}.tar.gz" LICENSE="GPL-2" SLOT="0" -KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos" +KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~ppc-macos" IUSE="alsa ipv6" RDEPEND="app-eselect/eselect-mpg123
[gentoo-commits] repo/gentoo:master commit in: media-sound/mpg321/
commit: e60609e38f29c6f23e90d363b564bb82bb66bd20 Author: Sam James gentoo org> AuthorDate: Mon Aug 16 21:20:14 2021 + Commit: Sam James gentoo org> CommitDate: Mon Aug 16 21:22:42 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e60609e3 media-sound/mpg321: add missing slot operator dep (libid3tag) Signed-off-by: Sam James gentoo.org> media-sound/mpg321/mpg321-0.3.2.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/media-sound/mpg321/mpg321-0.3.2.ebuild b/media-sound/mpg321/mpg321-0.3.2.ebuild index 9d050bcc5dc..4ce38f65331 100644 --- a/media-sound/mpg321/mpg321-0.3.2.ebuild +++ b/media-sound/mpg321/mpg321-0.3.2.ebuild @@ -14,8 +14,8 @@ KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~ IUSE="alsa ipv6" RDEPEND="app-eselect/eselect-mpg123 - >=media-libs/libao-1 - media-libs/libid3tag + >=media-libs/libao-1:= + media-libs/libid3tag:= media-libs/libmad sys-libs/zlib alsa? ( media-libs/alsa-lib )"
[gentoo-commits] repo/gentoo:master commit in: media-sound/mpg321/
commit: aad9181028dfc3ee4bac2bd0df4c33bb2f2925ef Author: Fabian Groffen gentoo org> AuthorDate: Wed Jan 6 14:29:57 2021 + Commit: Fabian Groffen gentoo org> CommitDate: Wed Jan 6 14:29:57 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aad91810 media-sound/mpg321: drop x86-macos Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Fabian Groffen gentoo.org> media-sound/mpg321/mpg321-0.3.2.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/media-sound/mpg321/mpg321-0.3.2.ebuild b/media-sound/mpg321/mpg321-0.3.2.ebuild index a8fabc34258..cc2a3e240b6 100644 --- a/media-sound/mpg321/mpg321-0.3.2.ebuild +++ b/media-sound/mpg321/mpg321-0.3.2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -10,7 +10,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P/-/_}.orig.tar.gz -> ${P}.tar.gz" LICENSE="GPL-2" SLOT="0" -KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" +KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos" IUSE="alsa ipv6" RDEPEND="app-eselect/eselect-mpg123
[gentoo-commits] repo/gentoo:master commit in: media-sound/mpg321/, media-sound/mpg321/files/
commit: 33364299eee045ae5df62612a33c9c80dbbe792c Author: Azamat H. Hackimov gmail com> AuthorDate: Thu Jun 4 17:51:17 2020 + Commit: Aaron Bauman gentoo org> CommitDate: Sat Jun 6 01:49:13 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33364299 media-sound/mpg321: update ebuild Applied security fix from Debian for CVE-2019-14247 (#711918), fixed compilation on GCC10 (#706740), updated ebuild to EAPI 7. Bug: https://bugs.gentoo.org/711918 Closes: https://bugs.gentoo.org/706740 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Azamat H. Hackimov gmail.com> Closes: https://github.com/gentoo/gentoo/pull/16066 Signed-off-by: Aaron Bauman gentoo.org> .../mpg321/files/mpg321-0.3.2-CVE-2019-14247.patch | 20 ++ .../files/mpg321-0.3.2-format-security.patch | 4 +- media-sound/mpg321/files/mpg321-0.3.2-gcc10.patch | 83 ++ media-sound/mpg321/mpg321-0.3.2.ebuild | 12 +++- 4 files changed, 114 insertions(+), 5 deletions(-) diff --git a/media-sound/mpg321/files/mpg321-0.3.2-CVE-2019-14247.patch b/media-sound/mpg321/files/mpg321-0.3.2-CVE-2019-14247.patch new file mode 100644 index 000..ff8aea8f8e7 --- /dev/null +++ b/media-sound/mpg321/files/mpg321-0.3.2-CVE-2019-14247.patch @@ -0,0 +1,20 @@ +Description: Handle illegal bitrate value +Author: Chrysostomos Nanakos +Bug-Debian: https://bugs.debian.org/870406 +Bug-Debian: https://bugs.debian.org/887057 + +--- mpg321-0.3.2.orig/mad.c mpg321-0.3.2/mad.c +@@ -574,6 +574,12 @@ void scan(void const *ptr, ssize_t len, + + if (!is_vbr) + { ++ if (header.bitrate <= 0) ++{ ++fprintf(stderr, "Illegal bit allocation value\n"); ++return; ++} ++ + double time = (len * 8.0) / (header.bitrate); /* time in seconds */ + double timefrac = (double)time - ((long)(time)); + long nsamples = 32 * MAD_NSBSAMPLES(&header); /* samples per frame */ diff --git a/media-sound/mpg321/files/mpg321-0.3.2-format-security.patch b/media-sound/mpg321/files/mpg321-0.3.2-format-security.patch index 732ca2c6022..c93d8d796dc 100644 --- a/media-sound/mpg321/files/mpg321-0.3.2-format-security.patch +++ b/media-sound/mpg321/files/mpg321-0.3.2-format-security.patch @@ -1,5 +1,5 @@ /var/tmp/portage/media-sound/mpg321-0.3.2/work/mpg321-0.3.2-orig/mpg321.c 2012-03-25 14:27:49.0 +0200 -+++ /tmp/mpg321.c 2015-08-12 23:34:20.395331151 +0200 +--- mpg321-0.3.2-orig/mpg321.c 2012-03-25 14:27:49.0 +0200 mpg321-0.3.2-orig/mpg321.c 2015-08-12 23:34:20.395331151 +0200 @@ -183,7 +183,7 @@ else{ #endif diff --git a/media-sound/mpg321/files/mpg321-0.3.2-gcc10.patch b/media-sound/mpg321/files/mpg321-0.3.2-gcc10.patch new file mode 100644 index 000..8966d9f7c8d --- /dev/null +++ b/media-sound/mpg321/files/mpg321-0.3.2-gcc10.patch @@ -0,0 +1,83 @@ +From f930c3b81bdf9c05152fb005562b3869f6e36f34 Mon Sep 17 00:00:00 2001 +From: "Azamat H. Hackimov" +Date: Thu, 4 Jun 2020 20:41:25 +0300 +Subject: [PATCH] Fix GCC10 compilation + +--- + mpg321.c | 8 + mpg321.h | 16 + 2 files changed, 16 insertions(+), 8 deletions(-) + +diff --git a/mpg321.c b/mpg321.c +index 19282bb..663882e 100644 +--- a/mpg321.c b/mpg321.c +@@ -63,6 +63,14 @@ + #include + #include + ++output_frame *Output_Queue; ++decoded_frames *Decoded_Frames; ++int semarray; ++int mad_decoder_position; ++int output_buffer_position; ++double real[FFT_BUFFER_SIZE]; ++double imag[FFT_BUFFER_SIZE]; ++int loop_remaining; + + int pflag = 0; + int volume = 0; +diff --git a/mpg321.h b/mpg321.h +index 798bff0..235cf4a 100644 +--- a/mpg321.h b/mpg321.h +@@ -116,7 +116,7 @@ extern char *playlist_file; + extern int quit_now; + extern char remote_input_buf[PATH_MAX + 5]; + extern int file_change; +-int loop_remaining; ++extern int loop_remaining; + + extern int status; + extern int scrobbler_time; +@@ -233,8 +233,8 @@ RETSIGTYPE handle_sigchld(int sig); + #define FFT_BUFFER_SIZE_LOG 9 + #define FFT_BUFFER_SIZE (1 << FFT_BUFFER_SIZE_LOG) /* 512 */ + /*Temporary data stores to perform FFT in */ +-double real[FFT_BUFFER_SIZE]; +-double imag[FFT_BUFFER_SIZE]; ++extern double real[FFT_BUFFER_SIZE]; ++extern double imag[FFT_BUFFER_SIZE]; + + typedef struct { + double real[FFT_BUFFER_SIZE]; +@@ -258,10 +258,10 @@ fft_state *fft_init(void); + /* Output buffer process */ + void frame_buffer_p(); + /* Semaphore array */ +-int semarray; ++extern int semarray; + /* Input/Output buffer position */ +-int mad_decoder_position; +-int output_buffer_position; ++extern int mad_decoder
[gentoo-commits] repo/gentoo:master commit in: media-sound/mpg321/
commit: ec63aa7de988526f4f9724bdd268f8799b6e87c6 Author: Andreas Sturmlechner gentoo org> AuthorDate: Tue Oct 30 11:11:23 2018 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Tue Oct 30 12:48:49 2018 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec63aa7d media-sound/mpg321: Drop 0.3.1-r1 Signed-off-by: Andreas Sturmlechner gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11 media-sound/mpg321/Manifest | 1 - media-sound/mpg321/mpg321-0.3.1-r1.ebuild | 48 --- 2 files changed, 49 deletions(-) diff --git a/media-sound/mpg321/Manifest b/media-sound/mpg321/Manifest index 0d17c6c579d..352587db2d0 100644 --- a/media-sound/mpg321/Manifest +++ b/media-sound/mpg321/Manifest @@ -1,2 +1 @@ -DIST mpg321-0.3.1.tar.gz 151104 BLAKE2B a835332b37a31dfd17e0f1dd25dfbf53a9ede65c721d6dc1fc4937558197b95543a032f43b47ac937adf227c8895afd2aa687b394813277f88836d03c1b5c0f0 SHA512 77a7b975f2d31f670eb786ccb9601820945e60b19a188e7337bd2ff0237c7ee47970c27adf78cf633d4a561e89b06de3eacf9f2ec11373abcdcb75c322f19eee DIST mpg321-0.3.2.tar.gz 151139 BLAKE2B d1b043316aca07e61ab61698f1d9e56fd221c4024e69b5262906b280dcb4f67bd32f3ff72b1758ba26cc0fa7d1c5c4052fc6fc87ae9ceec9d0bf77b1d35a868f SHA512 f1bead2c11e4cde0f1a87e1b2e3d216ef80c9a5dd8b219841961688d44a5fc63a54b7af07359766fde0b2712ddc5d0a90b20149c3228cb2d70e830e15c8ab234 diff --git a/media-sound/mpg321/mpg321-0.3.1-r1.ebuild b/media-sound/mpg321/mpg321-0.3.1-r1.ebuild deleted file mode 100644 index 30b7149702f..000 --- a/media-sound/mpg321/mpg321-0.3.1-r1.ebuild +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 -inherit autotools eutils - -DESCRIPTION="A realtime MPEG 1.0/2.0/2.5 audio player for layers 1, 2 and 3" -HOMEPAGE="http://mpg321.sourceforge.net/"; -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" -IUSE="ipv6" - -RDEPEND="app-eselect/eselect-mpg123 - >=media-libs/libao-1 - media-libs/libid3tag - media-libs/libmad - sys-libs/zlib" -DEPEND="${RDEPEND}" - -S=${WORKDIR}/${P}-orig - -src_prepare() { - epatch "${FILESDIR}"/${PN}-0.2.12-check-for-lround.patch - eautoreconf -} - -src_configure() { - econf \ - --disable-mpg123-symlink \ - $(use_enable ipv6) -} - -src_install() { - emake DESTDIR="${D}" install - dodoc AUTHORS BUGS HACKING README* THANKS TODO # NEWS and ChangeLog are dead - mv "${ED}"/usr/bin/mpg321{,-mpg123} -} - -pkg_postinst() { - eselect mpg123 update ifunset -} - -pkg_postrm() { - eselect mpg123 update ifunset -}
[gentoo-commits] repo/gentoo:master commit in: media-sound/mpg321/
commit: d0773d926b2c806fbac23eaf12d1cb49b52d8237 Author: Jeroen Roovers gentoo org> AuthorDate: Thu Aug 4 08:50:10 2016 + Commit: Jeroen Roovers gentoo org> CommitDate: Thu Aug 4 08:50:10 2016 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0773d92 media-sound/mpg321: Stable for HPPA (bug #557410). Package-Manager: portage-2.3.0 RepoMan-Options: --ignore-arches media-sound/mpg321/mpg321-0.3.2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media-sound/mpg321/mpg321-0.3.2.ebuild b/media-sound/mpg321/mpg321-0.3.2.ebuild index cb7d95c..b783ea1 100644 --- a/media-sound/mpg321/mpg321-0.3.2.ebuild +++ b/media-sound/mpg321/mpg321-0.3.2.ebuild @@ -11,7 +11,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P/-/_}.orig.tar.gz -> ${P}.tar.gz" LICENSE="GPL-2" SLOT="0" -KEYWORDS="alpha amd64 ~arm ~hppa ~ia64 ~mips ppc ~ppc64 ~sparc x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" +KEYWORDS="alpha amd64 ~arm hppa ~ia64 ~mips ppc ~ppc64 ~sparc x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" IUSE="alsa ipv6" RDEPEND="app-eselect/eselect-mpg123
[gentoo-commits] repo/gentoo:master commit in: media-sound/mpg321/
commit: 55297b9e54c82b6762a4e3b13c33a672c5024a06 Author: Tobias Klausmann gentoo org> AuthorDate: Mon May 23 14:09:59 2016 + Commit: Tobias Klausmann gentoo org> CommitDate: Mon May 23 14:09:59 2016 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55297b9e media-sound/mpg321-0.3.2-r0: add alpha keyword Gentoo-Bug: 557410 Package-Manager: portage-2.3.0_rc1 media-sound/mpg321/mpg321-0.3.2.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/media-sound/mpg321/mpg321-0.3.2.ebuild b/media-sound/mpg321/mpg321-0.3.2.ebuild index 53055c9..557cf1b 100644 --- a/media-sound/mpg321/mpg321-0.3.2.ebuild +++ b/media-sound/mpg321/mpg321-0.3.2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -11,7 +11,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P/-/_}.orig.tar.gz -> ${P}.tar.gz" LICENSE="GPL-2" SLOT="0" -KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" +KEYWORDS="alpha amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" IUSE="alsa ipv6" RDEPEND="app-eselect/eselect-mpg123
[gentoo-commits] repo/gentoo:master commit in: media-sound/mpg321/
commit: 094ad8ed737a63b7b50c5a539954afae491c325c Author: Agostino Sarubbo gentoo org> AuthorDate: Fri May 13 14:48:35 2016 + Commit: Agostino Sarubbo gentoo org> CommitDate: Fri May 13 14:48:35 2016 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=094ad8ed media-sound/mpg321: amd64 stable wrt bug #557410 Package-Manager: portage-2.2.26 RepoMan-Options: --include-arches="amd64" Signed-off-by: Agostino Sarubbo gentoo.org> media-sound/mpg321/mpg321-0.3.2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media-sound/mpg321/mpg321-0.3.2.ebuild b/media-sound/mpg321/mpg321-0.3.2.ebuild index 29744d2..53055c9 100644 --- a/media-sound/mpg321/mpg321-0.3.2.ebuild +++ b/media-sound/mpg321/mpg321-0.3.2.ebuild @@ -11,7 +11,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P/-/_}.orig.tar.gz -> ${P}.tar.gz" LICENSE="GPL-2" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" +KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" IUSE="alsa ipv6" RDEPEND="app-eselect/eselect-mpg123
[gentoo-commits] repo/gentoo:master commit in: media-sound/mpg321/, media-sound/mpg321/files/
commit: b8c6db7e6b2033dc1d30bca8ba8edd8fc6f4c8c1 Author: Michael Weber gentoo org> AuthorDate: Wed Aug 12 21:39:47 2015 + Commit: Michael Weber gentoo org> CommitDate: Wed Aug 12 21:40:14 2015 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8c6db7e media-sound/mpg321: Version bump (bug 18), USE=alsa (bug 475620), format-security (bug 557132, thanks René Rhéaume). Package-Manager: portage-2.2.20.1 media-sound/mpg321/Manifest| 1 + .../files/mpg321-0.3.2-format-security.patch | 38 media-sound/mpg321/mpg321-0.3.2.ebuild | 52 ++ 3 files changed, 91 insertions(+) diff --git a/media-sound/mpg321/Manifest b/media-sound/mpg321/Manifest index 03c5934..d4da505 100644 --- a/media-sound/mpg321/Manifest +++ b/media-sound/mpg321/Manifest @@ -1 +1,2 @@ DIST mpg321-0.3.1.tar.gz 151104 SHA256 0b9c23d75a89236ade9830e0319d7e799efea9f6af262d6defda962037d65579 SHA512 77a7b975f2d31f670eb786ccb9601820945e60b19a188e7337bd2ff0237c7ee47970c27adf78cf633d4a561e89b06de3eacf9f2ec11373abcdcb75c322f19eee WHIRLPOOL 81ee33186d25fdadc288cb09cfa9a124531ac1fbe8e7c10cf748b5960f12de46d536ff7bde9fbb98979d57939fe10ad87179c193bf350dd4932731276eb330bf +DIST mpg321-0.3.2.tar.gz 151139 SHA256 056fcc03e3f5c5021ec74bb5053d32c4a3b89b4086478dcf81adae650eac284e SHA512 f1bead2c11e4cde0f1a87e1b2e3d216ef80c9a5dd8b219841961688d44a5fc63a54b7af07359766fde0b2712ddc5d0a90b20149c3228cb2d70e830e15c8ab234 WHIRLPOOL 01db416053b2ee883aa31b98251b276a368a339f4a645cf30a066ae498eab2811be09349d04301c30393c1e9ba5804758c71db67526ca79121a24ffb47528ebb diff --git a/media-sound/mpg321/files/mpg321-0.3.2-format-security.patch b/media-sound/mpg321/files/mpg321-0.3.2-format-security.patch new file mode 100644 index 000..732ca2c --- /dev/null +++ b/media-sound/mpg321/files/mpg321-0.3.2-format-security.patch @@ -0,0 +1,38 @@ +--- /var/tmp/portage/media-sound/mpg321-0.3.2/work/mpg321-0.3.2-orig/mpg321.c 2012-03-25 14:27:49.0 +0200 /tmp/mpg321.c 2015-08-12 23:34:20.395331151 +0200 +@@ -183,7 +183,7 @@ + else{ + #endif + if(!(options.opt & MPG321_ENABLE_BUFFER)) +- fprintf(stderr,"Volume: %ld%% \r",volume); ++ fprintf(stderr,"Volume: %d%% \r",volume); + #ifdef HAVE_ALSA + } + #endif +@@ -233,7 +233,7 @@ + else{ + #endif + if(!(options.opt & MPG321_ENABLE_BUFFER)) +- fprintf(stderr,"Volume: %ld%% \r",volume); ++ fprintf(stderr,"Volume: %d%% \r",volume); + #ifdef HAVE_ALSA + } + #endif +@@ -447,7 +447,7 @@ + { + if(!names[i]) + { +-printf(emptystring); ++printf("%s", emptystring); + } + + else +@@ -465,7 +465,7 @@ + for (i=0; i<=5; i++){ + fprintf (stderr, "%s", info_id3[i].name); + if (!names[i]) { +-fprintf (stderr, emptystring); ++fprintf (stderr, "%s", emptystring); + } else{ + fprintf (stderr, "%s", names[i]); + free (names[i]); diff --git a/media-sound/mpg321/mpg321-0.3.2.ebuild b/media-sound/mpg321/mpg321-0.3.2.ebuild new file mode 100644 index 000..29744d2 --- /dev/null +++ b/media-sound/mpg321/mpg321-0.3.2.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils + +DESCRIPTION="A realtime MPEG 1.0/2.0/2.5 audio player for layers 1, 2 and 3" +HOMEPAGE="http://mpg321.sourceforge.net/"; +SRC_URI="mirror://sourceforge/${PN}/${P/-/_}.orig.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" +IUSE="alsa ipv6" + +RDEPEND="app-eselect/eselect-mpg123 + >=media-libs/libao-1 + media-libs/libid3tag + media-libs/libmad + sys-libs/zlib + alsa? ( media-libs/alsa-lib )" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/${P}-orig + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.2.12-check-for-lround.patch \ + "${FILESDIR}"/${P}-format-security.patch + eautoreconf +} + +src_configure() { + econf \ + --disable-mpg123-symlink \ + $(use_enable ipv6) \ + $(use_enable alsa) +} + +src_install() { + emake DESTDIR="${D}" install + dodoc AUTHORS BUGS HACKING README* THANKS TODO # NEWS and ChangeLog are dead + mv "${E