Subject: pkg/21803: pkgsrc/audio/mp3blaster needs gnu gettext in Linux + fix
To: None <gnats-bugs@gnats.netbsd.org>
From: None <juan@xtraeme.unixbsd.org>
List: netbsd-bugs
Date: 06/05/2003 17:39:36
>Number: 21803
>Category: pkg
>Synopsis: pkgsrc/audio/mp3blaster needs gnu gettext in Linux + fix
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Thu Jun 05 15:37:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Juan RP
>Release: NetBSD 1.6T
>Organization:
Juan RP jrp@hispabsd.org
--
>Environment:
System: NetBSD Nocturno 1.6T NetBSD 1.6T (Nocturno) #8: Thu May 29 15:13:29 CEST 2003 juan@Nocturno:/home/juan/current/obj/sys/arch/i386/compile/Nocturno i386
Architecture: i386
Machine: i386
>Description:
The package mp3blaster in pkgsrc/audio doesn't build in a Linux system,
the problem is in gettext stuff, I fixed that including a dependency
of gettext-lib and USE_GNU_GETTEXT.
This is the problem:
...
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../mpegsound -I/usr/include/ncurses -I../nmixer -I/usr/pkg/inc
lude -I/usr/pkg/include -O2 -I/usr/pkg/include -DMP3BLASTER_DOCDIR=\"/usr/pkg/share/mp3blaste
r\" -c main.cc
main.cc:136:54: macro "gettext" passed 2 arguments, but takes just 1
main.cc:136: error: `char*gettext' redeclared as different kind of symbol
/usr/include/libintl.h:40: error: previous declaration of `char* gettext(const
char*)'
*** Error code 1
...
>How-To-Repeat:
cd pkgsrc/audio/mp3blaster && bmake
>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/audio/mp3blaster/Makefile,v
retrieving revision 1.8
diff -b -u -r1.8 Makefile
--- Makefile 2003/05/02 11:53:44 1.8
+++ Makefile 2003/06/05 15:34:22
@@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.8 2003/05/02 11:53:44 wiz Exp $
DISTNAME= mp3blaster-3.1.3
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= audio
MASTER_SITES= ftp://mud.stack.nl/pub/mp3blaster/ \
http://mp3blaster.linuxave.net/src/
@@ -9,6 +9,13 @@
MAINTAINER= rxg@netbsd.org
HOMEPAGE= http://www.stack.nl/~brama/mp3blaster.html
COMMENT= MP3 console curses-based player
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "Linux"
+USE_GNU_GETTEXT= yes
+.include "../../devel/gettext-lib/buildlink2.mk"
+.endif
PTHREAD_OPTS= require
USE_BUILDLINK2= yes
>Release-Note:
>Audit-Trail:
>Unformatted: