Commit graph

82352 commits

Author SHA1 Message Date
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
Tobias Geerinckx-Rice
9e6fc36a28
gnu: filezilla: Update to 3.55.0.
* gnu/packages/ftp.scm (libfilezilla): Update to 0.30.0.
(filezilla): Update to 3.55.0.
2021-07-13 20:06:25 +02:00
Tobias Geerinckx-Rice
b58d9be08e
gnu: claws-mail: Update to 3.18.0.
* gnu/packages/mail.scm (claws-mail): Update to 3.18.0.
2021-07-13 20:06:25 +02:00
Tobias Geerinckx-Rice
fc0b063c90
gnu: less: Update to 590.
* gnu/packages/less.scm (less): Update to 590.
2021-07-13 20:06:25 +02:00
Leo Famulari
627db5611d
gnu: Add linux-libre 5.13.
* gnu/packages/linux.scm (linux-libre-5.13-version, deblob-scripts-5.13,
linux-libre-5.13-pristine-source, linux-libre-5.13-source,
linux-libre-headers-5.13, linux-libre-5.13): New variables.
* gnu/packages/aux-files/linux-libre/5.13-arm.conf,
gnu/packages/aux-files/linux-libre/5.13-arm64.conf,
gnu/packages/aux-files/linux-libre/5.13-i686.conf,
gnu/packages/aux-files/linux-libre/5.13-x86_64.conf: New files.
* Makefile.am (AUX_FILES): Add them.
2021-07-13 13:15:59 -04:00
Leo Famulari
c111a501f6
gnu: Borg: Update to 1.1.17.
* gnu/packages/backup.scm (borg): Update to 1.1.17.
2021-07-13 13:07:48 -04:00
swedebugia
89bd7565e8
gnu: Add python-warcio.
* gnu/packages/python-web.scm (python-warcio): New variable.

Co-authored-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2021-07-13 11:22:33 -04:00
Maxim Cournoyer
139ad8be2c
gnu: Add python-wsgiprox.
* gnu/packages/python-web.scm (python-wsgiprox): New variable.
2021-07-13 11:22:33 -04:00
Maxim Cournoyer
08935e5fff
gnu: Add python-certauth.
* gnu/packages/python-crypto.scm (python-certauth): New variable.
2021-07-13 11:22:32 -04:00
Guillaume Le Vaillant
4196087f3d
gnu: Add gr-satellites.
* gnu/packages/radio.scm (gr-satellites): New variable.
2021-07-13 16:21:02 +02:00
swedebugia
5fa078ccfd
gnu: guile-lib: Add modules list to description.
* gnu/packages/guile.scm (guile-lib)[description]: Add modules list.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2021-07-13 09:26:42 -04:00
David Dashyan
7da8f66e52
gnu: password-store: Fix passmenu paths substitution.
* gnu/packages/password-utils.scm (password-store)
[arguments]: Fix dmenu and xdotool path substitution in patch-passmenu-path
phase.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2021-07-13 16:06:56 +03:00
Efraim Flashner
7a27129c82
gnu: gmsh: Sort inputs alphabetically.
* gnu/packages/maths.scm (gmsh)[propagated-inputs]: Sort alphabetically.
2021-07-13 15:44:02 +03:00
Efraim Flashner
c5cfa23b9c
gnu: gmsh: Simply downloading source logic.
* gnu/packages/maths.scm (gmsh)[source]: Use string-replace-substring.
2021-07-13 15:34:26 +03:00
Paul A. Patience
cb78595fe3
gnu: gmsh: Update to 4.8.4.
* gnu/packages/maths.scm (gmsh): Update to 4.8.4.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2021-07-13 15:20:23 +03:00
Efraim Flashner
61a8c91368
gnu: hyperfine: Install completions.
* gnu/packages/rust-apps.scm (hyperfine)[arguments]: Add custom
'install-more phase to install manpage and shell completions.
2021-07-13 15:14:17 +03:00
Domagoj Stolfa
3041eb3df3
gnu: Add hyperfine.
* gnu/packages/rust-apps.scm (hyperfine): New variable.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2021-07-13 15:14:17 +03:00
Domagoj Stolfa
c2967eae4e
gnu: Add rust-colored-2.
* gnu/packages/crates-io.scm (rust-colored-2): New variable.
(rust-colored-1): Inherit from rust-colored-2.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2021-07-13 15:14:16 +03:00
Domagoj Stolfa
a2c766d73d
gnu: Add rust-rust-decimal-1.
* gnu/packages/crates-io.scm (rust-rust-decimal-1): New variable.
(rust-rust-decimal-0.10): Inherit from rust-rust-decimal-1.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2021-07-13 15:14:16 +03:00
Domagoj Stolfa
b0870c9bf6
gnu: Add rust-statistical-1.
* gnu/packages/crates-io.scm (rust-statistical-1): New variable.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2021-07-13 15:14:16 +03:00
Domagoj Stolfa
c52cba9847
gnu: Add rust-postgres-0.19.
* gnu/packages/crates-io.scm (rust-postgres-0.19): New variable.
(rust-postgres-0.15): Inherit from rust-postgres-0.19.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2021-07-13 15:14:16 +03:00
Domagoj Stolfa
5b53328168
gnu: Add rust-tokio-postgres-0.7.
* gnu/packages/crates-io.scm (rust-tokio-postgres-0.7): New variable.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2021-07-13 15:14:16 +03:00
Domagoj Stolfa
43dca39275
gnu: Add rust-socket2-0.4.
* gnu/packages/crates-io.scm (rust-socket2-0.4): New variable.
(rust-socket2-0.3): Inherit from rust-socket2-0.4.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2021-07-13 15:14:16 +03:00