guix-devel/guix
Ludovic Courtès 81a0f1cdf1
zlib: Don't rely on EBADF being ignored by 'fport_close'.
In 2.2, 'fport_close' no longer swallows EBADF and instead raises a
'system-error' for this.  This commit adjusts for 2.2.

* guix/zlib.scm (close-procedure): Remove.
(make-gzip-input-port): Use 'port->fdes' instead of 'fileno'.
Use 'gzclose' instead of 'close-procedure'.
(make-gzip-output-port): Likewise.
* tests/zlib.scm ("compression/decompression pipe"): Don't check whether
PARENT is closed using 'port-closed?'.  Instead, use 'seek' on the
underlying FD and check for EBADF.
2017-03-15 15:19:53 +01:00
..
build download: Export '%x509-certificate-directory'. 2017-03-13 21:52:38 +01:00
build-system build-system/cargo: Export %cargo-build-system-modules. 2017-03-03 12:06:11 +01:00
import import: stackage: Avoid using (guix ui) in importer code. 2017-02-14 08:38:45 +01:00
scripts pack: Add unit test. 2017-03-14 23:18:32 +01:00
tests
base32.scm
base64.scm
build-system.scm
combinators.scm Add (guix memoization). 2017-01-28 18:55:20 +01:00
config.scm.in pull: Install (guix config) module to override the user's one. 2016-07-20 22:53:02 +02:00
cpio.scm
cve.scm
cvs-download.scm
derivations.scm Use 'mlambda' instead of 'memoize'. 2017-01-28 18:55:20 +01:00
docker.scm guix: Add Docker image export. 2017-01-06 16:44:00 +01:00
download.scm download: Update the Savannah mirror list. 2017-03-08 23:42:53 +01:00
elf.scm
ftp-client.scm
gcrypt.scm
gexp.scm gexp: Expose functions to allow creating derivation builders. 2017-03-09 12:39:05 +01:00
git-download.scm git-download: Add 'git-predicate'. 2017-02-09 13:56:54 -06:00
gnu-maintenance.scm gnu-maintenance: 'gnu-package?' uses 'eq?' memoization. 2017-01-28 18:55:20 +01:00
gnupg.scm
grafts.scm grafts: Do not pull derivation outputs not depended on. 2017-01-25 11:04:25 +01:00
graph.scm
hash.scm
hg-download.scm
http-client.scm http-client: Provide 'User-Agent' header by default. 2017-01-13 18:24:19 +01:00
licenses.scm licenses: Add wtfpl2. 2017-01-13 14:13:01 -05:00
memoization.scm Add (guix memoization). 2017-01-28 18:55:20 +01:00
modules.scm Use 'mlambda' instead of 'memoize'. 2017-01-28 18:55:20 +01:00
monad-repl.scm
monads.scm
nar.scm
packages.scm packages: Remove 'define-memoized/v' and use 'mlambdaq' instead. 2017-01-28 18:55:20 +01:00
pk-crypto.scm
pki.scm
profiles.scm profiles: gtk-im-modules: Fix for gtk3. 2017-02-08 20:12:20 +08:00
records.scm
scripts.scm
search-paths.scm utils: Have search-path-as-list pattern search for directories. 2015-10-29 17:30:18 -05:00
serialization.scm store: Add 'add-data-to-store'. 2017-01-30 10:52:45 +01:00
sets.scm
ssh.scm
store.scm store: Add 'add-data-to-store'. 2017-01-30 10:52:45 +01:00
svn-download.scm
tests.scm
ui.scm ui: Don't use '%default-port-encoding' to set the encoding of string ports. 2017-03-08 23:42:53 +01:00
upstream.scm upstream: Avoid '_' as a pattern variable in 'match'. 2017-03-14 11:19:21 +01:00
utils.scm utils: Use an idiom compatible with both 2.0 and 2.2. 2017-03-09 09:48:33 +01:00
zlib.scm zlib: Don't rely on EBADF being ignored by 'fport_close'. 2017-03-15 15:19:53 +01:00