Subject: pkg/30227: pkgsrc/emulators/spim retrieves wrong version of package from ftp
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <m.ramakers@gmail.com>
List: pkgsrc-bugs
Date: 05/14/2005 10:04:00
>Number:         30227
>Category:       pkg
>Synopsis:       pkgsrc/emulators/spim retrieves wrong version of package from ftp
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat May 14 10:04:00 +0000 2005
>Originator:     Michai Ramakers
>Release:        2.0.1
>Organization:
>Environment:
NetBSD roy 2.0.1 NetBSD 2.0.1 (MIC) #1: Sun Feb 20 14:11:06 CET 2005  root@roy:/usr/src/sys/arch/i386/compile/MIC i386

>Description:
the SPIM pkgsrc package retrieves the wrong version from the creator's download site, and therefore fails checksum after fetch, and extracts to the wrong directory:

---

=> spim.tar.gz doesn't seem to exist on this system.
=> Attempting to fetch spim.tar.gz from http://www.cs.wisc.edu/~larus/SPIM/.
Requesting http://www.cs.wisc.edu/~larus/SPIM/spim.tar.gz
100% |*********************************************|   300 KB  119.37 KB/s    00:00 ETA
307599 bytes retrieved in 00:02 (119.34 KB/s)
===> Extracting for spim-6.5
===> Required installed package xpkgwedge>=1.5: xpkgwedge-1.12 found
===> Required installed package x11-links>=0.24: x11-links-0.24 found
===> Patching for spim-6.5
===> Applying pkgsrc patches for spim-6.5
patch: **** can't cd to /usr/pkgsrc/emulators/spim/work.roy/spim-6.5: No such file or directory
Patch /usr/pkgsrc/emulators/spim/patches/patch-aa failed
*** Error code 1

Stop.

---

the problem seems to be that there is just one 'spim.tar.gz' on the creator's download site, and apparently he/she has replaced the original archive with version 7.1 (instead of 6.5)
>How-To-Repeat:
cd /usr/pkgsrc/emulators/spim && make
>Fix: