From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 49C3D1388BF for ; Thu, 14 Jan 2016 23:42:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E9989E0785; Thu, 14 Jan 2016 23:42:44 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7F65CE0785 for ; Thu, 14 Jan 2016 23:42:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2BDC93407E6 for ; Thu, 14 Jan 2016 23:42:43 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5223DA16 for ; Thu, 14 Jan 2016 23:42:38 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1452814933.f948795a7c099bcbb245ee0a02b39951547734f9.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/mpfc/, media-sound/mpfc/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-sound/mpfc/files/mpfc-1.3.8.1-fix-underlinking.patch media-sound/mpfc/files/mpfc-1.3.8.1-qa-implicit-declarations.patch media-sound/mpfc/mpfc-1.3.8.1-r2.ebuild X-VCS-Directories: media-sound/mpfc/files/ media-sound/mpfc/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: f948795a7c099bcbb245ee0a02b39951547734f9 X-VCS-Branch: master Date: Thu, 14 Jan 2016 23:42:38 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 16e1b82d-a2da-46b9-a690-7e30c166d756 X-Archives-Hash: 5962a60cc951b6937f667399f1c7f2a5 commit: f948795a7c099bcbb245ee0a02b39951547734f9 Author: David Seifert gentoo org> AuthorDate: Thu Jan 14 23:41:24 2016 +0000 Commit: David Seifert gentoo org> CommitDate: Thu Jan 14 23:42:13 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f948795a media-sound/mpfc: Add missing AC_SEARCH_LIBS for libm to prevent underlinking Gentoo-Bug: 529490 In addition, correct ncurses underlinking by properly checking via PKG_CHECK_MODULES. Also fix QA warnings caused by implicit declarations. Package-Manager: portage-2.2.26 .../mpfc/files/mpfc-1.3.8.1-fix-underlinking.patch | 32 ++++ .../mpfc-1.3.8.1-qa-implicit-declarations.patch | 193 +++++++++++++++++++++ media-sound/mpfc/mpfc-1.3.8.1-r2.ebuild | 58 +++++++ 3 files changed, 283 insertions(+) diff --git a/media-sound/mpfc/files/mpfc-1.3.8.1-fix-underlinking.patch b/media-sound/mpfc/files/mpfc-1.3.8.1-fix-underlinking.patch new file mode 100644 index 0000000..0fb96ae --- /dev/null +++ b/media-sound/mpfc/files/mpfc-1.3.8.1-fix-underlinking.patch @@ -0,0 +1,32 @@ +Fix libm (and ncurses) underlinking issues. +https://bugs.gentoo.org/show_bug.cgi?id=529490 + +--- mpfc-1.3.8.1/configure.ac ++++ mpfc-1.3.8.1/configure.ac +@@ -13,13 +13,13 @@ + COMMON_LIBS="" + AC_SUBST(COMMON_LIBS) + ++dnl Check for libm for rintf() ++AC_SEARCH_LIBS([rintf], [m], [], [ ++ AC_MSG_ERROR([unable to find the rintf() function]) ++]) ++ + # Check for ncurses +-LIBS_save=$LIBS +-AC_CHECK_HEADERS([curses.h],,[AC_MSG_ERROR(*** Can't find curses.h ***)]) +-AC_CHECK_LIB(ncursesw, waddch,,[AC_MSG_ERROR(*** Can't find ncurses library ***)]) +-CURSES_LIBS="-lncursesw" +-AC_SUBST(CURSES_LIBS) +-LIBS=$LIBS_save ++PKG_CHECK_MODULES([CURSES], [ncursesw]) + + # Check for pthread + LIBS_save=$LIBS +--- mpfc-1.3.8.1/libmpfcwnd/Makefile.am ++++ mpfc-1.3.8.1/libmpfcwnd/Makefile.am +@@ -1,3 +1,4 @@ ++AM_CPPFLAGS = @CURSES_CFLAGS@ + lib_LTLIBRARIES = libmpfcwnd.la + libmpfcwndhdrdir = $(includedir)/mpfc/libmpfcwnd + libmpfcwndhdr_HEADERS = wnd.h wnd_print.h wnd_msg.h wnd_kbd.h \ diff --git a/media-sound/mpfc/files/mpfc-1.3.8.1-qa-implicit-declarations.patch b/media-sound/mpfc/files/mpfc-1.3.8.1-qa-implicit-declarations.patch new file mode 100644 index 0000000..3195858 --- /dev/null +++ b/media-sound/mpfc/files/mpfc-1.3.8.1-qa-implicit-declarations.patch @@ -0,0 +1,193 @@ +Fix QA warnings caused by implicit declarations, such as + +* QA Notice: Package triggers severe warnings which indicate that it +* may exhibit random runtime failures. +* wnd.c:1081:4: warning: implicit declaration of function ‘add_wch’ [-Wimplicit-function-declaration] + +--- mpfc-1.3.8.1/libmpfc/file_http.c ++++ mpfc-1.3.8.1/libmpfc/file_http.c +@@ -35,6 +35,7 @@ + #include "file.h" + #include "file_http.h" + #include "mystring.h" ++#include "util.h" + + /* Get file data */ + #define FHTTP_GET_DATA(data, file) \ +--- mpfc-1.3.8.1/libmpfc/id3.c ++++ mpfc-1.3.8.1/libmpfc/id3.c +@@ -26,6 +26,7 @@ + #include + #include "types.h" + #include "myid3.h" ++#include "util.h" + + /* Create a new empty tag */ + id3_tag_t *id3_new( void ) +--- mpfc-1.3.8.1/libmpfc/logger.c ++++ mpfc-1.3.8.1/libmpfc/logger.c +@@ -28,6 +28,8 @@ + #include "cfg.h" + #include "logger.h" + ++int logger_get_level( logger_t *log ); ++ + /* Initialize logger */ + logger_t *logger_new( cfg_node_t *cfg_list, char *file_name ) + { +--- mpfc-1.3.8.1/libmpfcwnd/wnd.h ++++ mpfc-1.3.8.1/libmpfcwnd/wnd.h +@@ -23,7 +23,6 @@ + #ifndef __SG_MPFC_WND_H__ + #define __SG_MPFC_WND_H__ + +-#define _XOPEN_SOURCE_EXTENDED + #include + #include "types.h" + #include "cfg.h" +--- mpfc-1.3.8.1/libmpfcwnd/wnd.c ++++ mpfc-1.3.8.1/libmpfcwnd/wnd.c +@@ -29,6 +29,8 @@ + #include "logger.h" + #include "wnd.h" + #include "wnd_root.h" ++#include "util.h" ++#include + + /* Initialize window system and create root window */ + wnd_t *wnd_init( cfg_node_t *cfg_list, logger_t *log ) +--- mpfc-1.3.8.1/libmpfcwnd/wnd_combobox.c ++++ mpfc-1.3.8.1/libmpfcwnd/wnd_combobox.c +@@ -28,6 +28,8 @@ + #include "wnd_dlgitem.h" + #include "wnd_editbox.h" + #include "wnd_hbox.h" ++#include "wnd_label.h" ++#include "util.h" + + /* Create a new combo box */ + combo_t *combo_new( wnd_t *parent, char *id, char *text, char letter, +--- mpfc-1.3.8.1/libmpfcwnd/wnd_filebox.c ++++ mpfc-1.3.8.1/libmpfcwnd/wnd_filebox.c +@@ -24,7 +24,6 @@ + #include + #include + #include +-#define __USE_GNU + #include + #include + #include "types.h" +@@ -33,6 +32,8 @@ + #include "wnd_editbox.h" + #include "wnd_filebox.h" + #include "wnd_hbox.h" ++#include "wnd_label.h" ++#include "util.h" + + /* Create a new file box */ + filebox_t *filebox_new( wnd_t *parent, char *id, char *text, char letter, +--- mpfc-1.3.8.1/libmpfcwnd/wnd_mouse.c ++++ mpfc-1.3.8.1/libmpfcwnd/wnd_mouse.c +@@ -27,6 +27,7 @@ + #include + #include + #include "wnd.h" ++#include "util.h" + + /* Initialize mouse */ + wnd_mouse_data_t *wnd_mouse_init( wnd_global_data_t *global ) +--- mpfc-1.3.8.1/libmpfcwnd/wnd_print.c ++++ mpfc-1.3.8.1/libmpfcwnd/wnd_print.c +@@ -32,6 +32,7 @@ + #include "types.h" + #include "wnd.h" + #include "wnd_print.h" ++#include "util.h" + + /* Move cursor to a specified position */ + void wnd_move( wnd_t *wnd, wnd_move_style_t style, int x, int y ) +--- mpfc-1.3.8.1/libmpfcwnd/wnd_repval.c ++++ mpfc-1.3.8.1/libmpfcwnd/wnd_repval.c +@@ -25,6 +25,7 @@ + #include "wnd_dialog.h" + #include "wnd_editbox.h" + #include "wnd_repval.h" ++#include "wnd_label.h" + + /* Create a repeat value dialog */ + dialog_t *wnd_repval_new( wnd_t *parent, void *on_ok, int dig ) +--- mpfc-1.3.8.1/src/browser.c ++++ mpfc-1.3.8.1/src/browser.c +@@ -24,6 +24,7 @@ + #include + #include + #include ++#include + #include "types.h" + #include "browser.h" + #include "help_screen.h" +--- mpfc-1.3.8.1/src/info_rw_thread.c ++++ mpfc-1.3.8.1/src/info_rw_thread.c +@@ -27,6 +27,7 @@ + #include "info_rw_thread.h" + #include "player.h" + #include "song.h" ++#include "util.h" + + /* Thread queue */ + irw_queue_t *irw_head, *irw_tail; +--- mpfc-1.3.8.1/src/player.c ++++ mpfc-1.3.8.1/src/player.c +@@ -35,6 +35,7 @@ + #include "command.h" + #include "eqwnd.h" + #include "file.h" ++#include "genp.h" + #include "help_screen.h" + #include "logger.h" + #include "logger_view.h" +@@ -57,8 +58,13 @@ + #include "wnd_listbox.h" + #include "wnd_multiview_dialog.h" + #include "wnd_radio.h" ++#include "wnd_repval.h" + #include "wnd_root.h" + #include "xconvert.h" ++#include "info_rw_thread.h" ++ ++void pmng_hook( pmng_t *pmng, char *hook ); ++void outp_set_mixer_type( out_plugin_t *p, plugin_mixer_type_t type ); + + /***** + * +--- mpfc-1.3.8.1/src/plist.c ++++ mpfc-1.3.8.1/src/plist.c +@@ -36,6 +36,7 @@ + #include "util.h" + #include "undo.h" + #include "wnd.h" ++#include "info_rw_thread.h" + + extern void pmng_hook( pmng_t *pmng, char *hook ); + +--- mpfc-1.3.8.1/src/util.h ++++ mpfc-1.3.8.1/src/util.h +@@ -26,6 +26,8 @@ + #include + #include "types.h" + ++int mbslen( char *str ); ++ + /* Write message to log file */ + void util_log( char *format, ... ); + +--- mpfc-1.3.8.1/src/vfs.h ++++ mpfc-1.3.8.1/src/vfs.h +@@ -36,6 +36,7 @@ + } vfs_t; + + /* Check that input plugin uses VFS */ ++dword inp_get_flags( in_plugin_t *p ); + #define VFS_INP_HAS(inp) (inp_get_flags(inp) & INP_VFS) + + /* Get logger object */ diff --git a/media-sound/mpfc/mpfc-1.3.8.1-r2.ebuild b/media-sound/mpfc/mpfc-1.3.8.1-r2.ebuild new file mode 100644 index 0000000..e92361e --- /dev/null +++ b/media-sound/mpfc/mpfc-1.3.8.1-r2.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit autotools eutils + +DESCRIPTION="Music Player For Console" +HOMEPAGE="http://mpfc.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="alsa cdda flac gpm mad nls oss static-libs vorbis wav" + +RDEPEND="alsa? ( >=media-libs/alsa-lib-0.9.0 ) + flac? ( media-libs/flac ) + gpm? ( >=sys-libs/gpm-1.19.3 ) + mad? ( media-libs/libmad ) + vorbis? ( media-libs/libvorbis ) + sys-libs/ncurses:0=[unicode] + dev-libs/icu:=" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}/${P}-fix-underlinking.patch" + "${FILESDIR}/${P}-qa-implicit-declarations.patch" +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + $(use_enable alsa) \ + $(use_enable cdda audiocd) \ + $(use_enable flac) \ + $(use_enable gpm) \ + $(use_enable mad mp3) \ + $(use_enable nls) \ + $(use_enable oss) \ + $(use_enable static-libs static) \ + $(use_enable vorbis ogg) \ + $(use_enable wav) +} + +src_install() { + default + + insinto /etc + doins mpfcrc + + prune_libtool_files --all +}