Re: Can't build GNU Octave because of missing/broken hdf5?
On Sep 5, 2007, at 04:25, Bernard Desgraupes wrote:
Ryan Schmidt wrote:
On Sep 5, 2007, at 02:53, Erik de Castro Lopo wrote:
I'm trying to build GNU Octave, but one of the pre-requisites hdf5 seems broken:
---> Fetching hdf5 ---> Attempting to fetch hdf5-1.6.5.tar.gz from ftp:// ftp.hdfgroup.org/HDF5/current/src/ ---> Attempting to fetch hdf5-1.6.5.tar.gz from http:// svn.macports.org/repository/macports/distfiles/hdf5 ---> Attempting to fetch hdf5-1.6.5.tar.gz from http:// svn.macports.org/repository/macports/distfiles/general/ ---> Attempting to fetch hdf5-1.6.5.tar.gz from http:// svn.macports.org/repository/macports/downloads/hdf5 Error: Target org.macports.fetch returned: fetch failed Error: The following dependencies failed to build: hdf5 Error: Status 1 encountered during processing.
What should I do to fix it?
A bug about hdf5 has already been filed:
http://trac.macosforge.org/projects/macports/ticket/12592
The maintainer has not yet responded.
I have built octave two days ago and have met this same problem. Here's the recipe. To work around it, edit the Portfile (/opt/local/ var/macports/sources/rsync.macports.org/release/ports/science/hdf5/ Portfile) and modify two things: * the version : replace 1.6.5 by 1.6.6 * the checksum: I did not keep a copy of the new checksum, but after you changed the version and tried again to "port install hdf5" there will be an error message in which the checksum is printed. So replace the current value by the expected one. No the build should go fine.
When hdf5 has completed its build, execute sudo port install octave to finish the job.
Then perhaps you could attach a diff to the ticket?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Ryan Schmidt wrote:
Then perhaps you could attach a diff to the ticket?
Hi, I have a more general question about this. Can I/we just commit a quick fix for this or should we wait for the maintainer? As Bernard Desgraupes says the update works so it should be no problem. Also the ticket is already 3 days old. Thanks, Simon - -- + privacy is necessary + using http://gnupg.org + public key id: 0x6115F804EFB33229 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) iD8DBQFG3s0KYRX4BO+zMikRCrbhAKDC9dl6DmkdViBm63UWvMpxOZ5UMACgsFaS pvMZC9k3TKckAdEhe7uwGZI= =CCJP -----END PGP SIGNATURE-----
On Sep 5, 2007, at 10:36, Simon Ruderich wrote:
I have a more general question about this. Can I/we just commit a quick fix for this or should we wait for the maintainer? As Bernard Desgraupes says the update works so it should be no problem. Also the ticket is already 3 days old.
Guide says "If the maintainer does not respond within 72 hours, you or another committer may review the patches and update the port." So you should feel free to commit the change now.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Ryan Schmidt wrote:
On Sep 5, 2007, at 10:36, Simon Ruderich wrote:
I have a more general question about this. Can I/we just commit a quick fix for this or should we wait for the maintainer? As Bernard Desgraupes says the update works so it should be no problem. Also the ticket is already 3 days old.
Guide says "If the maintainer does not respond within 72 hours, you or another committer may review the patches and update the port." So you should feel free to commit the change now.
Ok, thanks. I just committed the update to the new version 1.6.6 in r28679 as suggested by Bernard Desgraupes. I also closed #12592. Thanks for your help, Simon - -- + privacy is necessary + using http://gnupg.org + public key id: 0x6115F804EFB33229 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) iD8DBQFG4HAPYRX4BO+zMikRCtWPAKC4xNN40yjw//jksjkWrwaTJtaMtACdHSxf tUbDuGFE5xxeBvPyMRqlsQ8= =81hS -----END PGP SIGNATURE-----
Simon Ruderich wrote:
Ok, thanks.
I just committed the update to the new version 1.6.6 in r28679 as suggested by Bernard Desgraupes. I also closed #12592.
Err, still not quite right: erikd@miles > sudo port upgrade hdf5 ---> Verifying checksum(s) for hdf5 Error: Checksum (md5) mismatch for hdf5-1.6.6.tar.gz Error: Target org.macports.checksum returned: Unable to verify file checksums Erik -- ----------------------------------------------------------------- Erik de Castro Lopo ----------------------------------------------------------------- "... a discussion of C++'s strengths and flaws always sounds like an argument about whether one should face north or east when one is sacrificing one's goat to the rain god." -- Thant Tessman
On Sep 6, 2007, at 19:05, Erik de Castro Lopo wrote:
Simon Ruderich wrote:
I just committed the update to the new version 1.6.6 in r28679 as suggested by Bernard Desgraupes. I also closed #12592.
Err, still not quite right:
erikd@miles > sudo port upgrade hdf5 ---> Verifying checksum(s) for hdf5 Error: Checksum (md5) mismatch for hdf5-1.6.6.tar.gz Error: Target org.macports.checksum returned: Unable to verify file checksums
Works fine for me. You may need to clean it. sudo port clean --all hdf5 This is in the FAQ: http://trac.macosforge.org/projects/macports/wiki/ FAQ#IgetError:checksummd5/sha1/rmd160mismatchforport.WhatcanIdoaboutit
Ryan Schmidt wrote:
Works fine for me. You may need to clean it.
sudo port clean --all hdf5
I did do that. Here: erikd@miles > sudo port clean --all hdf5 ---> Cleaning hdf5 erikd@miles > sudo port install hdf5 ---> Fetching hdf5 ---> Attempting to fetch hdf5-1.6.6.tar.gz from ftp://ftp.hdfgroup.org/HDF5/current/src/ ---> Verifying checksum(s) for hdf5 Error: Checksum (md5) mismatch for hdf5-1.6.6.tar.gz Error: Target org.macports.checksum returned: Unable to verify file checksums Error: Status 1 encountered during processing.
http://trac.macosforge.org/projects/macports/wiki/ FAQ#IgetError:checksummd5/sha1/rmd160mismatchforport.WhatcanIdoaboutit
I thought this had just been fixed. Erik -- ----------------------------------------------------------------- Erik de Castro Lopo ----------------------------------------------------------------- "C++ is history repeated as tragedy. Java is history repeated as farce." -- Scott McKay
Erik de Castro Lopo wrote:
Ryan Schmidt wrote:
Works fine for me. You may need to clean it.
sudo port clean --all hdf5
It seems "clean --all" is not enough. I just did: port clean --dist hdf5 port clean --all hdf5 port install hdf5 and now it finally seems to be installing. Erik -- ----------------------------------------------------------------- Erik de Castro Lopo ----------------------------------------------------------------- "The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners." -- Ernst Jan Plugge
On Sep 6, 2007, at 20:07, Erik de Castro Lopo wrote:
Erik de Castro Lopo wrote:
Ryan Schmidt wrote:
Works fine for me. You may need to clean it.
sudo port clean --all hdf5
It seems "clean --all" is not enough.
I just did:
port clean --dist hdf5 port clean --all hdf5 port install hdf5
and now it finally seems to be installing.
That's peculiar, since "man port" says --all includes --dist: clean Clean the files used for building portname. To just remove the work files, use the --work actionflag. To remove the distribution files (tar- balls, etc), specify --dist. To remove the archive(s) for the current version of a port, pass --archive. To remove the work files, distribu- tion files and archives, pass --all.
participants (3)
-
Erik de Castro Lopo
-
Ryan Schmidt
-
Simon Ruderich