From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.4 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 738FA1F55B for ; Sat, 30 May 2020 23:14:46 +0000 (UTC) Received: from localhost ([::1]:40688 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jfAgf-0003gs-Ep for normalperson@yhbt.net; Sat, 30 May 2020 19:14:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52156) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jfAgb-0003gk-OX for bug-gnulib@gnu.org; Sat, 30 May 2020 19:14:41 -0400 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.217]:14725) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jfAgZ-0001Fe-Ds for bug-gnulib@gnu.org; Sat, 30 May 2020 19:14:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1590880477; s=strato-dkim-0002; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=VBiC48VN5WJAhb4V5CURrWdUXeocU7K5RkHZzRlZiZw=; b=oUmHhuNWZzpif08EE511lCgXRPUPO8btn3WdsyZ9upjGqRMSffXfiT0i7guVYLi49C aS1wd2SaAUxZAi/9lZ2r2Q8LicDhWv6AGu/TMych9hkuO6c7TBubaf3AxLq0OG4Fdfli yC1bny1TgsXTCE3UsB+m2OIafzWG12wTiGJDvO5yvvr54HKdyzMKBnWSLxEBmK1U2MBo hPQVqRgQaN5oe4PQGAh8qPqiBcJgvyNlyyHqEPRJiNZtuHy0fjO9oK0Uyvc4SL4VggjS iqCEn6mS5YQuGAvrL+lgIGBkYdSfcytJlP/9iU2YrVV6zThIM+Z+m8LjSJ3MA6eM1lgp 97YA== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH+AHjwLuWOH6fzxfs=" X-RZG-CLASS-ID: mo00 Received: from bruno.haible.de by smtp.strato.de (RZmta 46.9.0 DYNA|AUTH) with ESMTPSA id j03713w4UNESBYj (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Sun, 31 May 2020 01:14:28 +0200 (CEST) From: Bruno Haible To: bug-gnulib@gnu.org Subject: fix list of crypto devices for NetBSD, OpenBSD Date: Sun, 31 May 2020 01:14:26 +0200 Message-ID: <1984733.bZ3PVrLcrO@omega> User-Agent: KMail/5.1.3 (Linux/4.4.0-177-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: <20200525193753.12395-1-eggert@cs.ucla.edu> References: <20200525193753.12395-1-eggert@cs.ucla.edu> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Received-SPF: none client-ip=81.169.146.217; envelope-from=bruno@clisp.org; helo=mo4-p00-ob.smtp.rzone.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/30 19:14:37 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paul Eggert Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" The list of crypto devices in m4/gc-random.m4 is from 2006. I get test failures of module 'getrandom' on current versions of NetBSD and OpenBSD (NetBSD 7.0 and 9.0, and OpenBSD 6.5, to be precise). These platforms have the quasi-standard /dev/random and /dev/urandom meanwhile. No more /dev/srandom exists. This patch fixes the test failures. 2020-05-30 Bruno Haible crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD. * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD. diff --git a/m4/gc-random.m4 b/m4/gc-random.m4 index 958c871..15751cb 100644 --- a/m4/gc-random.m4 +++ b/m4/gc-random.m4 @@ -1,4 +1,4 @@ -# gc-random.m4 serial 7 +# gc-random.m4 serial 8 dnl Copyright (C) 2005-2020 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -12,18 +12,12 @@ AC_DEFUN([gl_GC_RANDOM], AC_REQUIRE([AC_CANONICAL_HOST]) case "$host_os" in - *openbsd* | *mirbsd*) + *mirbsd*) NAME_OF_RANDOM_DEVICE="/dev/srandom" NAME_OF_PSEUDO_RANDOM_DEVICE="/dev/prandom" NAME_OF_NONCE_DEVICE="/dev/urandom" ;; - *netbsd*) - NAME_OF_RANDOM_DEVICE="/dev/srandom" - NAME_OF_PSEUDO_RANDOM_DEVICE="/dev/urandom" - NAME_OF_NONCE_DEVICE="/dev/urandom" - ;; - *solaris* | *irix* | *dec-osf* ) NAME_OF_RANDOM_DEVICE="/dev/random" NAME_OF_PSEUDO_RANDOM_DEVICE="/dev/random"