From nobody@FreeBSD.org  Tue Mar 10 11:11:51 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 9014A1065670
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 10 Mar 2009 11:11:51 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 7DC158FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 10 Mar 2009 11:11:51 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n2ABBoqN059657
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 10 Mar 2009 11:11:51 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n2ABBouG059655;
	Tue, 10 Mar 2009 11:11:50 GMT
	(envelope-from nobody)
Message-Id: <200903101111.n2ABBouG059655@www.freebsd.org>
Date: Tue, 10 Mar 2009 11:11:50 GMT
From: Ganael Laplanche <ganael.laplanche@martymac.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: port fix: archivers/par2cmdline - Fix offset update in quiet mode
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         132494
>Category:       ports
>Synopsis:       port fix: archivers/par2cmdline - Fix offset update in quiet mode
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    araujo
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 10 11:20:00 UTC 2009
>Closed-Date:    Sun Mar 15 18:28:06 UTC 2009
>Last-Modified:  Sun Mar 15 18:30:05 UTC 2009
>Originator:     Ganael Laplanche
>Release:        8.0-CURRENT
>Organization:
http://contribs.martymac.com
>Environment:
FreeBSD home.martymac.com 8.0-CURRENT FreeBSD 8.0-CURRENT #36: Sun Mar 1 19:23:00 CET 2009 martymac@home.martymac.com:/usr/obj/usr/src/sys/MYKERNEL amd64
>Description:
This patch fixes a missed offset update when using quiet mode with par2create.

This bug has been referenced here :
http://sourceforge.net/tracker/index.php?func=detail&aid=1802742&group_id=30568&atid=399698
http://sourceforge.net/tracker/index.php?func=detail&aid=1085638&group_id=30568&atid=399698

And here on Debian :
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=299658

Reported by: Nicolas Rachinsky (thanks to him :))
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -aurN par2cmdline.orig/Makefile par2cmdline/Makefile
--- par2cmdline.orig/Makefile	2009-03-10 07:06:19.791686373 +0000
+++ par2cmdline/Makefile	2009-03-10 07:14:15.615040458 +0000
@@ -7,7 +7,7 @@
 
 PORTNAME=	par2cmdline
 PORTVERSION=	0.4
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	archivers
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	parchive
diff -aurN par2cmdline.orig/files/patch-par2creatorsourcefile.cpp par2cmdline/files/patch-par2creatorsourcefile.cpp
--- par2cmdline.orig/files/patch-par2creatorsourcefile.cpp	1970-01-01 00:00:00.000000000 +0000
+++ par2cmdline/files/patch-par2creatorsourcefile.cpp	2009-03-10 07:13:58.985379985 +0000
@@ -0,0 +1,13 @@
+--- par2creatorsourcefile.cpp.orig	2009-03-10 07:10:35.860499029 +0000
++++ par2creatorsourcefile.cpp	2009-03-10 07:12:53.111712521 +0000
+@@ -224,6 +224,10 @@
+           cout << newfraction/10 << '.' << newfraction%10 << "%\r" << flush;
+         }
+       }
++      else
++      {
++        offset += want;
++      }
+     }
+ 
+     // Did we finish the last block


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->araujo 
Responsible-Changed-By: araujo 
Responsible-Changed-When: Wed Mar 11 20:48:41 UTC 2009 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=132494 
State-Changed-From-To: open->closed 
State-Changed-By: araujo 
State-Changed-When: Sun Mar 15 18:28:05 UTC 2009 
State-Changed-Why:  
Committed. Thanks! 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/132494: commit references a PR
Date: Sun, 15 Mar 2009 18:28:01 +0000 (UTC)

 araujo      2009-03-15 18:27:46 UTC
 
   FreeBSD ports repository
 
   Modified files:
     archivers/par2cmdline Makefile 
   Added files:
     archivers/par2cmdline/files patch-par2creatorsourcefile.cpp 
   Log:
   - Fixes a missed offset update when using quiet mode with par2create.
   
   This bug has been referenced here:
   http://sourceforge.net/tracker/index.php?func=detail&aid=1802742&group_id=30568&atid=399698
   http://sourceforge.net/tracker/index.php?func=detail&aid=1085638&group_id=30568&atid=399698
   
   PR:             ports/132494
   Submitted by:   Ganael Laplanche <ganael.laplanche@martymac.com> (maintainer)
   
   Revision  Changes    Path
   1.11      +2 -2      ports/archivers/par2cmdline/Makefile
   1.1       +13 -0     ports/archivers/par2cmdline/files/patch-par2creatorsourcefile.cpp (new)
 _______________________________________________
 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"
 
>Unformatted:
