From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 17 21:04:09 2021 Received: (at submit) by debbugs.gnu.org; 18 Sep 2021 01:04:09 +0000 Received: from localhost ([127.0.0.1]:33275 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mROly-0002OW-3o for submit@debbugs.gnu.org; Fri, 17 Sep 2021 21:04:09 -0400 Received: from lists.gnu.org ([209.51.188.17]:38166) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRN8p-0008Fj-7T for submit@debbugs.gnu.org; Fri, 17 Sep 2021 19:19:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33024) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRN8p-0000b7-28 for bug-gnu-emacs@gnu.org; Fri, 17 Sep 2021 19:19:35 -0400 Received: from geoduck.ambulatoryclam.net ([67.40.19.211]:36140) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRN8i-00014J-67 for bug-gnu-emacs@gnu.org; Fri, 17 Sep 2021 19:19:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ambulatoryclam.net; s=geoduck; t=1631920761; bh=3t0OUDKgtkBu4sNxWUKDi9ZmhFI324JqDGtIQAw4VcQ=; h=Date:From:To:Subject:From; b=le/RbPGogB/SFIRAtrL9jkzY0Jk6cTT7ODKDKDIUa/S5ar13NjC4E5dkj+TOmMHxn AGtSrEhu+9JuLHJ4IxamNwNmeYoUILDLdxhyxgPUl+zXghQ4GcD52PTvX+wdEM/TYO bXw7wgM/Yen4seRHlTNtqCyjCvvoew5tvWxoO/P0= Received: by geoduck.ambulatoryclam.net (Postfix, from userid 1012) id 15550362013F; Fri, 17 Sep 2021 16:19:21 -0700 (PDT) Date: Fri, 17 Sep 2021 16:19:21 -0700 From: Dan Ports To: bug-gnu-emacs@gnu.org Subject: [patch] configure: fix libgccjit detection on MacPorts Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="f1s86jY6xkHbrSsi" Content-Disposition: inline Received-SPF: pass client-ip=67.40.19.211; envelope-from=dan@drkp.net; helo=geoduck.ambulatoryclam.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 17 Sep 2021 21:04:04 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) --f1s86jY6xkHbrSsi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Tags: patch The current code in configure checks if a MacPorts gcc port is installed in order to find libgccjit, but it fails if more than one gcc port is installed (e.g., both gcc10 and gcc11). The attached patch fixes it to return only one version -- specifically, the latest version (with a bit of ugliness because gcc4x sorts after gcc11) Dan -- Dan R. K. Ports https://drkp.net/ --f1s86jY6xkHbrSsi Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="patch-libgccjit-macports.diff" diff --git a/configure.ac b/configure.ac index 1146b581cd..2ef78985ef 100644 --- a/configure.ac +++ b/configure.ac @@ -3838,9 +3838,11 @@ AC_DEFUN if test -n "$HAVE_MACPORTS"; then # Determine which gcc version has been installed (gcc11, for - # instance). + # instance). Use the latest version, if more than one is + # available. PORT_PACKAGE=$(port installed active | grep '^ *gcc@<:@0-9@:>@* ' | \ - awk '{ print $1; }') + awk '{ print $1; }' | grep -v 'gcc4@<:@0-9@:>@' | \ + sort -V | tail -n 1) if test -n "$PORT_PACKAGE"; then MAC_CFLAGS="-I$(dirname $(port contents $PORT_PACKAGE | \ grep libgccjit.h))" --f1s86jY6xkHbrSsi-- From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 18 10:05:10 2021 Received: (at 50649) by debbugs.gnu.org; 18 Sep 2021 14:05:10 +0000 Received: from localhost ([127.0.0.1]:36335 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRaxq-0002sl-0a for submit@debbugs.gnu.org; Sat, 18 Sep 2021 10:05:10 -0400 Received: from quimby.gnus.org ([95.216.78.240]:58090) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRaxo-0002sM-9N for 50649@debbugs.gnu.org; Sat, 18 Sep 2021 10:05:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=zJweRgNuRk2AfKXmsFvietP3yUBOxKUY7xCOisQUkCk=; b=Eq/IVSxYgJ0TKZiPIJPFtmp2E6 5tJwclxcCz8wVMuViEYMBJGuy7d4wRjcDyfWlMggokl9xWY2dD6G7vOtDN2q87ZsGHG76HMF440Wt E2AoZKJr21iqAPEKY1Vzw3ADtCJUcIr1ZvOgJ5PCXnAZ0/VYwAD6M8u11rBsLgr4sEVs=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mRaxb-0003vi-Hq; Sat, 18 Sep 2021 16:04:58 +0200 From: Lars Ingebrigtsen To: Dan Ports Subject: Re: bug#50649: [patch] configure: fix libgccjit detection on MacPorts References: Date: Sat, 18 Sep 2021 16:04:54 +0200 In-Reply-To: (Dan Ports's message of "Fri, 17 Sep 2021 16:19:21 -0700") Message-ID: <87r1dmrncp.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Dan Ports writes: > The current code in configure checks if a MacPorts gcc port is > installed in order to find libgccjit, but it fails if more than one gcc > port is installed (e.g., both gcc10 and gcc11). > > The att [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 50649 Cc: 50649@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Dan Ports writes: > The current code in configure checks if a MacPorts gcc port is > installed in order to find libgccjit, but it fails if more than one gcc > port is installed (e.g., both gcc10 and gcc11). > > The attached patch fixes it to return only one version -- specifically, > the latest version (with a bit of ugliness because gcc4x sorts after > gcc11) Thanks; installed in Emacs 28. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 18 10:05:10 2021 Received: (at control) by debbugs.gnu.org; 18 Sep 2021 14:05:10 +0000 Received: from localhost ([127.0.0.1]:36337 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRaxq-0002sn-7X for submit@debbugs.gnu.org; Sat, 18 Sep 2021 10:05:10 -0400 Received: from quimby.gnus.org ([95.216.78.240]:58102) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRaxo-0002sQ-Uq for control@debbugs.gnu.org; Sat, 18 Sep 2021 10:05:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=jQswtpEq82FXk+hw9oDKVf/uJo7hJYUgMj1X8o3q23w=; b=Q0Ezrlb45iW05Atqu8S9QrylG5 PdbHZD3YtsSESk+xtcHpUiCfbrGKaPm0gBz5wmK3x6a86ns/870mgNyaYtgkMwFDwzXQXHWb9+VBH Kh0NnFNB29pAwmt/1A/kmsWkAc2+6RyfiKD2boiYmtXUFAnJKs3bsq7t1RtdrPMlcjNY=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mRaxh-0003vr-2R for control@debbugs.gnu.org; Sat, 18 Sep 2021 16:05:03 +0200 Date: Sat, 18 Sep 2021 16:05:00 +0200 Message-Id: <87pmt6rncj.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #50649 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 50649 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 50649 28.1 quit From unknown Thu Aug 21 14:54:38 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 17 Oct 2021 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator