From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Jun 27 03:40:02 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B26F1065676 for ; Fri, 27 Jun 2008 03:40:02 +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 53E5B8FC12 for ; Fri, 27 Jun 2008 03:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m5R3e1OB035907 for ; Fri, 27 Jun 2008 03:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m5R3e1jn035906; Fri, 27 Jun 2008 03:40:01 GMT (envelope-from gnats) Resent-Date: Fri, 27 Jun 2008 03:40:01 GMT Resent-Message-Id: <200806270340.m5R3e1jn035906@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, Tomoyuki Sakurai Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 28E5F1065687 for ; Fri, 27 Jun 2008 03:33:42 +0000 (UTC) (envelope-from cherry@spica.trombik.org) Received: from spica.trombik.org (spica.trombik.org [211.19.48.12]) by mx1.freebsd.org (Postfix) with ESMTP id EEDF68FC17 for ; Fri, 27 Jun 2008 03:33:41 +0000 (UTC) (envelope-from cherry@spica.trombik.org) Received: by spica.trombik.org (Postfix, from userid 999) id 807331CD01; Fri, 27 Jun 2008 12:33:38 +0900 (JST) Message-Id: <20080627033338.807331CD01@spica.trombik.org> Date: Fri, 27 Jun 2008 12:33:38 +0900 (JST) From: Tomoyuki Sakurai To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: marcus@FreeBSD.org Subject: ports/125037: [PATCH] ports-mgmt/portlint: warn %%PORTDOCS%%%%EXAMPLESDIR%% X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jun 2008 03:40:02 -0000 >Number: 125037 >Category: ports >Synopsis: [PATCH] ports-mgmt/portlint: warn %%PORTDOCS%%%%EXAMPLESDIR%% >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Fri Jun 27 03:40:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Tomoyuki Sakurai >Release: FreeBSD 7.0-STABLE amd64 >Organization: >Environment: System: FreeBSD spica.trombik.org 7.0-STABLE FreeBSD 7.0-STABLE #3: Tue Jun 24 08:49:06 JST 2008 >Description: - warn %%PORTDOCS%%%%EXAMPLESDIR%% and %%PORTDOCS%%%%DATADIR%% in plist Port maintainer (marcus@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- portlint-2.9.9.patch begins here --- diff -ruN --exclude=CVS /usr/ports/ports-mgmt/portlint/Makefile /usr/home/cherry/svk/ports/ports-mgmt/portlint/Makefile --- /usr/ports/ports-mgmt/portlint/Makefile 2008-03-23 09:25:30.000000000 +0900 +++ /usr/home/cherry/svk/ports/ports-mgmt/portlint/Makefile 2008-06-27 12:25:57.000000000 +0900 @@ -8,7 +8,7 @@ # PORTNAME= portlint -PORTVERSION= 2.9.8 +PORTVERSION= 2.9.9 CATEGORIES= ports-mgmt MASTER_SITES= # none DISTFILES= # none diff -ruN --exclude=CVS /usr/ports/ports-mgmt/portlint/src/portlint.pl /usr/home/cherry/svk/ports/ports-mgmt/portlint/src/portlint.pl --- /usr/ports/ports-mgmt/portlint/src/portlint.pl 2008-03-23 09:25:30.000000000 +0900 +++ /usr/home/cherry/svk/ports/ports-mgmt/portlint/src/portlint.pl 2008-06-27 12:25:45.000000000 +0900 @@ -46,7 +46,7 @@ # version variables my $major = 2; my $minor = 9; -my $micro = 8; +my $micro = 9; sub l { '[{(]'; } sub r { '[)}]'; } @@ -837,6 +837,15 @@ $sharedocused++; } + if ($_ =~ /^\%\%PORTDOCS\%\%.*\%\%DATADIR\%\%/) { + &perror("WARN", $file, $., "Wrong pair of variables is used. ". + "Use %%PORTDATA%% and %%DATADIR%% instead."); + } + if ($_ =~ /^\%\%PORTDOCS\%\%.*\%\%EXAMPLESDIR\%\%/) { + &perror("WARN", $file, $., "Wrong pair of variables is used. ". + "Use %%PORTEXAMPLES%% and %%EXAMPLESDIR%% instead."); + } + if ($_ =~ /^share\/examples\//) { &perror("WARN", $file, $., "If and only if your port is ". "EXAMPLESDIR-safe (that is, a user can override EXAMPLESDIR ". --- portlint-2.9.9.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: