git: e0acbd158ec9 - main - security/rhash: update to 1.4.4 and fix build with lld 17
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 20 Sep 2023 20:13:10 UTC
The branch main has been updated by dim:
URL: https://cgit.FreeBSD.org/ports/commit/?id=e0acbd158ec92f50ecbf8932a57b9d7587564138
commit e0acbd158ec92f50ecbf8932a57b9d7587564138
Author: Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2023-09-14 08:45:45 +0000
Commit: Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2023-09-20 20:12:31 +0000
security/rhash: update to 1.4.4 and fix build with lld 17
With lld 17, which has become more strict about undefined symbols in
version scripts, security/rhash fails to link its librhash.so:
ld: error: version script assignment of 'global' to symbol 'rhash_wfile' failed: symbol not defined
This has been fixed in https://github.com/rhash/RHash/commit/e4b8b92,
which was included in rhash 1.4.4, so update the port to that version.
Unfortunately this also requires a bunch of follow-up build fixes:
* https://github.com/rhash/RHash/commit/c804982: fix assignment
* https://github.com/rhash/RHash/commit/9ef90b9: build on *BSD
* https://github.com/rhash/RHash/commit/b8c91ea: build on Unix
PR: 273775
Approved by: danfe (maintainer)
MFH: 2023Q3
---
security/rhash/Makefile | 7 ++++++-
security/rhash/distinfo | 12 +++++++++---
security/rhash/pkg-plist | 3 ++-
3 files changed, 17 insertions(+), 5 deletions(-)
diff --git a/security/rhash/Makefile b/security/rhash/Makefile
index 0b598b7921a5..6c5e13d6f33f 100644
--- a/security/rhash/Makefile
+++ b/security/rhash/Makefile
@@ -1,9 +1,14 @@
PORTNAME= rhash
-PORTVERSION= 1.4.3
+PORTVERSION= 1.4.4
CATEGORIES= security
MASTER_SITES= SF
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
+PATCH_SITES= https://github.com/rhash/RHash/commit/
+PATCHFILES+= c804982d1b24c6533118b3068d2cfdca685076f3.patch:-p1
+PATCHFILES+= 9ef90b958b7ae50aeeb5c269468034d73d6e2efe.patch:-p1
+PATCHFILES+= b8c91ea6551e99e10352386cd46ea26973bb4a4d.patch:-p1
+
MAINTAINER= danfe@FreeBSD.org
COMMENT= Utility and library for computing and checking of file hashes
WWW= http://rhash.sourceforge.net/
diff --git a/security/rhash/distinfo b/security/rhash/distinfo
index 391dc48921f4..e35781cc9017 100644
--- a/security/rhash/distinfo
+++ b/security/rhash/distinfo
@@ -1,3 +1,9 @@
-TIMESTAMP = 1655392419
-SHA256 (rhash-1.4.3-src.tar.gz) = 1e40fa66966306920f043866cbe8612f4b939b033ba5e2708c3f41be257c8a3e
-SIZE (rhash-1.4.3-src.tar.gz) = 429290
+TIMESTAMP = 1694680883
+SHA256 (rhash-1.4.4-src.tar.gz) = 8e7d1a8ccac0143c8fe9b68ebac67d485df119ea17a613f4038cda52f84ef52a
+SIZE (rhash-1.4.4-src.tar.gz) = 435691
+SHA256 (c804982d1b24c6533118b3068d2cfdca685076f3.patch) = 96c7070da5a1eb89a7f241db5198730117fa87a58014a6a49675237da09fc1cb
+SIZE (c804982d1b24c6533118b3068d2cfdca685076f3.patch) = 834
+SHA256 (9ef90b958b7ae50aeeb5c269468034d73d6e2efe.patch) = ce8ac2e2b675340a9ad0fd6b49a1c1e537be97047f2840fde557b16b87e8588e
+SIZE (9ef90b958b7ae50aeeb5c269468034d73d6e2efe.patch) = 2195
+SHA256 (b8c91ea6551e99e10352386cd46ea26973bb4a4d.patch) = b6df1f7f8648675fb8a1ce31ee1dd017519681c7c2d362a5f0fd7629b237b45d
+SIZE (b8c91ea6551e99e10352386cd46ea26973bb4a4d.patch) = 834
diff --git a/security/rhash/pkg-plist b/security/rhash/pkg-plist
index 28817970f4fe..0df03372730f 100644
--- a/security/rhash/pkg-plist
+++ b/security/rhash/pkg-plist
@@ -15,7 +15,8 @@ include/rhash.h
include/rhash_torrent.h
lib/librhash.a
lib/librhash.so
-lib/librhash.so.0
+lib/librhash.so.1
+lib/librhash.so.1.4.4
libdata/pkgconfig/librhash.pc
man/man1/ed2k-link.1.gz
man/man1/edonr256-hash.1.gz