Sun Jan 27 22:50:55 2019 UTC ()
Update digest package to version 20190127

Remove some gcc-isms in a macro in keccak.c, provided by Erno Palonheimo
in PR pkg/53771


(agc)
diff -r1.22 -r1.23 pkgsrc/pkgtools/digest/files/configure
diff -r1.20 -r1.21 pkgsrc/pkgtools/digest/files/configure.ac
diff -r1.2 -r1.3 pkgsrc/pkgtools/digest/files/keccak.c

cvs diff -r1.22 -r1.23 pkgsrc/pkgtools/digest/files/configure (expand / switch to unified diff)

--- pkgsrc/pkgtools/digest/files/configure 2018/10/06 14:32:45 1.22
+++ pkgsrc/pkgtools/digest/files/configure 2019/01/27 22:50:55 1.23
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1#! /bin/sh 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles. 2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for nbsd-digest 20160304. 3# Generated by GNU Autoconf 2.69 for nbsd-digest 20190127.
4# 4#
5# Report bugs to <agc@netbsd.org>. 5# Report bugs to <agc@netbsd.org>.
6# 6#
7# 7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9# 9#
10# 10#
11# This configure script is free software; the Free Software Foundation 11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it. 12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ## 13## -------------------- ##
14## M4sh Initialization. ## 14## M4sh Initialization. ##
15## -------------------- ## 15## -------------------- ##
16 16
@@ -570,28 +570,28 @@ ac_hostname=`(hostname || uname -n) 2>/d @@ -570,28 +570,28 @@ ac_hostname=`(hostname || uname -n) 2>/d
570# 570#
571ac_default_prefix=/usr/local 571ac_default_prefix=/usr/local
572ac_clean_files= 572ac_clean_files=
573ac_config_libobj_dir=. 573ac_config_libobj_dir=.
574LIBOBJS= 574LIBOBJS=
575cross_compiling=no 575cross_compiling=no
576subdirs= 576subdirs=
577MFLAGS= 577MFLAGS=
578MAKEFLAGS= 578MAKEFLAGS=
579 579
580# Identity of this package. 580# Identity of this package.
581PACKAGE_NAME='nbsd-digest' 581PACKAGE_NAME='nbsd-digest'
582PACKAGE_TARNAME='nbsd-digest' 582PACKAGE_TARNAME='nbsd-digest'
583PACKAGE_VERSION='20180917' 583PACKAGE_VERSION='20190127'
584PACKAGE_STRING='nbsd-digest 20160304' 584PACKAGE_STRING='nbsd-digest 20190127'
585PACKAGE_BUGREPORT='agc@netbsd.org' 585PACKAGE_BUGREPORT='agc@netbsd.org'
586PACKAGE_URL='' 586PACKAGE_URL=''
587 587
588ac_unique_file="digest.c" 588ac_unique_file="digest.c"
589# Factoring default headers for most tests. 589# Factoring default headers for most tests.
590ac_includes_default="\ 590ac_includes_default="\
591#include <stdio.h> 591#include <stdio.h>
592#ifdef HAVE_SYS_TYPES_H 592#ifdef HAVE_SYS_TYPES_H
593# include <sys/types.h> 593# include <sys/types.h>
594#endif 594#endif
595#ifdef HAVE_SYS_STAT_H 595#ifdef HAVE_SYS_STAT_H
596# include <sys/stat.h> 596# include <sys/stat.h>
597#endif 597#endif
@@ -1232,27 +1232,27 @@ for ac_var in $ac_precious_vars; do @@ -1232,27 +1232,27 @@ for ac_var in $ac_precious_vars; do
1232 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1232 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1233 eval ac_env_${ac_var}_value=\$${ac_var} 1233 eval ac_env_${ac_var}_value=\$${ac_var}
1234 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1234 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1235 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1235 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1236done 1236done
1237 1237
1238# 1238#
1239# Report the --help message. 1239# Report the --help message.
1240# 1240#
1241if test "$ac_init_help" = "long"; then 1241if test "$ac_init_help" = "long"; then
1242 # Omit some internal or obsolete options to make the list less imposing. 1242 # Omit some internal or obsolete options to make the list less imposing.
1243 # This message is too long to be a string in the A/UX 3.1 sh. 1243 # This message is too long to be a string in the A/UX 3.1 sh.
1244 cat <<_ACEOF 1244 cat <<_ACEOF
1245\`configure' configures nbsd-digest 20160304 to adapt to many kinds of systems. 1245\`configure' configures nbsd-digest 20190127 to adapt to many kinds of systems.
1246 1246
1247Usage: $0 [OPTION]... [VAR=VALUE]... 1247Usage: $0 [OPTION]... [VAR=VALUE]...
1248 1248
1249To assign environment variables (e.g., CC, CFLAGS...), specify them as 1249To assign environment variables (e.g., CC, CFLAGS...), specify them as
1250VAR=VALUE. See below for descriptions of some of the useful variables. 1250VAR=VALUE. See below for descriptions of some of the useful variables.
1251 1251
1252Defaults for the options are specified in brackets. 1252Defaults for the options are specified in brackets.
1253 1253
1254Configuration: 1254Configuration:
1255 -h, --help display this help and exit 1255 -h, --help display this help and exit
1256 --help=short display options specific to this package 1256 --help=short display options specific to this package
1257 --help=recursive display the short help of all the included packages 1257 --help=recursive display the short help of all the included packages
1258 -V, --version display version information and exit 1258 -V, --version display version information and exit
@@ -1302,27 +1302,27 @@ _ACEOF @@ -1302,27 +1302,27 @@ _ACEOF
1302Program names: 1302Program names:
1303 --program-prefix=PREFIX prepend PREFIX to installed program names 1303 --program-prefix=PREFIX prepend PREFIX to installed program names
1304 --program-suffix=SUFFIX append SUFFIX to installed program names 1304 --program-suffix=SUFFIX append SUFFIX to installed program names
1305 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1305 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1306 1306
1307System types: 1307System types:
1308 --build=BUILD configure for building on BUILD [guessed] 1308 --build=BUILD configure for building on BUILD [guessed]
1309 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1309 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1310_ACEOF 1310_ACEOF
1311fi 1311fi
1312 1312
1313if test -n "$ac_init_help"; then 1313if test -n "$ac_init_help"; then
1314 case $ac_init_help in 1314 case $ac_init_help in
1315 short | recursive ) echo "Configuration of nbsd-digest 20160304:";; 1315 short | recursive ) echo "Configuration of nbsd-digest 20190127:";;
1316 esac 1316 esac
1317 cat <<\_ACEOF 1317 cat <<\_ACEOF
1318 1318
1319Some influential environment variables: 1319Some influential environment variables:
1320 CC C compiler command 1320 CC C compiler command
1321 CFLAGS C compiler flags 1321 CFLAGS C compiler flags
1322 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1322 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1323 nonstandard directory <lib dir> 1323 nonstandard directory <lib dir>
1324 LIBS libraries to pass to the linker, e.g. -l<library> 1324 LIBS libraries to pass to the linker, e.g. -l<library>
1325 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1325 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1326 you have headers in a nonstandard directory <include dir> 1326 you have headers in a nonstandard directory <include dir>
1327 CPP C preprocessor 1327 CPP C preprocessor
1328 1328
@@ -1382,27 +1382,27 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_ @@ -1382,27 +1382,27 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_
1382 elif test -f "$ac_srcdir/configure"; then 1382 elif test -f "$ac_srcdir/configure"; then
1383 echo && 1383 echo &&
1384 $SHELL "$ac_srcdir/configure" --help=recursive 1384 $SHELL "$ac_srcdir/configure" --help=recursive
1385 else 1385 else
1386 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1386 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1387 fi || ac_status=$? 1387 fi || ac_status=$?
1388 cd "$ac_pwd" || { ac_status=$?; break; } 1388 cd "$ac_pwd" || { ac_status=$?; break; }
1389 done 1389 done
1390fi 1390fi
1391 1391
1392test -n "$ac_init_help" && exit $ac_status 1392test -n "$ac_init_help" && exit $ac_status
1393if $ac_init_version; then 1393if $ac_init_version; then
1394 cat <<\_ACEOF 1394 cat <<\_ACEOF
1395nbsd-digest configure 20160304 1395nbsd-digest configure 20190127
1396generated by GNU Autoconf 2.69 1396generated by GNU Autoconf 2.69
1397 1397
1398Copyright (C) 2012 Free Software Foundation, Inc. 1398Copyright (C) 2012 Free Software Foundation, Inc.
1399This configure script is free software; the Free Software Foundation 1399This configure script is free software; the Free Software Foundation
1400gives unlimited permission to copy, distribute and modify it. 1400gives unlimited permission to copy, distribute and modify it.
1401_ACEOF 1401_ACEOF
1402 exit 1402 exit
1403fi 1403fi
1404 1404
1405## ------------------------ ## 1405## ------------------------ ##
1406## Autoconf initialization. ## 1406## Autoconf initialization. ##
1407## ------------------------ ## 1407## ------------------------ ##
1408 1408
@@ -1927,27 +1927,27 @@ fi @@ -1927,27 +1927,27 @@ fi
1927rm -f core conftest.err conftest.$ac_objext \ 1927rm -f core conftest.err conftest.$ac_objext \
1928 conftest$ac_exeext conftest.$ac_ext 1928 conftest$ac_exeext conftest.$ac_ext
1929fi 1929fi
1930eval ac_res=\$$3 1930eval ac_res=\$$3
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932$as_echo "$ac_res" >&6; } 1932$as_echo "$ac_res" >&6; }
1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934 1934
1935} # ac_fn_c_check_func 1935} # ac_fn_c_check_func
1936cat >config.log <<_ACEOF 1936cat >config.log <<_ACEOF
1937This file contains any messages produced by compilers while 1937This file contains any messages produced by compilers while
1938running configure, to aid debugging if configure makes a mistake. 1938running configure, to aid debugging if configure makes a mistake.
1939 1939
1940It was created by nbsd-digest $as_me 20160304, which was 1940It was created by nbsd-digest $as_me 20190127, which was
1941generated by GNU Autoconf 2.69. Invocation command line was 1941generated by GNU Autoconf 2.69. Invocation command line was
1942 1942
1943 $ $0 $@ 1943 $ $0 $@
1944 1944
1945_ACEOF 1945_ACEOF
1946exec 5>>config.log 1946exec 5>>config.log
1947{ 1947{
1948cat <<_ASUNAME 1948cat <<_ASUNAME
1949## --------- ## 1949## --------- ##
1950## Platform. ## 1950## Platform. ##
1951## --------- ## 1951## --------- ##
1952 1952
1953hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1953hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
@@ -4697,27 +4697,27 @@ as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr @@ -4697,27 +4697,27 @@ as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr
4697 4697
4698exec 6>&1 4698exec 6>&1
4699## ----------------------------------- ## 4699## ----------------------------------- ##
4700## Main body of $CONFIG_STATUS script. ## 4700## Main body of $CONFIG_STATUS script. ##
4701## ----------------------------------- ## 4701## ----------------------------------- ##
4702_ASEOF 4702_ASEOF
4703test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 4703test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4704 4704
4705cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4705cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4706# Save the log message, to keep $0 and so on meaningful, and to 4706# Save the log message, to keep $0 and so on meaningful, and to
4707# report actual input values of CONFIG_FILES etc. instead of their 4707# report actual input values of CONFIG_FILES etc. instead of their
4708# values after options handling. 4708# values after options handling.
4709ac_log=" 4709ac_log="
4710This file was extended by nbsd-digest $as_me 20160304, which was 4710This file was extended by nbsd-digest $as_me 20190127, which was
4711generated by GNU Autoconf 2.69. Invocation command line was 4711generated by GNU Autoconf 2.69. Invocation command line was
4712 4712
4713 CONFIG_FILES = $CONFIG_FILES 4713 CONFIG_FILES = $CONFIG_FILES
4714 CONFIG_HEADERS = $CONFIG_HEADERS 4714 CONFIG_HEADERS = $CONFIG_HEADERS
4715 CONFIG_LINKS = $CONFIG_LINKS 4715 CONFIG_LINKS = $CONFIG_LINKS
4716 CONFIG_COMMANDS = $CONFIG_COMMANDS 4716 CONFIG_COMMANDS = $CONFIG_COMMANDS
4717 $ $0 $@ 4717 $ $0 $@
4718 4718
4719on `(hostname || uname -n) 2>/dev/null | sed 1q` 4719on `(hostname || uname -n) 2>/dev/null | sed 1q`
4720" 4720"
4721 4721
4722_ACEOF 4722_ACEOF
4723 4723
@@ -4759,27 +4759,27 @@ Usage: $0 [OPTION]... [TAG]... @@ -4759,27 +4759,27 @@ Usage: $0 [OPTION]... [TAG]...
4759 4759
4760Configuration files: 4760Configuration files:
4761$config_files 4761$config_files
4762 4762
4763Configuration headers: 4763Configuration headers:
4764$config_headers 4764$config_headers
4765 4765
4766Report bugs to <agc@netbsd.org>." 4766Report bugs to <agc@netbsd.org>."
4767 4767
4768_ACEOF 4768_ACEOF
4769cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4769cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4770ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 4770ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4771ac_cs_version="\\ 4771ac_cs_version="\\
4772nbsd-digest config.status 20160304 4772nbsd-digest config.status 20190127
4773configured by $0, generated by GNU Autoconf 2.69, 4773configured by $0, generated by GNU Autoconf 2.69,
4774 with options \\"\$ac_cs_config\\" 4774 with options \\"\$ac_cs_config\\"
4775 4775
4776Copyright (C) 2012 Free Software Foundation, Inc. 4776Copyright (C) 2012 Free Software Foundation, Inc.
4777This config.status script is free software; the Free Software Foundation 4777This config.status script is free software; the Free Software Foundation
4778gives unlimited permission to copy, distribute and modify it." 4778gives unlimited permission to copy, distribute and modify it."
4779 4779
4780ac_pwd='$ac_pwd' 4780ac_pwd='$ac_pwd'
4781srcdir='$srcdir' 4781srcdir='$srcdir'
4782INSTALL='$INSTALL' 4782INSTALL='$INSTALL'
4783AWK='$AWK' 4783AWK='$AWK'
4784test -n "\$AWK" || AWK=awk 4784test -n "\$AWK" || AWK=awk
4785_ACEOF 4785_ACEOF

cvs diff -r1.20 -r1.21 pkgsrc/pkgtools/digest/files/configure.ac (expand / switch to unified diff)

--- pkgsrc/pkgtools/digest/files/configure.ac 2016/03/04 23:09:25 1.20
+++ pkgsrc/pkgtools/digest/files/configure.ac 2019/01/27 22:50:55 1.21
@@ -1,17 +1,17 @@ @@ -1,17 +1,17 @@
1dnl $Id: configure.ac,v 1.20 2016/03/04 23:09:25 agc Exp $ 1dnl $Id: configure.ac,v 1.21 2019/01/27 22:50:55 agc Exp $
2dnl Process this file with autoconf to produce a configure script. 2dnl Process this file with autoconf to produce a configure script.
3AC_PREREQ(2.57) 3AC_PREREQ(2.57)
4AC_INIT([nbsd-digest],[20160304],[agc@netbsd.org]) 4AC_INIT([nbsd-digest],[20190127],[agc@netbsd.org])
5AC_CONFIG_SRCDIR([digest.c]) 5AC_CONFIG_SRCDIR([digest.c])
6AC_CONFIG_HEADER(config.h) 6AC_CONFIG_HEADER(config.h)
7AC_ARG_PROGRAM 7AC_ARG_PROGRAM
8 8
9AC_CANONICAL_HOST 9AC_CANONICAL_HOST
10CANONICAL_HOST=$host 10CANONICAL_HOST=$host
11AC_SUBST(CANONICAL_HOST) 11AC_SUBST(CANONICAL_HOST)
12 12
13# Checks for programs. 13# Checks for programs.
14AC_PROG_MAKE_SET 14AC_PROG_MAKE_SET
15AC_PROG_AWK 15AC_PROG_AWK
16AC_PROG_CC 16AC_PROG_CC
17AC_PROG_INSTALL 17AC_PROG_INSTALL

cvs diff -r1.2 -r1.3 pkgsrc/pkgtools/digest/files/keccak.c (expand / switch to unified diff)

--- pkgsrc/pkgtools/digest/files/keccak.c 2016/03/04 23:09:25 1.2
+++ pkgsrc/pkgtools/digest/files/keccak.c 2019/01/27 22:50:55 1.3
@@ -22,31 +22,31 @@ @@ -22,31 +22,31 @@
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE. 24 * SUCH DAMAGE.
25 */ 25 */
26 26
27#include <stdint.h> 27#include <stdint.h>
28 28
29#include "keccak.h" 29#include "keccak.h"
30 30
31#define secret /* can't use in variable-time operations, should zero */ 31#define secret /* can't use in variable-time operations, should zero */
32 32
33#define FOR5(X, STMT) do \ 33#define FOR5(X, STMT) do \
34{ \ 34{ \
35 (X) = 0; (STMT); \ 35 (X) = 0; {STMT}; \
36 (X) = 1; (STMT); \ 36 (X) = 1; {STMT}; \
37 (X) = 2; (STMT); \ 37 (X) = 2; {STMT}; \
38 (X) = 3; (STMT); \ 38 (X) = 3; {STMT}; \
39 (X) = 4; (STMT); \ 39 (X) = 4; {STMT}; \
40} while (0) 40} while (0)
41 41
42static inline secret uint64_t 42static inline secret uint64_t
43rol64(secret uint64_t v, unsigned c) 43rol64(secret uint64_t v, unsigned c)
44{ 44{
45 45
46 return ((v << c) | (v >> (64 - c))); 46 return ((v << c) | (v >> (64 - c)));
47} 47}
48 48
49static inline void 49static inline void
50keccakf1600_theta(secret uint64_t A[25]) 50keccakf1600_theta(secret uint64_t A[25])
51{ 51{
52 secret uint64_t C0, C1, C2, C3, C4; 52 secret uint64_t C0, C1, C2, C3, C4;