GNU bug report logs -
#43754
[PATCH] configure help message of --with-json
Previous Next
Reported by: Shohei Yoshida <syohex <at> gmail.com>
Date: Fri, 2 Oct 2020 00:49:01 UTC
Severity: normal
Tags: fixed, patch
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 43754 in the body.
You can then email your comments to 43754 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#43754
; Package
emacs
.
(Fri, 02 Oct 2020 00:49:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Shohei Yoshida <syohex <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
Your message had a Version: pseudo-header with an invalid package
version:
git master(40b81f847f12cf141467a02858d1ac09589cea2f)
please either use found or fixed to the control server with a correct
version, or reply to this report indicating the correct version so the
maintainer (or someone else) can correct it for you.
(Fri, 02 Oct 2020 00:49:02 GMT) Full text and rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
version: git master(40b81f847f12cf141467a02858d1ac09589cea2f)
configure --help says
```
./configure --help
...
--with-json don't compile with native JSON support
```
This is the opposite meaning. --with-json means "compile with native
JSON support"
Regards
--
Shohei YOSHIDA(syohex <at> gmail.com)
[0001-Fix-with-json-message.patch (text/x-patch, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#43754
; Package
emacs
.
(Fri, 02 Oct 2020 01:16:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 43754 <at> debbugs.gnu.org (full text, mbox):
Shohei Yoshida <syohex <at> gmail.com> writes:
> This is the opposite meaning. --with-json means "compile with native
> JSON support"
Thanks for the patch; applied to Emacs 28.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) fixed.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Fri, 02 Oct 2020 01:16:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 28.1, send any further explanations to
43754 <at> debbugs.gnu.org and Shohei Yoshida <syohex <at> gmail.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Fri, 02 Oct 2020 01:16:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#43754
; Package
emacs
.
(Fri, 02 Oct 2020 02:56:02 GMT)
Full text and
rfc822 format available.
Message #15 received at 43754 <at> debbugs.gnu.org (full text, mbox):
[just quick comment]
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> Shohei Yoshida <syohex <at> gmail.com> writes:
>
>> This is the opposite meaning. --with-json means "compile with native
>> JSON support"
>
> Thanks for the patch; applied to Emacs 28.
Personally i did mark this PR [43754] as *IMPORTANT*. Because currently
i use JSON things very useful in _real_ work/day-job.
Sincerely, JSON fan Byung-Hee
--
^고맙습니다 _地平天成_ 감사합니다_^))//
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#43754
; Package
emacs
.
(Fri, 02 Oct 2020 06:48:01 GMT)
Full text and
rfc822 format available.
Message #18 received at 43754 <at> debbugs.gnu.org (full text, mbox):
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Date: Fri, 02 Oct 2020 03:14:56 +0200
> Cc: 43754 <at> debbugs.gnu.org
>
> Shohei Yoshida <syohex <at> gmail.com> writes:
>
> > This is the opposite meaning. --with-json means "compile with native
> > JSON support"
>
> Thanks for the patch; applied to Emacs 28.
Any reason why we use OPTION_DEFAULT_IFAVAILABLE for json, and not
OPTION_DEFAULT_ON? How is it different from libpng or liblcms2 or
libgnutls?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#43754
; Package
emacs
.
(Fri, 02 Oct 2020 14:29:02 GMT)
Full text and
rfc822 format available.
Message #21 received at 43754 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
> Any reason why we use OPTION_DEFAULT_IFAVAILABLE for json, and not
> OPTION_DEFAULT_ON? How is it different from libpng or liblcms2 or
> libgnutls?
I wonder whether it's because of this:
case $with_gnutls,$HAVE_GNUTLS in
no,* | ifavailable,* | *,yes) ;;
*) MISSING="$MISSING gnutls"
WITH_IFAVAILABLE="$WITH_IFAVAILABLE --with-gnutls=ifavailable";;
esac
case $with_json,$HAVE_JSON in
no,* | ifavailable,* | *,yes) ;;
*) MISSING="$MISSING json"
WITH_IFAVAILABLE="$WITH_IFAVAILABLE --with-json=ifavailable";;
esac
But if I understand autoconf (and I do not), that shouldn't really
"spread" to the OPTION_DEFAULT_ stuff, should it?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#43754
; Package
emacs
.
(Fri, 02 Oct 2020 15:07:02 GMT)
Full text and
rfc822 format available.
Message #24 received at 43754 <at> debbugs.gnu.org (full text, mbox):
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: syohex <at> gmail.com, 43754 <at> debbugs.gnu.org
> Date: Fri, 02 Oct 2020 16:28:38 +0200
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> > Any reason why we use OPTION_DEFAULT_IFAVAILABLE for json, and not
> > OPTION_DEFAULT_ON? How is it different from libpng or liblcms2 or
> > libgnutls?
>
> I wonder whether it's because of this:
>
> case $with_gnutls,$HAVE_GNUTLS in
> no,* | ifavailable,* | *,yes) ;;
> *) MISSING="$MISSING gnutls"
> WITH_IFAVAILABLE="$WITH_IFAVAILABLE --with-gnutls=ifavailable";;
> esac
> case $with_json,$HAVE_JSON in
> no,* | ifavailable,* | *,yes) ;;
> *) MISSING="$MISSING json"
> WITH_IFAVAILABLE="$WITH_IFAVAILABLE --with-json=ifavailable";;
> esac
The $MISSING part is for telling the users some libraries they might
want were not available. I'm saying that libjansson should be treated
the same as, say, libgnutls.
> But if I understand autoconf (and I do not), that shouldn't really
> "spread" to the OPTION_DEFAULT_ stuff, should it?
"Spread" in the sense that it should affect whether we use DEFAULT_ON
or DEFAULT_IFAVAILABLE? No, I don't think so.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#43754
; Package
emacs
.
(Sat, 03 Oct 2020 17:50:01 GMT)
Full text and
rfc822 format available.
Message #27 received at 43754 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
> The $MISSING part is for telling the users some libraries they might
> want were not available. I'm saying that libjansson should be treated
> the same as, say, libgnutls.
>
>> But if I understand autoconf (and I do not), that shouldn't really
>> "spread" to the OPTION_DEFAULT_ stuff, should it?
>
> "Spread" in the sense that it should affect whether we use DEFAULT_ON
> or DEFAULT_IFAVAILABLE? No, I don't think so.
Yes, I'm just wondering if whoever added the OPTION_DEFAULT_AVAILABLE
did it by mistake by looking at this stuff, or whether there was a
reason for it.
Oh, hey, whaddayaknow, it was a patch I applied a couple months ago:
commit 43091e6c5069797ba17d2c7429e0122d3a5337d9
Author: Noam Postavsky <npostavs <at> gmail.com>
AuthorDate: Fri Aug 14 19:31:16 2020 +0200
Commit: Lars Ingebrigtsen <larsi <at> gnus.org>
CommitDate: Fri Aug 14 19:31:16 2020 +0200
Make configure say so if we have "--with-json" but no jansson support
* configure.ac (OPTION_DEFAULT_IFAVAILABLE): New macro. Use it to
define the --with-json option. Add with_json and HAVE_JSON to the
'MISSING' checks (bug#39953).
bug#39953 has the rationale behind the change.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#43754
; Package
emacs
.
(Sat, 03 Oct 2020 18:00:02 GMT)
Full text and
rfc822 format available.
Message #30 received at 43754 <at> debbugs.gnu.org (full text, mbox):
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: syohex <at> gmail.com, 43754 <at> debbugs.gnu.org
> Date: Sat, 03 Oct 2020 19:49:33 +0200
>
> Oh, hey, whaddayaknow, it was a patch I applied a couple months ago:
>
> commit 43091e6c5069797ba17d2c7429e0122d3a5337d9
> Author: Noam Postavsky <npostavs <at> gmail.com>
> AuthorDate: Fri Aug 14 19:31:16 2020 +0200
> Commit: Lars Ingebrigtsen <larsi <at> gnus.org>
> CommitDate: Fri Aug 14 19:31:16 2020 +0200
>
> Make configure say so if we have "--with-json" but no jansson support
>
> * configure.ac (OPTION_DEFAULT_IFAVAILABLE): New macro. Use it to
> define the --with-json option. Add with_json and HAVE_JSON to the
> 'MISSING' checks (bug#39953).
>
> bug#39953 has the rationale behind the change.
What I said there notwithstanding, it looks like --with-json is the
odd one out nowadays, as we handle all the other optional libraries
differently. So it seems to me that we should switch to DEFAULT_ON
for this library.
Obviously, it is not a catastrophe to leave it as it is now...
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 01 Nov 2020 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 226 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.