From mat@aragorn.in.absolight.net  Tue Oct 22 10:56:18 2013
Return-Path: <mat@aragorn.in.absolight.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id 886D03CF;
	Tue, 22 Oct 2013 10:56:18 +0000 (UTC)
	(envelope-from mat@aragorn.in.absolight.net)
Received: from prod2.absolight.net (mx3.absolight.net [IPv6:2a01:678:2:100::25])
	(using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 4BB0820C3;
	Tue, 22 Oct 2013 10:56:18 +0000 (UTC)
Received: from prod2.absolight.net (localhost [127.0.0.1])
	by prod2.absolight.net (Postfix) with ESMTP id BEF5CBDC65;
	Tue, 22 Oct 2013 12:56:16 +0200 (CEST)
Received: from gw.in.absolight.net (gw-ecl.in.absolight.net [79.143.241.69])
	(using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits))
	(Client CN "gw.in.absolight.net", Issuer "CA Cert Signing Authority" (not verified))
	by prod2.absolight.net (Postfix) with ESMTPSA id 98CD2BDC4C;
	Tue, 22 Oct 2013 12:56:16 +0200 (CEST)
Received: from aragorn.in.absolight.net (aragorn.in.absolight.net [79.143.241.225])
	by gw.in.absolight.net (Postfix) with ESMTP id 106836113;
	Tue, 22 Oct 2013 12:56:15 +0200 (CEST)
Received: by aragorn.in.absolight.net (Postfix, from userid 1000)
	id 5D54314269C; Tue, 22 Oct 2013 12:56:15 +0200 (CEST)
Message-Id: <20131022105615.5D54314269C@aragorn.in.absolight.net>
Date: Tue, 22 Oct 2013 12:56:15 +0200 (CEST)
From: Mathieu Arnold <mat@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: kuriyama@FreeBSD.org
Subject: [PATCH] textproc/sgmlformat: Fix with perl >= 5.16
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         183197
>Category:       ports
>Synopsis:       [PATCH] textproc/sgmlformat: Fix with perl >= 5.16
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kuriyama
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 22 11:00:00 UTC 2013
>Closed-Date:    Wed Nov 06 12:30:51 UTC 2013
>Last-Modified:  Wed Nov  6 12:40:02 UTC 2013
>Originator:     Mathieu Arnold
>Release:        FreeBSD 9.2-RELEASE i386
>Organization:
Absolight
>Environment:
System: FreeBSD aragorn.in.absolight.net 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Fri Sep 27 03:52:52 UTC
>Description:
newgetopt.pl was deprecated in 5.14, so, it doesn't work any more with 5.16+.
As Getopt::Long has been there for ages (and is in all supported perls in the
port tree,) this seemed the easiest way to fix it.

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

Generated with FreeBSD Port Tools 0.99_8 (mode: change, diff: ports)
>How-To-Repeat:
>Fix:

--- sgmlformat-1.7_3.patch begins here ---
diff -ruN /usr/ports/textproc/sgmlformat/Makefile ./Makefile
--- /usr/ports/textproc/sgmlformat/Makefile	2013-09-21 01:17:30.000000000 +0200
+++ ./Makefile	2013-10-22 12:54:00.000000000 +0200
@@ -1,9 +1,9 @@
 # Created by: jfieber
 # $FreeBSD: textproc/sgmlformat/Makefile 327773 2013-09-20 23:17:30Z bapt $
 
 PORTNAME=	sgmlformat
 PORTVERSION=	1.7
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	textproc print
 MASTER_SITES=	${MASTER_SITE_LOCAL}
 MASTER_SITE_SUBDIR=	kuriyama
diff -ruN /usr/ports/textproc/sgmlformat/files/patch-sgmlfmt.pl ./files/patch-sgmlfmt.pl
--- /usr/ports/textproc/sgmlformat/files/patch-sgmlfmt.pl	2012-07-14 16:29:18.000000000 +0200
+++ ./files/patch-sgmlfmt.pl	2013-10-22 12:53:41.000000000 +0200
@@ -1,5 +1,14 @@
---- sgmlfmt/sgmlfmt.pl.orig	Tue Sep 15 21:05:47 1998
-+++ sgmlfmt/sgmlfmt.pl	Tue Sep  4 15:27:32 2001
+--- sgmlfmt/sgmlfmt.pl.orig	1998-09-15 23:05:47.000000000 +0200
++++ sgmlfmt/sgmlfmt.pl	2013-10-22 12:52:49.000000000 +0200
+@@ -32,7 +32,7 @@
+ # project.  
+ 
+ 
+-require 'newgetopt.pl';
++use Getopt::Long;
+ 
+ #
+ # Where to find DTDs and related files
 @@ -151,19 +151,15 @@
      open (outfile, ">$fileroot.trf");
      &sgmlparse(infile, "roff");
@@ -24,3 +33,12 @@
      unlink("${fileroot}.trf");
  }
  
+@@ -655,7 +651,7 @@
+ 
+ sub main {
+     # Check arguments
+-    if (!&NGetOpt('d=s', 'f=s', 'links', 'i:s@', 'hdr=s', 'ftr=s', 'e=s')) {
++    if (!GetOptions('d=s', 'f=s', 'links', 'i:s@', 'hdr=s', 'ftr=s', 'e=s')) {
+ 	&usage;
+ 	exit 1;
+     }
--- sgmlformat-1.7_3.patch ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->kuriyama 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Oct 22 11:00:08 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=183197 
State-Changed-From-To: open->closed 
State-Changed-By: mat 
State-Changed-When: Wed Nov 6 12:30:51 UTC 2013 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=183197 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/183197: commit references a PR
Date: Wed,  6 Nov 2013 12:30:57 +0000 (UTC)

 Author: mat
 Date: Wed Nov  6 12:30:49 2013
 New Revision: 332981
 URL: http://svnweb.freebsd.org/changeset/ports/332981
 
 Log:
   newgetopt.pl was deprecated in 5.14, so, it doesn't work any more with 5.16+.
   As Getopt::Long has been there for ages (and is in all supported perls in the
   port tree,) this seemed the easiest way to fix it.
   
   maintainer timeout
   PR:		ports/183197
   Submitted by:	mat
 
 Modified:
   head/textproc/sgmlformat/Makefile
   head/textproc/sgmlformat/files/patch-sgmlfmt.pl
 
 Modified: head/textproc/sgmlformat/Makefile
 ==============================================================================
 --- head/textproc/sgmlformat/Makefile	Wed Nov  6 12:28:58 2013	(r332980)
 +++ head/textproc/sgmlformat/Makefile	Wed Nov  6 12:30:49 2013	(r332981)
 @@ -3,7 +3,7 @@
  
  PORTNAME=	sgmlformat
  PORTVERSION=	1.7
 -PORTREVISION=	2
 +PORTREVISION=	3
  CATEGORIES=	textproc print
  MASTER_SITES=	${MASTER_SITE_LOCAL}
  MASTER_SITE_SUBDIR=	kuriyama
 
 Modified: head/textproc/sgmlformat/files/patch-sgmlfmt.pl
 ==============================================================================
 --- head/textproc/sgmlformat/files/patch-sgmlfmt.pl	Wed Nov  6 12:28:58 2013	(r332980)
 +++ head/textproc/sgmlformat/files/patch-sgmlfmt.pl	Wed Nov  6 12:30:49 2013	(r332981)
 @@ -1,5 +1,14 @@
 ---- sgmlfmt/sgmlfmt.pl.orig	Tue Sep 15 21:05:47 1998
 -+++ sgmlfmt/sgmlfmt.pl	Tue Sep  4 15:27:32 2001
 +--- sgmlfmt/sgmlfmt.pl.orig	1998-09-15 23:05:47.000000000 +0200
 ++++ sgmlfmt/sgmlfmt.pl	2013-10-22 12:52:49.000000000 +0200
 +@@ -32,7 +32,7 @@
 + # project.  
 + 
 + 
 +-require 'newgetopt.pl';
 ++use Getopt::Long;
 + 
 + #
 + # Where to find DTDs and related files
  @@ -151,19 +151,15 @@
       open (outfile, ">$fileroot.trf");
       &sgmlparse(infile, "roff");
 @@ -24,3 +33,12 @@
       unlink("${fileroot}.trf");
   }
   
 +@@ -655,7 +651,7 @@
 + 
 + sub main {
 +     # Check arguments
 +-    if (!&NGetOpt('d=s', 'f=s', 'links', 'i:s@', 'hdr=s', 'ftr=s', 'e=s')) {
 ++    if (!GetOptions('d=s', 'f=s', 'links', 'i:s@', 'hdr=s', 'ftr=s', 'e=s')) {
 + 	&usage;
 + 	exit 1;
 +     }
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
