GNU bug report logs -
#65190
30.0.50; Emacs doesn't build with `--with-mailutils` by default when mailutils is installed on macOS
Previous Next
Reported by: Mou Tong <mou.tong <at> outlook.com>
Date: Thu, 10 Aug 2023 02:12:01 UTC
Severity: normal
Found in version 30.0.50
Done: Po Lu <luangruo <at> yahoo.com>
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 65190 in the body.
You can then email your comments to 65190 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#65190
; Package
emacs
.
(Thu, 10 Aug 2023 02:12:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Mou Tong <mou.tong <at> outlook.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 10 Aug 2023 02:12:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
After the android branch merged, the file `configure.ac`'s section about
`mailutils` changed.
When I build Emacs on macOS with `./configure`, cli will remind me:
```
configure: WARNING: This configuration installs a 'movemail' program
that does not retrieve POP3 email. By default, Emacs 25 and earlier
installed a 'movemail' program that retrieved POP3 email via only
insecure channels, a practice that is no longer recommended but that
you can continue to support by using './configure --with-pop'.
configure: You might want to use './configure --with-mailutils'.
```
I have installed mailtuils by homebrew (a package manager on macOS), and
it works fine before the android branch got merged.
I guess the problem occurs in this line
https://git.savannah.gnu.org/cgit/emacs.git/tree/configure.ac?id=e1d08e9e11d2bd5e93c8ae4ea4a8e27129b316cb#n349
But I don't know how to fix this :(
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#65190
; Package
emacs
.
(Thu, 10 Aug 2023 02:38:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 65190 <at> debbugs.gnu.org (full text, mbox):
Mou Tong <mou.tong <at> outlook.com> writes:
> After the android branch merged, the file `configure.ac`'s section about
> `mailutils` changed.
>
> When I build Emacs on macOS with `./configure`, cli will remind me:
>
> ```
> configure: WARNING: This configuration installs a 'movemail' program
> that does not retrieve POP3 email. By default, Emacs 25 and earlier
> installed a 'movemail' program that retrieved POP3 email via only
> insecure channels, a practice that is no longer recommended but that
> you can continue to support by using './configure --with-pop'.
> configure: You might want to use './configure --with-mailutils'.
> ```
>
> I have installed mailtuils by homebrew (a package manager on macOS), and
> it works fine before the android branch got merged.
>
> I guess the problem occurs in this line
>
> https://git.savannah.gnu.org/cgit/emacs.git/tree/configure.ac?id=e1d08e9e11d2bd5e93c8ae4ea4a8e27129b316cb#n349
>
> But I don't know how to fix this :(
Does the problem resolve itself if you change:
[AS_IF([test "x$XCONFIGURE" != "xandroid" \
&& test "$with_android" = "no"],
[(movemail --version) >/dev/null 2>&1 || with_mailutils=no],
to read
[AS_IF([test "x$XCONFIGURE" != "xandroid"],
[(movemail --version) >/dev/null 2>&1 || with_mailutils=no],
?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#65190
; Package
emacs
.
(Thu, 10 Aug 2023 03:11:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 65190 <at> debbugs.gnu.org (full text, mbox):
Thx for the quick response, here is the modification:
```diff
--- a/configure.ac
+++ b/configure.ac
@@ -347,8 +347,10 @@ AC_DEFUN
[],
[with_mailutils=$with_features
AS_IF([test "$with_mailutils" = yes],
- [AS_IF([test "x$XCONFIGURE" != "xandroid" \
- && test "$with_android" = "no"],
+ dnl [AS_IF([test "x$XCONFIGURE" != "xandroid" \
+ dnl && test "$with_android" = "no"],
+ dnl [(movemail --version) >/dev/null 2>&1 || with_mailutils=no],
+ [AS_IF([test "x$XCONFIGURE" != "xandroid"],
[(movemail --version) >/dev/null 2>&1 || with_mailutils=no],
[dnl Don't check for movemail if cross-compiling.
dnl instead, default to false.
```
But the problem still exists.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#65190
; Package
emacs
.
(Thu, 10 Aug 2023 04:48:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 65190 <at> debbugs.gnu.org (full text, mbox):
Mou Tong <mou.tong <at> outlook.com> writes:
> Thx for the quick response, here is the modification:
>
> ```diff
> --- a/configure.ac
> +++ b/configure.ac
> @@ -347,8 +347,10 @@ AC_DEFUN
> [],
> [with_mailutils=$with_features
> AS_IF([test "$with_mailutils" = yes],
> - [AS_IF([test "x$XCONFIGURE" != "xandroid" \
> - && test "$with_android" = "no"],
> + dnl [AS_IF([test "x$XCONFIGURE" != "xandroid" \
> + dnl && test "$with_android" = "no"],
> + dnl [(movemail --version) >/dev/null 2>&1 || with_mailutils=no],
> + [AS_IF([test "x$XCONFIGURE" != "xandroid"],
> [(movemail --version) >/dev/null 2>&1 || with_mailutils=no],
> [dnl Don't check for movemail if cross-compiling.
> dnl instead, default to false.
> ```
>
> But the problem still exists.
What if you try moving:
AC_ARG_WITH([mailutils],
[AS_HELP_STRING([--with-mailutils],
[rely on GNU Mailutils, so that the --without-pop through --with-mailhost
options are irrelevant; this is the default if GNU Mailutils is
installed])],
[],
[with_mailutils=$with_features
AS_IF([test "$with_mailutils" = yes],
[AS_IF([test "x$XCONFIGURE" != "xandroid" \
&& test "$with_android" = "no"],
[(movemail --version) >/dev/null 2>&1 || with_mailutils=no],
[dnl Don't check for movemail if cross-compiling.
dnl instead, default to false.
with_mailutils=no])])])
AS_IF([test "$with_mailutils" = no],
[with_mailutils=])
AS_IF([test x"$with_mailutils" = xyes],
[AC_DEFINE([HAVE_MAILUTILS], [1],
[Define to 1 if Emacs was configured with mailutils])])
AC_SUBST([with_mailutils])
AC_ARG_WITH([pop],
[AS_HELP_STRING([--with-pop],
[Support POP mail retrieval if Emacs movemail is used (not recommended,
as Emacs movemail POP is insecure). This is the default only on
native MS-Windows and Android.])],
[],
dnl Enable movemail POP support on Android as GNU Mailutils is
dnl normally unavailable on that platform.
[AS_CASE([$host],
[*-mingw*|*android*], [with_pop=yes],
[with_pop=no-by-default])])
if test "$with_pop" = yes; then
AC_DEFINE([MAIL_USE_POP])
fi
AH_TEMPLATE([MAIL_USE_POP], [Define to support POP mail retrieval.])dnl
to below:
OPTION_DEFAULT_OFF([android],[cross-compile Android application package])
OPTION_DEFAULT_ON([android-debug],[don't build Emacs as a debug package on Android])
? Does that resolve the problem?
Thanks.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#65190
; Package
emacs
.
(Thu, 10 Aug 2023 06:05:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 65190 <at> debbugs.gnu.org (full text, mbox):
Ah, sorry. I forgot to run `./autogen.sh` again to generate a new
`configure`.
After change `configure.ac` like you said before, and exec
`./autogen.sh` to generate a new `configure`. Running `./configure`
works as I expected.
Po Lu <luangruo <at> yahoo.com> writes:
> Does the problem resolve itself if you change:
>
> [AS_IF([test "x$XCONFIGURE" != "xandroid" \
> && test "$with_android" = "no"],
> [(movemail --version) >/dev/null 2>&1 || with_mailutils=no],
>
>
> to read
>
> [AS_IF([test "x$XCONFIGURE" != "xandroid"],
> [(movemail --version) >/dev/null 2>&1 || with_mailutils=no],
>
> ?
This had solved the problem ;)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#65190
; Package
emacs
.
(Fri, 11 Aug 2023 01:02:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 65190 <at> debbugs.gnu.org (full text, mbox):
Mou Tong <mou.tong <at> outlook.com> writes:
> Ah, sorry. I forgot to run `./autogen.sh` again to generate a new
> `configure`.
>
> After change `configure.ac` like you said before, and exec
> `./autogen.sh` to generate a new `configure`. Running `./configure`
> works as I expected.
>
> Po Lu <luangruo <at> yahoo.com> writes:
>
>> Does the problem resolve itself if you change:
>>
>> [AS_IF([test "x$XCONFIGURE" != "xandroid" \
>> && test "$with_android" = "no"],
>> [(movemail --version) >/dev/null 2>&1 || with_mailutils=no],
>>
>>
>> to read
>>
>> [AS_IF([test "x$XCONFIGURE" != "xandroid"],
>> [(movemail --version) >/dev/null 2>&1 || with_mailutils=no],
>>
>> ?
>
> This had solved the problem ;)
I fixed this differently. Would you please pull from master and ack?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#65190
; Package
emacs
.
(Fri, 11 Aug 2023 01:38:01 GMT)
Full text and
rfc822 format available.
Message #23 received at 65190 <at> debbugs.gnu.org (full text, mbox):
Po Lu <luangruo <at> yahoo.com> writes:
> I fixed this differently. Would you please pull from master and ack?
I pulled the latest commit cc6fed326aa491f89cad5cf59f4a8fb7b2863011
and it worked fine on my machine :)
Reply sent
to
Po Lu <luangruo <at> yahoo.com>
:
You have taken responsibility.
(Fri, 11 Aug 2023 01:52:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Mou Tong <mou.tong <at> outlook.com>
:
bug acknowledged by developer.
(Fri, 11 Aug 2023 01:52:02 GMT)
Full text and
rfc822 format available.
Message #28 received at 65190-done <at> debbugs.gnu.org (full text, mbox):
Mou Tong <mou.tong <at> outlook.com> writes:
> Po Lu <luangruo <at> yahoo.com> writes:
>
>> I fixed this differently. Would you please pull from master and ack?
>
> I pulled the latest commit cc6fed326aa491f89cad5cf59f4a8fb7b2863011
> and it worked fine on my machine :)
Thanks, closing.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 08 Sep 2023 11:24:13 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 281 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.