From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id B1F94431F9 for ; Wed, 25 May 2022 05:57:48 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id B27C968B4E7; Wed, 25 May 2022 08:57:45 +0300 (EEST) Received: from mail-qt1-f176.google.com (mail-qt1-f176.google.com [209.85.160.176]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4A93A68B4BA for ; Wed, 25 May 2022 08:57:39 +0300 (EEST) Received: by mail-qt1-f176.google.com with SMTP id y15so12013455qtx.4 for ; Tue, 24 May 2022 22:57:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rcombs.me; s=google; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=upU86Ornh+hDKkEv+0D7hX6Gdak8B6s+nz62P3+i8hk=; b=drqxQynayWG6czmZpzARMJGj5GnQuX858FXwWzfYT59/5dYX//T6VJqGghCgQJwWxN i1RC7q/Pt1TvRGJlaJ6/mDNoflMUXDdmyZC4N87Co75ZL7Po4rBbmyBbo8HfOiHihse3 jC9MAkEq82TIwAa0mO757hbkUt9uWGmfEi2qExbGz7HCSPaDyMnU2mL0dkzpWYancPZe 1rgm39UpIEehA+GqlxbmMxqfAQl9VWcqobD0v3vM+p4/lCxtdS4EfaDuNfUDlIcWcf3Q i3Qw0ptYuwgPUOt0xGl9UNxve1c55KkEnRgu/HO58PUhD7D/NBFFnHKyk0akzbER8RCg KGrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=upU86Ornh+hDKkEv+0D7hX6Gdak8B6s+nz62P3+i8hk=; b=T024ZFQzYTznBu2FKA4U2JOfaInSz/A85VNFMr3upN2QPYHHGZjETREfa//uXMuP18 pCeskgv4aanfkKyhY77a+A7ghUcMczG+Y1Atib5Ap+tPUDFPHPB6fplE5Nlt8N34N/vw BEz8vVr1MFR+0RZXEi+4j2b8I39LVEk6B1Zb1cqP+ODmA8LcNY8nIG3fXkjGo5Q+IEEz PTBCHdr8hTjGl9mkEnwd2CxoOiutnbfJaOxKHGpxTWCpsZn5CEdzu5M+1w54IDaT8pM7 9PeuStQJ+nymgBfgb34u1wviJMOoSHe0N0FY3IZ27OLDMbARQq5NIoE7pSj7AuarR6lM Q+CQ== X-Gm-Message-State: AOAM532umZ7w4SB7wh1TkZdxWrG/tz62mtf9/RLB+Q5EqvcJjeoD2xiF sstdqQfY2QEtyk4JyQgs0eZE8G8zRm7x X-Google-Smtp-Source: ABdhPJw+h3IusgcB969lg9vapzvhstzonZF2N/ggkiEODdnMEPhupGP5yhQ/vsBxjUo8CEKA6KPf4g== X-Received: by 2002:ac8:5d49:0:b0:2f9:421e:3e80 with SMTP id g9-20020ac85d49000000b002f9421e3e80mr5277208qtx.86.1653458257460; Tue, 24 May 2022 22:57:37 -0700 (PDT) Received: from localhost.localdomain ([12.187.214.130]) by smtp.gmail.com with ESMTPSA id p17-20020a05620a133100b006a39e915252sm750078qkj.97.2022.05.24.22.57.36 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 24 May 2022 22:57:37 -0700 (PDT) From: rcombs To: ffmpeg-devel@ffmpeg.org Date: Wed, 25 May 2022 00:00:47 -0500 Message-Id: <20220525050047.26388-1-rcombs@rcombs.me> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] Makefile: avoid cp-ing over existing executable files X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On macOS, code-signing information for executables (including those signed automatically by the linker) is cached by the system on a per-inode basis. The cp(1) tool will truncate and overwrite an existing file if present, so we need to delete it first to avoid strange crashes. See https://developer.apple.com/documentation/security/updating_mac_software --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 48cfb6e240..95473beec1 100644 --- a/Makefile +++ b/Makefile @@ -119,6 +119,7 @@ $(PROGS): %$(PROGSSUF)$(EXESUF): %$(PROGSSUF)_g$(EXESUF) ifeq ($(STRIPTYPE),direct) $(STRIP) -o $@ $< else + $(RM) $@ $(CP) $< $@ $(STRIP) $@ endif -- 2.35.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".