From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jul 4 14:50:02 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 107B4C45 for ; Thu, 4 Jul 2013 14:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id D0F8E1A4F for ; Thu, 4 Jul 2013 14:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r64Eo1xU075724 for ; Thu, 4 Jul 2013 14:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r64Eo1C7075723; Thu, 4 Jul 2013 14:50:01 GMT (envelope-from gnats) Resent-Date: Thu, 4 Jul 2013 14:50:01 GMT Resent-Message-Id: <201307041450.r64Eo1C7075723@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Anes Mukhametov Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 5C689B37; Thu, 4 Jul 2013 14:43:49 +0000 (UTC) (envelope-from amuhametov@monitoring.rambler.ru) Received: from monitoring.rambler.ru (monitoring.rambler.ru [81.19.75.233]) by mx1.freebsd.org (Postfix) with ESMTP id DEB9219D8; Thu, 4 Jul 2013 14:43:48 +0000 (UTC) Received: from monitoring.rambler.ru (localhost [127.0.0.1]) by monitoring.rambler.ru (8.14.4/8.14.4) with ESMTP id r64EheTC059357; Thu, 4 Jul 2013 18:43:40 +0400 (MSK) (envelope-from amuhametov@monitoring.rambler.ru) Received: (from amuhametov@localhost) by monitoring.rambler.ru (8.14.4/8.14.4/Submit) id r64Ehe9H059356; Thu, 4 Jul 2013 18:43:40 +0400 (MSK) (envelope-from amuhametov) Message-Id: <201307041443.r64Ehe9H059356@monitoring.rambler.ru> Date: Thu, 4 Jul 2013 18:43:40 +0400 (MSK) From: Anes Mukhametov To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/180260: [PATCH] ports-mgmt/portlint: fix CPAN url hint X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Anes Mukhametov List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jul 2013 14:50:02 -0000 >Number: 180260 >Category: ports >Synopsis: [PATCH] ports-mgmt/portlint: fix CPAN url hint >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Jul 04 14:50:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Anes Mukhametov >Release: >Organization: >Environment: >Description: Portlint tells about URL changing when CPAN URL is incorrect: E.g.: WARN: /a/ports/databases/p5-DBIx-Class-CustomPrefetch/pkg-descr: consider changing WWW URL to http://search.cpan.org/dist/DBIx-Class-CustomPrefetch At the same time it requeres a URL to end with slash. Attached patch to hint with terminating slash. >How-To-Repeat: >Fix: --- portlint.pl.diff begins here --- Index: ports/head/ports-mgmt/portlint/src/portlint.pl =================================================================== --- ports/head/ports-mgmt/portlint/src/portlint.pl.orig (revision 322277) +++ ports/head/ports-mgmt/portlint/src/portlint.pl (working copy) @@ -524,7 +524,7 @@ } if ($wwwurl =~ m|^http://search.cpan.org/~|) { &perror("WARN", $file, -1, "consider changing WWW URL to ". - "http://search.cpan.org/dist/$makevar{PORTNAME}"); + "http://search.cpan.org/dist/$makevar{PORTNAME}/"); } } $linecnt++; --- portlint.pl.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: