From: Ashish SHUKLA <ashish.is@lostca.se>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: Bruno Haible <bruno@clisp.org>,
Wolfgang Jenkner <wjenkner@inode.at>,
19874@debbugs.gnu.org, Joseph Mingrone <jrm@FreeBSD.org>
Subject: bug#19874: simplifying Emacs configure.ac
Date: Wed, 22 Jan 2020 09:07:53 +0100 [thread overview]
Message-ID: <4C026FAF-AE44-4732-8F3B-1E7FA126BAFC@lostca.se> (raw)
In-Reply-To: <a6304fc5-b023-697d-7015-398a52a6bf0f@cs.ucla.edu>
On Jan 19, 2020, at 06:09, Paul Eggert <eggert@cs.ucla.edu> wrote:
>
> On 1/18/20 5:46 AM, Bruno Haible wrote:
>
>> This code in Emacs configure.ac:
>> # Use the system putenv even if it lacks GNU features, as we don't need them,
>> # and the gnulib replacement runs afoul of a FreeBSD 10.1 bug; see Bug#19874.
>> AC_CHECK_FUNCS_ONCE([putenv])
>> AC_DEFUN([gl_FUNC_PUTENV],
>> [test "$ac_cv_func_putenv" = yes || REPLACE_PUTENV=1])
>> appears to be extra convoluted. All platforms have the putenv function.
>> Therefore REPLACE_PUTENV=1 is never executed here. If Emacs does not need
>> the putenv override, the simpler way is to invoke gnulib-tool with
>> '--avoid=putenv'.
>
> Thanks for suggesting that. I installed the attached patch to Emacs master to implement something along the lines you suggested. I am cc'ing Ashish Shukla who reported Bug#19874 ("25.0.50; encode-time not working as expected"), as well as Wolfgang Jenkner who helped debug that, to give them a heads-up that the fix for Bug#19874 has changed.
> <0001-Remove-Gnulib-putenv-code.patch>
Hi
I just tried Emacs (git revision “140eb90bc5”) on FreeBSD 12.1-RELEASE-p1 (amd64) which includes your commit, and it’s working as expected.
Thanks!
--
Ashish | GPG: F682 CDCC 39DC 0FEA E116 20B6 C746 CFA9 E74F A4B0
“Sometimes even to live is an act of courage.” (Seneca)
prev parent reply other threads:[~2020-01-22 8:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <2972759.yA5RhZVnzj@omega>
2020-01-19 5:09 ` bug#19874: simplifying Emacs configure.ac Paul Eggert
2020-01-22 8:07 ` Ashish SHUKLA [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C026FAF-AE44-4732-8F3B-1E7FA126BAFC@lostca.se \
--to=ashish.is@lostca.se \
--cc=19874@debbugs.gnu.org \
--cc=bruno@clisp.org \
--cc=eggert@cs.ucla.edu \
--cc=jrm@FreeBSD.org \
--cc=wjenkner@inode.at \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).