security/rhash: the port had been updated (+)

- Update RHash to version 1.4.2
- Revert one change in the configure script which
  breaks the build on FreeBSD (at least)

Reported by:	portscout
This commit is contained in:
Alexey Dokuchaev 2021-07-21 09:36:02 +00:00
parent 67dc4be0e1
commit 0898907884
3 changed files with 31 additions and 4 deletions

View File

@ -1,7 +1,7 @@
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
PORTNAME= rhash
PORTVERSION= 1.4.1
PORTVERSION= 1.4.2
CATEGORIES= security
MASTER_SITES= SF
DISTNAME= ${PORTNAME}-${PORTVERSION}-src

View File

@ -1,5 +1,5 @@
TIMESTAMP = 1610013545
SHA256 (rhash-1.4.1-src.tar.gz) = 430c812733e69b78f07ce30a05db69563450e41e217ae618507a4ce2e144a297
SIZE (rhash-1.4.1-src.tar.gz) = 413274
TIMESTAMP = 1626297459
SHA256 (rhash-1.4.2-src.tar.gz) = 600d00f5f91ef04194d50903d3c79412099328c42f28ff43a0bdb777b00bec62
SIZE (rhash-1.4.2-src.tar.gz) = 416853
SHA256 (rhash-1.3.2.patch) = 9aeeb0d89f0203429a6f5433e7dd5fd4b621b34bc42fb6d5d32ede6279c990b0
SIZE (rhash-1.3.2.patch) = 9021

View File

@ -0,0 +1,27 @@
--- configure.orig 2021-07-14 20:55:34 UTC
+++ configure
@@ -513,14 +513,9 @@ else
CC_TMP="$CC"
test -n "$OPT_CC" && OTHER_CC= || OTHER_CC="gcc cc"
for CC in "$CC_TMP" $OTHER_CC; do
- cc_name_tmp=
if run_cmd "$CC -v"; then
cc_name_tmp=$($CC -v 2>&1 | tail -n 1 | cut -d ' ' -f 1)
- elif run_cmd "$CC --version"; then
- cc_name_tmp=$($CC --version 2>&1 | head -n 1 | cut -d ' ' -f 1)
- fi
- if test -n "${cc_name_tmp}"; then
- if echo "$cc_name_tmp" | grep -q "gcc"; then
+ if test "$cc_name_tmp" = "gcc"; then
cc_name=$cc_name_tmp
start_check "$CC version"
cc_vendor=gnu
@@ -544,7 +539,7 @@ else
finish_check "$cc_name $cc_version"
break
fi
- if echo "$cc_name_tmp" | grep -q "clang"; then
+ if $CC -v 2>&1 | grep -q "clang"; then
start_check "$CC version"
cc_vendor=clang
cc_version=$($CC -dumpversion 2>&1)