Commit graph

84445 commits

Author SHA1 Message Date
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
Mathieu Othacehe
54b8cdfe3c
gnu: gupnp-av: Enable Vala bindings.
* gnu/packages/gnome.scm (gupnp-av)[native-inputs]: Add vala.
2021-09-18 12:46:12 +02:00
Mathieu Othacehe
3963211668
gnu: gupnp: Fix build.
* gnu/packages/gnome.scm (gupnp)[arguments]<#:phases>: Add a 'pre-check phase.
2021-09-18 12:46:12 +02:00
Guillaume Le Vaillant
048934c3b6
gnu: icu4j: Fix build.
* gnu/packages/icu4c.scm (icu4j)[arguments]: Use gexp for 'make-flags'.
2021-09-18 12:19:34 +02:00
Mathieu Othacehe
68557cd2f3
gnu: grilo-plugins: Update to 0.3.13.
* gnu/packages/gnome.scm (grilo-plugins): Update to 0.3.13.
[inputs]: Add python-pygobject and tracker-miners.
[arguments]<#:phases>: Add 'set-shell and 'fix-tests phases.
2021-09-18 12:12:48 +02:00
Mathieu Othacehe
4df5b64c8a
gnu: grilo: Update to 0.3.13.
* gnu/packages/gnome.scm (grilo): Update to 0.3.13.
2021-09-18 12:12:47 +02:00
muradm
e8d80d0456
gnu: gnunet: Fix libmicrohttpd test case using SSL3.
* gnu/packages/patches/libmicrohttpd-0.9.73-test-ssl3.patch:
Patch for failing test case as suggested by libmicrohttpd mailing list
* gnu/packages/gnunet.scm (libmicrohttpd): use patch
* gnu/local.mk (dist_patch_DATA): Add it.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-09-18 12:09:40 +02:00
Guillaume Le Vaillant
c3892d4ffb
gnu: openjdk: Fix compiling with gcc 10.
* gnu/packages/java.scm (openjdk9, openjdk10, openjdk11)[arguments]: Add
  '-fcommon', '-fno-delete-null-pointer-checks' and '-fno-lifetime-dse'
  to CFLAGS.
2021-09-18 11:18:41 +02:00
Mathieu Othacehe
8613652f3f
gnu: gnome-boxes: Update to 3.38.2.
* gnu/packages/gnome.scm (gnome-boxes): Update to 3.38.2.
[inputs]: Add gtksourceview and json-glib.
2021-09-17 23:03:20 +02:00
Mathieu Othacehe
0db21a8a31
gnu: nautilus: Update to 3.38.2.
* gnu/packages/gnome.scm (nautilus): Update to 3.38.2.
[inputs]: Add json-glib and libsoup.
2021-09-17 22:59:12 +02:00
Mathieu Othacehe
e7ff3f5cfa
gnu: tracker-miners: Update to 3.1.2.
* gnu/packages/gnome.scm (tracker-miners): Update to 3.1.2.
[arguments]<#:configure-flags>: Fix the rpath.  <#:phases>: Add 'set-shell,
'fix-paths and 'fix-tests phases. Replace the 'check phase.
[native-inputs]: Add docbook-xsl, docbook-xml-4.5, gsettings-desktop-schemas,
asciidocs and xsltproc.
[inputs]: add json-glib, libsoup and shared-mime-info.
2021-09-17 22:55:28 +02:00
Mathieu Othacehe
2a489b01f6
gnu: tracker: Update to 3.1.2.
* gnu/packages/gnome.scm (tracker): Update to 3.1.2.
[arguments]<#:configure-flags>: Fix the rpath. Do not build docs and do not
use systemd.
<#:phases>: Add 'set-shell and 'fix-paths phases. Merge the 'pre-check
phase into the new replaced 'check phase.
[native-inputs]: Add docbook-xsl, docbook-xml-4.5, gsettings-desktop-schemas,
asciidoc, xsltproc, cmake-minimal, gtk-doc and dbus.
2021-09-17 22:54:55 +02:00
Mathieu Othacehe
d075684860
gnu: libmusicbrainz: Fix build.
* gnu/packages/music.scm (libmusicbrainz)[arguments]: Add a new fix build
phase.
2021-09-17 18:18:53 +02:00
Mathieu Othacehe
7bfee950cc
gnu: gnome-contacts: Update to 3.38.1.
* gnu/packages/gnome.scm (gnome-contacts): Update to 3.38.1.
[arguments]: Use disabled instead of false for the cheese option.
2021-09-17 18:11:17 +02:00
Mathieu Othacehe
b95c149ac8
gnu: folks: Update to 0.14.0.
* gnu/packages/gnome.scm (folks): Update to 0.14.0.
[native-inputs]: Add python-dbusmock.
2021-09-17 18:10:56 +02:00