From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 65767 invoked by alias); 29 Sep 2018 19:50:42 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 65756 invoked by uid 89); 29 Sep 2018 19:50:41 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_05,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=bottle, newest, deployed, H*UA:Webmail X-HELO: smtp.polymtl.ca Received: from smtp.polymtl.ca (HELO smtp.polymtl.ca) (132.207.4.11) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 29 Sep 2018 19:50:39 +0000 Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id w8TJoWLf016873 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sat, 29 Sep 2018 15:50:37 -0400 Received: by simark.ca (Postfix, from userid 112) id 8F2771E992; Sat, 29 Sep 2018 15:50:32 -0400 (EDT) Received: from simark.ca (localhost [127.0.0.1]) by simark.ca (Postfix) with ESMTP id CF7521E197; Sat, 29 Sep 2018 15:50:29 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sat, 29 Sep 2018 19:50:00 -0000 From: Simon Marchi To: Pedro Alves Cc: Tom Tromey , gdb-patches@sourceware.org Subject: Re: [RFC 0/6] A different approach to startup-with-shell on macOS In-Reply-To: <5b3edfa9-215a-436e-af2c-f0226aaee5ce@redhat.com> References: <20180926111130.18956-1-tom@tromey.com> <5b3edfa9-215a-436e-af2c-f0226aaee5ce@redhat.com> Message-ID: <46289fbb7b8eaffa131a96f600dbe31f@polymtl.ca> X-Sender: simon.marchi@polymtl.ca User-Agent: Roundcube Webmail/1.3.6 X-IsSubscribed: yes X-SW-Source: 2018-09/txt/msg00938.txt.bz2 On 2018-09-29 14:43, Pedro Alves wrote: > On 09/26/2018 12:11 PM, Tom Tromey wrote: > >> One question I have is whether it's possible to build gdb on an older >> version of macOS and then run it on a newer version. If this can be >> done, then the #if-based approach taken in the final patch will not >> work. > > I'd suspect so. What, e.g., does Homebrew do? Do they have packages > built once for every Darwin version, or a single binary for several > Darwin versions? I'd think the latter, but I don't really know. > And if indeed the latter, do they always build on the newest > Darwin, or perhaps the oldest? Here's the answer I got on the homebrew IRC channel: > homebrew generally does this (but i think it's probably more > conservative than it needs to be) > a bottle should never be deployed to an older macos version than it was > built on, anyway "this" refers to whether the binaries always run on the same macos version as the one on which they have been built. Simon