Commit graph

84459 commits

Author SHA1 Message Date
Maxime Devos
0515ebb0d1
gnu: avahi: Find 'TARGET-pkg-config' when cross-compiling.
The configure script first tests whether "pkg-config" is in PATH,
and then uses "TARGET-pkg-config".  Pretend "pkg-config" exists.

* gnu/packages/avahi.scm (avah)[arguments]<#:configure-flags>: Set
  ac_cv_prog_have_pkg_config=yes when cross-compiling.
2021-09-20 11:15:08 +00:00
Maxime Devos
35e1a572f6
gnu: libdaemon: Support cross-compilation to aarch64-linux-gnu.
* gnu/packages/libdaemon.scm
  (libdaemon)[native-inputs]: Add "config" when cross-compiling for
  aarch64.
  (libdaemon)[arguments]<#:phases>{update-config.sub}: When cross-compiling
  for aarch64, update the "config.sub" script.
2021-09-20 11:15:08 +00:00
Maxime Devos
2b16755f99
gnu: libthai: Add datrie as native-input when cross-compiling.
This allows the cross-build to succeed.

* gnu/packages/gnome.scm
  (libthai)[native-inputs]: Add "datrie" when cross-compiling.
2021-09-20 11:15:08 +00:00
Maxime Devos
1bd0dcf228
gnu: json-glib: Don't build introspection data when cross-compiling.
* gnu/packages/gnome.scm
  (json-glib)[arguments]<#:configure-flags>: Set introspection=false when
  cross-compiling.
2021-09-20 11:15:07 +00:00
Maxime Devos
b67ea49e2c
gnu: json-glib: Don't build gtk documentation when cross-compiling.
* gnu/packages/gnome.scm
  (json-glib)[arguments]<#:configue-flags>: Set gtk_doc=disables when
  cross-compiling.
  (json-glib)[arguments]<#:phases>{move-docs}: Don't run when cross-compiling
  ...
  (json-glib)[arguments]<#:phases>{stub-docs}: ... instead, create an empty
  directory where the documentation would be.
2021-09-20 11:15:07 +00:00
Maxime Devos
d0cf033661
gnu: json-glib: Find docbook inputs when cross-compiling.
* gnu/packages/gnome.scm (json-glib)[arguments]<#:phases>{patch-docbook}:
  Look up "docbook-xml" in 'native-inputs', not 'inputs', when
  cross-compiling.
2021-09-20 11:15:07 +00:00
Maxime Devos
bb4293469b
gnu: json-glib: Add missing 'bash-minimal' input.
* gnu/packages/gnome.scm (json-glib)[inputs]: Add "bash-minimal" when
  cross-compiling (for wrapper scripts).
2021-09-20 11:15:07 +00:00
Maxime Devos
8bf0c60086
gnu: heimdal: Use libcom_err from input when cross-compiling.
* gnu/packages/kerberos.scm
  (heimdal)[arguments]<#:phases>{pre-configure}: Consider ${krb_cv_com_err}
  to be 'yes' when cross-compiling.
2021-09-20 11:15:07 +00:00
Maxime Devos
784865adfe
gnu: heimdal: Find tools when cross-compiling.
* gnu/packages/kerberos.scm
  (heimdal)[arguments]<#:configure-flags>: Set --with-cross-tools.
  (heimdal)[arguments]<#:phases>{pre-configure}: Override
  ac_cv_PROG_COMPILE_ET.
2021-09-20 11:15:07 +00:00
Maxime Devos
0bff68e44d
gnu: heimdal: Use the cross-compiled bash in "su".
* gnu/packages/kerberos.scm
  (heimdal)[arguments]<#:phases>{pre-configure}: Replace _PATH_BSHELL
  with the cross-compiled bin/sh when cross-compiling.
2021-09-20 11:15:07 +00:00
Maxime Devos
527455be35
gnu: heimdal: Refer to cross-compiled bash.
* gnu/packages/kerberos.scm
  (heimdal)[arguments]<#:phases>{pre-configure}: Let "appl/afsutil/pagsh.c"
  refer to the cross-compiled bash instead of the native bash when
  cross-compiling.
2021-09-20 11:15:07 +00:00
Maxime Devos
f706689a8d
gnu: heimdal: Fix linking error when cross-compiling.
* gnu/packages/kerberos.scm (heimdal)[arguments]<#:configure-flags>:
  Set ac_cv_func_getpwnam_r_posix=yes when cross-compiling.
2021-09-20 11:15:06 +00:00
Maxime Devos
de8ea8e827
gnu: heimdal: Fix inputs when cross-compiling.
* gnu/packages/kerberos.scm
  (heimdal)[inputs]: Add "bash-minimal" when cross-compiling.
  (heimdal)[native-inputs]: Add 'perl' when cross-compiling.
2021-09-20 11:15:06 +00:00
Maxime Devos
c170e9b75f
gnu: iso-codes: Move inputs to native-inputs when cross-compiling.
* gnu/packages/iso-codes.scm
  (iso-codes)[inputs]: Move "gettext", "perl" and "python" to ...
  (iso-codes)[native-inputs]: ... here when cross-compiling.
2021-09-20 11:15:06 +00:00
Maxime Devos
3a8d342cdf
gnu: gamin: Fix 'configure' script when cross-compiling.
* gnu/packages/gnome.scm
  (gamin)[arguments]<#:phases>{set-have-abstract-sockets}: Override
  test for ‘abstract sockets’ when cross-compiling.
2021-09-20 11:15:06 +00:00
Maxime Devos
c3a3a4a761
gnu: gamin: Recognise aarch64 as architecture when cross-compiling.
* gnu/packages/gnome.scm
  (gamin)[arguments]<#:phases>{replace-config.sub}: Update 'config.sub'
  when cross-compiling.
  (gamin)[native-inputs]: Add "config" when cross-compiling.
2021-09-20 11:15:06 +00:00
Maxime Devos
9e6b25505a
gnu: graphene: Don't build introspection data when cross-compiling.
* gnu/packages/gtk.scm (graphene)[arguments]<#:configure-flags>: Set
  introspection=false when cross-compiling.
2021-09-20 11:15:06 +00:00
Maxime Devos
0d7888acf0
gnu: bdb: Fix cross-compilation build errors.
* gnu/packages/dbm.scm
  (bdb-4.8)[arguments]<#:phases>{update-config.sub}: Update 'config.sub'
  when cross-compiling for 'powerpc64le' or 'aarch64'.
2021-09-20 11:15:06 +00:00
Maxime Devos
9fa7b1d112
gnu: atk: Disable introspection when cross-compiling.
* gnu/packages/gtk.scm
  (atk)[arguments]<#:configure-flags>: Set -Dintrospection=false
  when cross-compiling.
2021-09-20 11:15:06 +00:00
Maxime Devos
838dcb7c2b
gobject-introspection: Correct library name when cross-compiling.
* gnu/packages/glib.scm
  (python-extension-suffix, correct-library-name-phase): New procedures.
  (gobject-introspection)[arguments]<#:phases>{rename-library}:
  New phase, correct the name of the python extension when cross-compiling.
2021-09-20 11:15:05 +00:00
Maxime Devos
4ab2c0d600
gobject-introspection: Fix inputs when cross-compiling.
* gnu/packages/glib.scm
  (gobject-introspection)[native-inputs]: Add 'bison' and 'flex'
  when cross-compiling.
  (gobject-introspection)[inputs]: Use 'python' instead of 'python-wrapper'
  when cross-compiling.  Remove 'bison', 'flex' when cross-compiling.
2021-09-20 11:15:05 +00:00
Maxime Devos
c185e5ad67
gnu: gobject-introspection: Don't build introspection data when cross-compiling.
* gnu/packages/glib.scm
  (gobject-introspection)[arguments]<#:configure-flags>: Set
  gi_cross_use_prebuilt_gi to 'true'.
  (gobject-introspection)[arguments]<#:phases>{set-typelibs}: New phase,
  avoid undefined variable in "meson.build".
2021-09-20 11:15:04 +00:00
Maxime Devos
a1b3597ab8
gnu: polkit: Prevent cross-compilation build error.
Alternative ‘os types’ include RedHat and Gentoo, which
don't seem applicable.

* gnu/packages/polkit.scm (polkit)[arguments]<#:configure-flags>:
  Set "--with-os-type" to "unknown".
2021-09-20 11:11:47 +00:00
Maxime Devos
499dbe0f3c
gnu: dbus-cairo: Add missing bash-minimal input.
If absent, this causes the 'glib-or-gtk-wrap' phase to fail.

* gnu/packages/glib.scm
  (cairo)[inputs]: Add "bash-minimal", but only when cross-compiling
  to avoid a world-rebuild.
2021-09-20 11:11:47 +00:00
Maxime Devos
881a5d26b2
build-system/glib-or-gtk: Support cross-compilaton.
* guix/build-system/glib-or-gtk.scm
  (lower): Add 'implicit-cross-inputs?' argument.  Generate a bag
  when cross-compiling.
  (glib-or-gtk-cross-build): New procedure.
2021-09-20 11:11:47 +00:00
Maxime Devos
fa81c31ce9
build-system/meson: Allow 'configure-flags' to be a G-exp.
* guix/build-system/meson.scm
  (meson-build, meson-cross-build): Only call 'sexp->gexp' on
  'configure-flags' when 'configure-flags' is a pair.
2021-09-20 11:11:47 +00:00
Maxime Devos
c3db377d2b
gnu: poppler: Find pkg-config when cross-compiling.
* gnu/packages/pdf.scm
  (poppler)[arguments]<#:phases>{set-PKG_CONFIG}: New phase.
2021-09-20 11:11:47 +00:00
Maxime Devos
d09822c394
gnu: mozjs-60: Fix cross-compilation build errors.
Presumably the other versions of mozjs need some changes
as well, but for now only fix mozjs@60, which is a dependency
of polkit.

* gnu/packages/gnuzilla.scm
  (mozjs-60)[arguments]<#:configure-flags>: Set --with-nspr-prefix
  and set --host and --target inappropriately when cross-compiling.
  (mozjs-60)[arguments]<#:phases>{set-PKG_CONFIG}: New phase
  when cross-compiling.
2021-09-20 11:11:47 +00:00
Maxime Devos
cd4c6f9979
gnu: nspr: Don't retain references to native inputs.
* gnu/packages/nss.scm
  (nspr)[inputs]: Add 'perl' and 'bash-minimal' when cross-compiling.
  (nspr)[arguments]{#:disallowed-references}: Add native 'perl' when
  cross-compiling.
2021-09-20 11:11:47 +00:00
Maxime Devos
1d3cb21853
gnu: nspr: Adjust to Mozilla cross-compilation conventions.
* gnu/packages/nss.scm
  (nspr)[arguments]<#:configure-flags>: Set --host and --target
  inappropriately when cross-compiling.
2021-09-20 11:11:47 +00:00
Maxime Devos
5fc78abc7f
gnu: perl: Find 'bash' when cross-compiling.
* gnu/packages/perl.scm
  (perl)[arguments]<#:phases>{unpack-cross}: Search for "bash" with
  'search-input-file' instead of 'assoc-ref'.
  (perl)[arguments]<#:phases>{configure}: Search for "bash-minimal"
  instead of "bash".
2021-09-20 11:11:46 +00:00
Maxime Devos
5203a3f123
gnu: libcap: Fix cross-compilation build failures.
* gnu/packages/linux.scm
  (libcap)[arguments]<#:phases>{configure}: Don't use non-existent
  '%output' when cross-compiling.
  (libcap)[arguments]<#:make-flags>: Set "CROSS_COMPILE" and "BUILD_CC"
  when cross-compiling.
2021-09-20 11:11:46 +00:00
Maxime Devos
04380925ea
gnu: elogind: Fix cross-compilation.
%build-inputs and friends don't exist when cross-compiling,
so use some G-expology instead.

* gnu/packages/freedesktop.scm (elogind)[arguments]<#:configure-flags>:
  Don't use '%outputs' or '%build-inputs' when cross-compiling.
2021-09-20 11:11:46 +00:00
Maxime Devos
ea91371466
gnu: elogind: Make #:configure-flags a G-exp.
* gnu/packages/freedesktop.scm
  (elogind)[arguments]{configure-flags}: Let this be a G-exp.
2021-09-20 11:11:46 +00:00
Maxime Devos
967f8af877
gnu: dbus-glib: Support cross-compilation.
This allows cross-compilation to succeed when not using
QEMU's transparent emulation, and the cross-compilation
is not a pointless cross-compilation like x86_64 -> i686.

* gnu/packages/glib.scm (dbus-glib)[arguments]: Set --with-dbus-binding-tool
  to a native version of "dbus-binding-tool" when cross-compiling.
2021-09-20 11:11:46 +00:00
Mathieu Othacehe
4bacf9ced9
gnu: acpica: Update to 20210730.
* gnu/packages/admin.scm (acpica): Update to 20210730.
[source]: Fix uri field.
2021-09-20 09:36:57 +00:00
Mathieu Othacehe
650e85d855
gnu: grub: Strip debug symbols.
This is a follow-up of 71aa29911c. Grub does not
support modules stripped with --strip-unneeded but supports the --strip-debug
option.

* gnu/packages/bootloaders.scm (grub)[arguments]<#:strip-binaries>: Set to
true and use ...
<#:strip-flags>: ... to pass --strip-debug instead of --strip-unneeded.
2021-09-20 09:12:01 +00:00
Thiago Jung Bauermann
b452fe87e0
gnu: gtk+: Fix testsuite failure on non-x86_64 platforms.
On non-x86_64 platforms, gtk+ is linked with a gdk-pixbuf version that
doesn’t support SVG.  This causes the ‘icontheme’ test to fail because it
tries to fetch SVG icons in some of the tests.

Therefore, we need to disable the test when SVG support isn’t available.

* gnu/packages/gtk.scm (gtk+)[propagated-inputs]: Use the ‘target-x86-64?’
convenience function.
[arguments]<#:phases>{disable-failing-tests}: Disable ‘icontheme’ test on
non-x86_64 platforms.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2021-09-19 18:16:29 +00:00
Mathieu Othacehe
57c57f8541
gnu: fbida: Fix build.
* gnu/packages/pdf.scm (fbida)[arguments]<#:phases>: Add a 'set-fcommon phase.
Also wrap some lines and remove an empty one.
2021-09-19 18:10:39 +00:00
Efraim Flashner
02a585212f
gnu: newsboat: Fix build.
* gnu/packages/syndication.scm (newsboat)[arguments]: Move the prefix
declaration to the 'patch-source phase. Adjust other phases so they
actually build.
2021-09-19 19:52:11 +03:00
Mathieu Othacehe
71aa29911c
gnu: grub: Do not strip modules.
* gnu/packages/bootloaders.scm (grub)[arguments]<#:strip-binaries>: Set to
false to prevent Grub modules stripping.
2021-09-19 16:49:30 +02:00
Guillaume Le Vaillant
8e67a84a99
gnu: python-ipython: Update to 7.27.0.
* gnu/packages/python-xyz.scm (python-ipython): Update to 7.27.0.
  [inputs]: Add matplotlib-inline.
  [arguments]: Update 'fix-tests' phase to disable "pylabtools" test.
2021-09-18 23:17:56 +02:00
Guillaume Le Vaillant
cbdd76c493
gnu: Add python-matplotlib-inline.
* gnu/packages/python-xyz.scm (python-matplotlib-inline): New variable.
2021-09-18 23:05:29 +02:00
Guillaume Le Vaillant
19c9c266ae
gnu: mpg321: Fix compiling with gcc 10.
* gnu/packages/patches/mpg321-gcc-10.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/mp3.scm (mpg321)[source]: Use it.
2021-09-18 15:31:18 +02:00
Guillaume Le Vaillant
642fcb1d08
gnu: q5go: Fix build.
* gnu/packages/games.scm (q5go)[arguments]: Add 'fix-header' phase.
2021-09-18 15:03:41 +02:00
Guillaume Le Vaillant
a9798a0abe
gnu: aircrack-ng: Fix build.
* gnu/packages/networking.scm (aircrack-ng)[arguments]: Add '-fcommon' to
  CFLAGS.
2021-09-18 14:54:45 +02:00
Guillaume Le Vaillant
5a7703413b
gnu: pdf2djvu: Update to 0.9.18.
* gnu/packages/djvu.scm (pdf2djvu): Update to 0.9.18.
  [arguments]: Add 'set-home-for-tests' phase.
2021-09-18 14:48:54 +02:00
Mathieu Othacehe
d5f92f21a1
gnu: ruby-sass: Fix build.
* gnu/packages/ruby.scm (ruby-sass)[native-inputs]: Add ruby-cmath.
2021-09-18 13:00:10 +02:00
Mathieu Othacehe
ac6914ca7d
gnu: Add ruby-cmath.
* gnu/packages/ruby.scm (ruby-cmath): New variable.
2021-09-18 13:00:07 +02:00
Mathieu Othacehe
b7a5641ad7
gnu: rygel: Update to 0.40.1.
* gnu/packages/gnome.scm (rygel): Update to 0.40.1.
[build-system]: Switch to meson.
[arguments]<#:configure-flags>: Pass a plugins list to exclude the tracker
plugin.
[native-inputs]: Add glib:bin, docbook-xml, docbook-xsl, xsltproc.
[inputs]: Add gst-editing-services and json-glib.
2021-09-18 12:46:12 +02:00