Opened 11 years ago

Closed 11 years ago

#39750 closed update (fixed)

nettle @2.6: update to 2.7.1

Reported by: macports@… Owned by: exodusd@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc: nicke@…, ryandesign (Ryan Carsten Schmidt)
Port: nettle

Description

Nettle >= 2.7 is required to install GnuTLS 3.2.2.

Nettle is currently at 2.7.1 upstream.

The following Portfile changes are required to effect the necessary update.

local/var/macports # git diff ./sources/rsync.macports.org/release/ports/devel/nettle/Portfile.orig ./sources/rsync.macports.org/release/ports/devel/nettle/Portfile
diff --git a/./sources/rsync.macports.org/release/ports/devel/nettle/Portfile.orig b/./sources/rsync.macports.org/release/ports/devel/nettle/Portfile
index 4571847..217f1f6 100644
--- a/./sources/rsync.macports.org/release/ports/devel/nettle/Portfile.orig
+++ b/./sources/rsync.macports.org/release/ports/devel/nettle/Portfile
@@ -4,7 +4,7 @@
 PortSystem          1.0

 name                nettle
-version             2.6
+version             2.7.1
 categories          devel crypto
 platforms           darwin
 maintainers         gmx.de:exodusd uni-paderborn.de:nicke openmaintainer
@@ -27,8 +27,8 @@ long_description    Nettle is a cryptographic library that is designed to fit \
 homepage            http://www.lysator.liu.se/~nisse/nettle/
 master_sites        gnu

-checksums           rmd160  898483350285468fe66b3fad4e7891583b08e15e \
-                    sha256  60df624f63b997c832cae29f48ab9ada99df815bcd60d231526b83e786b4b156
+checksums           rmd160  f5c9d950c1e55210fa1659b907378814c54312d3 \
+                    sha256  bc71ebd43435537d767799e414fce88e521b7278d48c860651216e1fc6555b40

 depends_lib         port:gmp

Attachments (1)

Portfile-nettle.diff (795 bytes) - added by Schamschula (Marius Schamschula) 11 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 11 years ago by larryv (Lawrence Velázquez)

Cc: exodusd@… removed
Owner: changed from macports-tickets@… to exodusd@…
Port: nettle added
Summary: Update to nettle is required in order to update GnuTLSnettle @2.6: update to 2.7.1
Type: defectupdate
Version: 2.1.3

Thanks for the ticket. In the future, please attach diffs instead of pasting them inline.

comment:2 Changed 11 years ago by devernay (Frédéric Devernay)

This also fixes the universal build (#38883), without modification

comment:3 in reply to:  description Changed 11 years ago by wustenfuchs@…

Apologies if this is not the correct forum for my query but I am having this problem whilst trying to install Gimp on a fresh installation of 10.6.8/2.2.0/Macbook 2.4GHz. I have tried altering the Portfile in opt/mports/trunk/dports/devel/nettle, both as outlined above (changed version number and checksums - do I have to change anything else?) and also according to that recommended by the error output (just changed checksums for 2.6.0).

Still get this:

ROMMEL:nettle Rommel$ sudo port -vs install nettle
Password:
--->  Computing dependencies for nettle.
--->  Fetching distfiles for nettle
--->  Verifying checksums for nettle
--->  Checksumming nettle-2.6.tar.gz
Error: Checksum (rmd160) mismatch for nettle-2.6.tar.gz
Portfile checksum: nettle-2.6.tar.gz rmd160 898483350285468fe66b3fad4e7891583b08e15e
Distfile checksum: nettle-2.6.tar.gz rmd160 ef7c2888aa78fca431e89d5e87867712c9acd5ab
Error: Checksum (sha256) mismatch for nettle-2.6.tar.gz
Portfile checksum: nettle-2.6.tar.gz sha256 60df624f63b997c832cae29f48ab9ada99df815bcd60d231526b83e786b4b156
Distfile checksum: nettle-2.6.tar.gz sha256 296acf2827828d983327eb83d6146b2cb0a3a22b3320e95c47c6ae798841f0af
The correct checksum line may be:
checksums           rmd160  ef7c2888aa78fca431e89d5e87867712c9acd5ab \
                    sha256  296acf2827828d983327eb83d6146b2cb0a3a22b3320e95c47c6ae798841f0af
Error: org.macports.checksum for port nettle returned: Unable to verify file checksums
Warning: targets not executed for nettle: org.macports.activate org.macports.checksum org.macports.extract org.macports.patch org.macports.configure org.macports.build org.macports.destroot org.macports.install
Please see the log file for port nettle for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nettle/nettle/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port nettle failed

Again, I am sorry for wasting anybody's time (and for the dodgy formatting) but I need some help...

Cheers.

Last edited 11 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:4 Changed 11 years ago by Schamschula (Marius Schamschula)

Please update. The patch works for me under mavericks. I've attached the diff to the Portfile.

Changed 11 years ago by Schamschula (Marius Schamschula)

Attachment: Portfile-nettle.diff added

comment:5 Changed 11 years ago by mf2k (Frank Schima)

Last edited 11 years ago by mf2k (Frank Schima) (previous) (diff)

comment:5 Changed 11 years ago by mf2k (Frank Schima)

Thanks. The revision line needs to be deleted as with all version increases.

comment:6 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Keywords: haspatch added
Resolution: fixed
Status: newclosed

r118536 (maintainer timeout)

Note: See TracTickets for help on using tickets.