From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.user Subject: Re: Warnings `_IOFBF' is deprecated. Use the symbol 'block instead. Date: Fri, 13 Jul 2018 10:13:06 +0200 Message-ID: <87zhyvmu3x.fsf@gnu.org> References: <874lhadmxo.fsf@gnu.org> <87h8l4x0ra.fsf@gnu.org> <87601k6vak.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1531469495 19802 195.159.176.226 (13 Jul 2018 08:11:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 13 Jul 2018 08:11:35 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: Guile User To: Roel Janssen Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Jul 13 10:11:31 2018 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdtAo-00052L-KB for guile-user@m.gmane.org; Fri, 13 Jul 2018 10:11:30 +0200 Original-Received: from localhost ([::1]:35795 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdtCv-00060u-Mh for guile-user@m.gmane.org; Fri, 13 Jul 2018 04:13:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37210) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdtCX-00060o-0x for guile-user@gnu.org; Fri, 13 Jul 2018 04:13:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fdtCR-0008Pp-7h for guile-user@gnu.org; Fri, 13 Jul 2018 04:13:17 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59010) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdtCR-0008Pi-3E for guile-user@gnu.org; Fri, 13 Jul 2018 04:13:11 -0400 Original-Received: from [193.50.110.117] (port=53218 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fdtCO-00013g-WC; Fri, 13 Jul 2018 04:13:09 -0400 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 25 Messidor an 226 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu In-Reply-To: <87601k6vak.fsf@gnu.org> (Roel Janssen's message of "Thu, 12 Jul 2018 22:41:55 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:14711 Archived-At: Roel Janssen skribis: > Ludovic Court=C3=A8s writes: > >> Hello, >> >> Roel Janssen 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 deprecatio= n warnings? >> >> You=E2=80=99re 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 =E2=80=98cond-expand=E2=80=99 all around. :-/ >> >> In Guix we disable deprecation warnings. >> >> Ludo=E2=80=99. > > Thanks for your response. So, since my project relies quite heavily on > Guix, I guess I can only disable deprecation warnings too. Possibly. It=E2=80=99s a good thing to in CLIs anyway because that=E2=80= =99s not something the user can do anything about. The plan is for Guix to require Guile >=3D 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=E2=80=99.