jackhill/guix/guix.git
4 years agognu: python-libmpsse: Update to 1.4.1.
Danny Milosavljevic [Fri, 15 May 2020 20:54:33 +0000 (22:54 +0200)]
gnu: python-libmpsse: Update to 1.4.1.

* gnu/packages/embedded.scm (python-libmpsse): Update to 1.4.1.
[arguments]<#:phases>[set-environment-up]:
Fix build with Python 3.8.

4 years agognu: kicad: Re-use common fields in add-ons.
Tobias Geerinckx-Rice [Fri, 15 May 2020 20:22:09 +0000 (22:22 +0200)]
gnu: kicad: Re-use common fields in add-ons.

* gnu/packages/engineering.scm (kicad-i18n, kicad-symbols): Re-use
kicad's VERSION and HOME-PAGE.
(kicad-symbols, kicad-footprints, kicad-packages3d, kicad-templates):
Re-use kicad's VERSION.

4 years agognu: kicad-templates: Update to 5.1.6.
Tobias Geerinckx-Rice [Fri, 15 May 2020 19:54:48 +0000 (21:54 +0200)]
gnu: kicad-templates: Update to 5.1.6.

* gnu/packages/engineering.scm (kicad-templates): Update to 5.1.6.

4 years agognu: kicad-packages3d: Update to 5.1.6.
Tobias Geerinckx-Rice [Fri, 15 May 2020 19:54:43 +0000 (21:54 +0200)]
gnu: kicad-packages3d: Update to 5.1.6.

* gnu/packages/engineering.scm (kicad-packages3d): Update to 5.1.6.

4 years agognu: kicad-footprints: Update to 5.1.6.
Tobias Geerinckx-Rice [Fri, 15 May 2020 19:54:35 +0000 (21:54 +0200)]
gnu: kicad-footprints: Update to 5.1.6.

* gnu/packages/engineering.scm (kicad-footprints): Update to 5.1.6.

4 years agognu: kicad-symbols: Update to 5.1.6.
Tobias Geerinckx-Rice [Fri, 15 May 2020 19:50:49 +0000 (21:50 +0200)]
gnu: kicad-symbols: Update to 5.1.6.

* gnu/packages/engineering.scm (kicad-symbols): Update to 5.1.6.

4 years agognu: kicad-i18n: Update to 5.1.6.
Tobias Geerinckx-Rice [Fri, 15 May 2020 19:50:43 +0000 (21:50 +0200)]
gnu: kicad-i18n: Update to 5.1.6.

* gnu/packages/engineering.scm (kicad-i18n): Update to 5.1.6.

4 years agognu: kicad: Update to 5.1.6.
Tobias Geerinckx-Rice [Fri, 15 May 2020 19:50:30 +0000 (21:50 +0200)]
gnu: kicad: Update to 5.1.6.

* gnu/packages/engineering.scm (kicad): Update to 5.1.6.
[source]: Use GIT-FETCH & GIT-FILE-NAME.

4 years agognu: kicad-i18l: Fix typo in… name.
Tobias Geerinckx-Rice [Fri, 15 May 2020 17:11:47 +0000 (19:11 +0200)]
gnu: kicad-i18l: Fix typo in… name.

* gnu/packages/engineering.scm (kicad-i18n): New old variable previously…
(kicad-i18l): …this.  Redefine using DEPRECATED-PACKAGE.
(kicad)[arguments, native-inputs]: Adjust accordingly.

4 years agognu: oil-shell: Rename to "oil".
Ryan Prior [Fri, 1 May 2020 19:47:20 +0000 (14:47 -0500)]
gnu: oil-shell: Rename to "oil".

* gnu/packages/shells.scm (oil): Rename variable from…
(oil-shell): …this.  Redefine using DEPRECATED-PACKAGE.

Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>
4 years agognu: clamav: End snippet in truth.
Tobias Geerinckx-Rice [Fri, 15 May 2020 16:43:17 +0000 (18:43 +0200)]
gnu: clamav: End snippet in truth.

* gnu/packages/antivirus.scm (clamav)[source]: Return #t from snippet.

4 years agognu: clamav: Update to 0.102.3.
Tobias Geerinckx-Rice [Fri, 15 May 2020 16:42:34 +0000 (18:42 +0200)]
gnu: clamav: Update to 0.102.3.

* gnu/packages/antivirus.scm (clamav): Update to 0.102.3.

4 years agognu: ethtool: Update to 5.6.
Tobias Geerinckx-Rice [Fri, 15 May 2020 16:42:15 +0000 (18:42 +0200)]
gnu: ethtool: Update to 5.6.

* gnu/packages/networking.scm (ethtool): Update to 5.6.
[native-inputs]: Add pkg-config.
[inputs]: Add libmnl.

4 years agognu: openconnect: Update to 8.10 [fixes CVE-2020-12823].
Tobias Geerinckx-Rice [Fri, 15 May 2020 16:10:17 +0000 (18:10 +0200)]
gnu: openconnect: Update to 8.10 [fixes CVE-2020-12823].

* gnu/packages/vpn.scm (openconnect): Update to 8.10.

4 years agognu: emacs-flycheck-grammalecte: Update to 1.2.
Nicolas Goaziou [Fri, 15 May 2020 15:56:48 +0000 (17:56 +0200)]
gnu: emacs-flycheck-grammalecte: Update to 1.2.

* gnu/packages/emacs-xyz.scm (emacs-flycheck-grammalecte): Update to 1.2.
[arguments]: Exclude "test-profile.el", build with full Emacs for libxml
support.
[inputs]: Remove curl as dependency.

4 years agognu: tor: Update to 0.4.3.5.
Tobias Geerinckx-Rice [Fri, 15 May 2020 15:49:18 +0000 (17:49 +0200)]
gnu: tor: Update to 0.4.3.5.

* gnu/packages/tor.scm (tor): Update to 0.4.3.5.
[arguments]: Enable compression features that aren't auto-detected.
[native-inputs]: Use the default Python (3).
[inputs]: Order alphabetically.

4 years agognu: bitcoin-abc: Update to 0.21.6.
Guillaume Le Vaillant [Fri, 15 May 2020 15:29:05 +0000 (17:29 +0200)]
gnu: bitcoin-abc: Update to 0.21.6.

* gnu/packages/finance.scm (bitcoin-abc): Update to 0.21.6.
  [build-system]: Use cmake-build-system.
  [native-inputs]: Remove autoconf, automake and libtool.
  [inputs]: Add zeromq.
  [arguments]: Drop inheritance from bitcoin-core and use explicit
  'make-qt-deterministic', 'set-home' and 'check-functional' phases.

4 years agognu: bitcoin-unlimited: Update to 1.8.0.0.
Guillaume Le Vaillant [Fri, 15 May 2020 13:51:48 +0000 (15:51 +0200)]
gnu: bitcoin-unlimited: Update to 1.8.0.0.

* gnu/packages/finance.scm (bitcoin-unlimited): Update to 1.8.0.0.
  [arguments]: Add 'fix-build' phase, update 'fix-tests' phase.

4 years agognu: emacs-flycheck: Update to 31-2.9bcf6b6.
Nicolas Goaziou [Fri, 15 May 2020 15:12:26 +0000 (17:12 +0200)]
gnu: emacs-flycheck: Update to 31-2.9bcf6b6.

* gnu/packages/emacs-xyz.scm (emacs-flycheck): Update to 31-2.9bcf6b6.

4 years agognu: ocaml-ocurl: Update to 0.9.1.
Julien Lepiller [Fri, 15 May 2020 13:56:33 +0000 (15:56 +0200)]
gnu: ocaml-ocurl: Update to 0.9.1.

* gnu/packages/ocaml.scm (ocaml-ocurl): Update to 0.9.1.

4 years agognu: ocaml-fileutils: Update to 0.6.2.
Julien Lepiller [Fri, 15 May 2020 12:48:46 +0000 (14:48 +0200)]
gnu: ocaml-fileutils: Update to 0.6.2.

* gnu/packages/ocaml.scm (ocaml-fileutils): Update to 0.6.2.

4 years agognu: ocaml-octavius: Update to 1.2.2.
Julien Lepiller [Fri, 15 May 2020 12:44:28 +0000 (14:44 +0200)]
gnu: ocaml-octavius: Update to 1.2.2.

* gnu/packages/ocaml.scm (ocaml-octavius): Update to 1.2.2.

4 years agonews: Add ‘de’ translation.
Florian Pelz [Fri, 15 May 2020 12:09:12 +0000 (14:09 +0200)]
news: Add ‘de’ translation.

* etc/news.scm: Add a ‘de’ translation.

4 years agognu: rottlog: Fix aarch64 cross-compilation.
Mathieu Othacehe [Fri, 15 May 2020 11:36:45 +0000 (13:36 +0200)]
gnu: rottlog: Fix aarch64 cross-compilation.

* gnu/packages/admin.scm (rottlog)[arguments]: Add a 'fix-configure phase to
replace outdated config.sub and config.guess, without aarch64 support,
[native-inputs]: add "automake".

4 years agognu: openjdk12: Simplify snippet.
Ricardo Wurmus [Thu, 14 May 2020 22:32:05 +0000 (00:32 +0200)]
gnu: openjdk12: Simplify snippet.

* gnu/packages/java.scm (openjdk12)[source]: Use regular expression in
find-files.

4 years agognu: openjdk11: Build in parallel.
Ricardo Wurmus [Thu, 14 May 2020 22:15:25 +0000 (00:15 +0200)]
gnu: openjdk11: Build in parallel.

* gnu/packages/java.scm (openjdk11)[arguments]: Remove #:parallel-build?,
 #:parallel-tests?, and #:make-flags options; add
"write-source-revision-file"; replace "build" phase; do not set
GUIX_LD_WRAPPER_ALLOW_IMPURITIES; pass JOBS variable to make in "build" and
"build-jre" phases.

4 years agognu: openjdk11: Simplify snippet.
Ricardo Wurmus [Thu, 14 May 2020 22:12:49 +0000 (00:12 +0200)]
gnu: openjdk11: Simplify snippet.

* gnu/packages/java.scm (openjdk11)[source]: Use regular expression in
find-files.

4 years agognu: openjdk10: Simplify snippet.
Ricardo Wurmus [Thu, 14 May 2020 20:07:02 +0000 (22:07 +0200)]
gnu: openjdk10: Simplify snippet.

* gnu/packages/java.scm (openjdk10)[source]: Use regular expression in
find-files.

4 years agognu: openjdk9: Build in parallel.
Ricardo Wurmus [Thu, 14 May 2020 19:32:30 +0000 (21:32 +0200)]
gnu: openjdk9: Build in parallel.

* gnu/packages/java.scm (openjdk9)[arguments]: Add phase
"write-source-revision-file"; replace "build" phase; add make-flags; remove
GUIX_LD_WRAPPER_ALLOW_IMPURITIES.

4 years agognu: openjdk9: Simplify snippet.
Ricardo Wurmus [Thu, 14 May 2020 19:31:42 +0000 (21:31 +0200)]
gnu: openjdk9: Simplify snippet.

* gnu/packages/java.scm (openjdk9)[source]: Use only one find-files
invocation.

4 years agognu: Add python-selenium.
Edouard Klein [Tue, 12 May 2020 11:29:03 +0000 (13:29 +0200)]
gnu: Add python-selenium.

* gnu/packages/python-web.scm (python-selenium): New variable.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
4 years agognu: quaternion: Update to 0.0.9.4e.
Jonathan Brielmaier [Wed, 13 May 2020 10:28:35 +0000 (12:28 +0200)]
gnu: quaternion: Update to 0.0.9.4e.

* gnu/packages/messaging.scm (quaternion): Update to 0.0.9.4e.
[source]: Upstream moved the repo to quotient-im namespace.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
4 years agognu: libqmatrixclient: Update to 0.5.3.2.
Jonathan Brielmaier [Wed, 13 May 2020 10:24:47 +0000 (12:24 +0200)]
gnu: libqmatrixclient: Update to 0.5.3.2.

* gnu/packages/messaging.scm (libqmatrixclient): Update to 0.5.3.2.
[source]: Name changed to libquotient, will be visible in 0.6.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
4 years agolicenses: Update Zlib license URL.
Ludovic Courtès [Fri, 15 May 2020 10:13:26 +0000 (12:13 +0200)]
licenses: Update Zlib license URL.

* guix/licenses.scm (zlib): Change URL.

4 years agognu: Add openctm.
Ekaitz Zarraga [Thu, 14 May 2020 14:55:32 +0000 (16:55 +0200)]
gnu: Add openctm.

* gnu/packages/engineering.scm (openctm): New Variable.

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
4 years agoquirks: Add patch for <https://bugs.gnu.org/41214>.
Ludovic Courtès [Fri, 15 May 2020 08:04:39 +0000 (10:04 +0200)]
quirks: Add patch for <https://bugs.gnu.org/41214>.

Fixes <https://bugs.gnu.org/41214>.

* guix/quirks.scm (%bug-41214-patch): New variable.
(%patches): Add it.

4 years agochannels: 'build-from-source' restores '%guile-for-build'.
Ludovic Courtès [Fri, 15 May 2020 09:53:13 +0000 (11:53 +0200)]
channels: 'build-from-source' restores '%guile-for-build'.

Not restoring it would cause problems when running:

  guix time-machine --commit=6298c3ffd9654d3231a6f25390b056483e8f407c

or similar because the target Guix would be built with 2.2, and then
we'd erroneously go on and attempt build the profile with 2.2.  This
would fail because profile dependencies such as "guile-gdbm-ffi" now
target 3.0.

* guix/channels.scm (call-with-guile): New procedure.
(with-guile): New macro.
(build-from-source): Use it instead of calling 'set-guile-for-build'
just once.  This ensures that '%guile-for-build' is restored
afterwards.

4 years agognu: chirp: Update to 20200430.
Guillaume Le Vaillant [Thu, 14 May 2020 21:03:10 +0000 (23:03 +0200)]
gnu: chirp: Update to 20200430.

* gnu/packages/radio.scm (chirp): Update to 20200430.

4 years agognu: blueman: Enable AppIndicator.
Raghav Gururajan [Fri, 15 May 2020 00:50:42 +0000 (20:50 -0400)]
gnu: blueman: Enable AppIndicator.

* gnu/packages/networking.scm (blueman) [arguments]: Remove --disable
-appindicator configure-flag.
[inputs]: Add libappindicator.

Signed-off-by: Pierre Neidhardt <mail@ambrevar.xyz>
4 years agognu: openrct2: Update to 0.2.6.
Pierre Neidhardt [Fri, 15 May 2020 07:37:58 +0000 (09:37 +0200)]
gnu: openrct2: Update to 0.2.6.

* gnu/packages/games.scm (openrct2): Update to 0.2.6.

4 years agosyscalls: Adjust 'sockaddr-in', 'sockaddr-in6' structs for the Hurd.
Jan (janneke) Nieuwenhuizen [Sat, 9 May 2020 06:43:39 +0000 (08:43 +0200)]
syscalls: Adjust 'sockaddr-in', 'sockaddr-in6' structs for the Hurd.

* guix/build/syscalls.scm (sockaddr-in,sockaddr-in6): Rename to ...
(sockaddr-in/linux, sockaddr-in6/linux): ... this.  Rename introduced bindings
as well.
(write-socket-address!/linux,read-socket-address/linux): Rename from
(write-socket-address!, read-socket-address): ... new switches between those
and ...
(write-socket-address!/hurd, read-socket-address/hurd): ... these new function.

4 years agomailmap: Update for self.
Mathieu Othacehe [Fri, 15 May 2020 07:07:05 +0000 (09:07 +0200)]
mailmap: Update for self.

Add "othacehe@gnu.org" mail address.

4 years agognu: Add ffmpeg-jami.
Jan Wielkiewicz [Fri, 15 May 2020 00:47:05 +0000 (02:47 +0200)]
gnu: Add ffmpeg-jami.

This package is needed because Jami uses a modified version
of ffmpeg, which provides GPU hardware acceleration, automatical
adapting of bitrate and extra codecs. Because of the configure flags
list being long, it is better to keep them separated in variables,
instead of littering the package definition.

* gnu/packages/jami.scm (ffmpeg-jami, %ffmpeg-default-configure-flags,
%ffmpeg-linux-configure-flags, %ffmpeg-linux-x86-configure-flags):
New variables.
(ffmpeg-compose-configure-flags): New procedure.
(libring)[inputs]: Use ffmpeg-jami instead of ffmpeg.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
4 years agoetc: indent-code.el: Use the --quick option.
Maxim Cournoyer [Tue, 31 Mar 2020 04:12:01 +0000 (00:12 -0400)]
etc: indent-code.el: Use the --quick option.

This prevents Emacs from loading the autoload definitions found in its
profile, which needlessly clutters the output.  It also prevents Geiser (if
installed) from blocking the script and asking the user to input the Scheme
implementation to use.

The trick for passing multiple arguments to Emacs is to use what is called a
"sesquicolon" (see https://www.emacswiki.org/emacs/EmacsScripts).

* etc/indent-code.el.in: Rename to...
* etc/indent-code.el: ...this.  Adapt the shebang to use a sesquicolon, and
pass the --quick option to Emacs.  Since this line is interpreted by the
shell, simply use Emacs from the PATH instead of from a hard coded location.
(main): New procedure, used as the entry point.
* configure.ac: Remove the warning about Emacs.  Emacs can now be installed
any time by the user if they want to use the script.
* .gitignore: No longer ignore changes to etc/indent-code.el.

4 years agognu: linux-libre: Update to 5.4.41.
Mark H Weaver [Thu, 14 May 2020 22:11:26 +0000 (18:11 -0400)]
gnu: linux-libre: Update to 5.4.41.

* gnu/packages/linux.scm (linux-libre-5.4-version): Update to 5.4.41.
(linux-libre-5.4-pristine-source): Update hash.

4 years agognu: linux-libre@5.6: Update to 5.6.13.
Mark H Weaver [Thu, 14 May 2020 22:10:56 +0000 (18:10 -0400)]
gnu: linux-libre@5.6: Update to 5.6.13.

* gnu/packages/linux.scm (linux-libre-5.6-version): Update to 5.6.13.
(linux-libre-5.6-pristine-source): Update hash.

4 years agognu: linux-libre@4.19: Update to 4.19.123.
Mark H Weaver [Thu, 14 May 2020 22:09:59 +0000 (18:09 -0400)]
gnu: linux-libre@4.19: Update to 4.19.123.

* gnu/packages/linux.scm (linux-libre-4.19-version): Update to 4.19.123.
(linux-libre-4.19-pristine-source): Update hash.

4 years agognu: sudo: Disable Python support when cross-compiling.
Ludovic Courtès [Thu, 14 May 2020 21:53:18 +0000 (23:53 +0200)]
gnu: sudo: Disable Python support when cross-compiling.

* gnu/packages/admin.scm (sudo)[arguments]: Pass "--disable-python"
when (%current-target-system) is true.
[inputs]: Remove PYTHON when (%current-target-system) is true.

4 years agolocale: Use the native gzip and libc when building locales.
Ludovic Courtès [Thu, 14 May 2020 21:20:14 +0000 (23:20 +0200)]
locale: Use the native gzip and libc when building locales.

This fixes system cross-compilation.

* gnu/system/locale.scm (single-locale-directory)[build]: Use the native
GZIP and LIBC.

4 years agochannels: Move quirks and patches to (guix quirks).
Ludovic Courtès [Thu, 14 May 2020 20:53:44 +0000 (22:53 +0200)]
channels: Move quirks and patches to (guix quirks).

* guix/channels.scm (apply-patches): Don't access <patch> record
directly; use 'applicable-patch?' and 'apply-patch' instead.
(<patch>, syscalls-reexports-local-variables?)
(guile-2.2.4, %quirks, %bug-41028-patch, %patches): Move to...
* guix/quirks.scm: ... here.  New file.
(apply-patch, applicable-patch?): New procedures.

4 years agognu: mcron: Allow cross-compilation.
Ludovic Courtès [Thu, 14 May 2020 20:43:20 +0000 (22:43 +0200)]
gnu: mcron: Allow cross-compilation.

* gnu/packages/guile-xyz.scm (mcron)[native-inputs]: Add "guile-native".

4 years agognu: blueman: Use bootstrapped tarball.
Marius Bakke [Thu, 14 May 2020 20:04:11 +0000 (22:04 +0200)]
gnu: blueman: Use bootstrapped tarball.

* gnu/packages/networking.scm (blueman)[source]: Switch to URL-FETCH.
[native-inputs]: Remove AUTOCONF, AUTOMAKE, AUTOGEN, and LIBTOOL.

4 years agognu: blueman: Remove obsolete phase.
Marius Bakke [Thu, 14 May 2020 20:02:09 +0000 (22:02 +0200)]
gnu: blueman: Remove obsolete phase.

* gnu/packages/networking.scm (blueman)[arguments]: Remove setenv phase.

4 years agognu: php: Update to 7.4.6.
Julien Lepiller [Thu, 14 May 2020 21:24:57 +0000 (23:24 +0200)]
gnu: php: Update to 7.4.6.

* gnu/packages/php.scm (php): Update to 7.4.6.

4 years agognu: ccl: Update to 1.12.
Pierre Neidhardt [Thu, 14 May 2020 19:48:09 +0000 (21:48 +0200)]
gnu: ccl: Update to 1.12.

* gnu/packages/lisp.scm (ccl): Update to 1.12.
[native-inputs]: Remove subversion.
[license]: Change to asl2.0.
(ccl-1.12): Remove obsolete variable.

4 years agognu: blueman: Update package definition.
Raghav Gururajan [Mon, 11 May 2020 09:54:40 +0000 (05:54 -0400)]
gnu: blueman: Update package definition.

* gnu/packages/networking.scm (blueman): Fixes.
[version]: Upgrade to 2.1.3.
[source]<origin>[method]: Change from url-fetch to git-fetch.
[arguments]<#:phases>['setenv]: New phase.
['patch-python-references]: New phase.
['patch-external-programs]: New phase.
['patch-pulseaudio-libraries]: New phase.
['wrap-blueman-progs]: New phase.
[native-inputs]: Add autoconf, autogen, automake and gobject-introspection.
[inputs]: Add iptables and ppp. Remove adwaita-icon-theme.

Signed-off-by: Pierre Neidhardt <mail@ambrevar.xyz>
4 years agognu: Add libappindicator.
Nicolò Balzarotti [Thu, 14 May 2020 16:15:24 +0000 (18:15 +0200)]
gnu: Add libappindicator.

* gnu/packages/freedesktop.scm (libappindicator): New variable.

Signed-off-by: Pierre Neidhardt <mail@ambrevar.xyz>
4 years agognu: Add libindicator.
Nicolò Balzarotti [Thu, 14 May 2020 16:15:46 +0000 (18:15 +0200)]
gnu: Add libindicator.

* gnu/packages/freedesktop.scm (libindicator): New variable.

Signed-off-by: Pierre Neidhardt <mail@ambrevar.xyz>
4 years agognu: Add dbus-test-runner.
Nicolò Balzarotti [Thu, 14 May 2020 15:57:31 +0000 (17:57 +0200)]
gnu: Add dbus-test-runner.

* gnu/packages/glib.scm (dbus-test-runner): New variable.

Signed-off-by: Pierre Neidhardt <mail@ambrevar.xyz>
4 years agonews: Add news entry for 'guix pack -RR' and Fakechroot.
Ludovic Courtès [Thu, 14 May 2020 15:18:43 +0000 (17:18 +0200)]
news: Add news entry for 'guix pack -RR' and Fakechroot.

* etc/news.scm: Add entry.

4 years agopack: Add relocation via ld.so and fakechroot.
Ludovic Courtès [Thu, 7 May 2020 20:49:20 +0000 (22:49 +0200)]
pack: Add relocation via ld.so and fakechroot.

* gnu/packages/aux-files/run-in-namespace.c (HAVE_EXEC_WITH_LOADER): New
macro.
(bind_mount): Rename to...
(mirror_directory): ... this.  Add 'firmlink' argument and use it
instead of calling mkdir/open/close/mount directly.
(bind_mount, make_symlink): New functions.
(exec_in_user_namespace): Adjust accordingly.
(exec_with_loader) [HAVE_EXEC_WITH_LOADER]: New function.
(exec_performance): New function.
(engines): Add them.
* guix/scripts/pack.scm (wrapped-package)[fakechroot-library]
[audit-module]: New procedures.
[audit-source]: New variable.
[build](elf-interpreter, elf-loader-compile-flags): New procedures.
(build-wrapper): Use them.
* tests/guix-pack-relocatable.sh: Test with
'GUIX_EXECUTION_ENGINE=fakechroot'.
* doc/guix.texi (Invoking guix pack): Document the 'performance' and
'fakechroot' engines.
* gnu/packages/aux-files/pack-audit.c: New file.
* Makefile.am (AUX_FILES): Add it.

4 years agognu: Add fakechroot.
Ludovic Courtès [Thu, 7 May 2020 20:28:32 +0000 (22:28 +0200)]
gnu: Add fakechroot.

* gnu/packages/linux.scm (fakechroot): New variable.

4 years agopack: Factorize store references in wrapper.
Ludovic Courtès [Wed, 13 May 2020 12:38:12 +0000 (14:38 +0200)]
pack: Factorize store references in wrapper.

* gnu/packages/aux-files/run-in-namespace.c (original_store): New variable.
(exec_in_user_namespace, exec_with_proot, main): Use it instead of the
literal "@STORE_DIRECTORY@".

4 years agopack: Wrapper honors 'GUIX_EXECUTION_ENGINE' environment variable.
Ludovic Courtès [Mon, 11 May 2020 14:32:24 +0000 (16:32 +0200)]
pack: Wrapper honors 'GUIX_EXECUTION_ENGINE' environment variable.

* gnu/packages/aux-files/run-in-namespace.c (struct engine): New type.
(exec_default): New function.
(engines): New variable.
(execution_engine): New function.
(main): Use it instead of calling 'exec_in_user_namespace' and
'exec_with_proot' directly.
* tests/guix-pack-relocatable.sh: Add test with 'GUIX_EXECUTION_ENGINE'.
* doc/guix.texi (Invoking guix pack): Document 'GUIX_EXECUTION_ENGINE'.

4 years agostore: 'mapm/accumulate-builds' preserves '%current-target-system'.
Ludovic Courtès [Thu, 14 May 2020 14:53:42 +0000 (16:53 +0200)]
store: 'mapm/accumulate-builds' preserves '%current-target-system'.

Fixes <https://bugs.gnu.org/41182>.

* guix/store.scm (mapm/accumulate-builds): Pass #:system and #:target to
'run-with-store'.
* tests/store.scm ("mapm/accumulate-builds, %current-target-system"):
New test.
* tests/guix-pack.sh: Add 'guix pack -d --target' test.

4 years agopackages: Ensure bags are insensitive to '%current-target-system'.
Ludovic Courtès [Thu, 14 May 2020 14:03:56 +0000 (16:03 +0200)]
packages: Ensure bags are insensitive to '%current-target-system'.

Fixes a bug whereby a bag's transitive dependencies would depend on the
global '%current-target-system' value.

Partly fixes <https://issues.guix.gnu.org/41182>.

* guix/packages.scm (bag-transitive-inputs)
(bag-transitive-build-inputs, bag-transitive-target-inputs):
Parameterize '%current-target-system'.
* tests/packages.scm ("package->bag, sensitivity to %current-target-system"):
New test.

4 years agopack: Do not cross-compile the image building tools.
Ludovic Courtès [Thu, 14 May 2020 10:50:18 +0000 (12:50 +0200)]
pack: Do not cross-compile the image building tools.

Until now, something like:

  guix pack -f docker --target=arm-linux-gnueabihf

would attempt to cross-compile tar.

* guix/scripts/pack.scm (self-contained-tarball): Pass #:target to
'gexp->derivation'.
(squashfs-image): Use #+ instead of #$ for ARCHIVER.  Use 'file-append'
instead of 'string-append'.  Pass #:target to 'gexp->derivation'.
(docker-image): Likewise.

4 years agognu: dump1090: Don't hard-code CC=gcc.
Guillaume Le Vaillant [Thu, 14 May 2020 15:12:54 +0000 (17:12 +0200)]
gnu: dump1090: Don't hard-code CC=gcc.

* gnu/packages/radio.scm (dump1090)[arguments]: Add 'make-flags' field to set
  'CC' to the right compiler, remove 'configure' phase.

4 years agognu: js8call: Fix undefined symbol error when starting the program.
Guillaume Le Vaillant [Thu, 14 May 2020 15:04:32 +0000 (17:04 +0200)]
gnu: js8call: Fix undefined symbol error when starting the program.

* gnu/packages/radio.scm (js8call)[arguments]: Add 'work-around-runtime-bug'
  phase.

4 years agognu: wsjtx: Fix undefined symbol error when starting the program.
Guillaume Le Vaillant [Thu, 14 May 2020 14:57:42 +0000 (16:57 +0200)]
gnu: wsjtx: Fix undefined symbol error when starting the program.

* gnu/packages/radio.scm (wsjtx)[arguments]: Add 'work-around-runtime-bug'
  phase.

4 years agognu: Add sparse.
Jan (janneke) Nieuwenhuizen [Thu, 14 May 2020 14:34:52 +0000 (16:34 +0200)]
gnu: Add sparse.

* gnu/packages/c.scm (sparse): New variable.

4 years agognu: exo: Fix exo-compose-mail.
Jonathan Brielmaier [Thu, 14 May 2020 10:53:41 +0000 (12:53 +0200)]
gnu: exo: Fix exo-compose-mail.

Fixes <https://issues.guix.gnu.org/issue/41244>.

* gnu/packages/xfce.scm (exo)[arguments]: Add wrap-exo-compose-mail phase so
it can find URI::Escape from perl-uri.

Signed-off-by: Ricardo Wurmus <rekado@elephly.net>
4 years agognu: qemu-minimal: Only build for the host's architecture.
Efraim Flashner [Sun, 3 May 2020 08:00:44 +0000 (11:00 +0300)]
gnu: qemu-minimal: Only build for the host's architecture.

* gnu/packages/virtualization.scm (qemu-minimal)[arguments]: Adjust
configure-flags so that each architecture only builds for its native
architectures.
[synopsis]: Adjust to clarify it's only for the host's architecture.

4 years agognu: python-automat: Update to 20.2.0.
Marius Bakke [Thu, 14 May 2020 14:23:50 +0000 (16:23 +0200)]
gnu: python-automat: Update to 20.2.0.

Fixes <https://bugs.gnu.org/41249>.
Reported by Mikhail Tsykalov <tsymsh@gmail.com>.

* gnu/packages/python-xyz.scm (python-automat): Update to 20.2.0.

4 years agognu: hackrf: Simplify installation instructions.
Brice Waegeneire [Wed, 13 May 2020 08:46:03 +0000 (10:46 +0200)]
gnu: hackrf: Simplify installation instructions.

* gnu/packages/radio.scm (hackrf)[description]: Replace
'modify-services' snippet with 'udev-rules-service'.

4 years agognu: rtl-sdr: Simplify installation instructions.
Brice Waegeneire [Wed, 13 May 2020 08:43:57 +0000 (10:43 +0200)]
gnu: rtl-sdr: Simplify installation instructions.

* gnu/packages/radio.scm (rtl-sdr)[description]: Replace
'modify-services' snippet with 'udev-rules-service'.

4 years agognu: python-language-server: Update to 0.32.0.
Giacomo Leidi [Thu, 14 May 2020 12:43:11 +0000 (14:43 +0200)]
gnu: python-language-server: Update to 0.32.0.

* gnu/packages/python-xyz.scm (python-language-server): Update to 0.32.0,
[propagated-inputs]: Remove PYTHON-JEDI-0.15. Add PYTHON-JEDI.
(python-jedi-0.15, python-parso-0.5): Remove variables.

Signed-off-by: Ricardo Wurmus <rekado@elephly.net>
4 years agognu: Add emacs-icomplete-vertical.
Ricardo Wurmus [Thu, 14 May 2020 11:13:04 +0000 (13:13 +0200)]
gnu: Add emacs-icomplete-vertical.

* gnu/packages/emacs-xyz.scm (emacs-icomplete-vertical): New variable.

4 years agognu: emacs-org-re-reveal: Update to 2.12.2.
Michael Rohleder [Thu, 14 May 2020 09:15:53 +0000 (11:15 +0200)]
gnu: emacs-org-re-reveal: Update to 2.12.2.

[[PGP Signed Part:No public key for 7C7AFFBEFEF2CB25 created at 2020-05-14T11:15:53+0200 using RSA]]
To test this, I made a presentation about guix git workflow in emacs:
https://www.rohleder.de/~mike/guix-workflow/

maybe, its useful for someone.

From 528ccdab63cf399012582450491be6df3d8cc431 Mon Sep 17 00:00:00 2001
From: Michael Rohleder <mike@rohleder.de>
Date: Thu, 14 May 2020 08:16:49 +0000
Subject: [PATCH] gnu: emacs-org-re-reveal: Update to 2.12.2.

* gnu/packages/emacs-xyz.scm (emacs-org-re-reveal): Update to 2.12.2.

4 years agognu: gcc-arm-none-eabi@7-2018-q2-update: Fix conflicting GCC headers.
Björn Höfling [Thu, 14 May 2020 06:12:07 +0000 (08:12 +0200)]
gnu: gcc-arm-none-eabi@7-2018-q2-update: Fix conflicting GCC headers.

This is a follow-up of 7f6d3f395023ff430cf8b7a981d4780698e9d132 and merely
a copy-and-paste of Marius Bakke's fix.

* gnu/packages/embedded.scm (gcc-arm-none-eabi-7-2018-q2-update)[arguments]:
Add phase to remove the default compiler from CPLUS_INCLUDE_PATH.
[native-inputs]: Distinguish GCC-5.

4 years agognu: libblockdev: Set default configuration directory.
Brice Waegeneire [Wed, 13 May 2020 22:25:42 +0000 (00:25 +0200)]
gnu: libblockdev: Set default configuration directory.

Fix error from 'udisks': “Failed to get contents of the config
dir (/etc/libblockdev/conf.d/)Error opening directory
"/etc/libblockdev/conf.d/": No such file or directory.”

* gnu/packages/disk.scm (libblockdev)[arguments]: Add phase
'patch-configuration-directory'.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
4 years agognu: libblockdev: Appease guix lint.
Brice Waegeneire [Wed, 13 May 2020 22:25:40 +0000 (00:25 +0200)]
gnu: libblockdev: Appease guix lint.

* gnu/packages/disk.scm (libblockdev)[inputs]: Move
gobject-introspection to ...
[native-inputs]: ... here.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
4 years agognu: udisks: Appease guix lint.
Brice Waegeneire [Wed, 13 May 2020 22:25:39 +0000 (00:25 +0200)]
gnu: udisks: Appease guix lint.

The line is too long and HTML docs are build fine without it.

* gnu/packages/freedesktop.scm (udisks)[arguments]: Remove configure
flag '--enable-gtk-doc'.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
4 years agognu: udisks: Update to 2.8.4.
Brice Waegeneire [Wed, 13 May 2020 22:25:38 +0000 (00:25 +0200)]
gnu: udisks: Update to 2.8.4.

* gnu/packages/freedesktop.scm (udisks): Update to 2.8.4.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
4 years agosyscalls: Add 'getxattr'.
Jan (janneke) Nieuwenhuizen [Wed, 13 May 2020 22:30:57 +0000 (00:30 +0200)]
syscalls: Add 'getxattr'.

* guix/build/syscalls.scm (getxattr): New procedure.
* tests/syscalls.scm ("getxattr, setxattr"): Test it, together with setxattr.

4 years agognu: freehdl: Fix build failure.
Marius Bakke [Wed, 13 May 2020 22:21:41 +0000 (00:21 +0200)]
gnu: freehdl: Fix build failure.

Fixes <https://bugs.gnu.org/41246>.
Reported by  tsmish <tsymsh@gmail.com>.

* gnu/packages/engineering.scm (freehdl)[source](patches): New field.
[native-inputs]: Remove GCC-5.

4 years agocompile: Reduce optimization levels for gnu/services and gnu/packages.
Ludovic Courtès [Wed, 13 May 2020 21:17:49 +0000 (23:17 +0200)]
compile: Reduce optimization levels for gnu/services and gnu/packages.

* guix/build/compile.scm (optimization-options)[strip-option]
[override-option]: New procedures.
Add case for "gnu/services".  Change "gnu/packages" to
'-O0 -Opartial-eval'.

4 years agoservices: Add missing import.
Ludovic Courtès [Wed, 13 May 2020 20:33:25 +0000 (22:33 +0200)]
services: Add missing import.

* gnu/services/audio.scm: Import (ice-9 format).

4 years agosyscalls: Add 'setxattr'.
Jan (janneke) Nieuwenhuizen [Wed, 13 May 2020 20:49:54 +0000 (22:49 +0200)]
syscalls: Add 'setxattr'.

* guix/build/syscalls.scm (setxattr): New procedure.

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
4 years agognu: Add libqglviewer.
Kei Kebreau [Wed, 13 May 2020 11:54:20 +0000 (07:54 -0400)]
gnu: Add libqglviewer.

* gnu/packages/qt.scm (libqglviewer): New variable.

4 years agognu: hstr: Update to 2.2.
Michael Rohleder [Wed, 13 May 2020 14:14:45 +0000 (16:14 +0200)]
gnu: hstr: Update to 2.2.

* gnu/packages/shellutils.scm (hstr): Update to 2.2.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
4 years agognu: gcc-arm-none-eabi: Fix conflicting GCC headers.
Marius Bakke [Wed, 13 May 2020 18:39:01 +0000 (20:39 +0200)]
gnu: gcc-arm-none-eabi: Fix conflicting GCC headers.

Fixes <https://bugs.gnu.org/41210>.
Reported by Ricardo Wurmus <rekado@elephly.net>.

* gnu/packages/embedded.scm (gcc-arm-none-eabi-4.9)[arguments]: Add phase to
remove the default compiler from CPLUS_INCLUDE_PATH.
[native-inputs]: Distinguish GCC-5.

4 years agognu: avr-gcc: Fix conflicting GCC headers.
Marius Bakke [Wed, 13 May 2020 18:37:46 +0000 (20:37 +0200)]
gnu: avr-gcc: Fix conflicting GCC headers.

Fixes <https://bugs.gnu.org/41209>.
Reported by Ricardo Wurmus <rekado@elephly.net>.

* gnu/packages/avr.scm (avr-gcc-4.9)[arguments]: Add phase to hide the default
GCC from CPLUS_INCLUDE_PATH.
[native-inputs]: Distinguish GCC-5.

4 years agognu: bitcoin-core: Reformat the package definition.
Christopher Baines [Mon, 11 May 2020 17:31:07 +0000 (18:31 +0100)]
gnu: bitcoin-core: Reformat the package definition.

Change the indentation to match what Emacs does.

* gnu/packages/finance.scm (bitcoin-core): Change indentation of many lines.

4 years agognu: Add ruby-2.7.
Ryan Prior [Sat, 2 May 2020 23:17:00 +0000 (18:17 -0500)]
gnu: Add ruby-2.7.

* gnu/packages/ruby.scm (ruby-2.7): New variable.

Signed-off-by: Christopher Baines <mail@cbaines.net>
4 years agognu: ruby-2.5: Update to 2.5.8.
Christopher Baines [Wed, 1 Apr 2020 18:42:22 +0000 (19:42 +0100)]
gnu: ruby-2.5: Update to 2.5.8.

* gnu/packages/ruby.scm (ruby-2.5): Update to 2.5.8.

4 years agognu: ruby-2.4: Update to 2.4.10.
Christopher Baines [Wed, 1 Apr 2020 18:27:05 +0000 (19:27 +0100)]
gnu: ruby-2.4: Update to 2.4.10.

* gnu/packages/ruby.scm (ruby-2.4): Update to 2.4.10.
[source]: Remove a now redundant patch
* gnu/packages/patches/ruby-rubygems-276-for-ruby24.patch: Delete file.
* gnu/local.mk: Remove deleted patch.

4 years agognu: ruby: Remove ruby-2.3.
Christopher Baines [Wed, 1 Apr 2020 18:17:40 +0000 (19:17 +0100)]
gnu: ruby: Remove ruby-2.3.

No packages in Guix depend on Ruby 2.3, and it was declared as end-of-life on
2019-03-31 by the upstream project.

* gnu/packages/ruby.scm (ruby-2.3): Remove variable.

4 years agognu: font-gnu-freefont: Rename the ‘woff’ subdirectory.
Michael Rohleder [Wed, 13 May 2020 15:33:12 +0000 (17:33 +0200)]
gnu: font-gnu-freefont: Rename the ‘woff’ subdirectory.

* gnu/packages/fonts.scm (font-gnu-freefont)[arguments]: Install WOFFs
into ‘share/fonts/webfonts’.

Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>
4 years agognu: font-gnu-freefont: Revert fonts' subdirectory names.
Raghav Gururajan [Mon, 11 May 2020 03:57:23 +0000 (23:57 -0400)]
gnu: font-gnu-freefont: Revert fonts' subdirectory names.

* gnu/packages/fonts.scm (font-gnu-freefont)[arguments]<#:phases>:
Change ‘share/fonts’ subdirectories from ‘ttf’ and ‘otf’ back to
‘truetype’ and ‘opentype’, respectively.

Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>