From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from einhorn-mail-out.in-berlin.de (einhorn.in-berlin.de [192.109.42.8]) by sourceware.org (Postfix) with ESMTPS id 1A2E93854826 for ; Fri, 18 Aug 2023 06:38:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1A2E93854826 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: sourceware.org; spf=none smtp.mailfrom=debian.org X-Envelope-From: doko@debian.org Received: from authenticated.user (localhost [127.0.0.1]) by einhorn.in-berlin.de with ESMTPSA id 37I6cTuS599430 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 18 Aug 2023 08:38:29 +0200 Message-ID: Date: Fri, 18 Aug 2023 08:38:29 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH] gprofng: 30700 tmpdir/gp-collect-app_F test fails To: Sam James , Vladimir Mezentsev Cc: YunQiang Su , binutils@sourceware.org References: <20230803203339.822435-1-vladimir.mezentsev@oracle.com> <3c07c0ab-42bf-1ef2-be8f-83eb9dc77b27@oracle.com> <87lee9yly0.fsf@gentoo.org> Content-Language: en-US From: Matthias Klose In-Reply-To: <87lee9yly0.fsf@gentoo.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,FORGED_SPF_HELO,KAM_DMARC_STATUS,KAM_LAZY_DOMAIN_SECURITY,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 18.08.23 07:10, Sam James via Binutils wrote: >> Is it legal to create a build directory inside a source tree? >> > > No, the source tree should be treated as immutable please. It's ok > to create directories within the build dir, but not the source tree. you are confusing things. In general you have the option to build within the source tree or with a separate build tree. Some projects like GCC discourage to build within the source tree and recommend building in a separate build tree. There is no restriction where the build tree can be located. In the past I have seen some issue when specifying the build tree relatively to the source tree, but in general it's the same to configure the build tree with a relative path or an absolute path. Now if you have a separate build tree, then the source tree should not be modified, there is no restriction to create a sub-directory for the build. This works for ages, i.e. dpkg based packaging has no other choice than using the root of the source tree for builds, and that works for at least 27 years. Matthias