From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxim Cournoyer Subject: bug#27152: deprecation warnings with Guile 2.2.2 Date: Fri, 02 Jun 2017 21:43:05 -0700 Message-ID: <87h8zxr89y.fsf@gmail.com> References: <87wp8y2ijw.fsf@elephly.net> <87h90091y4.fsf@gnu.org> <871sr1yiik.fsf@netris.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45885) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dH0v0-0007Gs-CV for bug-guix@gnu.org; Sat, 03 Jun 2017 00:44:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dH0uw-0002fW-C7 for bug-guix@gnu.org; Sat, 03 Jun 2017 00:44:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:49606) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dH0uw-0002ex-88 for bug-guix@gnu.org; Sat, 03 Jun 2017 00:44:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dH0uv-0007wC-RA for bug-guix@gnu.org; Sat, 03 Jun 2017 00:44:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <871sr1yiik.fsf@netris.org> (Mark H. Weaver's message of "Fri, 02 Jun 2017 21:20:03 -0400") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Mark H Weaver Cc: 27152@debbugs.gnu.org Hi Mark, Mark H Weaver writes: > Maxim Cournoyer writes: > >> On Wed, May 31, 2017 at 2:00 PM, Ludovic Court=C3=A8s wro= te: >> >> Ricardo Wurmus 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=E2=80=99t exist), but really, that=E2= =80=99s annoying. >> >> So I=E2=80=99m 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