Subject: pkg/21646: audio/libsamplerate doesn't need or use fftw
To: None <gnats-bugs@gnats.netbsd.org>
From: None <reed@reedmedia.net>
List: netbsd-bugs
Date: 05/22/2003 09:00:32
>Number:         21646
>Category:       pkg
>Synopsis:       audio/libsamplerate doesn't use or need fftw
>Confidential:   yes
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu May 22 16:01:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6
>Organization:
http://bsd.reedmedia.net/
>Environment:
	
	
System: NetBSD rainier.reedmedia.net 1.6 NetBSD 1.6 (JCR-20020927) #3: Sat Sep 28 13:40:20 PDT 2002 reed@rainier.reedmedia.net:/usr/src/sys/arch/i386/compile/JCR-20020927 i386
Architecture: i386
Machine: i386
>Description:
I was packaging gwc which needs fftw and I saw that
audio/libsamplerate doesn't use the fftw buildlink.

include "../../math/fftw/buildlink2.mk"

see:

checking fftw.h usability... no
checking fftw.h presence... no
checking for fftw.h... no
configure: WARNING: *** Header file fftw.h not found. Test programs cannot be run.
checking rfftw.h usability... no
checking rfftw.h presence... no
checking for rfftw.h... no
configure: WARNING: *** Header file rfftw.h not found. Test programs cannot be run.
..
  Extra tools required for testing and examples :

    Have FFTW : ................... no

      * FFTW is available from http://www.fftw.org/ or if you 
      * are using Debian : "apt-get install fftw2 fftw-dev"


This is caused because the buildlink2.mk has:
work/.buildlink/include/fftw3.h
work/.buildlink/lib/libfftw3.a
work/.buildlink/lib/libfftw3.la
work/.buildlink/lib/libfftw3.so
work/.buildlink/lib/libfftw3.so.3
work/.buildlink/lib/libfftw3.so.3.0

This update to fftw version 3 happened on 2003/04/29.

While someone is looking at this: how do you get
the info for fftw? "info fftw3"?
info says:
Cannot find node `FFTW User's Manual'.
I will send-pr separately, but I don't
know if this is a bug or not.

>How-To-Repeat:
	
>Fix:
As far as I see, audio/libsamplerate is the only package that
uses fftw libraries.

But these libraries are only for the test programs that don't appear
to be used or installed.

The fix is to remove that fftw buildlink2 include from the
audio/libsamplerate/Makefile.

(Or if someone does want the test tools, maybe the
configure or configure.ac script could be patched.)
>Release-Note:
>Audit-Trail:
>Unformatted: