From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Matt Wette Newsgroups: gmane.lisp.guile.bugs Subject: bug#71980: [3.0.10] posix.test uses depcrecated tmpnam Date: Sun, 7 Jul 2024 09:27:14 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------0YcNRe44ixMZ2bWewisrjwAt" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20264"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird To: 71980@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Sun Jul 07 18:28:22 2024 Return-path: Envelope-to: guile-bugs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sQUkQ-00050E-K8 for guile-bugs@m.gmane-mx.org; Sun, 07 Jul 2024 18:28:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sQUk7-0003QX-GN; Sun, 07 Jul 2024 12:28:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sQUk3-0003Py-C1 for bug-guile@gnu.org; Sun, 07 Jul 2024 12:28:00 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sQUk2-0001Iw-RG for bug-guile@gnu.org; Sun, 07 Jul 2024 12:27:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sQUk6-00046I-Kw for bug-guile@gnu.org; Sun, 07 Jul 2024 12:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Matt Wette Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sun, 07 Jul 2024 16:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71980 X-GNU-PR-Package: guile X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.172036964815702 (code B ref -1); Sun, 07 Jul 2024 16:28:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Jul 2024 16:27:28 +0000 Original-Received: from localhost ([127.0.0.1]:49025 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sQUjY-00045C-6s for submit@debbugs.gnu.org; Sun, 07 Jul 2024 12:27:28 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:55842) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sQUjV-000454-Kc for submit@debbugs.gnu.org; Sun, 07 Jul 2024 12:27:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sQUjQ-0003A7-Rb for bug-guile@gnu.org; Sun, 07 Jul 2024 12:27:20 -0400 Original-Received: from mail-oi1-x22a.google.com ([2607:f8b0:4864:20::22a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sQUjP-0001D3-78 for bug-guile@gnu.org; Sun, 07 Jul 2024 12:27:20 -0400 Original-Received: by mail-oi1-x22a.google.com with SMTP id 5614622812f47-3c9cc66c649so1686094b6e.1 for ; Sun, 07 Jul 2024 09:27:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720369637; x=1720974437; darn=gnu.org; h=subject:from:to:content-language:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=MLR9FGPehBsOCvSsqCwYpSH19e9Ju7heHbyJnwuCLZc=; b=df332eta4VpH+d/mI8mrbjyF/WXBW46CiQG8JTK094h+Qt3P8QYsmZlvcc8Kxs9wR7 e6c2JnCvY5Pkfdb3DCjJ94elIQQomRkHoK1yA+3sBnoB6ARCQvTdwpvrfqK46NReBp5c BIps31k5HMFHTo7ax3fJjQ3YN5o00ylMpw8TZ64rPgHuVsZ5EGHUCQVHssLlPhI5iLF9 +4In6Cx5CR0r1VzmwG5tzfDkXMURO+gHOc81XGWUG68m9XipzoUiD5zKP+aQ//DMzOin yMCVZeRqF2g1H1pCa2KrvZ/j6IEoDcpqamOfnuzdFigEURYJCluePp4ZrLdazoQeKDl3 OtrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720369637; x=1720974437; h=subject:from:to:content-language:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MLR9FGPehBsOCvSsqCwYpSH19e9Ju7heHbyJnwuCLZc=; b=b27lCkn9Pz8kMAUf670bY8AOufkRqXz7kRG0nYP2sUlzInLM7n/Af+pf+/y0Kar6Er nvpC7V/Sr2nduZEdl59hqY2ABis8G309vK/Xf03enV9ZzaDZi+WFapsZEycMaO8pLoZA 9alXJancsS2dhcPJMvwiW6VOR5/sz6qjNEvADc9Mvb79XTK8oALiPLCyRWUtc5nvy9O9 VX56OIHWRDroM0O2WNPrSKDnAxhRiSp7xh7xNORB42kkXJ4BKO/TCBe4u8DN6jZaoE+t w+H80StmxDWNKdxIYnfOyw7GGvy3Fhl48mSPMvtzqaglqn1QJfUgAePJ15+j/5b3t7OG kCEA== X-Gm-Message-State: AOJu0Yzeg/Sy5GhhG/vqbOqOo3KyOz8cx5QjrSAgCicwigXkw1Oov9Aq rcC/IFSSNsYBg/I4cfkPNfLLrhIEdGsqV9vIBe19MxnwBuCOzm9VJ62eVQ== X-Google-Smtp-Source: AGHT+IFG+9xSSSt0CLmr9m5+/7dwq4mXEPjyxEHNDKxsiOFcKV1c3xZwOILbWCSJFFALj0RzVMzrGw== X-Received: by 2002:a05:6808:1812:b0:3d2:29d6:fe82 with SMTP id 5614622812f47-3d914eac374mr10324486b6e.56.1720369637308; Sun, 07 Jul 2024 09:27:17 -0700 (PDT) Original-Received: from [192.168.2.155] (64-52-138-37.championbroadband.com. [64.52.138.37]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-70b0193744bsm6349919b3a.163.2024.07.07.09.27.15 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 07 Jul 2024 09:27:16 -0700 (PDT) Content-Language: en-US Received-SPF: pass client-ip=2607:f8b0:4864:20::22a; envelope-from=matt.wette@gmail.com; helo=mail-oi1-x22a.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.bugs:10882 Archived-At: This is a multi-part message in MIME format. --------------0YcNRe44ixMZ2bWewisrjwAt Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit With `--disable-tmpnam'  argument to configure, posix.test fails: missing `tmpnam`. patch attached --- test-suite/tests/posix.test-orig    2024-07-03 15:45:16.352132881 -0700 +++ test-suite/tests/posix.test    2024-07-07 09:21:53.342855356 -0700 @@ -361,20 +361,21 @@        (status:exit-val (system* "something-that-does-not-exist"))))    (pass-if-equal "https://bugs.gnu.org/52835" -      "bong\n" -    (let ((file (tmpnam))) +    "bong\n" +    (let ((port (mkstemp "T-XXXXXX")))        ;; Redirect stdout and stderr to FILE.        (define status -        (call-with-output-file file -          (lambda (port) -            (with-output-to-port port +        (with-output-to-port port +          (lambda () +            (with-error-to-port port                (lambda () -                (with-error-to-port port -                  (lambda () -                    (system* "sh" "-c" "echo bong >&2")))))))) +                (system* "sh" "-c" "echo bong >&2"))))))        (and (zero? (status:exit-val status)) -           (call-with-input-file file get-string-all)))) +           (zero? (seek port 0 SEEK_SET)) +           (let ((contents (get-string-all port))) +             (close-port port) +             contents))))    (pass-if-equal "https://bugs.gnu.org/63024"        0 --------------0YcNRe44ixMZ2bWewisrjwAt Content-Type: text/plain; charset=UTF-8; name="PATCH" Content-Disposition: attachment; filename="PATCH" Content-Transfer-Encoding: base64 LS0tIHRlc3Qtc3VpdGUvdGVzdHMvcG9zaXgudGVzdC1vcmlnCTIwMjQtMDctMDMgMTU6NDU6 MTYuMzUyMTMyODgxIC0wNzAwCisrKyB0ZXN0LXN1aXRlL3Rlc3RzL3Bvc2l4LnRlc3QJMjAy NC0wNy0wNyAwOToyMTo1My4zNDI4NTUzNTYgLTA3MDAKQEAgLTM2MSwyMCArMzYxLDIxIEBA CiAgICAgICAoc3RhdHVzOmV4aXQtdmFsIChzeXN0ZW0qICJzb21ldGhpbmctdGhhdC1kb2Vz LW5vdC1leGlzdCIpKSkpCiAKICAgKHBhc3MtaWYtZXF1YWwgImh0dHBzOi8vYnVncy5nbnUu b3JnLzUyODM1IgotICAgICAgImJvbmdcbiIKLSAgICAobGV0ICgoZmlsZSAodG1wbmFtKSkp CisgICAgImJvbmdcbiIKKyAgICAobGV0ICgocG9ydCAobWtzdGVtcCAiVC1YWFhYWFgiKSkp CiAgICAgICA7OyBSZWRpcmVjdCBzdGRvdXQgYW5kIHN0ZGVyciB0byBGSUxFLgogICAgICAg KGRlZmluZSBzdGF0dXMKLSAgICAgICAgKGNhbGwtd2l0aC1vdXRwdXQtZmlsZSBmaWxlCi0g ICAgICAgICAgKGxhbWJkYSAocG9ydCkKLSAgICAgICAgICAgICh3aXRoLW91dHB1dC10by1w b3J0IHBvcnQKKyAgICAgICAgKHdpdGgtb3V0cHV0LXRvLXBvcnQgcG9ydAorICAgICAgICAg IChsYW1iZGEgKCkKKyAgICAgICAgICAgICh3aXRoLWVycm9yLXRvLXBvcnQgcG9ydAogICAg ICAgICAgICAgICAobGFtYmRhICgpCi0gICAgICAgICAgICAgICAgKHdpdGgtZXJyb3ItdG8t cG9ydCBwb3J0Ci0gICAgICAgICAgICAgICAgICAobGFtYmRhICgpCi0gICAgICAgICAgICAg ICAgICAgIChzeXN0ZW0qICJzaCIgIi1jIiAiZWNobyBib25nID4mMiIpKSkpKSkpKQorICAg ICAgICAgICAgICAgIChzeXN0ZW0qICJzaCIgIi1jIiAiZWNobyBib25nID4mMiIpKSkpKSkK IAogICAgICAgKGFuZCAoemVybz8gKHN0YXR1czpleGl0LXZhbCBzdGF0dXMpKQotICAgICAg ICAgICAoY2FsbC13aXRoLWlucHV0LWZpbGUgZmlsZSBnZXQtc3RyaW5nLWFsbCkpKSkKKyAg ICAgICAgICAgKHplcm8/IChzZWVrIHBvcnQgMCBTRUVLX1NFVCkpCisgICAgICAgICAgIChs ZXQgKChjb250ZW50cyAoZ2V0LXN0cmluZy1hbGwgcG9ydCkpKQorICAgICAgICAgICAgIChj bG9zZS1wb3J0IHBvcnQpCisgICAgICAgICAgICAgY29udGVudHMpKSkpCiAKICAgKHBhc3Mt aWYtZXF1YWwgImh0dHBzOi8vYnVncy5nbnUub3JnLzYzMDI0IgogICAgICAgMAo= --------------0YcNRe44ixMZ2bWewisrjwAt--