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.devel Subject: [3.0.10] posix.test uses depcrecated tmpnam Date: Sun, 7 Jul 2024 09:34:15 -0700 Message-ID: <4fc4d471-d17f-4f17-8646-99d69fae74b1@gmail.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------WymxavTS5IZPLfQpfD0051lo" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9890"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Sun Jul 07 18:34:40 2024 Return-path: Envelope-to: guile-devel@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 1sQUqV-0002PS-Tv for guile-devel@m.gmane-mx.org; Sun, 07 Jul 2024 18:34:40 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sQUqF-0005NA-N0; Sun, 07 Jul 2024 12:34:23 -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 1sQUqE-0005Mk-3Q for guile-devel@gnu.org; Sun, 07 Jul 2024 12:34:22 -0400 Original-Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sQUqC-0002C1-Ej for guile-devel@gnu.org; Sun, 07 Jul 2024 12:34:21 -0400 Original-Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1fa9ecfb321so17769835ad.0 for ; Sun, 07 Jul 2024 09:34:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720370057; x=1720974857; darn=gnu.org; h=in-reply-to:from:to:references:content-language:subject:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=lwoP8PvzhCbcn0/M6phVXIwPgDuaDwtRjuKNQYLboic=; b=S0q5tj+QTVa4/8ahOR1ZQBNlvq9bxDZRJ257aJDxiOhQi0n7kCA2ztPMkKmKa4w30J BZ3KFWknc0yuhY088ivzQ8r2lrbKtYsZHsbqQvFGqJ9zpxX/GYw43qu0nqhWw08RER/X 0cnowdFzOhfbMTSDoXKav43MZY7CMkSIlMzXhhIvXaLtLX3yItL3CFjKHEgx6ZNP9H4y QNBqZcYsgdt4whveY2KtvZrEtg2wEnISAk92d78tYAMgjGbFIUwRzj2vKAmwZNu78+GQ 4rZ6RWuxPR3B6ef1dt6SX50hfEWUeaXiAmrRNKp13FfmORp4Y5If+HxpQwhWXRxV0BH8 Yx5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720370057; x=1720974857; h=in-reply-to:from:to:references:content-language:subject:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=lwoP8PvzhCbcn0/M6phVXIwPgDuaDwtRjuKNQYLboic=; b=KOMPaHc+KwQ7y9gJAo/8gFvt+5IXFsojBrRNDRRWKqjQeQzM/Lj1zwsPAuKLRnuJ3C gU5DEBV0K+OKJOl/x0JRr5IXujx5zjSVXe2/Sy/RPfpZdU5KU6ZXaSeIOyB3RFT0ohCk UcS9A0f1xgMN29Pg8DPmgiVSbWoqJYuZ/UGMBF8NzCMLa03/dsi8kcZhEpsS+scW0vBY NdLU3oL1DzhnjyNKc/rFfy3DpoZffGdF12LL9M7DDUbmk0G5lOrHXE04z/Xd6gHcnsKf pkDXDuI7HqcnTz3pugw9xSvhYqNzE+piN5BthC8Bt0rYM47lN5aqC3IFXF7GkAbiViV1 mPvw== X-Gm-Message-State: AOJu0Ywrqz9vxXgwa9L7AgMaxb/axom2g71YOC5cEWqUu0D/UuIqIU+c 2gj3upG75Pf/KxUvEsDvi74OuKxUe9wncuVVJFCWoLZHJ96rJa8bDL/DTA== X-Google-Smtp-Source: AGHT+IGffwi44WR7kzWkd7ExErNw58WbgXackfHSws2TjyWdcCcSpwGngpd6/hcUGeJJ6Yj6GJdPWg== X-Received: by 2002:a17:902:ce92:b0:1fb:6ea1:4c with SMTP id d9443c01a7336-1fb6ea102aemr13265985ad.23.1720370057125; Sun, 07 Jul 2024 09:34: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 d9443c01a7336-1fb27bdc357sm71076015ad.177.2024.07.07.09.34.16 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 07 Jul 2024 09:34:16 -0700 (PDT) Content-Language: en-US In-Reply-To: X-Forwarded-Message-Id: Received-SPF: pass client-ip=2607:f8b0:4864:20::62e; envelope-from=matt.wette@gmail.com; helo=mail-pl1-x62e.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: guile-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.devel:22563 Archived-At: This is a multi-part message in MIME format. --------------WymxavTS5IZPLfQpfD0051lo Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit FYI, I'm not getting responses from bug-guile@gnu.org With `--disable-tmpnam'  argument to configure, posix.test fails: missing `tmpnam`. I think this works.   It passes the test and using the let in the repl generated the intended result. 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 --------------WymxavTS5IZPLfQpfD0051lo 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= --------------WymxavTS5IZPLfQpfD0051lo--