Changeset 134175 for trunk/doc-new


Ignore:
Timestamp:
Mar 19, 2015, 5:57:59 PM (4 years ago)
Author:
ionic@…
Message:

doc-new/guide/xml/portfiledev.xml: add port -v checksum example.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc-new/guide/xml/portfiledev.xml

    r134174 r134175  
    257257
    258258        <para>To find the correct checksums for a port's distribution file,
    259         follow this example:</para>
     259        follow one of these examples:</para>
    260260
    261261        <programlisting><prompt>%%</prompt> <userinput>openssl dgst -rmd160 rrdtool-1.2.23.tar.gz</userinput>
     
    265265
    266266SHA256( ... rrdtool-1.2.23.tar.gz)= 2829fcb7393bac85925090b286b1f9c3cd3fbbf8e7f35796ef4131322509aa53</screen>
     267
     268        <para>or update the version in the Portfile:</para>
     269
     270        <programlisting><prompt>%%</prompt> <userinput>port edit rrdtool</userinput></programlisting>
     271
     272        <para>and run:</para>
     273
     274        <programlisting><prompt>%%</prompt> <userinput>port -v checksum rrdtool</userinput></programlisting>
     275
     276        <screen>--->  Fetching distfiles for rrdtool
     277--->  Verifying checksums for rrdtool
     278--->  Checksumming rrdtool-1.2.23.tar.gz
     279Error: Checksum (rmd160) mismatch for rrdtool-1.2.23.tar.gz
     280Portfile checksum: rrdtool-1.2.23.tar.gz rmd160 ...WRONGCHECKSUM...
     281Distfile checksum: rrdtool-1.2.23.tar.gz rmd160 7bbfce4fecc2a8e1ca081169e70c1a298ab1b75a
     282Error: Checksum (sha256) mismatch for rrdtool-1.2.23.tar.gz
     283Portfile checksum: rrdtool-1.2.23.tar.gz sha256 ...WRONGCHECKSUM...
     284Distfile checksum: rrdtool-1.2.23.tar.gz sha256 2829fcb7393bac85925090b286b1f9c3cd3fbbf8e7f35796ef4131322509aa53
     285The correct checksum line may be:
     286checksums           rmd160  7bbfce4fecc2a8e1ca081169e70c1a298ab1b75a \
     287                    sha256  2829fcb7393bac85925090b286b1f9c3cd3fbbf8e7f35796ef4131322509aa5
     288Error: Failed to checksum rrdtool: Unable to verify file checksums
     289Error: See ...SOMEPATH.../rrdtool/main.log for details.
     290Error: Follow http://guide.macports.org/#project.tickets to report a bug.
     291Error: Processing of port rrdtool failed</screen>
    267292      </listitem>
    268293
Note: See TracChangeset for help on using the changeset viewer.