Remove most uses of the _IO*F constants.
authorLudovic Courtès <ludo@gnu.org>
Mon, 7 Jan 2019 09:57:18 +0000 (10:57 +0100)
committerLudovic Courtès <ludo@gnu.org>
Wed, 9 Jan 2019 13:47:53 +0000 (14:47 +0100)
commit76832d3420594c8b5feaf7682b84b5481a49a076
tree262f1f36a3773710cf02106f094982004d497921
parentc3d9bca48a95a535a26eda38707dcd9798400ff3
Remove most uses of the _IO*F constants.

These constants, for use with 'setvbuf', were deprecated in Guile 2.2
and disappeared in Guile 3.0.  Here we keep these constants in
build-side code where removing them is not feasible.

* guix/build/download-nar.scm (download-nar): Adjust 'setvbuf' calls to
the Guile 2.2+ API.
* guix/build/download.scm (open-socket-for-uri): Likewise.
(open-connection-for-uri, url-fetch): Likewise.
* guix/build/make-bootstrap.scm (make-stripped-libc): Likewise.
* guix/build/union.scm (setvbuf) [guile-2.0]: New conditional wrapper.
(union-build): Adjust to new API.
* guix/ftp-client.scm (ftp-open, ftp-list, ftp-retr): Likewise.
* guix/http-client.scm (http-fetch): Likewise.
* guix/inferior.scm (proxy): Likewise.
* guix/scripts/substitute.scm (fetch, http-multiple-get): Likewise.
* guix/self.scm (compiled-modules): Likewise.
* guix/ssh.scm (remote-daemon-channel, store-import-channel)
(store-export-channel): Likewise.
* guix/ui.scm (initialize-guix): Likewise.
* tests/publish.scm (http-get-port): Likewise.
* guix/store.scm (%newlines): Adjust comment.
13 files changed:
guix/build/download-nar.scm
guix/build/download.scm
guix/build/make-bootstrap.scm
guix/build/union.scm
guix/ftp-client.scm
guix/http-client.scm
guix/inferior.scm
guix/scripts/substitute.scm
guix/self.scm
guix/ssh.scm
guix/store.scm
guix/ui.scm
tests/publish.scm