From unknown Wed Jun 25 00:21:48 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#65142 <65142@debbugs.gnu.org> To: bug#65142 <65142@debbugs.gnu.org> Subject: Status: 30.0.50; configure --without-all does not disable some features Reply-To: bug#65142 <65142@debbugs.gnu.org> Date: Wed, 25 Jun 2025 07:21:48 +0000 retitle 65142 30.0.50; configure --without-all does not disable some featur= es reassign 65142 emacs submitter 65142 Ulrich M=C3=BCller severity 65142 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 08 03:54:41 2023 Received: (at submit) by debbugs.gnu.org; 8 Aug 2023 07:54:41 +0000 Received: from localhost ([127.0.0.1]:34940 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTHY8-0002O4-SO for submit@debbugs.gnu.org; Tue, 08 Aug 2023 03:54:41 -0400 Received: from lists.gnu.org ([2001:470:142::17]:40190) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTHY3-0002Nm-VS for submit@debbugs.gnu.org; Tue, 08 Aug 2023 03:54:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qTHXy-0006Tx-DP for bug-gnu-emacs@gnu.org; Tue, 08 Aug 2023 03:54:30 -0400 Received: from woodpecker.gentoo.org ([140.211.166.183] helo=smtp.gentoo.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1qTHXw-0003G7-63 for bug-gnu-emacs@gnu.org; Tue, 08 Aug 2023 03:54:29 -0400 From: Ulrich =?utf-8?Q?M=C3=BCller?= To: bug-gnu-emacs@gnu.org Subject: 30.0.50; configure --without-all does not disable some features Date: Tue, 08 Aug 2023 09:54:20 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=140.211.166.183; envelope-from=ulm@gentoo.org; helo=smtp.gentoo.org X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.6 (/) X-Debbugs-Envelope-To: submit 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: -0.4 (/) Ever since --with-json was changed from using OPTION_DEFAULT_ON to OPTION_DEFAULT_IFAVAILABLE (commit 43091e6c5069), option --without-all will no longer disable it. The same applies to --with-tree-sitter. $ ./configure --without-all [...] Does Emacs use -ljansson? yes Does Emacs use -ltree-sitter? yes [...] The following patch should fix the problem: >From b5ef99a3f06005524ab12a1bd6a2a6dfa7689ec2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulrich=20M=C3=BCller?= Date: Tue, 8 Aug 2023 08:34:43 +0200 Subject: [PATCH] Disable json and tree-sitter with --without-all * configure.ac (OPTION_DEFAULT_IFAVAILABLE): Disable the option if --without-all was specified. --- configure.ac | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index e01465c2af0..de602371f7b 100644 --- a/configure.ac +++ b/configure.ac @@ -305,7 +305,8 @@ AC_DEFUN ])dnl dnl OPTION_DEFAULT_IFAVAILABLE(NAME, HELP-STRING) -dnl Create a new --with option that defaults to 'ifavailable'. +dnl Create a new --with option that defaults to 'ifavailable', +dnl unless it is overriden by $with_features being equal to 'no'. dnl NAME is the base name of the option. The shell variable with_NAME dnl will be set to either the user's value (if the option is dnl specified; 'yes' for a plain --with-NAME) or to 'ifavailable' (if the @@ -315,10 +316,12 @@ AC_DEFUN dnl HELP-STRING is the help text for the option. AC_DEFUN([OPTION_DEFAULT_IFAVAILABLE], [dnl AC_ARG_WITH([$1],[AS_HELP_STRING([--with-$1],[$2])],[],[dnl - m4_bpatsubst([with_$1], [[^0-9a-z]], [_])=ifavailable])dnl + AS_IF([test "$with_features" != no], + [m4_bpatsubst([with_$1], [[^0-9a-z]], [_])=ifavailable], + [m4_bpatsubst([with_$1], [[^0-9a-z]], [_])=no])dnl + ])dnl ])dnl - dnl OPTION_DEFAULT_ON(NAME, HELP-STRING) dnl Create a new --with option that defaults to $with_features. dnl NAME is the base name of the option. The shell variable with_NAME -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 08 08:13:48 2023 Received: (at 65142) by debbugs.gnu.org; 8 Aug 2023 12:13:48 +0000 Received: from localhost ([127.0.0.1]:35394 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTLat-0003uG-RS for submit@debbugs.gnu.org; Tue, 08 Aug 2023 08:13:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35202) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTLar-0003ty-H3 for 65142@debbugs.gnu.org; Tue, 08 Aug 2023 08:13:46 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qTLal-0005bN-Vk; Tue, 08 Aug 2023 08:13:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=n12trCVu+4vIXYzOfwiA9esBERhGfWF1JvW/KViUvO8=; b=hZKjZIyX8RqS2rDqumrQ yN8cI6Cv3FNuLAUxCaGuyHVkkbapWdT+ZzkpOjX+CpMv2p1r7Ll2SB8S8UIrlprr/h6PSeKHrLb8H y2WCGIsrjmWMbc2BmrFuaAFXMGCQvPOw9ESvfJMDx5iUp5MiQagVrKJh77Pe5ySDhJzpXQ94SHugS /d0NtrcurwSMmI7rL7oLQ8lbFB9vWxy00cUKhd8GLEZ8jZWqRye7l6FF/eoVudrNuCVIBHgXdmb0J JcMLOJGjUD7sIgBGR/gqOsgN/lGGxjlRqxOlb7GfeFywmKHmcwJw/2LwQA5x0PbD5hpu32a/n5cXx puWfCeAATkWgtQ==; Date: Tue, 08 Aug 2023 15:13:59 +0300 Message-Id: <835y5poho8.fsf@gnu.org> From: Eli Zaretskii To: Ulrich =?utf-8?Q?M=C3=BCller?= In-Reply-To: (message from Ulrich =?utf-8?Q?M=C3=BC?= =?utf-8?Q?ller?= on Tue, 08 Aug 2023 09:54:20 +0200) Subject: Re: bug#65142: 30.0.50; configure --without-all does not disable some features References: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 65142 Cc: 65142@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 (---) > From: Ulrich Müller > Date: Tue, 08 Aug 2023 09:54:20 +0200 > > Ever since --with-json was changed from using OPTION_DEFAULT_ON to > OPTION_DEFAULT_IFAVAILABLE (commit 43091e6c5069), option --without-all > will no longer disable it. The same applies to --with-tree-sitter. > > $ ./configure --without-all > [...] > Does Emacs use -ljansson? yes > Does Emacs use -ltree-sitter? yes > [...] > > The following patch should fix the problem: Thanks, but the proposed patch affects any option that is by default "ifavailable", doesn't it? If so, the patch is probably good for master, but for the emacs-29 branch I'd prefer a safer change which only affects the above two options. Is that possible? From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 08 10:41:52 2023 Received: (at 65142) by debbugs.gnu.org; 8 Aug 2023 14:41:52 +0000 Received: from localhost ([127.0.0.1]:37448 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTNuC-0005NZ-HZ for submit@debbugs.gnu.org; Tue, 08 Aug 2023 10:41:52 -0400 Received: from mail.gentoo.org ([2001:470:ea4a:1:5054:ff:fec7:86e4]:43183 helo=smtp.gentoo.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTNuA-0005NJ-Uu for 65142@debbugs.gnu.org; Tue, 08 Aug 2023 10:41:51 -0400 From: Ulrich Mueller To: Eli Zaretskii Subject: Re: bug#65142: 30.0.50; configure --without-all does not disable some features In-Reply-To: <835y5poho8.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 08 Aug 2023 15:13:59 +0300") References: <835y5poho8.fsf@gnu.org> Date: Tue, 08 Aug 2023 16:41:40 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 65142 Cc: 65142@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 (---) >>>>> On Tue, 08 Aug 2023, Eli Zaretskii wrote: > Thanks, but the proposed patch affects any option that is by default > "ifavailable", doesn't it? If so, the patch is probably good for > master, but for the emacs-29 branch I'd prefer a safer change which > only affects the above two options. Is that possible? I had aimed for the master branch. :) It should also be o.k. for emacs-29, because json and tree-sitter are the only options that use OPTION_DEFAULT_IFAVAILABLE: $ grep OPTION_DEFAULT_IFAVAILABLE configure.ac dnl OPTION_DEFAULT_IFAVAILABLE(NAME, HELP-STRING) AC_DEFUN([OPTION_DEFAULT_IFAVAILABLE], [dnl OPTION_DEFAULT_IFAVAILABLE([json], [compile with native JSON support]) OPTION_DEFAULT_IFAVAILABLE([tree-sitter], [compile with tree-sitter]) A diff of the generated configure file with and without the patch confirms that no other option defaults are changed. (There are other options that can have "ifavailable" as their value, but none of them uses the macro that is patched.) From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 08 11:28:27 2023 Received: (at 65142) by debbugs.gnu.org; 8 Aug 2023 15:28:27 +0000 Received: from localhost ([127.0.0.1]:37528 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTOdH-0006uo-9X for submit@debbugs.gnu.org; Tue, 08 Aug 2023 11:28:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41236) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTOdF-0006uP-7a for 65142@debbugs.gnu.org; Tue, 08 Aug 2023 11:28:25 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qTOdA-0004Mc-1k; Tue, 08 Aug 2023 11:28:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=HLsKszZL8f8I7gv2+PNRKEQ27D5NRcA7NDgHH9SSl20=; b=rsGBpSvWCbmr JL10M8mqlHOYSh6e8s/KKiZnMqCB6AhWmixb76lrf3RbJ5g0v5XAuFAOMQdZq6E7fPU/LxPn3ltrj fi8WJc4OM6Tv8WjQGDIV6rv3wpKN9B/PxecUref+wSA3tA2WTWBUcWCQhhWeY6+n0EyEJin3hjwEw l+74DYgayRWQrgCsfABsblsC77Lhza0MweQ24UHvrUw3e3xdmLiwZINTPbgtKS3QPI5nLEW9U6pwP R5bp9QsbtE450WMXtGvWcEsVjlNqQmg4GP1azcEGAGrjeIaQrYNDCgsEfye6kHZ2R69Jl6e1+PcCS Xkc84n7Rx3PUAwO5fT/tBQ==; Date: Tue, 08 Aug 2023 18:28:40 +0300 Message-Id: <83o7jhmu3b.fsf@gnu.org> From: Eli Zaretskii To: Ulrich Mueller In-Reply-To: (message from Ulrich Mueller on Tue, 08 Aug 2023 16:41:40 +0200) Subject: Re: bug#65142: 30.0.50; configure --without-all does not disable some features References: <835y5poho8.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 65142 Cc: 65142@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 (---) > From: Ulrich Mueller > Cc: 65142@debbugs.gnu.org > Date: Tue, 08 Aug 2023 16:41:40 +0200 > > >>>>> On Tue, 08 Aug 2023, Eli Zaretskii wrote: > > > Thanks, but the proposed patch affects any option that is by default > > "ifavailable", doesn't it? If so, the patch is probably good for > > master, but for the emacs-29 branch I'd prefer a safer change which > > only affects the above two options. Is that possible? > > I had aimed for the master branch. :) It should also be o.k. for > emacs-29, because json and tree-sitter are the only options that use > OPTION_DEFAULT_IFAVAILABLE: > > $ grep OPTION_DEFAULT_IFAVAILABLE configure.ac > dnl OPTION_DEFAULT_IFAVAILABLE(NAME, HELP-STRING) > AC_DEFUN([OPTION_DEFAULT_IFAVAILABLE], [dnl > OPTION_DEFAULT_IFAVAILABLE([json], [compile with native JSON support]) > OPTION_DEFAULT_IFAVAILABLE([tree-sitter], [compile with tree-sitter]) > > A diff of the generated configure file with and without the patch > confirms that no other option defaults are changed. > > (There are other options that can have "ifavailable" as their value, but > none of them uses the macro that is patched.) OK, then please install this on master, and thanks. From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 08 11:43:22 2023 Received: (at control) by debbugs.gnu.org; 8 Aug 2023 15:43:22 +0000 Received: from localhost ([127.0.0.1]:37574 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTOrh-0001WH-QD for submit@debbugs.gnu.org; Tue, 08 Aug 2023 11:43:21 -0400 Received: from woodpecker.gentoo.org ([2001:470:ea4a:1:5054:ff:fec7:86e4]:46227 helo=smtp.gentoo.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTOrf-0001Vy-C4 for control@debbugs.gnu.org; Tue, 08 Aug 2023 11:43:20 -0400 From: Ulrich Mueller To: control@debbugs.gnu.org Subject: Re: bug#65142: 30.0.50; configure --without-all does not disable some features In-Reply-To: <83o7jhmu3b.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 08 Aug 2023 18:28:40 +0300") References: <835y5poho8.fsf@gnu.org> <83o7jhmu3b.fsf@gnu.org> Date: Tue, 08 Aug 2023 17:43:07 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain 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 65142 30.1 thank you From unknown Wed Jun 25 00:21:48 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 06 Sep 2023 11:24:04 +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