Commit Graph

33590 Commits

Author SHA1 Message Date
Ludovic Courtès e475211869
database: Reset timestamps to one second after the Epoch.
Previously, store items registered in the database by this code (for
instance, store items retrieved by 'guix offload' and passed to
'restore-file-set') would have an mtime of 0 instead of 1.

This would cause problems for things like .go files: Guile would
consider them to be older than the corresponding .scm file, and
consequently it would ignore them and possibly use another (incorrect)
.go file.

Reported by Ricardo Wurmus.

* guix/store/database.scm (reset-timestamps): Pass 1, not 0, to
'utime'.
* tests/store-database.scm ("register-path"): Check the mtime of FILE
and REF.
2018-07-20 15:01:33 +02:00
Ludovic Courtès 4f89a8eec6
deduplication: Work around Guile bug in 'seek'.
Fixes <https://bugs.gnu.org/32161>.
Reported by Ricardo Wurmus <rekado@elephly.net>.

This mostly reverts 83099892e0.

* guix/store/deduplication.scm (counting-wrapper-port): New procedure.
(nar-sha256): Use it.
2018-07-20 15:01:33 +02:00
Andreas Enge a2662bfe9c
gnu: gp2c: Update to 0.0.11.
* gnu/packages/algebra.scm (gp2c): Update to 0.0.11.
2018-07-20 10:45:54 +02:00
Andreas Enge 03d5f73e96
gnu: pari-gp: Update to 2.11.0.
* gnu/packages/algebra.scm (pari-gp): Update to 2.11.0.
2018-07-20 10:44:21 +02:00
Leo Famulari 82549f2328
build-system/go: Use invoke instead of system*.
* guix/build/go-build-system.scm (unpack, build): Use invoke.
(install-source): Unconditionally return #t.
(check): Use invoke and unconditionally return #t.
2018-07-19 19:12:54 -04:00
Andreas Enge 6f88285ab1
gnu: bitcoin-core: Update to 0.16.1.
* gnu/packages/finance.scm (bitcoin-core): Update to 0.16.1.
2018-07-19 23:22:36 +02:00
Julien Lepiller fbf9274b94
gnu: php: Update to 7.2.8.
* gnu/packages/php.scm (php): Update to 7.2.8.
2018-07-19 21:29:41 +02:00
Efraim Flashner e9ab4b40a8
gnu: busybox: Update to 1.29.1.
* gnu/packages/busybox.scm (busybox): Update to 1.29.1.
[arguments]: Add custom phase to change the default value of TASKSET.
2018-07-19 21:29:14 +03:00
Ludovic Courtès 83099892e0
deduplication: Remove 'counting-wrapper-port'.
* guix/store/deduplication.scm (counting-wrapper-port): Remove.
(nar-sha256): Call 'port-position' directly on PORT.
2018-07-19 17:12:48 +02:00
Ludovic Courtès c71cd4a61f
hash: sha256 port now implements 'port-position'.
* guix/hash.scm (open-sha256-port)[position]: New variable.
[get-position]: New procedure.
Pass it to 'make-custom-binary-output-port'.
* tests/hash.scm ("open-sha256-port, hello"): Test 'port-position'.
2018-07-19 17:08:53 +02:00
Ludovic Courtès f5db54eaa5
self: Use the new 'imported-files'.
That way, the source of most nodes is now a content-addressed store item
instead of a derivation.

* guix/self.scm (<file-mapping>): New record type.
(file-mapping-compiler): New procedure.
(scheme-node): Use 'file-mapping' instead of 'imported-files'.
(imported-files): Remove.
2018-07-19 11:48:04 +02:00
Ludovic Courtès e529d46828
gexp: 'imported-files/derivation' can copy files instead of symlinking.
* guix/gexp.scm (imported-files/derivation): Add #:symlink? and honor
it.
(imported-files): Pass #:symlink? to 'imported-files/derivation'.
* tests/gexp.scm ("imported-files with file-like objects"): Add 'file=?'
and use it instead of calling 'readlink'.
2018-07-19 11:48:04 +02:00
Ludovic Courtès 8df2eca6b0
gexp: 'imported-files' no longer creates a derivation by default.
* guix/gexp.scm (gexp->derivation): Add #:import-creates-derivation?.
Pass #:derivation? to 'imported-modules' and 'compiled-modules'.  In -L
argument, check whether MODULES is a derivation.
(%not-slash): New variable.
(file-mapping->tree): New procedure.
(imported-files): Rename to...
(imported-files/derivation): ... this.
(imported-files): New procedure.  Rewrite in terms of
'interned-file-tree' when possible; add #:derivation? parameter.
(imported-modules, compiled-modules): Add #:derivation? parameter and
pass it to 'imported-files'.
* guix/packages.scm (patch-and-repack): Pass
 #:import-creates-derivation? to 'gexp->derivation'.
* tests/gexp.scm ("imported-files"): Adjust to no longer expect a
derivation.
2018-07-19 11:48:04 +02:00
Ludovic Courtès 4d20d87b53
gexp: Remove unnecessary 'mlet'.
* guix/gexp.scm (imported-modules): Use 'let' instead of 'mlet'.
2018-07-19 11:48:04 +02:00
Ludovic Courtès 7f11efbac7
store: Add 'add-file-tree-to-store'.
* guix/store.scm (%not-slash): New variable.
(add-file-tree-to-store, interned-file-tree): New procedures.
* tests/store.scm ("add-file-tree-to-store"): New test.
2018-07-19 11:48:04 +02:00
Ludovic Courtès b94b698d4e
serialization: Add 'write-file-tree'.
* guix/serialization.scm (write-contents-from-port): New procedure.
(write-contents): Write in terms of 'write-contents-from-port'.
(filter/sort-directory-entries, write-file-tree): New procedures.
(write-file): Rewrite in terms of 'write-file-tree'.
* tests/nar.scm ("write-file-tree + restore-file"): New test.
2018-07-19 11:48:04 +02:00
Eric Brown ec83abad85
gnu: Add r-txtplot.
* gnu/packages/statistics.scm (r-txtplot): New variable.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2018-07-19 11:47:21 +02:00
Rouby Pierre-Antoine d4c06f3280
gnu: julia: Fix 'llvm' version.
Fixes a build failure with LLVM 6.0.x.

* gnu/packages/julia.scm (julia)[inputs]: Use LLVM-3.9.1 instead of
LLVM.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2018-07-19 11:46:43 +02:00
Mark H Weaver 7da1db5b57
gnu: linux-libre: Update to 4.17.8.
* gnu/packages/linux.scm (%linux-libre-version): Update to 4.17.8.
(%linux-libre-hash): Update hash.
(linux-libre): Remove patch.
2018-07-18 22:14:39 -04:00
Leo Famulari 324c049ff6
gnu: VLC: Update to 3.0.3-1 [fixes CVE-2018-11529].
* gnu/packages/video.scm (vlc): Update to 3.0.3-1.
2018-07-18 19:50:09 -04:00
Julien Lepiller 363c946b36
gnu: services: Fix openssh service start error.
* gnu/services/ssh.scm (openssh-shepherd-service): Require loopback.
2018-07-18 21:17:15 +02:00
Mark H Weaver 46978ff64f
gnu: linux-libre: Update to 4.17.7.
* gnu/packages/linux.scm (%linux-libre-version): Update to 4.17.7.
(%linux-libre-hash): Update hash.
(linux-libre)[source]: Add upstream patch to fix i686.
2018-07-18 13:55:47 -04:00
Leo Famulari 16c0902587
gnu: httpd: Update to 2.4.34 [fixes CVE-2018-{1333,8011}].
* gnu/packages/web.scm (httpd): Update to 2.4.34.
2018-07-18 13:34:02 -04:00
Leo Famulari 770d1f2464
gnu: znc: Update to 1.7.1 [fixes CVE-2018-{14055,14056}].
* gnu/packages/messaging.scm (znc): Update to 1.7.1.
2018-07-18 13:32:24 -04:00
Rouby Pierre-Antoine 661e8a62f7
gnu: Add emacs-rust-mode.
* gnu/packages/emacs.scm (emacs-rust-mode): New variable.

Signed-off-by: Kei Kebreau <kkebreau@posteo.net>
2018-07-18 11:38:22 -04:00
Mark H Weaver 208df8ba8a
gnu: linux-libre@4.14: Update to 4.14.56.
* gnu/packages/linux.scm (%linux-libre-4.14-version): Update to 4.14.56.
(%linux-libre-4.14-hash): Update hash.
2018-07-18 00:24:01 -04:00
Mark H Weaver 431936f22a
gnu: linux-libre@4.9: Update to 4.9.113.
* gnu/packages/linux.scm (linux-libre-4.9): Update to 4.9.113.
2018-07-18 00:23:16 -04:00
Mark H Weaver 06f06142a3
gnu: linux-libre@4.4: Update to 4.4.141.
* gnu/packages/linux.scm (linux-libre-4.4): Update to 4.4.141.
2018-07-18 00:22:24 -04:00
Kei Kebreau 348edd91ef
gnu: Add openbabel.
* gnu/packages/chemistry.scm (openbabel): New variable.
2018-07-17 20:53:57 -04:00
Leo Famulari a1e3da63cb
gnu: ghostscript: Fix CVE-2018-10194.
* gnu/packages/ghostscript.scm (ghostscript)[replacement]: New field.
(ghostscript/fixed): New variable.
* gnu/packages/patches/ghostscript-CVE-2018-10194.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
2018-07-17 20:44:52 -04:00
Leo Famulari 276598b69b
gnu: certbot, python-acme: Update to 0.26.1.
* gnu/packages/tls.scm (certbot, python-acme): Update to 0.26.1.
2018-07-17 20:44:52 -04:00
Leo Famulari d212b9d4d0
gnu: CUPS: Update to 2.2.8 [fixes CVE-2018-{4180,4181}].
* gnu/packages/cups.scm (cups-minimal)[replacement]: New field.
(cups-minimal-2.2.8): New variable.
(cups): Use package/inherit.
2018-07-17 20:44:48 -04:00
Marius Bakke b8b15ea0e9
gnu: whois: Update to 5.3.2.
* gnu/packages/networking.scm (whois): Update to 5.3.2.
2018-07-18 01:04:15 +02:00
Marius Bakke 1a149de748
gnu: rng-tools: Update to 6.3.1.
* gnu/packages/linux.scm (rng-tools): Update to 6.3.1.
2018-07-18 01:04:15 +02:00
Marius Bakke 7c9e27e8b6
gnu: ffmpeg@2.8: Update to 2.8.15.
* gnu/packages/video.scm (ffmpeg-2.8): Update to 2.8.15.
2018-07-18 01:04:15 +02:00
Marius Bakke ac83cf22c2
gnu: Add bsdiff.
* gnu/packages/compression.scm (bsdiff): New public variable.
2018-07-18 01:04:15 +02:00
Marius Bakke 67c127c9cb
gnu: sfml: Remove all bundled dependencies.
* gnu/packages/game-development.scm (sfml)[source](snippet): New field.
[inputs]: Add STB-IMAGE and STB-IMAGE-WRITE.
2018-07-18 01:04:14 +02:00
Marius Bakke ecb1194bbc
gnu: Add stb-image-write.
* gnu/packages/stb.scm (stb-image-write): New public variable.
2018-07-18 01:04:14 +02:00
Marius Bakke cada868c2a
gnu: Add stb-image.
* gnu/packages/stb.scm: New file.
* gnu/local.mk (GNU_SYSTEM_MODULES): Register it.
2018-07-18 01:04:14 +02:00
Marius Bakke 0bc2724800
gnu: sfml: Update to 2.5.0.
* gnu/packages/game-development.scm (sfml): Update to 2.5.0.
[arguments]: Specify pkg-config dir in #:configure-flags.
[native-inputs]: Add PKG-CONFIG.
[inputs]: Move FLAC, FREETYPE, LIBVORBIS and OPENAL ...
[propagated-inputs]: ... here.  New field.
2018-07-18 00:36:08 +02:00
Marius Bakke 08e977d291
gnu: physfs: Update to 3.0.1.
* gnu/packages/game-development.scm (physfs): Update to 3.0.1.
[arguments]: Add phase to ensure RUNPATH is set.
2018-07-18 00:36:08 +02:00
Marius Bakke 2495012709
gnu: libspiro: Update to 0.5.20150702.
* gnu/packages/fontutils.scm (libspiro): Update to 0.5.20150702.
[source]: Change URI to maintained repository.
[arguments]: Remove.
2018-07-18 00:36:07 +02:00
Marius Bakke 06446a7d03
gnu: libmodplug: Update to 0.8.9.0.
* gnu/packages/audio.scm (libmodplug): Update to 0.8.9.0.
2018-07-18 00:36:07 +02:00
Marius Bakke fa3b93d6a7
gnu: libmikmod: Update to 3.3.11.1.
* gnu/packages/sdl.scm (libmikmod): Update to 3.3.11.1.
2018-07-18 00:36:07 +02:00
Marius Bakke 67c18a03d4
gnu: libextractor: Update to 1.7.
* gnu/packages/gnunet.scm (libextractor): Update to 1.7.
2018-07-18 00:36:07 +02:00
Marius Bakke 05fcb98d10
gnu: libcue: Update to 2.2.1.
* gnu/packages/cdrom.scm (libcue): Update to 2.2.1.
[arguments]: Add #:configure-flags for building shared library, since the
package defaults to static since this version.
2018-07-18 00:36:07 +02:00
Marius Bakke e9997e471d
gnu: libb2: Update to 0.98.
* gnu/packages/crypto.scm (libb2): Update to 0.98.
[source]: Use URL-FETCH.
[native-inputs]: Remove.
2018-07-18 00:36:06 +02:00
Marius Bakke 5939188e72
gnu: rapidjson: Remove non-free code.
* gnu/packages/web.scm (rapidjson)[source](snippet, modules): New fields.
2018-07-18 00:36:06 +02:00
Marius Bakke f8ac203928
gnu: libusb: Update home page.
* gnu/packages/libusb.scm (libusb, libusb-compat)[home-page]: Use HTTPS.
2018-07-18 00:36:06 +02:00
Ludovic Courtès 799dc53e9b
gnu: guix-daemon: Fix file name of 'guix' command.
Fixes <https://bugs.gnu.org/32183>.
Reported by Pjotr Prins <pjotr.public12@thebird.nl>.

* gnu/packages/package-management.scm (guix-daemon)[arguments]: In
'install' phase, fix file name of 'guix' command.
2018-07-18 00:25:06 +02:00