* Warnings `_IOFBF' is deprecated. Use the symbol 'block instead.
@ 2018-07-08 10:46 Roel Janssen
2018-07-12 9:27 ` Ludovic Courtès
0 siblings, 1 reply; 7+ messages in thread
From: Roel Janssen @ 2018-07-08 10:46 UTC (permalink / raw)
To: Guile User
Dear Guilers,
When compiling my project, setting GUILE_WARN_DEPRECATED to "detailed",
I get various warnings like these:
`_IOFBF' is deprecated. Use the symbol 'block instead.
`_IONBF' is deprecated. Use the symbol 'none instead.
`_IOLBF' is deprecated. Use the symbol 'line instead.
I grepped the source code of my project and I cannot find any instance
of "_IOFBF", "_IONBF", and "_IOLBF".
What's the situation with these, and how can I resolve these deprecation warnings?
Kind regards,
Roel Janssen
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Warnings `_IOFBF' is deprecated. Use the symbol 'block instead.
2018-07-08 10:46 Warnings `_IOFBF' is deprecated. Use the symbol 'block instead Roel Janssen
@ 2018-07-12 9:27 ` Ludovic Courtès
2018-07-12 20:41 ` Roel Janssen
0 siblings, 1 reply; 7+ messages in thread
From: Ludovic Courtès @ 2018-07-12 9:27 UTC (permalink / raw)
To: Roel Janssen; +Cc: Guile User
Hello,
Roel Janssen <roel@gnu.org> skribis:
> When compiling my project, setting GUILE_WARN_DEPRECATED to "detailed",
> I get various warnings like these:
> `_IOFBF' is deprecated. Use the symbol 'block instead.
> `_IONBF' is deprecated. Use the symbol 'none instead.
> `_IOLBF' is deprecated. Use the symbol 'line instead.
>
> I grepped the source code of my project and I cannot find any instance
> of "_IOFBF", "_IONBF", and "_IOLBF".
>
> What's the situation with these, and how can I resolve these deprecation warnings?
You’re probably using a library (maybe Guix?) that uses those.
The problem is that these warnings are annoying, and getting rid them is
tedious if your code aims to be 2.0-compatible. Essentially you have to
use ‘cond-expand’ all around. :-/
In Guix we disable deprecation warnings.
Ludo’.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Warnings `_IOFBF' is deprecated. Use the symbol 'block instead.
2018-07-12 9:27 ` Ludovic Courtès
@ 2018-07-12 20:41 ` Roel Janssen
2018-07-13 8:13 ` Ludovic Courtès
0 siblings, 1 reply; 7+ messages in thread
From: Roel Janssen @ 2018-07-12 20:41 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: Guile User
Ludovic Courtès <ludo@gnu.org> writes:
> Hello,
>
> Roel Janssen <roel@gnu.org> skribis:
>
>> When compiling my project, setting GUILE_WARN_DEPRECATED to "detailed",
>> I get various warnings like these:
>> `_IOFBF' is deprecated. Use the symbol 'block instead.
>> `_IONBF' is deprecated. Use the symbol 'none instead.
>> `_IOLBF' is deprecated. Use the symbol 'line instead.
>>
>> I grepped the source code of my project and I cannot find any instance
>> of "_IOFBF", "_IONBF", and "_IOLBF".
>>
>> What's the situation with these, and how can I resolve these deprecation warnings?
>
> You’re probably using a library (maybe Guix?) that uses those.
>
> The problem is that these warnings are annoying, and getting rid them is
> tedious if your code aims to be 2.0-compatible. Essentially you have to
> use ‘cond-expand’ all around. :-/
>
> In Guix we disable deprecation warnings.
>
> Ludo’.
Thanks for your response. So, since my project relies quite heavily on
Guix, I guess I can only disable deprecation warnings too. Will this be
a problem for Guile 3.0?
Thanks for your quick response!
Kind regards,
Roel Janssen
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Warnings `_IOFBF' is deprecated. Use the symbol 'block instead.
2018-07-12 20:41 ` Roel Janssen
@ 2018-07-13 8:13 ` Ludovic Courtès
2018-07-13 12:45 ` Hans Åberg
0 siblings, 1 reply; 7+ messages in thread
From: Ludovic Courtès @ 2018-07-13 8:13 UTC (permalink / raw)
To: Roel Janssen; +Cc: Guile User
Roel Janssen <roel@gnu.org> skribis:
> Ludovic Courtès <ludo@gnu.org> writes:
>
>> Hello,
>>
>> Roel Janssen <roel@gnu.org> skribis:
>>
>>> When compiling my project, setting GUILE_WARN_DEPRECATED to "detailed",
>>> I get various warnings like these:
>>> `_IOFBF' is deprecated. Use the symbol 'block instead.
>>> `_IONBF' is deprecated. Use the symbol 'none instead.
>>> `_IOLBF' is deprecated. Use the symbol 'line instead.
>>>
>>> I grepped the source code of my project and I cannot find any instance
>>> of "_IOFBF", "_IONBF", and "_IOLBF".
>>>
>>> What's the situation with these, and how can I resolve these deprecation warnings?
>>
>> You’re probably using a library (maybe Guix?) that uses those.
>>
>> The problem is that these warnings are annoying, and getting rid them is
>> tedious if your code aims to be 2.0-compatible. Essentially you have to
>> use ‘cond-expand’ all around. :-/
>>
>> In Guix we disable deprecation warnings.
>>
>> Ludo’.
>
> Thanks for your response. So, since my project relies quite heavily on
> Guix, I guess I can only disable deprecation warnings too.
Possibly. It’s a good thing to in CLIs anyway because that’s not
something the user can do anything about.
The plan is for Guix to require Guile >= 2.2 sometime soon though, so at
that point we can move to the new APIs.
> Will this be a problem for Guile 3.0?
Features deprecated in a stable series may be removed in the next stable
series, though in this particular case I would argue for keeping it a
bit longer.
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Warnings `_IOFBF' is deprecated. Use the symbol 'block instead.
2018-07-13 8:13 ` Ludovic Courtès
@ 2018-07-13 12:45 ` Hans Åberg
2018-07-13 14:44 ` Ludovic Courtès
0 siblings, 1 reply; 7+ messages in thread
From: Hans Åberg @ 2018-07-13 12:45 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: Guile User
> On 13 Jul 2018, at 10:13, Ludovic Courtès <ludo@gnu.org> wrote:
>
> The plan is for Guix to require Guile >= 2.2 sometime soon though, so at
> that point we can move to the new APIs.
A bug that may or may not be carried over to Guix: I could not install Nix on MacOS 10.13, and I think it may be due to the sudo timeout set to zero, causing non-terminating confirmations. So the script may do more root calls than explicitly asked for, a potential security loophole.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Warnings `_IOFBF' is deprecated. Use the symbol 'block instead.
2018-07-13 12:45 ` Hans Åberg
@ 2018-07-13 14:44 ` Ludovic Courtès
2018-07-13 15:51 ` Hans Åberg
0 siblings, 1 reply; 7+ messages in thread
From: Ludovic Courtès @ 2018-07-13 14:44 UTC (permalink / raw)
To: Hans Åberg; +Cc: Guile User
Hans Åberg <haberg-1@telia.com> skribis:
>> On 13 Jul 2018, at 10:13, Ludovic Courtès <ludo@gnu.org> wrote:
>>
>> The plan is for Guix to require Guile >= 2.2 sometime soon though,
>> so at that point we can move to the new APIs.
>
> A bug that may or may not be carried over to Guix: I could not install
> Nix on MacOS 10.13, and I think it may be due to the sudo timeout set
> to zero, causing non-terminating confirmations. So the script may do
> more root calls than explicitly asked for, a potential security
> loophole.
We’ve changed topics, right? :-)
I don’t know what Nix is doing. Guix works only on systems running the
kernel Linux or the GNU Hurd, anyway.
Ludo’.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Warnings `_IOFBF' is deprecated. Use the symbol 'block instead.
2018-07-13 14:44 ` Ludovic Courtès
@ 2018-07-13 15:51 ` Hans Åberg
0 siblings, 0 replies; 7+ messages in thread
From: Hans Åberg @ 2018-07-13 15:51 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: Guile User
> On 13 Jul 2018, at 16:44, Ludovic Courtès <ludo@gnu.org> wrote:
>
> Hans Åberg <haberg-1@telia.com> skribis:
>
>>> On 13 Jul 2018, at 10:13, Ludovic Courtès <ludo@gnu.org> wrote:
>>>
>>> The plan is for Guix to require Guile >= 2.2 sometime soon though,
>>> so at that point we can move to the new APIs.
>>
>> A bug that may or may not be carried over to Guix: I could not install
>> Nix on MacOS 10.13, and I think it may be due to the sudo timeout set
>> to zero, causing non-terminating confirmations. So the script may do
>> more root calls than explicitly asked for, a potential security
>> loophole.
>
> We’ve changed topics, right? :-)
Right. :-)
> I don’t know what Nix is doing. Guix works only on systems running the
> kernel Linux or the GNU Hurd, anyway.
It is only a problem if you have an installer for whatever system. The suggestion is to test the installation with sudo timeout set to 0.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2018-07-13 15:51 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-08 10:46 Warnings `_IOFBF' is deprecated. Use the symbol 'block instead Roel Janssen
2018-07-12 9:27 ` Ludovic Courtès
2018-07-12 20:41 ` Roel Janssen
2018-07-13 8:13 ` Ludovic Courtès
2018-07-13 12:45 ` Hans Åberg
2018-07-13 14:44 ` Ludovic Courtès
2018-07-13 15:51 ` Hans Åberg
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).