From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: Mark H Weaver <mhw@netris.org>
Cc: 27152@debbugs.gnu.org
Subject: bug#27152: deprecation warnings with Guile 2.2.2
Date: Fri, 02 Jun 2017 21:43:05 -0700 [thread overview]
Message-ID: <87h8zxr89y.fsf@gmail.com> (raw)
In-Reply-To: <871sr1yiik.fsf@netris.org> (Mark H. Weaver's message of "Fri, 02 Jun 2017 21:20:03 -0400")
Hi Mark,
Mark H Weaver <mhw@netris.org> writes:
> Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:
>
>> On Wed, May 31, 2017 at 2:00 PM, Ludovic Courtès <ludo@gnu.org> wrote:
>>
>> Ricardo Wurmus <rekado@elephly.net> skribis:
>>
>> > I get a couple of deprecation warnings with Guile 2.2.2, for example
>> >
>> > Import (ice-9 threads) to have access to `current-processor-count'.
>> > `_IOFBF' is deprecated. Use the symbol 'block instead.
>>
>> We can fix the first one with #:use-module (ice-9 threads).
>>
>> The second one is just a pain: in 2.2 one is supposed to write
>>
>> (setvbuf port 'block)
>>
>> instead of
>>
>> (setvbuf port _IOFBF)
>>
>> So we could do:
>>
>> (cond-expand (guile-2.2 (define _IOFBF 'block))
>> (else #t))
>>
>> in some central place (that doesn’t exist), but really, that’s annoying.
>>
>> So I’m tempted to do nothing.
>>
>> Note that normally users do not see these deprecation warnings at all.
>>
>> Thoughts?
>>
>> Why not let good old sed have a run at it? Seems like a simple find and replace operation, and 'block looks nicer than _IOFBF to my eyes.
>
> If we did that, then Guix would stop working with guile-2.0. Given that
> guile-2.2 is not yet available from many popular distros, I think it
> would be unwise to drop guile-2.0 at this time.
Isn't Guile included in the Guix binary releases? I would have thought
so. Otherwise, I just tried "guix pack guile@2.2" and the resulting
archive is 40 MiB.
I'm not saying it's worth it, but it's an option.
Maxim
next prev parent reply other threads:[~2017-06-03 4:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-30 20:31 bug#27152: deprecation warnings with Guile 2.2.2 Ricardo Wurmus
2017-05-31 21:00 ` Ludovic Courtès
2017-06-03 0:39 ` Maxim Cournoyer
2017-06-03 1:20 ` Mark H Weaver
2017-06-03 4:43 ` Maxim Cournoyer [this message]
2017-06-04 5:18 ` Mark H Weaver
2017-06-04 5:51 ` Maxim Cournoyer
2017-06-04 22:04 ` Mark H Weaver
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://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h8zxr89y.fsf@gmail.com \
--to=maxim.cournoyer@gmail.com \
--cc=27152@debbugs.gnu.org \
--cc=mhw@netris.org \
/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/guix.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).