From nobody Sat Feb 18 16:11:09 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PJtvx6g25z3sgyQ for ; Sat, 18 Feb 2023 16:11:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PJtvx3zQ0z42Dk for ; Sat, 18 Feb 2023 16:11:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676736669; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+gl2JAH0dkaNI8EYqOyJ9/h8E9gXSrzOpzO5+pzxTV0=; b=AbMRNQ4iZF7IiRb05U8EPuKRTa0oQ+dMw+Yj67sGFUF3aRJvpVQDhkDtr4CiaW7TYyVAa+ A2eoR1QDMRhxJmkUHfQCWGjYsW4H0J6htp9Zu3uFSvMIYmhYitwHbrYvLziDlJF0HrdFyr QzKMkE+ttNP+5UvGWXhRRVZotqP4vzhC/rGkg2uNPw6Ws0TfI9Kodej4YujIY9oaAVH1yK VQP2ASe5HOSzQ/wOwQ8sIdaDHkqn+wT5KAkL7LDKwavMCFJttw9Sr8TqGXBIutLg+SKoRX lhtSdXAgMiTncEgPyGaCn9IioSeExMEP0BWyfXumYlQ+Afve1hZTyHhAh3WWrA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676736669; a=rsa-sha256; cv=none; b=WTO0T2HVEDOYozF2x+t8Nja/l0vpw4sNOCy8izNsBYlCZDYWbme+Itijn+Iow//ZTTnxTB PR4XxhHP1pO5Y1950MkVy+5rHySb79qNsyQYI0pexmlNp1M3uaf7ZzmwkGpFrdBwg8nah+ plUnwJfxIYZQv2a3ZxGMiD2/Iksouk/ViB6y8y0fu9GutukMPPgazQ9AgktiSWGzXQFnPi h7Ojqp8zZoHLm6ajllAWCIhSPMtuFOifmW8V4obh9MsuYks80Dj+U+tIlI7hQ8r2sY9N8O BQ7zU6LUfhWMTLTqyY92aeKSMa7cusrWjwLMa5Ldr1qfu6S9yEQKRQ3tpnKexg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PJtvx33b7zT6h for ; Sat, 18 Feb 2023 16:11:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 31IGB9jX003318 for ; Sat, 18 Feb 2023 16:11:09 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 31IGB9oP003317 for bugs@FreeBSD.org; Sat, 18 Feb 2023 16:11:09 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 269663] bmake: Interrupted phony target removes a file Date: Sat, 18 Feb 2023 16:11:09 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: 0mp@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269663 Bug ID: 269663 Summary: bmake: Interrupted phony target removes a file Product: Base System Version: 13.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: 0mp@FreeBSD.org I have a target that is marked as phony. I also have a file with the same n= ame as that phony target in my directory. When I interrupt the target, it remov= es the file. Here's the repro script: set -eu # Try to detect bmake. make=3D"$(which bmake || which make)" rm -rf work mkdir work cd work # Create a file with the same name as the make target we are about to r= un. touch aaa # Mark target aaa as phony. { printf '%s\n' ".PHONY: aaa" printf '%s\n' "aaa:" printf '\t%s\n' "sleep 10" } > Makefile # Time out before the aaa target completes. # # NB: The return code of the timeout command is not 0, # so temporarily turn of set -e. set +e timeout 2s make aaa set -e # Verify that the aaa file is still there. if [ -f aaa ]; then echo OK exit 0 else echo FAIL exit 1 fi I've tested that on FreeBSD 13.1-RELEASE amd64. Interestingly, I cannot reproduce it on macOS with bmake 20230208. --=20 You are receiving this mail because: You are the assignee for the bug.=