Skip to content

Commit

Permalink
security/rhash: update to 1.4.4 and fix build with lld 17
Browse files Browse the repository at this point in the history
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 rhash/RHash@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:
* rhash/RHash@c804982: fix assignment
* rhash/RHash@9ef90b9: build on *BSD
* rhash/RHash@b8c91ea: build on Unix

PR:		273775
Approved by:	danfe (maintainer)
MFH:		2023Q3
  • Loading branch information
DimitryAndric committed Sep 20, 2023
1 parent 6b6b4e9 commit e0acbd1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
7 changes: 6 additions & 1 deletion 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/
Expand Down
12 changes: 9 additions & 3 deletions 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
3 changes: 2 additions & 1 deletion security/rhash/pkg-plist
Expand Up @@ -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
Expand Down

0 comments on commit e0acbd1

Please sign in to comment.