From parv@chvlva.adelphia.net  Sat Apr 16 22:20:56 2005
Return-Path: <parv@chvlva.adelphia.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 3552F16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 16 Apr 2005 22:20:56 +0000 (GMT)
Received: from mta11.adelphia.net (mta11.adelphia.net [68.168.78.205])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 91D0E43D48
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 16 Apr 2005 22:20:55 +0000 (GMT)
	(envelope-from parv@chvlva.adelphia.net)
Received: from default.chvlva.adelphia.net ([69.160.65.223])
          by mta11.adelphia.net
          (InterMail vM.6.01.04.01 201-2131-118-101-20041129) with ESMTP
          id <20050416222055.YYWD5402.mta11.adelphia.net@default.chvlva.adelphia.net>
          for <FreeBSD-gnats-submit@freebsd.org>;
          Sat, 16 Apr 2005 18:20:55 -0400
Received: by default.chvlva.adelphia.net (Postfix, from userid 1000)
	id 41988B4FC; Sat, 16 Apr 2005 18:21:01 -0400 (EDT)
Message-Id: <20050416222101.41988B4FC@default.chvlva.adelphia.net>
Date: Sat, 16 Apr 2005 18:21:01 -0400 (EDT)
From: parv@pair.com
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: PATCH - databases/p5-DBD-CSV - Missing $PERL_ARCH in Makefile causes spurious error.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         80015
>Category:       ports
>Synopsis:       PATCH - databases/p5-DBD-CSV - Missing $PERL_ARCH in Makefile causes spurious error.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    erwin
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 16 22:30:24 GMT 2005
>Closed-Date:    Mon May 02 11:24:58 GMT 2005
>Last-Modified:  Mon May 02 11:24:58 GMT 2005
>Originator:     Parv
>Release:        FreeBSD 5.3-RELEASE-p8 i386
>Organization:
>Environment:
System: FreeBSD holestein.holy.cow 5.3-RELEASE-p8

Perl5.8 (5.8.6) and databases/p5-DBI (1.48) ports are installed.

Ports are up to date as of 2005.04.16.19.02.16 UTC.  Version of
p5-DBD-CVS is ...

  # $FreeBSD: ports/databases/p5-DBD-CSV/Makefile,v 1.17 2005/04/04 12:32:27
  # erwin Exp $
  #

  PORTNAME=       DBD-CSV
  PORTVERSION=    0.22
  PORTEPOCH=      1

>Description:

Missing ${PERL_ARCH} in $BUILD_DEPENDS assignment for DBD::File module
path causes the following false error ...

  ===>   Registering installation for p5-Text-CSV_XS-0.23
  ===>   Returning to build of p5-DBD-CSV-0.22,1
  ===>   p5-DBD-CSV-0.22,1 depends on file: /misc/local/lib/perl5/site_perl/5.8.6/DBD/File.pm - not found
  ===>    Verifying install for /misc/local/lib/perl5/site_perl/5.8.6/DBD/File.pm in /misc/ports/databases/p5-DBD-File
  ===>  p5-DBD-File-0.33 This module is useless with p5-DBI.
  *** Error code 1

  Stop in /misc/ports-current/databases/p5-DBD-File.
  *** Error code 1

  Stop in /misc/ports-current/databases/p5-DBD-CSV.


>How-To-Repeat:

Try to build databases/p5-DBD-CSV port w/ Perl 5.8.6 installed (unsure
if that will make any difference, compared to Perl 5.6) and
databases/p5-DBI (1.48) installed.

>Fix:

20c20
< 		${SITE_PERL}/DBD/File.pm:${PORTSDIR}/databases/p5-DBD-File
---
> 		${SITE_PERL}/${PERL_ARCH}/DBD/File.pm:${PORTSDIR}/databases/p5-DBD-File

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->erwin 
Responsible-Changed-By: mat 
Responsible-Changed-When: Sun Apr 17 07:49:50 GMT 2005 
Responsible-Changed-Why:  
his 

http://www.freebsd.org/cgi/query-pr.cgi?pr=80015 
State-Changed-From-To: open->closed 
State-Changed-By: erwin 
State-Changed-When: Mon May 2 11:23:41 GMT 2005 
State-Changed-Why:  
Actually, it is not as easy as it seems. For perl < 5.6.x 
we need DBD::File, but not for perl >= 5.6.x. However, 
SQL::Statement is marked IGNORE for perl < 5.6.x, so this 
port should as well, which also gets rid of the DBD::File 
dependency which now is included in DBI. 

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