From owner-freebsd-perl@FreeBSD.ORG Mon Oct 13 02:57:01 2008 Return-Path: Delivered-To: perl@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B0EBC106568A for ; Mon, 13 Oct 2008 02:57:01 +0000 (UTC) (envelope-from jjr@alisa.org) Received: from mail.alisa.org (mail.alisa.org [65.103.114.105]) by mx1.freebsd.org (Postfix) with ESMTP id 4F6D28FC17 for ; Mon, 13 Oct 2008 02:57:01 +0000 (UTC) (envelope-from jjr@alisa.org) Received: from [192.168.1.102] (c-98-245-37-189.hsd1.co.comcast.net [98.245.37.189]) (authenticated bits=0) by mail.alisa.org (8.14.3/8.14.2) with ESMTP id m9D2HaeE015419 for ; Sun, 12 Oct 2008 20:17:37 -0600 (MDT) (envelope-from jjr@alisa.org) User-Agent: Microsoft-Entourage/11.4.0.080122 Date: Sun, 12 Oct 2008 20:17:34 -0600 From: John Rushford To: Message-ID: Thread-Topic: DBD::Pg is broken - coredumps Thread-Index: Acks2dpfGNdxfJjNEd2KmgAX8gEdYA== Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (mail.alisa.org [65.103.114.105]); Sun, 12 Oct 2008 20:17:37 -0600 (MDT) Cc: Subject: DBD::Pg is broken - coredumps X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Oct 2008 02:57:01 -0000 Greetings, I'm having trouble with DBD::Pg on a FreeBSD 7.1-PRERELEASE machine. When connecting to a postgresql database, the perl script coredumps. See attached back trace, version info, and test perl script. Is there some issue with pthreads? Any ideas? John Rushford jjr@alisa.org Details: FreeBSD 7.1-PRERELEASE built after cvsup Sun Oct 12, 2008 kernel GENERIC amd64 p5-DBD-Pg-2.10.7 Provides access to PostgreSQL databases through the DBI p5-DBD-SQLite-1.14 Provides access to SQLite3 databases through the DBI p5-DBD-mysql-4.006 MySQL driver for the Perl5 Database Interface (DBI) p5-DBI-1.60.4 The perl5 Database Interface. Required for DBD::* modules postgresql-client-8.2.9 PostgreSQL database (client) postgresql-server-8.2.9 The most advanced open-source database available anywhere Gdb backtrace: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x523000 (LWP 100225)] 0x0000000801c65afb in pthread_cond_init () from /lib/libthr.so.3 (gdb) bt #0 0x0000000801c65afb in pthread_cond_init () from /lib/libthr.so.3 #1 0x0000000801434aa0 in pq_block_sigpipe () from /usr/local/lib/libpq.so.5 #2 0x0000000801434c28 in pqsecure_write () from /usr/local/lib/libpq.so.5 #3 0x000000080142da5e in pqReadData () from /usr/local/lib/libpq.so.5 #4 0x0000000801427691 in pqPacketSend () from /usr/local/lib/libpq.so.5 #5 0x0000000801428c32 in PQconnectPoll () from /usr/local/lib/libpq.so.5 #6 0x0000000801428dae in PQresetPoll () from /usr/local/lib/libpq.so.5 #7 0x000000080142a3cf in PQconnectdb () from /usr/local/lib/libpq.so.5 #8 0x0000000801311bc6 in pg_db_login () from /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/DBD/Pg/Pg.so #9 0x0000000801302b9a in XS_DBD__Pg__db__login () from /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/DBD/Pg/Pg.so #10 0x00000008006bf17c in Perl_pp_entersub () from /usr/local/lib/perl5/5.8.8/mach/CORE/libperl.so #11 0x00000008006b7e1e in Perl_runops_standard () from /usr/local/lib/perl5/5.8.8/mach/CORE/libperl.so #12 0x0000000800668aa5 in Perl_call_sv () from /usr/local/lib/perl5/5.8.8/mach/CORE/libperl.so #13 0x0000000800db8446 in XS_DBI_dispatch () from /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/DBI/DBI.so #14 0x00000008006bf17c in Perl_pp_entersub () from /usr/local/lib/perl5/5.8.8/mach/CORE/libperl.so #15 0x00000008006b7e1e in Perl_runops_standard () from /usr/local/lib/perl5/5.8.8/mach/CORE/libperl.so #16 0x0000000800669632 in perl_run () from /usr/local/lib/perl5/5.8.8/mach/CORE/libperl.so #17 0x00000000004015cf in main () (gdb) This perl script works fine with mysql but coredumps at DBI->connect with postgresql. #!/usr/bin/perl use strict; use CGI qw(:standard); use DBI; my $seq = 0; my @array; my $dbname = $ENV{'DBNAME'}; my $dbuser = $ENV{'DBUSER'}; my $dbpasswd = $ENV{'DBPASSWD'}; my $dsn = "dbi:Pg:dbname=$dbname;host=127.0.0.1;port=5432"; #my $dsn = "dbi:mysql:database=$dbname;host=127.0.0.1;port=3306"; my $dbh; if (length ($dbname) == 0) { print "DBNAME is not set\n"; exit 0; } if (length ($dbuser) == 0) { print "DBUSER is not set\n"; exit 0; } if (length ($dbpasswd) == 0) { print "DBPASSWD is not set\n"; exit 0; } $dbh = DBI->connect($dsn,"$dbuser","$dbpasswd", {'AutoCommit' => 1,RaiseError => 1, P rintError => 0}) or die ("can't connect to $dbname"); my $sth = $dbh->prepare ("SELECT * from x"); $sth->execute; while ( @array = $sth->fetchrow()) { print "val = $array[0]\n"; } $sth->finish; From owner-freebsd-perl@FreeBSD.ORG Mon Oct 13 08:06:13 2008 Return-Path: Delivered-To: perl@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C62AC106569E for ; Mon, 13 Oct 2008 08:06:13 +0000 (UTC) (envelope-from tobez@tobez.org) Received: from heechee.tobez.org (heechee.tobez.org [194.255.56.42]) by mx1.freebsd.org (Postfix) with ESMTP id 8F6598FC16 for ; Mon, 13 Oct 2008 08:06:13 +0000 (UTC) (envelope-from tobez@tobez.org) Received: by heechee.tobez.org (Postfix, from userid 1001) id CEDCF6D402; Mon, 13 Oct 2008 09:46:56 +0200 (CEST) Date: Mon, 13 Oct 2008 09:46:56 +0200 From: Anton Berezin To: John Rushford Message-ID: <20081013074656.GA95961@heechee.tobez.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Powered-By: FreeBSD http://www.freebsd.org/ User-Agent: Mutt/1.5.18 (2008-05-17) Cc: perl@freebsd.org Subject: Re: DBD::Pg is broken - coredumps X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Oct 2008 08:06:13 -0000 On Sun, Oct 12, 2008 at 08:17:34PM -0600, John Rushford wrote: > Greetings, > > I'm having trouble with DBD::Pg on a FreeBSD 7.1-PRERELEASE machine. When > connecting to a postgresql database, the perl script coredumps. See > attached back trace, version info, and test perl script. Is there some > issue with pthreads? Any ideas? John, I cannot reproduce it in my configuration, which is slightly different from what you have. Before I try the identical config, could you post the output produced by the following? $ perl -V $ ldd /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/DBD/Pg/Pg.so $ ldd /usr/local/bin/perl $ pkg_info | grep perl Cheers, \Anton. -- We're going for 'working' here. 'clean' is for people with skills... -- Flemming Jacobsen From owner-freebsd-perl@FreeBSD.ORG Mon Oct 13 11:07:57 2008 Return-Path: Delivered-To: perl@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BBCCC10656A5 for ; Mon, 13 Oct 2008 11:07:57 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A52BA8FC32 for ; Mon, 13 Oct 2008 11:07:57 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id m9DB7vId030787 for ; Mon, 13 Oct 2008 11:07:57 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id m9DB7vfL030783 for perl@FreeBSD.org; Mon, 13 Oct 2008 11:07:57 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 13 Oct 2008 11:07:57 GMT Message-Id: <200810131107.m9DB7vfL030783@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: perl@FreeBSD.org Cc: Subject: Current problem reports assigned to perl@FreeBSD.org X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Oct 2008 11:07:57 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o ports/127720 perl [update] update net/p5-perl-ldap to 0.38 o ports/123912 perl [PATCH] Mk/bsd.perl.mk: Fix WANT_PERL5 related typos o ports/121472 perl Loading perl scripts causes irc/xchat segmentation fau 3 problems total. From owner-freebsd-perl@FreeBSD.ORG Sat Oct 18 03:00:33 2008 Return-Path: Delivered-To: perl@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 076821065694; Sat, 18 Oct 2008 03:00:33 +0000 (UTC) (envelope-from edwin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D282C8FC1C; Sat, 18 Oct 2008 03:00:32 +0000 (UTC) (envelope-from edwin@FreeBSD.org) Received: from freefall.freebsd.org (edwin@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id m9I30Wqt073987; Sat, 18 Oct 2008 03:00:32 GMT (envelope-from edwin@freefall.freebsd.org) Received: (from edwin@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id m9I30WrQ073983; Sat, 18 Oct 2008 03:00:32 GMT (envelope-from edwin) Date: Sat, 18 Oct 2008 03:00:32 GMT Message-Id: <200810180300.m9I30WrQ073983@freefall.freebsd.org> To: edwin@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, perl@FreeBSD.org From: edwin@FreeBSD.org Cc: Subject: Re: ports/128190: [PATCH] mail/p5-MIME-Tools: Use dirrmtry for %%SITE_PERL%%/%%PERL_ARCH%%/auto/MIME X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Oct 2008 03:00:33 -0000 Synopsis: [PATCH] mail/p5-MIME-Tools: Use dirrmtry for %%SITE_PERL%%/%%PERL_ARCH%%/auto/MIME Responsible-Changed-From-To: freebsd-ports-bugs->perl Responsible-Changed-By: edwin Responsible-Changed-When: Sat Oct 18 03:00:32 UTC 2008 Responsible-Changed-Why: Over to maintainer (via the GNATS Auto Assign Tool) http://www.freebsd.org/cgi/query-pr.cgi?pr=128190 From owner-freebsd-perl@FreeBSD.ORG Sat Oct 18 03:19:25 2008 Return-Path: Delivered-To: perl@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D4C23106568E for ; Sat, 18 Oct 2008 03:19:25 +0000 (UTC) (envelope-from sunpoet@sunpoet.net) Received: from sunpoet.net (sunpoet.net [203.204.205.212]) by mx1.freebsd.org (Postfix) with ESMTP id A83798FC0C for ; Sat, 18 Oct 2008 03:19:25 +0000 (UTC) (envelope-from sunpoet@sunpoet.net) Received: by sunpoet.net (Postfix, from userid 1000) id 9C2401ED4; Sat, 18 Oct 2008 10:59:18 +0800 (CST) To: FreeBSD-gnats-submit@freebsd.org From: Sunpoet Po-Chuan Hsieh X-send-pr-version: 3.113 X-GNATS-Notify: Message-Id: <20081018025918.9C2401ED4@sunpoet.net> Date: Sat, 18 Oct 2008 10:59:18 +0800 (CST) Cc: perl@FreeBSD.org Subject: [PATCH] mail/p5-MIME-Tools: Use dirrmtry for %%SITE_PERL%%/%%PERL_ARCH%%/auto/MIME X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Oct 2008 03:19:25 -0000 >Submitter-Id: current-users >Originator: Sunpoet Po-Chuan Hsieh >Organization: SUNPOET.net >Confidential: no >Synopsis: [PATCH] mail/p5-MIME-Tools: Use dirrmtry for %%SITE_PERL%%/%%PERL_ARCH%%/auto/MIME >Severity: non-critical >Priority: low >Category: ports >Class: change-request >Release: FreeBSD 7.1-PRERELEASE amd64 >Environment: System: FreeBSD bonjour.sunpoet.net 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #12: Thu Sep 4 10:55:47 CST >Description: Since other p5-MIME-* ports use %%SITE_PERL%%/%%PERL_ARCH%%/auto/MIME also, use dirrmtry instead of dirrm. Port maintainer (perl@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: % cd /usr/ports/mail/p5-MIME-Tools/ % make deinstall ===> Deinstalling p5-MIME-Tools-5.427,2 pkg_delete: unable to completely remove directory '/usr/local/lib/perl5/site_perl/5.8.8/mach/auto/MIME' pkg_delete: couldn't entirely delete package (perhaps the packing list is incorrectly specified?) % find /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/MIME /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/MIME /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/MIME/Base64 /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/MIME/Base64/Base64.bs /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/MIME/Base64/Base64.so /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/MIME/Base64/.packlist /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/MIME/Types /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/MIME/Types/.packlist >Fix: --- p5-MIME-Tools-5.427,2.patch begins here --- diff -ruN --exclude=CVS /usr/ports/mail/p5-MIME-Tools/pkg-plist /usr/ports/sunpoet/p5-MIME-Tools/pkg-plist --- /usr/ports/mail/p5-MIME-Tools/pkg-plist 2008-09-12 09:31:08.447131774 +0800 +++ /usr/ports/sunpoet/p5-MIME-Tools/pkg-plist 2008-10-18 10:53:58.041410229 +0800 @@ -22,7 +22,7 @@ %%SITE_PERL%%/MIME/Words.pm %%SITE_PERL%%/%%PERL_ARCH%%/auto/MIME/tools/.packlist @dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/MIME/tools -@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/MIME +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/MIME @dirrm %%SITE_PERL%%/MIME/Field @dirrm %%SITE_PERL%%/MIME/Decoder @dirrm %%SITE_PERL%%/MIME/Parser --- p5-MIME-Tools-5.427,2.patch ends here --- From owner-freebsd-perl@FreeBSD.ORG Sat Oct 18 05:39:19 2008 Return-Path: Delivered-To: perl@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1B01A106569B; Sat, 18 Oct 2008 05:39:19 +0000 (UTC) (envelope-from leeym@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E4D938FC15; Sat, 18 Oct 2008 05:39:18 +0000 (UTC) (envelope-from leeym@FreeBSD.org) Received: from freefall.freebsd.org (leeym@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id m9I5dIqm094261; Sat, 18 Oct 2008 05:39:18 GMT (envelope-from leeym@freefall.freebsd.org) Received: (from leeym@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id m9I5dIYV094257; Sat, 18 Oct 2008 05:39:18 GMT (envelope-from leeym) Date: Sat, 18 Oct 2008 05:39:18 GMT Message-Id: <200810180539.m9I5dIYV094257@freefall.freebsd.org> To: sunpoet@sunpoet.net, leeym@FreeBSD.org, perl@FreeBSD.org From: leeym@FreeBSD.org Cc: Subject: Re: ports/128190: [PATCH] mail/p5-MIME-Tools: Use dirrmtry for %%SITE_PERL%%/%%PERL_ARCH%%/auto/MIME X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Oct 2008 05:39:19 -0000 Synopsis: [PATCH] mail/p5-MIME-Tools: Use dirrmtry for %%SITE_PERL%%/%%PERL_ARCH%%/auto/MIME State-Changed-From-To: open->closed State-Changed-By: leeym State-Changed-When: Sat Oct 18 05:39:10 UTC 2008 State-Changed-Why: Committed, thanks. http://www.freebsd.org/cgi/query-pr.cgi?pr=128190 From owner-freebsd-perl@FreeBSD.ORG Sat Oct 18 05:40:04 2008 Return-Path: Delivered-To: perl@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 03C6A1065688 for ; Sat, 18 Oct 2008 05:40:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E709F8FC08 for ; Sat, 18 Oct 2008 05:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id m9I5e3uQ094349 for ; Sat, 18 Oct 2008 05:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id m9I5e3AF094347; Sat, 18 Oct 2008 05:40:03 GMT (envelope-from gnats) Date: Sat, 18 Oct 2008 05:40:03 GMT Message-Id: <200810180540.m9I5e3AF094347@freefall.freebsd.org> To: perl@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: ports/128190: commit references a PR X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Oct 2008 05:40:04 -0000 The following reply was made to PR ports/128190; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: ports/128190: commit references a PR Date: Sat, 18 Oct 2008 05:39:16 +0000 (UTC) leeym 2008-10-18 05:39:07 UTC FreeBSD ports repository Modified files: mail/p5-MIME-Tools pkg-plist Log: - use @dirrmtry instead of @dirrm PR: 128190 Submitted by: sunpoet at sunpoet.net Revision Changes Path 1.20 +5 -5 ports/mail/p5-MIME-Tools/pkg-plist _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org" From owner-freebsd-perl@FreeBSD.ORG Sat Oct 18 15:44:07 2008 Return-Path: Delivered-To: perl@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B76461065699 for ; Sat, 18 Oct 2008 15:44:07 +0000 (UTC) (envelope-from leeym@leeym.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.30]) by mx1.freebsd.org (Postfix) with ESMTP id 7ECED8FC15 for ; Sat, 18 Oct 2008 15:44:07 +0000 (UTC) (envelope-from leeym@leeym.com) Received: by yx-out-2324.google.com with SMTP id 8so203574yxb.13 for ; Sat, 18 Oct 2008 08:44:06 -0700 (PDT) Received: by 10.100.105.15 with SMTP id d15mr6699078anc.69.1224342814497; Sat, 18 Oct 2008 08:13:34 -0700 (PDT) Received: by 10.100.127.9 with HTTP; Sat, 18 Oct 2008 08:13:34 -0700 (PDT) Message-ID: <759236930810180813r415eaae2of299ebed951632a8@mail.gmail.com> Date: Sat, 18 Oct 2008 08:13:34 -0700 From: "Yen-Ming Lee" To: tobez@freebsd.org In-Reply-To: <200810181406.m9IE6jW8067588@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200810181406.m9IE6jW8067588@freefall.freebsd.org> Cc: perl@freebsd.org Subject: Re: ports/128187: [PATCH] devel/p5-Parse-RecDescent: simplfy dependency X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Oct 2008 15:44:07 -0000 2008/10/18 : > Synopsis: [PATCH] devel/p5-Parse-RecDescent: simplfy dependency > > State-Changed-From-To: open->feedback > State-Changed-By: tobez > State-Changed-When: Sat Oct 18 16:02:19 CEST 2008 > State-Changed-Why: > With regard making the dependency conditional on the perl version, > I actually think that the better way to do it is to add modifications > to bsd.perl.mk that we developed together with lth. But I do not have a > principal objection to this. > > With regard to getting rid of BUILD_DEPENDS altogether, could > you explain your reasoning behind it? In my view, by not > doing the BUILD_DEPENDS bit, we a) introduce a spurious warning > into the configure stage in at least some cases, and b) make it more > difficult than necessary to do the testing without installing the > modules. > > http://www.freebsd.org/cgi/query-pr.cgi?pr=128187 > Hi, The main reason is to keep minimal dependencies. I explained once in another PR, and asked for feedbacks. However, nobody replied, so I just assume that everyone agreed. (see solution 2) About the dependencies, we have the following solutions: 1. (I did so before) put 'requires' in BUILD_DEPENDS and RUN_DEPENDS, and then append 'build_requires' to BUILD_DEPENDS. The trade-off is that we will bring a lot of unnecessary dependencies, like some dual-life modules or some p5-Test-* that only needed for tests, and des@ doesn't like that. http://lists.freebsd.org/pipermail/freebsd-perl/2008-February/001745.html http://lists.freebsd.org/pipermail/freebsd-perl/2008-February/001748.html 2. (I'm doing so now) put 'requires' in RUN_DEPENDS, and put something in BUILD_DEPENDS if really needed. Also use conditional dependencies to avoid dual-life modules. It complains during the configure stage, but it works well. http://lists.freebsd.org/pipermail/freebsd-perl/2008-July/001900.html 3. use PERL_DEPENDS, but we still need to find out the relationship between the minimum version of the required module and the package version fulfill that minimum version of the module. In fact I encounter this problem again recently: Net::Amazon::S3-0.45 requires IO::File-0.14, which is from IO, but obviously not IO-0.14 http://lists.freebsd.org/pipermail/freebsd-perl/2008-April/001834.html We discussed about it several times, please make a decision this time and put it somewhere in the porters handbook. Regards, -- Yen-Ming Lee