NetBSD Problem Report #34914
From kre@munnari.OZ.AU Wed Oct 25 19:18:07 2006
Return-Path: <kre@munnari.OZ.AU>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id 3D9DB63B9FB
for <gnats-bugs@gnats.NetBSD.org>; Wed, 25 Oct 2006 19:18:07 +0000 (UTC)
Message-Id: <200610251916.k9PJGnxM003562@jade.coe.psu.ac.th>
Date: Thu, 26 Oct 2006 02:16:49 +0700 (ICT)
From: kre@munnari.OZ.AU
To: gnats-bugs@NetBSD.org
Subject: databases/postgresql80 distinfo checksum failure
X-Send-Pr-Version: 3.95
>Number: 34914
>Category: pkg
>Synopsis: databases/postgresql80 distinfo checksum failure
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: joerg
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Oct 25 19:20:00 +0000 2006
>Closed-Date: Thu Mar 13 16:48:05 +0000 2008
>Last-Modified: Thu May 22 16:30:01 +0000 2008
>Originator: Robert Elz
>Release: NetBSD 3.99.15 (pkgsrc current within last 12 hours)
>Organization:
Prince of Songkla University
>Environment:
System: NetBSD jade.coe.psu.ac.th 3.99.15 NetBSD 3.99.15 (GENERIC-1.696-20060125) #8: Wed Jan 25 04:59:39 ICT 2006 kre@jade.coe.psu.ac.th:/usr/obj/current/kernels/JADE_ASUS i386
Architecture: i386
Machine: i386
>Description:
The checksum recorded for postgresql-8.0.9.tar.bz2 in the
distinfo file for databases/postgresql80 (which affects the
various other postgresql80 packages of course) doesn't matsh the
distfile available from the (far too many) postgress master sites.
>How-To-Repeat:
mv ..../distfiles/postgresql-8.0.9.tar.bz2 /some/where/safe/.
cd ..../pkgsrc/databases/postgresql80
make checksum
Be prepared to wait a very long time ... the current state of
"make fetch" tries every possible master site as it detects the
file fetched does not match the distinfo (one would have thought
after 4 or 5 failures it would make sense to just quit, but that's
not what happens - for me waiting forthis to finish can easily be
more than 12 hours).
>Fix:
Find out what happned to the distfile from the time of the last
upgrade to the package (this has been broken since that day - I
have been attempting to fetch, usually once a day, since then)
and if the changes are harmless, update the distinfo file.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: joerg@netbsd.org
State-Changed-When: Wed, 25 Oct 2006 19:35:14 +0000
State-Changed-Why:
(1) Is your pkgsrc tree located somewhere other than /usr/pkgsrc?
I can reproduce this with databases/postgresql80and the tree in $HOME.
(2) Does it work when you run make fetch/checksum in postgresql80-client?
It does for me.
From: Robert Elz <kre@munnari.OZ.AU>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/34914 (databases/postgresql80 distinfo checksum failure)
Date: Thu, 26 Oct 2006 18:22:58 +0700
Date: Wed, 25 Oct 2006 19:35:15 +0000 (UTC)
From: joerg@NetBSD.org
Message-ID: <20061025193515.E54C263BAA7@narn.NetBSD.org>
| Synopsis: databases/postgresql80 distinfo checksum failure
|
| State-Changed-From-To: open->feedback
| State-Changed-By: joerg@netbsd.org
| State-Changed-When: Wed, 25 Oct 2006 19:35:14 +0000
| State-Changed-Why:
| (1) Is your pkgsrc tree located somewhere other than /usr/pkgsrc?
Yes, it is /usr/src/pkgsrc (/usr is read only, nothing changes in there
normally...) But how can that possibly make a difference, the distfiles
go somewhere else entirely (/local/distfiles) ?
| (2) Does it work when you run make fetch/checksum in postgresql80-client?
I will try it...
Yes, that works OK. That's truly bizarre, and indicates a basic
pkgsrc problem, rather than anything with the specific package, I suspect.
kre
From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/34914 (databases/postgresql80 distinfo checksum failure)
Date: Thu, 26 Oct 2006 14:39:56 +0200
On Thu, Oct 26, 2006 at 11:25:01AM +0000, Robert Elz wrote:
> Yes, that works OK. That's truly bizarre, and indicates a basic
> pkgsrc problem, rather than anything with the specific package, I suspect.
Yes, that's what I wanted to make sure. mk/checksum/checksum is using a
variable which is not correctly initialised in some cases, I wanted to
make sure that is the only problem here.
Joerg
From: Robert Elz <kre@munnari.OZ.AU>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/34914 (databases/postgresql80 distinfo checksum failure)
Date: Thu, 26 Oct 2006 20:39:55 +0700
Date: Thu, 26 Oct 2006 12:50:02 +0000 (UTC)
From: Joerg Sonnenberger <joerg@britannica.bec.de>
Message-ID: <20061026125002.84DDB63BA73@narn.NetBSD.org>
| Yes, that's what I wanted to make sure. mk/checksum/checksum is using a
| variable which is not correctly initialised in some cases, I wanted to
| make sure that is the only problem here.
OK, fine. Thanks.
kre
Responsible-Changed-From-To: pkg-manager->joerg
Responsible-Changed-By: rillig@netbsd.org
Responsible-Changed-When: Sat, 03 Nov 2007 19:43:12 +0000
Responsible-Changed-Why:
joerg seems to know some details that I don't know.
State-Changed-From-To: feedback->open
State-Changed-By: rillig@netbsd.org
State-Changed-When: Sat, 03 Nov 2007 19:43:12 +0000
State-Changed-Why:
Feedback provided.
State-Changed-From-To: open->closed
State-Changed-By: joerg@NetBSD.org
State-Changed-When: Thu, 13 Mar 2008 16:48:05 +0000
State-Changed-Why:
A fix was committed.
From: Joerg Sonnenberger <joerg@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/34914 CVS commit: pkgsrc/databases
Date: Thu, 13 Mar 2008 16:47:38 +0000 (UTC)
Module Name: pkgsrc
Committed By: joerg
Date: Thu Mar 13 16:47:38 UTC 2008
Modified Files:
pkgsrc/databases/postgresql80: Makefile
pkgsrc/databases/postgresql81: Makefile
pkgsrc/databases/postgresql82: Makefile
pkgsrc/databases/postgresql83: Makefile
Log Message:
Mark the main postgresql8[0-3] packages as meta packages.
This avoids the problems in PR 34914.
To generate a diff of this commit:
cvs rdiff -r1.10 -r1.11 pkgsrc/databases/postgresql80/Makefile
cvs rdiff -r1.3 -r1.4 pkgsrc/databases/postgresql81/Makefile
cvs rdiff -r1.2 -r1.3 pkgsrc/databases/postgresql82/Makefile
cvs rdiff -r1.1.1.1 -r1.2 pkgsrc/databases/postgresql83/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Joerg Sonnenberger <joerg@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/34914 CVS commit: pkgsrc/mk
Date: Thu, 22 May 2008 16:27:22 +0000 (UTC)
Module Name: pkgsrc
Committed By: joerg
Date: Thu May 22 16:27:22 UTC 2008
Modified Files:
pkgsrc/mk: bsd.pkg.mk
pkgsrc/mk/checksum: bsd.checksum-vars.mk bsd.checksum.mk checksum.mk
pkgsrc/mk/fetch: bsd.fetch-vars.mk fetch.mk
Log Message:
Move digest dependency into checksum and fetch part.
Make _ALL_FILES and in turn _CKSUMFILES available earlier.
Use it to only depend on digest if _CKSUMFILES is non-empty.
NO_CHECKSUM will now only skip the checksum and checksum-phase
targets. FAILOVER_FETCH will independently check the sums on
distfiles and depend on digest, fixing the remaining issues
originally raised in PR 34914.
To generate a diff of this commit:
cvs rdiff -r1.1942 -r1.1943 pkgsrc/mk/bsd.pkg.mk
cvs rdiff -r1.1 -r1.2 pkgsrc/mk/checksum/bsd.checksum-vars.mk
cvs rdiff -r1.8 -r1.9 pkgsrc/mk/checksum/bsd.checksum.mk
cvs rdiff -r1.12 -r1.13 pkgsrc/mk/checksum/checksum.mk
cvs rdiff -r1.9 -r1.10 pkgsrc/mk/fetch/bsd.fetch-vars.mk
cvs rdiff -r1.33 -r1.34 pkgsrc/mk/fetch/fetch.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.