Subject: pkg/35992: audio/mikmod build failure
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <dholland@eecs.harvard.edu>
List: pkgsrc-bugs
Date: 03/13/2007 07:25:01
>Number:         35992
>Category:       pkg
>Synopsis:       audio/mikmod build failure
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 13 07:25:00 +0000 2007
>Originator:     David A. Holland <dholland@eecs.harvard.edu>
>Release:        NetBSD 3.99.5 (-20060129 or thereabouts) (pkgsrc 20070312)
>Organization:
>Environment:
	
	
System: NetBSD merlin 3.99.15 NetBSD 3.99.15 (MERLIN) #59: Sun Jan 29 00:23:47 EST 2006  dholland@merlin:/usr/src/sys/arch/i386/compile/MERLIN i386
Architecture: i386
Machine: i386
>Description:

mikmod's configure script falsely believes libmikmod is an out of date
version. This turns out to be because it's also trying to link
libaudiofile, but that isn't buildlinked.

It's not clear to me why this should happen now, since it's been a
while since either package was updated, but it did. It might be
specific to running an ancient current, but that doesn't seem likely.

>How-To-Repeat:

Recompile libmikmod and mikmod with today's pkgsrc.

You may also need

	PKG_OPTIONS.libmikmod=esound oss

in mk.conf.

>Fix:

This makes it build; however, since I think it's getting the
-laudiofile from libmikmod-config, it may be that libmikmod's
buildlink3.mk should be updated instead.

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/audio/mikmod/Makefile,v
retrieving revision 1.42
diff -u -r1.42 Makefile
--- Makefile	3 Sep 2006 00:56:28 -0000	1.42
+++ Makefile	13 Mar 2007 07:06:09 -0000
@@ -15,5 +15,6 @@
 GNU_CONFIGURE=		yes
 
 .include "../../audio/libmikmod/buildlink3.mk"
+.include "../../audio/libaudiofile/buildlink3.mk"
 .include "../../devel/ncurses/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"