Commit graph

82374 commits

Author SHA1 Message Date
Vinicius Monego
a0a6fb15e5
gnu: rust-system-deps-1: Fix version requirements.
* gnu/packages/crates-io.scm (rust-system-deps-1)[source]: Add snippet to fix
rust-version-compare version.
[arguments]<#:phases>: Remove 'fix-version-requirements phase.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2021-07-15 10:30:19 +03:00
Vinicius Monego
bfefe256a3
gnu: Add rust-dbus-0.6.
* gnu/packages/crates-io.scm (rust-dbus-0.6): New variable.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2021-07-15 10:27:44 +03:00
Vinicius Monego
e3ff4a5bff
gnu: Add rust-libdbus-sys-0.2.
* gnu/packages/crates-io.scm (rust-libdbus-sys-0.2): New variable.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2021-07-15 10:25:48 +03:00
Matthew James Kraai
f8e544445f
gnu: libogg: Update to 1.3.5.
* gnu/packages/xiph.scm (libogg): Update to 1.3.5.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2021-07-15 10:15:26 +03:00
Jack Hill
7db8fd6e72
gnu: ffmpeg: Enable vaapi.
* gnu/packages/video.scm (ffmpeg)[arguments]: Add --enable-vaapi to
configure-flags.

Signed-off-by: Leo Famulari <leo@famulari.name>
2021-07-15 01:54:30 -04:00
Leo Famulari
c45df57313
gnu: linux-libre 5.4: Update to 5.4.132.
* gnu/packages/linux.scm (linux-libre-5.4-version): Update to 5.4.132.
(linux-libre-5.4-pristine-source): Update hash.
2021-07-15 01:54:30 -04:00
Leo Famulari
bd367123a3
gnu: linux-libre 5.10: Update to 5.10.50.
* gnu/packages/linux.scm (linux-libre-5.10-version): Update to 5.10.50.
(linux-libre-5.10-pristine-source, deblob-scripts-5.10): Update hashes.
2021-07-15 01:54:30 -04:00
Leo Famulari
6798274c84
gnu: linux-libre 5.12: Update to 5.12.17.
* gnu/packages/linux.scm (linux-libre-5.12-version): Update to 5.12.17.
(linux-libre-5.12-pristine-source, deblob-scripts-5.12): Update hashes.
2021-07-15 01:54:30 -04:00
Leo Famulari
ba18b6089b
gnu: linux-libre: Update to 5.13.2.
* gnu/packages/linux.scm (linux-libre-5.13-version): Update to 5.13.2.
(linux-libre-5.13-pristine-source, deblob-scripts-5.13): Update hashes.
2021-07-15 01:54:30 -04:00
Leo Famulari
12763e4d3a
gnu: linux-libre: Default to the 'schedutil' CPU scaling governor.
For more information about these configuration options, read
<https://www.kernel.org/doc/Documentation/cpu-freq/governors.txt> or the
document 'Documentation/admin-guide/pm/cpufreq.rst' in the linux-libre
source distribution.

* gnu/packages/aux-files/linux-libre/4.14-arm.conf,
gnu/packages/aux-files/linux-libre/4.14-i686.conf,
gnu/packages/aux-files/linux-libre/4.14-x86_64.conf,
gnu/packages/aux-files/linux-libre/4.19-arm.conf,
gnu/packages/aux-files/linux-libre/4.19-arm64.conf,
gnu/packages/aux-files/linux-libre/4.19-i686.conf,
gnu/packages/aux-files/linux-libre/4.19-x86_64.conf,
gnu/packages/aux-files/linux-libre/4.9-i686.conf,
gnu/packages/aux-files/linux-libre/4.9-x86_64.conf,
gnu/packages/aux-files/linux-libre/5.10-i686.conf,
gnu/packages/aux-files/linux-libre/5.10-x86_64.conf,
gnu/packages/aux-files/linux-libre/5.12-i686.conf,
gnu/packages/aux-files/linux-libre/5.12-x86_64.conf,
gnu/packages/aux-files/linux-libre/5.13-i686.conf,
gnu/packages/aux-files/linux-libre/5.13-x86_64.conf,
gnu/packages/aux-files/linux-libre/5.4-arm.conf,
gnu/packages/aux-files/linux-libre/5.4-arm64.conf,
gnu/packages/aux-files/linux-libre/5.4-i686.conf,
gnu/packages/aux-files/linux-libre/5.4-x86_64.conf: Unset
'CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE' and set
'CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL=y'.
2021-07-15 01:54:26 -04:00
Raghav Gururajan
38de3de40d
gnu: claws-mail: Add comments for optional inputs.
* gnu/packages/mail.scm (claws-mail)[native-inputs]: Add comment
for docbook-utils.
[inputs]: Add comments for j-pilot and webkitgtk.
2021-07-15 01:11:12 -04:00
Raghav Gururajan
ffe2632e12
gnu: claws-mail: Rename input label for shared-mime-info.
* gnu/packages/mail.scm (claws-mail)[inputs]: Rename mime-info to
shared-mime-info.
[phases](patch-mime): Modify.
2021-07-15 00:56:59 -04:00
Raghav Gururajan
36c23bd06d
gnu: claws-mail: Update to v4.0.0 and adjust arguments+inputs accordingly.
* gnu/packages/mail.scm (claws-mail)[version]: Update to 4.0.0.
[arguments](configure-flags): Add flag disable-static. Remove flags
enable-gnutls,enable-pgpmime-plugin, enable-enchant and enable-ldap.
[native-inputs]: Add bison, flex, gettext-minimal, gobject-introspection
and intltool.
[inputs]: Add cairo, compface, dbus, fontconfig, gdk-pixbuf+svg,
glib, gsettings-desktop-schemas, gumbo-parser, libgdata, libindicator,
librsvg, libsoup, nettle, network-manager, openldap, poppler,
python-pygobject and ytnef. Remove hicolor-icon-theme. Replace gtk+-2
and python-2 with gtk+ and python, respectively.
[propagated-inputs]: Add dconf.
2021-07-15 00:15:15 -04:00
Raghav Gururajan
d7917fc9f7
gnu: claws-mail: Rearrange inputs in alphabetical order.
* gnu/packages/mail.scm (claws-mail)[inputs]: Modify.
2021-07-14 22:12:54 -04:00
Tobias Geerinckx-Rice
91eee87002
gnu: agg: Fix typo in description.
* gnu/packages/graphics.scm (agg)[description]: Add missing article and
work around scalable vector graphics graphics.
2021-07-15 03:33:35 +02:00
Tobias Geerinckx-Rice
1d8bc46249
gnu: Add snapraid.
* gnu/packages/backup.scm (snapraid): New public variable.
2021-07-15 03:33:35 +02:00
Tobias Geerinckx-Rice
4f4477a77e
gnu: fuse: Do not refer to the native bash.
* gnu/packages/linux.scm (fuse)[inputs]: Add bash-minimal.
[arguments]: Refer to it rather than to the native build bash.
Do not return #t from phases.
2021-07-15 03:33:34 +02:00
Mark H Weaver
d2b30db788
gnu: icecat: Update to 78.12.0-guix0-preview1 [security fixes].
Includes fixes for CVE-2021-29970, CVE-2021-29976, and CVE-2021-30547.

* gnu/packages/gnuzilla.scm (%icecat-version, %icecat-build-id): Update.
(icecat-source): Update upstream source hash.
2021-07-14 13:30:14 -04:00
Maxime Devos
8456581375
build-system/meson: Support cross-compilation.
For cross-compilation, meson needs to be passed a
‘cross file’ with information on the architecture,
CPU type, endianness and operating system, and the
name of the cross-compiler binaries.

The new module (guix build meson-configuration) has
some utilities for writing these cross files, used
by 'make-cross-file' in a G-exp.  The values for
the cross file are generated by 'make-machine-alist'
and 'make-binaries-alist'.

'make-machine-alist' and 'make-binaries-alist' live
on the host side, such that new architectures and operating
systems can be added without causing rebuilds for old
architectures.

All operating systems and targets supported by Guix are
theoretically supported, but only aarch64-linux-gnu,
powerpc64le-linux-gnu and arm-linux-gnueabihf have been
tested.  i686-linux-gnu has also been tested with a previous
version of this patch series but required some changes
to 'cross-base.scm'.

This has been tested with:

$ ./pre-inst-env guix build glib --target=TARGET

* guix/build/meson-configuration.scm
  (write-section-header): New procedure.
  (write-assignment): New procedure.
  (write-assignments): New procedure.
* guix/build-system/meson.scm
  (target-hurd?): New predicate.
  (make-machine-alist): New procedure.
  (make-binaries-alist): New procedure.
  (make-cross-file): New procedure.
  (meson-cross-build): New procedure.
  (lower)[build-inputs]: Add standard cross packages when cross-compiling.
  Do not include regular 'inputs' when cross-compiling.
  (lower)[host-inputs]: Include 'inputs' when cross-compiling.
  (lower)[target-inputs]: Add cross packages when cross-compiling.
  (lower)[build]: Call 'meson-cross-build' instead of 'cross-build'
  when cross-compiling.
  (lower)[target]: Set it.
  (lower)[private-keywords]: Do not remove #:target when cross-compiling.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2021-07-14 15:57:40 +02:00
Maxime Devos
731b714e92
libelf: Update configure script and config.guess and config.sub.
The current configure script is too old to find the cross-compiler
and support variables passed as arguments. Also, config.guess and
config.sub are too old to recognise powerpc64 and aarch64.  Solve
this by regenerating the 'configure' script and replacing
'config.guess' and 'config.sub'.

* gnu/packages/elf.scm
  (libelf)[arguments]<#:phases>{configure}: Remove phase.
  (libelf)[arguments]<#:phases>{delete-configure}: Regenerate
  the configure script and replace 'config.guess' and 'config.sub'.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2021-07-14 15:57:40 +02:00
Maxime Devos
5a88b8df00
glib: Look up "tzdata" in 'native-inputs', not 'inputs'.
Otherwise, "tzdata" won't be found when cross-compiling
and string-append will complain about types. Alternatively,
"tzdata" could be moved from 'native-inputs' to 'inputs'.

* gnu/packages/glib.scm (glib)[arguments]<#:phases>{pre-check}:
  Look up "tzdata" in 'native-inputs', not 'inputs'.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2021-07-14 15:57:40 +02:00
Maxime Devos
dcd48bfd84
glib: Verify the cross-compiled python is used in installed scripts.
* gnu/packages/glib.scm (glib)[arguments]<#:disallowed-references>:
  Disallow the native python when cross-compiling.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2021-07-14 15:57:40 +02:00
Maxime Devos
1d7ceabc09
glib: Use a correct python in scripts when cross-compiling.
During the build, a native python should be used as these
scripts will be invoked during the build, but when installed,
they should be a python for the system we're compiling for.

* gnu/packages/glib.scm
  (glib)[arguments]<#:phases>{patch-python-references}: Look up
  "python" in 'native-inputs', not 'inputs'.
  (glib)[inputs]{python,python-wrapper,bash-minimal}: New inputs.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2021-07-14 15:57:40 +02:00
Maxime Devos
7fabe9c845
openssl: Extract logic for computing CONFIGURE_TARGET_ARCH.
By computing this value outside the build code, new targets
can be added without causing rebuilds for other targets.

* gnu/packages/tls.scm
  (target->openssl-target): New procedure.
  (openssl)[arguments]<#:phases>{set-cross-compile}: Use it.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2021-07-14 15:57:40 +02:00
Maxime Devos
3e42c2bfbb
openssl: Move all man pages to separate output, not only man3.
There does not seem to be any reason to only move man3 pages.
So, move all man pages to a separate output for documentation.

* gnu/packages/tls.scm
  (openssl)[arguments]<#:phases>{move-extra-documentation}: Move
  all man pages, not only man3.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2021-07-14 15:57:40 +02:00
Maxime Devos
0196b866d3
openssl: Move documentation instead of copying and deleting it.
* gnu/packages/tls.scm
  (openssl)[arguments]<#:phases>{move-extra-documentation}: Use
  'rename-file' instead of 'copy-recursively' and
  'delete-file-recursively'.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2021-07-14 15:57:40 +02:00
Maxime Devos
f64a35b9de
openssl: Use G-exp machinery for referring to outputs.
This doesn't fix anything broken, just for simplifying
the code a little while we're rebuilding the world anyway.
IMHO this makes the code a little more readable.

* gnu/packages/tls.scm (openssl)[arguments]<#:phases>: Don't refer
  to the association list 'outputs', use #$output, #$output:doc
  and #$output:static instead.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2021-07-14 15:57:40 +02:00
Maxime Devos
7c0eaa1f9e
openssl: Make the #:phases argument a G-expression.
This allows using this-package-native-input later.

* gnu/packages/tls.scm
  (openssl)[arguments]<#:phases>: Make this a G-expression.
  (openssl-1.0)[arguments]<#:phases>: Likewise.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2021-07-14 15:57:40 +02:00
Maxime Devos
c14c2ebaee
openssl: Remove trailing #t from phases.
* gnu/packages/tls.scm
  (openssl)[arguments]<#:phases>: Delete trailing #t.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2021-07-14 15:57:40 +02:00
Maxime Devos
aec20fae97
python: Fix reference to input when cross-compiling.
"sitecustomize.py" is a native input, so look it up
in 'native-inputs', not 'inputs'.

* gnu/packages/python.scm (customize-site): Look up "sizecustomize.py"
  in 'native-inputs', not 'inputs'.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2021-07-14 15:57:40 +02:00
Maxime Devos
ad7c6d290e
libgpg-error: Fix cross-compilation error.
TODO: inform upstream about the cross-compilation error.

* gnu/packages/gnupg.scm
  (libgpg-error)[arguments]{fix-gen-lock-obj.sh}: Prevent generated
  header files from being sprinkled with ‘\c’.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2021-07-14 15:57:39 +02:00
Maxime Devos
deb4f0a595
libgpg-error: Prevent silent miscompilation some systems.
* gnu/packages/gpg.scm
  (libgpgerror)[arguments]<#:phases>{cross-symlinks}: Only
  link to src/syscfg/lock-obj-pub.linux-gnu.h if the package
  is being compiled for a Linux target. Do not link either
  if the architecture is unknown, as the headers vary with
  the architecture.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2021-07-14 15:57:39 +02:00
Maxime Devos
e444cf3ef4
libgpg-error: Remove trailing #f from phases.
These aren't required anymore.

* gnu/packages/gnupg.scm (libgpgerror)[arguments]{cross-symlinks}:
  Remove trailing #f.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2021-07-14 15:57:39 +02:00
Maxime Devos
a997640db9
tzdata: Don't bother with cross-compiling.
The time zone database is architecture-independent,
so trying to cross-compile it is pointless!

* gnu/packages/base.scm
  (tzdata)[arguments]<#:target>: Set to #f.
  (tzdata)[allowed-references]: Only include the "out" output itself,
  to make sure no (architecture-dependent) binaries are installed.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2021-07-14 15:57:39 +02:00
Maxime Devos
f6e4fbad2d
net-base: Don't cross-compile.
net-base is pure data, so cross-compiling is pointless.

* gnu/packages/admin.scm
  (net-base)[arguments]<#:target>: Set to #f.
  (net-base)[arguments]<#:allowed-references>: Disallow all
  references.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2021-07-14 15:57:39 +02:00
Maxime Devos
aaf9aa4824
packages: Define this-package-input and this-package-native-input.
These macros are intended to be used in build phases.
More precisely, (assoc-ref %build-inputs "input") can be
replaced by #$(this-package-input "input") or #+(this-package-native-input
"native-input") as appropriate.

* guix/packages.scm
  (package-input, package-native-input): New (unexported) procedures.
  (this-package-input, this-package-native-input): New macros.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2021-07-14 15:57:39 +02:00
Maxime Devos
f54852be22
utils: Define a target-x86-32? and target-x86-64? predicate.
* guix/utils.scm (target-x86-32?, target-x86-64?): New predicates.
* tests/utils.scm ("target-x86-32?", "target-x86-64?"): New tests.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2021-07-14 15:38:03 +02:00
Maxime Devos
42e4118150
utils: Give 'target-mingw?' a docstring.
target-hurd? and target-linux? have docstrings, but
target-mingw? doesn't.

* guix/utils.scm (target-mingw?): Add a docstring.

Reported-By: Mathieu Othacehe <othacehe@gnu.org>
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2021-07-14 15:38:03 +02:00
Maxime Devos
637a1e7dcc
utils: Define 'target-hurd?' predicate.
It behaves similarily to the other target-...? procedures.
The usage of hurd-triplet? / target-hurd? in libgc appears
incorrect to me, as (%current-system) is normally never false.

* gnu/packages/hurd.scm (hurd-triplet?): Move to ...
* guix/util.scm (target-hurd?): ... here, let its argument
  default to (%current-target-system) or (%current-system),
  and write a docstring.
* gnu/packages/hurd.scm
  (hurd-target?, hurd-system?): Use target-hurd? instead of
  hurd-triplet?.
* gnu/packages/bdw-gc.scm (libgc): Likewise.
* gnu/packages/cross-base.scm
  (cross-libc)[arguments]<#:configure-flags>: Likewise.
  (cross-libc)[arguments]<#:phases>: Likewise.
  (cross-libc)[arguments]<#:native-inputs>: Likewise.
* gnu/packages/make-boostrap.scm
  (%glibc-stripped)[inputs]: Likewise.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2021-07-14 15:38:03 +02:00
Maxime Devos
ef71965c16
utils: Define 'target-linux?' predicate.
* guix/utils.scm (target-linux?): New predicate.
* tests/utils.scm
  ("target-linux?"): Test it.
  ("target-mingw?"): Also test ‘target-mingw?’.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2021-07-14 15:38:03 +02:00
Mathieu Othacehe
b4ccf3df0b
openssl: Fix indentation.
* gnu/packages/tls.scm (openssl): Fix indentation.
2021-07-14 15:30:54 +02:00
Maxim Cournoyer
e69e0c43f8
gnu: bitlbee-discord: Update to 0.4.3.
* gnu/packages/messaging.scm (bitlbee-discord): Update to 0.4.3.
2021-07-14 09:03:10 -04:00
Adrian Fullmer
a6a4d4b843
gnu: bitlbee-discord: Fix build.
* gnu/packages/messaging.scm (bitlbee-discord)[phases]{configure}: Delete
override and move the configure flags to...
[configure-flags]: ... here.  Specify the '--with-bdatadir' configure flag,
which resolves a build failure.

Co-authored-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2021-07-14 09:02:09 -04:00
Maxim Cournoyer
073904c553
guix-install.sh: Untabify.
* etc/guix-install.sh (sys_create_build_user): Normalize to spaces.
2021-07-14 08:50:22 -04:00
Efraim Flashner
9be2bced71
Revert "gnu: kdeconnect: Fix wayland compatibility."
This is unneeded after 30759c4aad.

This reverts commit f60ef2f7a4.
2021-07-14 14:17:04 +03:00
Pierre Langlois
681a0c7518
gnu: mg: Enable cross-compilation.
* gnu/packages/text-editors.scm (mg)[arguments]: Use cc-for-target.
Add phase to substitute pkg-config with the target's pkg-config.
Remote #t return from phases.
2021-07-14 09:59:45 +01:00
terramorpha@cock.li
14bf5890c3
gnu: Add a2jmidid.
* gnu/packages/music.scm (a2jmidid): New variable.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2021-07-14 09:23:24 +03:00
Efraim Flashner
2847022dc7
gnu: chess: Update to 6.2.9.
* gnu/packages/games.scm (chess): Update to 6.2.9.
2021-07-14 09:17:52 +03:00
Vincent Legoll
59e97a67ba
gnu: Add traceroute.
* gnu/packages/networking.scm (traceroute): New variable.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2021-07-13 23:09:52 -04:00
Amirouche
51194ca1e8
gnu: guile-pfds: Apply a bug fix to hamts.sls.
* gnu/packages/guile-xyz.scm (guile-pfds): Remove trailing #t.
[phases]{patch-sources}: New phase.

Co-authored-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2021-07-13 22:41:04 -04:00