From nobody@FreeBSD.org  Tue Apr 22 13:14:46 2008
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 4018C106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 22 Apr 2008 13:14:46 +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 1B7AB8FC17
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 22 Apr 2008 13:14:46 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m3MDEN5D094168
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 22 Apr 2008 13:14:23 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m3MDENDK094167;
	Tue, 22 Apr 2008 13:14:23 GMT
	(envelope-from nobody)
Message-Id: <200804221314.m3MDENDK094167@www.freebsd.org>
Date: Tue, 22 Apr 2008 13:14:23 GMT
From: Angelo Dipierro <suCrabu@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Can't update apcupsd via ports
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         122988
>Category:       ports
>Synopsis:       Can't update sysutils/apcupsd via ports
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    itetcu
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 22 13:20:00 UTC 2008
>Closed-Date:    Tue Apr 22 14:26:53 UTC 2008
>Last-Modified:  Tue Apr 22 14:26:53 UTC 2008
>Originator:     Angelo Dipierro
>Release:        6.2 STABLE
>Organization:
>Environment:
FreeBSD $MY_HOSTNAME 6.2-STABLE FreeBSD 6.2-STABLE #1: Tue Aug 14 15:02:06 CEST 2007     root@$MY_HOSTNAME:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
It's been a couple of weeks that pkg_version reports that there's an updated version of the apcupsd package. Trying to update I get an error complaining of a file-size and checksum mismatch for the "apcupsd.pdf" file.

Attached you'll find the output for both the "portupgrade apcupsd" and "cd /usr/ports/sysutils/apcupsd/;; make" commands.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

portupgrade output:

--->  Upgrading 'apcupsd-3.14.2_1' to 'apcupsd-3.14.3_1' (sysutils/apcupsd)
--->  Building '/usr/ports/sysutils/apcupsd'
===>  Cleaning for apcupsd-3.14.3_1
===>  Found saved configuration for apcupsd-3.14.3
===>  Extracting for apcupsd-3.14.3_1
=> MD5 Checksum OK for apcupsd-3.14.3.tar.gz.
=> SHA256 Checksum OK for apcupsd-3.14.3.tar.gz.
=> MD5 Checksum mismatch for apcupsd.pdf.
=> SHA256 Checksum mismatch for apcupsd.pdf.
===>  Refetch for 1 more times files: apcupsd.pdf apcupsd.pdf
===>  Found saved configuration for apcupsd-3.14.3
=> apcupsd.pdf doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch from http://apcupsd.sourceforge.net/manual/.
fetch: http://apcupsd.sourceforge.net/manual/apcupsd.pdf: Requested Range Not Satisfiable
=> Attempting to fetch from http://T32.TecNik93.com/FreeBSD/ports/apcupsd/sources/.
fetch: http://T32.TecNik93.com/FreeBSD/ports/apcupsd/sources/apcupsd.pdf: Requested Range Not Satisfiable
=> Attempting to fetch from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/.
fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/apcupsd.pdf: size mismatch: expected 1074251, actual 1076458
=> Couldn't fetch it - please try to retrieve this
=> port manually into /usr/ports/distfiles/ and try again.
*** Error code 1

Stop in /usr/ports/sysutils/apcupsd.
*** Error code 1

Stop in /usr/ports/sysutils/apcupsd.
*** Error code 1

Stop in /usr/ports/sysutils/apcupsd.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade.28531.0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=apcupsd-3.14.2_1 UPGRADE_PORT_VER=3.14.2_1 make


make output:

===>  Found saved configuration for apcupsd-3.14.3
===>  Extracting for apcupsd-3.14.3_1
=> MD5 Checksum OK for apcupsd-3.14.3.tar.gz.
=> SHA256 Checksum OK for apcupsd-3.14.3.tar.gz.
=> MD5 Checksum mismatch for apcupsd.pdf.
=> SHA256 Checksum mismatch for apcupsd.pdf.
===>  Refetch for 1 more times files: apcupsd.pdf apcupsd.pdf
===>  Found saved configuration for apcupsd-3.14.3
=> apcupsd.pdf doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch from http://apcupsd.sourceforge.net/manual/.
fetch: http://apcupsd.sourceforge.net/manual/apcupsd.pdf: Requested Range Not Satisfiable
=> Attempting to fetch from http://T32.TecNik93.com/FreeBSD/ports/apcupsd/sources/.
fetch: http://T32.TecNik93.com/FreeBSD/ports/apcupsd/sources/apcupsd.pdf: Requested Range Not Satisfiable
=> Attempting to fetch from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/.
fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/apcupsd.pdf: size mismatch: expected 1074251, actual 1076458
=> Couldn't fetch it - please try to retrieve this
=> port manually into /usr/ports/distfiles/ and try again.
*** Error code 1

Stop in /usr/ports/sysutils/apcupsd.
*** Error code 1

Stop in /usr/ports/sysutils/apcupsd.
*** Error code 1

Stop in /usr/ports/sysutils/apcupsd.


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->itetcu 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Apr 22 13:21:44 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=122988 
State-Changed-From-To: open->closed 
State-Changed-By: itetcu 
State-Changed-When: Tue Apr 22 14:26:53 UTC 2008 
State-Changed-Why:  
Please do: cd /usr/ports/sysutils/apcupsd/ && make distclean && make 
fetch && make checksum 

http://www.freebsd.org/cgi/query-pr.cgi?pr=122988 
>Unformatted:
