From lapo@lapo.it  Tue Sep 15 12:58:17 2009
Return-Path: <lapo@lapo.it>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 5CDD910656A8
	for <FreeBSD-gnats-submit@FreeBSD.org>; Tue, 15 Sep 2009 12:58:17 +0000 (UTC)
	(envelope-from lapo@lapo.it)
Received: from mail.lapo.it (motoko.lapo.it [88.198.0.105])
	by mx1.freebsd.org (Postfix) with ESMTP id C21898FC15
	for <FreeBSD-gnats-submit@FreeBSD.org>; Tue, 15 Sep 2009 12:58:16 +0000 (UTC)
Received: (qmail 10856 invoked by uid 89); 15 Sep 2009 12:58:15 -0000
Received: from firewall.andxor.it (HELO lapo.andxor.it) (lapo@lapo.it@195.223.2.2)
  by 0 with ESMTPA; 15 Sep 2009 12:58:15 -0000
Message-Id: <4AAF8F62.7010308@lapo.it>
Date: Tue, 15 Sep 2009 14:58:10 +0200
From: Lapo Luchini <lapo@lapo.it>
To: FreeBSD-gnats-submit@FreeBSD.org, clsung@FreeBSD.org
Subject: [PATCH] security/botan: fix botan-config script

>Number:         138841
>Category:       ports
>Synopsis:       [PATCH] security/botan: fix botan-config script
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    clsung
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 15 13:00:17 UTC 2009
>Closed-Date:    Tue Oct 27 13:40:13 UTC 2009
>Last-Modified:  Tue Oct 27 13:40:13 UTC 2009
>Originator:     Lapo Luchini
>Release:        FreeBSD 7.2-RELEASE-p2 amd64
>Organization:
>Environment:
System: FreeBSD lapo.andxor.it 7.2-RELEASE-p2 FreeBSD 7.2-RELEASE-p2 #0: Wed Jun 24 00:14:35 UTC 2009
>Description:

Seems to me that `botan-config --cflags` should produce '-I/usr/local' just
like `botan-config --libs` does produce '-L/usr/local', since it is needed
to find headers, no reason to have that as an exception in the script.

BTW I'd like also to upgrade Botan to latest 1.8.x release, but that will take
a bit more time.
Would also be nice to have an OPTION to enable processor-specific optimization
(such as asm backends), with a false default of course (for packages).

Added file(s):
- files/patch-misc_config_botan-config.in

Port maintainer (clsung@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- botan-1.6.5.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/security/botan/files/patch-misc_config_botan-config.in /usr/home/lapo/ports/botan/files/patch-misc_config_botan-config.in
--- /usr/ports/security/botan/files/patch-misc_config_botan-config.in	1970-01-01 01:00:00.000000000 +0100
+++ /usr/home/lapo/ports/botan/files/patch-misc_config_botan-config.in	2009-09-15 14:45:34.000000000 +0200
@@ -0,0 +1,11 @@
+--- misc/config/botan-config.in.orig	2009-09-15 14:45:00.000000000 +0200
++++ misc/config/botan-config.in	2009-09-15 14:45:26.000000000 +0200
+@@ -39,7 +39,7 @@ while test $# -gt 0; do
+         exit 0
+         ;;
+     --cflags)
+-        if [ $prefix != "/usr" -a $prefix != "/usr/local" ]
++        if [ $prefix != "/usr" ]
+         then
+            echo -I$prefix/$includedir
+         fi
--- botan-1.6.5.patch ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->clsung 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Sep 15 13:00:31 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=138841 
State-Changed-From-To: open->closed 
State-Changed-By: ale 
State-Changed-When: Tue Oct 27 13:40:01 UTC 2009 
State-Changed-Why:  
Fixed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=138841 
>Unformatted:
