Opened 9 years ago

Closed 9 years ago

#49102 closed defect (fixed)

autojump @21.5.8: checksum mismatch

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: johnny.kuan@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: haspatch Cc: yangyan.ssc@…, youvegotmoxie@…
Port: autojump

Description

autojump @21.5.8 has a checksum mismatch:

$ port checksum autojump
--->  Fetching distfiles for autojump
--->  Attempting to fetch autojump-21.5.8.tar.gz from https://github.com/joelthelion/autojump/tarball/release-v21.5.8
--->  Verifying checksums for autojump
Error: Checksum (rmd160) mismatch for autojump-21.5.8.tar.gz
Error: Checksum (sha256) mismatch for autojump-21.5.8.tar.gz
Error: Failed to checksum autojump: Unable to verify file checksums
Error: See /opt/local/var/macports/logs/_Users_rschmidt_macports_dports_sysutils_autojump/autojump/main.log for details.
Error: Follow http://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port autojump failed

This was first reported on the mailing list: https://lists.macosforge.org/pipermail/macports-users/2015-October/039454.html

It looks like the project changed authors, from joelthelion to wting. This would account for the checksum mismatch, since the project author is part of the enclosing directory filename, and filenames are included in the data that the checksums are computed from.

The port should be updated to use the new author name, and at the same time be updated to a newer version. 22.2.4 is currently the latest.

Change History (3)

comment:1 Changed 9 years ago by youvegotmoxie@…

Cc: youvegotmoxie@… added

Cc Me!

comment:2 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch added

Johnny Kuan sent the following reply by email:

I don't currently have access to computer with macports installed. The following should work, but it hasn't been tested:

PortSystem          1.0
PortGroup           github 1.0

github.setup        wting autojump 22.2.4 release-v
categories          sysutils
platforms           darwin
maintainers         nomaintainer
license             GPL-3+
supported_archs     noarch

description         a cd command that learns

long_description    ${name} is ${description}.

checksums           rmd160  b6a285644cb77d9bea61cc587fdff26524548003\
                    sha256  24f356a64b64708b7a34d65f210b01036b56342f5a3e56ee329e86ba897f1399

depends_run         port:python27

post-patch {
    reinplace "s:/etc/profile.d:${prefix}/etc/profile.d:g" ${worksrcpath}/bin/autojump.sh
    reinplace "s:/usr/bin/env python:${prefix}/bin/python2.7:g" ${worksrcpath}/bin/autojump
}

use_configure       no

build {}

destroot {
    xinstall -m 755 -W ${worksrcpath}/bin autojump ${destroot}${prefix}/bin/
    xinstall -m 755 -W ${worksrcpath}/docs autojump.1 ${destroot}${prefix}/share/man/man1/
    xinstall -d ${destroot}${prefix}/etc/profile.d/
    xinstall -m 644 -W ${worksrcpath}/bin autojump.sh autojump.bash autojump.zsh ${destroot}${prefix}/etc/profile.d/
    xinstall -d ${destroot}${prefix}/share/zsh/site-functions/
    xinstall -m 644 -W ${worksrcpath}/bin _j ${destroot}${prefix}/share/zsh/site-functions/
}

notes "
To use autojump for bash, add the following to the end of your .bash_profile:

if \[ -f ${prefix}/etc/profile.d/autojump.bash \]; then
    . ${prefix}/etc/profile.d/autojump.bash
fi

To use autojump for zsh, add the following to the end of your .zshrc:

export FPATH=\"\$FPATH:${prefix}/share/zsh/site-functions/\"
if \[ -f ${prefix}/etc/profile.d/autojump.zsh \]; then
    . ${prefix}/etc/profile.d/autojump.zsh
fi

To use zsh tab completion, load compinit in your .zshrc:

autoload -U compinit; compinit
"

comment:3 in reply to:  2 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

Replying to johnny.kuan@…:

I don't currently have access to computer with macports installed. The following should work, but it hasn't been tested:

Thanks. It built for me so I committed it in r140911.

Note: See TracTickets for help on using tickets.