Commit Graph

15766 Commits

Author SHA1 Message Date
Eelco Dolstra b1fd0ab734
daemon: Improve the SQLite wrapper API.
In particular, this eliminates a bunch of boilerplate code.

Also integrates these Nix commits:

  80da7a6 Probably fix SQLITE_BUSY errors
  37a337b throwSQLiteError(): Check for SIGINT so we don't loop forever

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
2016-10-28 22:30:17 +02:00
Eelco Dolstra 7bed5d91de
daemon: Factor out SQLite handling.
* nix/libstore/local-store.cc: Move SQLite code to...
* nix/libstore/sqlite.cc, nix/libstore/sqlite.hh: ... here.  New files.
* nix/local.mk (libstore_a_SOURCES): Add sqlite.cc.
(libstore_headers): Add sqlite.hh.

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
2016-10-28 22:30:17 +02:00
Eelco Dolstra 517ce0c15b
daemon: Turn retrying SQLite transactions into a higher-order function.
* nix/libstore/local-store.cc (retry_sqlite, end_retry_sqlite): Remove.
(retrySQLite): New template.
(LocalStore::registerFailedPath, LocalStore::hasPathFailed)
(LocalStore::queryFailedPaths, LocalStore::clearFailedPaths)
(LocalStore::queryPathInfo, LocalStore::isValidPath_)
(LocalStore::queryValidPaths, LocalStore::queryAllValidPaths)
(LocalStore::queryReferrers, LocalStore::queryValidDerivers)
(LocalStore::queryDerivationOutputs)
(LocalStore::queryDerivationOutputNames)
(LocalStore::queryPathFromHashPart, LocalStore::registerValidPaths)
(LocalStore::invalidatePathChecked): Use it.

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
2016-10-28 22:30:17 +02:00
Marius Bakke a9afb956b3
gnu: vim: Update to 8.0.0051.
* gnu/packages/vim.scm (vim): Update to 8.0.0051.
[source]: Change to github release archive.
2016-10-28 20:55:09 +01:00
Leo Famulari 044ac8d294
gnu: python-twobitreader: Update to 3.1.4.
* gnu/packages/bioinformatics.scm (python-twobitreader, python2-twobitreader):
Update to 3.1.4.
2016-10-28 13:59:11 -04:00
Leo Famulari 900fb8d005
gnu: python-twobitreader: Disable the test suite.
The tests were silently skipped with Python 3.4. With Python 3.5, this caused
the build of python-twobitreader to fail.

* gnu/packages/bioinformatics.scm (python-twobitreader,
python2-twobitreader)[arguments]: Disable the tests.
2016-10-28 13:59:11 -04:00
Roel Janssen ed8bc028f7
gnu: Add emacs-org-trello.
* gnu/packages/emacs.scm (emacs-org-trello): New variable.
2016-10-28 19:50:32 +02:00
Leo Famulari e359b31a60
gnu: python-wsgiproxy2: Disable the test suite.
* gnu/packages/python.scm (python-wsgiproxy2, python2-wsgiproxy2)[arguments]:
Disable the tests.
2016-10-28 13:39:38 -04:00
Leo Famulari 67fd4a12cb
gnu: python-beautifulsoup4: Update to 4.5.1.
* gnu/packages/python.scm (python-beautifulsoup4, python2-beautifulsoup4):
Update to 4.5.1.
2016-10-28 13:39:38 -04:00
Leo Famulari 5f37f0b66e
gnu: python-beautifulsoup4: Run the test suite.
* gnu/packages/python.scm (python-beautifulsoup4)[arguments]: Add field
run python-2 -> python-3 conversion script and test suite.
(python2-beautifulsoup4)[arguments]: Specify use of python-2.
2016-10-28 13:39:37 -04:00
Leo Famulari 92c3ef2cf3
gnu: python-feedparser: Disable the test suite.
The tests were silently skipped with Python 3.4. With Python 3.5, this caused
the build of python-feedparser to fail.

* gnu/packages/python.scm (python-feedparser, python2-feedparser)[arguments]:
Disable the tests.
2016-10-28 13:39:37 -04:00
Leo Famulari 95bff4f697
gnu: libwebp: Fix CVE-2016-9085.
* gnu/packages/patches/libwebp-CVE-2016-9085.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/image.scm (libwebp)[source]: Use it.
2016-10-28 13:39:37 -04:00
Leo Famulari b2ed5ca7aa
gnu: libwebp: Update to 0.5.1.
* gnu/packages/image.scm (libwebp): Update to 0.5.1.
2016-10-28 13:39:33 -04:00
Roel Janssen 36e5d10387
gnu: Add emacs-request.
* gnu/packages/emacs.scm (emacs-request): New variable.
2016-10-28 19:29:35 +02:00
Thomas Danckaert fc381a3325
gnu: Add qwt.
* gnu/packages/qt.scm (qwt): New variable.

Signed-off-by: Marius Bakke <mbakke@fastmail.com>
2016-10-28 14:47:36 +01:00
Roel Janssen 7500e42b3e
gnu: Add r-mutationalpatterns.
* gnu/packages/bioinformatics.scm (r-mutationalpatterns): New variable.
2016-10-27 20:07:05 +02:00
Efraim Flashner 327be74720
gnu: jasper: Updat eto 1.900.16.
* gnu/packages/image.scm (japer): Update to 1.900.16.
2016-10-27 20:14:17 +03:00
Kei Kebreau 233fbb6102
gnu: windowmaker: Add support for more image formats.
* gnu/packages/gnustep.scm (windowmaker)[inputs]: Add giflib, libpng,
and libtiff.
2016-10-27 10:51:05 -04:00
Roel Janssen b5ce25cc0e
gnu: r: Use uname from Guix
* gnu/packages/statistics.scm (r): Use uname from Guix.
2016-10-27 16:37:24 +02:00
Marius Bakke 6178274d19
gnu: python-urllib3: Update to 1.18.1.
* gnu/packages/python.scm (python-urllib3): Update to 1.18.1.
[home-page]: Use https URL.
2016-10-27 14:03:07 +01:00
Ludovic Courtès 245cc5f5d5
tests: Test installation with a RAID root partition.
* gnu/tests/install.scm (%raid-root-os, %raid-root-os-source)
(%raid-root-installation-script, %test-raid-root-os): New variables.
2016-10-27 13:48:52 +02:00
Ludovic Courtès 49baaff4d2
file-systems: 'disk-partitions' detected partitions from mapped devices.
Previously, partitions of mdadm- or cryptsetup-produced block devices
would not be returned by 'disk-partitions'.

* gnu/build/file-systems.scm (disk-partitions)[last-character]: New
procedure.
[partition?]: Add 'name' parameter and rewrite.  Adjust caller.
* gnu/build/file-systems.scm (ENOENT-safe): Silently ignore ENOMEDIUM.
2016-10-27 13:48:52 +02:00
Ludovic Courtès b800b8da21
tests: Add #:memory-size parameter for the command to run the installed OS.
* gnu/tests/install.scm (qemu-command/writable-image): Add #:memory-size
parameter and honor it.
2016-10-27 13:48:52 +02:00
Ludovic Courtès 4ed2f515d6
mapped-devices: Use 'mdadm-static' in 'raid-device-mapping'.
* gnu/system/mapped-devices.scm (open-raid-device, close-raid-device):
Use MDADM-STATIC instead of MDADM.  Use 'file-append'.
2016-10-27 13:48:52 +02:00
Ludovic Courtès 631fda7e90
gnu: Add mdadm-static.
* gnu/packages/linux.scm (mdadm-static): New variable.
2016-10-27 13:48:52 +02:00
Efraim Flashner 7d876afdd8
gnu: libmikmod: Update to 3.3.10.
* gnu/packages/sdl.scm (libmikmod): Update to 3.3.10.
2016-10-27 12:23:04 +03:00
Efraim Flashner 355d8e873b
gnu: sdl2: Update to 2.0.5.
* gnu/packages/sdl.scm (sdl2): Update to 2.0.5.
2016-10-27 12:23:04 +03:00
Efraim Flashner 5d5790ce44
gnu: Use 'https' for libsdl urls.
* gnu/packages/sdl.scm (sdl, sdl2, sdl-image, sdl-mixer, sdl-net)
(sdl-ttf, sdl2-image, sdl2-ttf)[source]: Use https.
[home-page]: Use https.
2016-10-27 12:23:03 +03:00
Tobias Geerinckx-Rice 483b7ce7ae
gnu: mcelog: Update to 144.
* gnu/packages/linux.scm (mcelog): Update to 144.
2016-10-27 11:03:34 +02:00
Tobias Geerinckx-Rice 6270769dc2
gnu: btrfs-progs: Update to 4.8.2.
* gnu/packages/linux.scm (btrfs-progs): Update to 4.8.2.
2016-10-27 11:03:34 +02:00
Mike Gerwitz cd9ed6c1cb
gnu: gnupg: Add support for pcsc-lite.
* gnu/packages/gnupg.scm (gnupg)[inputs]: Add pcsc-lite.
[arguments]: Rename phase 'patch-config-files' to 'patch-paths'.  Patch
`scd/scdaemon.c' with absolute path of libpcsclite.so.

Signed-off-by: Marius Bakke <mbakke@fastmail.com>
2016-10-27 09:56:54 +01:00
Mike Gerwitz a6b256affc
gnu: Add pcsc-lite.
* gnu/packages/security-token.scm (pcsc-lite): New variable.

Signed-off-by: Marius Bakke <mbakke@fastmail.com>
2016-10-27 09:56:52 +01:00
ng0 8888fe826c
gnu: Add dbacl.
* gnu/packages/textutils.scm (dbacl): New variable.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2016-10-27 11:42:39 +03:00
Efraim Flashner 5fd84e288c
gnu: valgrind: Use 'modify-phases' syntax.
* gnu/packages/valgrind.scm (valgrind)[arguments]: Use 'modify-phases'
syntax.
2016-10-27 11:42:38 +03:00
Efraim Flashner e68168eb87
gnu: valgrind: Update to 3.12.0.
* gnu/packages/valgrind.scm (valgrind): Update to 3.12.0.
2016-10-27 11:42:29 +03:00
Hartmut Goebel 49a531f545
gnu: python-pathlib2: Add comment.
As suggested by Efraim Flashner.

* gnu/packages/python.scm (python-pathlib2): Add comment.
2016-10-27 10:09:10 +02:00
Leo Famulari 522fc32ebd
gnu: shotwell: Update to 0.25.0.
* gnu/packages/gnome.scm (shotwell): Update to 0.25.0.
[inputs]: Add gcr.
2016-10-26 20:10:05 -04:00
Leo Famulari 30b1267830
gnu: vdirsyncer: Update to 0.14.0.
* gnu/packages/dav.scm (vdirsyncer): Update to 0.14.0.
2016-10-26 19:56:15 -04:00
Ludovic Courtès 5479aa2b7c
tests: Test installation with store on a separate partition.
This is a followup to 0f65f54ebd.

* gnu/tests/install.scm (%separate-store-os, %separate-store-os-source)
(%separate-store-installation-script, %test-separate-store-os): New
variables.
2016-10-27 01:00:42 +02:00
Ludovic Courtès d88767a399
tests: Use #:fallback? #t when building system tests.
* build-aux/run-system-tests.scm (run-system-tests): Pass #:fallback? #t
to 'set-build-options*'.
2016-10-27 01:00:41 +02:00
Ludovic Courtès d6aca5835a
tests: Adjust pypi test to recent importer change.
This is a followup to b5c347ad3d.

* tests/pypi.scm ("pypi->guix-package"): Expect 'propagated-inputs', not
'inputs'.
("pypi->guix-package, wheels"): Likewise.
2016-10-27 01:00:41 +02:00
Ludovic Courtès a91d75ecbd
tests: Skip 'pivot-root' test on Linux > 4.7.5.
* tests/syscalls.scm ("pivot-root"): Skip when 'uname' returns a
'utsname:release' > 4.7.5.
2016-10-27 01:00:41 +02:00
ng0 5d73e30000
gnu: Add lci.
* gnu/packages/lolcode.scm: New file.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2016-10-26 20:39:27 +03:00
Christopher Allan Webber 8caeb11772
gnu: Add autossh.
* gnu/packages/ssh.scm (autossh): New variable.
2016-10-26 11:22:17 -05:00
Ricardo Wurmus aba6463975
gnu: r: Update to 3.3.1.
* gnu/packages/statistics.scm (r): Update to 3.3.1.
2016-10-26 18:14:17 +02:00
Ricardo Wurmus a8e893b0b8
gnu: r-matrixstats: Update to 0.51.0.
* gnu/packages/statistics.scm (r-matrixstats): Update to 0.51.0.
2016-10-26 16:23:32 +02:00
Ricardo Wurmus fd54f65e72
gnu: r-r-utils: Update to 2.4.0.
* gnu/packages/statistics.scm (r-r-utils): Update to 2.4.0.
2016-10-26 16:23:32 +02:00
Ricardo Wurmus 89242ea47f
gnu: r-irlba: Update to 2.1.2.
* gnu/packages/statistics.scm (r-irlba): Update to 2.1.2.
2016-10-26 16:23:31 +02:00
Ricardo Wurmus 4f2ebc16ce
gnu: r-codetools: Update to 0.2-15.
* gnu/packages/statistics.scm (r-codetools): Update to 0.2-15.
2016-10-26 16:23:31 +02:00
Ricardo Wurmus cf738e961e
gnu: r-snow: Update to 0.4-2.
* gnu/packages/statistics.scm (r-snow): Update to 0.4-2.
2016-10-26 16:23:31 +02:00