[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/36: build: Don't build man pages when cross-compiling.
From: |
guix-commits |
Subject: |
02/36: build: Don't build man pages when cross-compiling. |
Date: |
Fri, 24 Apr 2020 08:14:05 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd-vm
in repository guix.
commit 84b78534ea2e560a4ba2a057dd90e7b1fd8cf1f6
Author: Ludovic Courtès <address@hidden>
AuthorDate: Thu Apr 23 23:20:26 2020 +0200
build: Don't build man pages when cross-compiling.
* configure.ac: Define 'CROSS_COMPILING' Automake conditional.
* doc/local.mk (dist_man1_MANS): Wrap in "if !CROSS_COMPILING".
---
configure.ac | 2 ++
doc/local.mk | 9 ++++++++-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 6a6a020..a44a605 100644
--- a/configure.ac
+++ b/configure.ac
@@ -26,6 +26,8 @@ AM_GNU_GETTEXT_VERSION([0.18.1])
GUIX_SYSTEM_TYPE
GUIX_ASSERT_SUPPORTED_SYSTEM
+AM_CONDITIONAL([CROSS_COMPILING], [test "x$cross_compiling" = "xyes"])
+
AC_ARG_WITH(store-dir,
AC_HELP_STRING([--with-store-dir=PATH],
[file name of the store (defaults to /gnu/store)]),
diff --git a/doc/local.mk b/doc/local.mk
index 30c4a8c..adebf51 100644
--- a/doc/local.mk
+++ b/doc/local.mk
@@ -1,6 +1,6 @@
# GNU Guix --- Functional package management for GNU
# Copyright © 2016 Eric Bavier <address@hidden>
-# Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès
<address@hidden>
+# Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic
Courtès <address@hidden>
# Copyright © 2013 Andreas Enge <address@hidden>
# Copyright © 2016 Taylan Ulrich Bayırlı/Kammer <address@hidden>
# Copyright © 2016, 2018 Mathieu Lirzin <address@hidden>
@@ -199,10 +199,15 @@ sub_commands_mans = \
$(srcdir)/%D%/guix-size.1 \
$(srcdir)/%D%/guix-system.1
+# Assume that cross-compiled commands cannot be executed.
+if !CROSS_COMPILING
+
dist_man1_MANS = \
$(srcdir)/%D%/guix.1 \
$(sub_commands_mans)
+endif
+
gen_man = \
LANGUAGE= $(top_builddir)/pre-inst-env $(HELP2MAN) \
$(HELP2MANFLAGS)
@@ -224,6 +229,7 @@ $(srcdir)/%D%/guix-%.1: guix/scripts/%.scm $(GOBJECTS)
esac
if BUILD_DAEMON
+if !CROSS_COMPILING
dist_man1_MANS += $(srcdir)/%D%/guix-daemon.1
@@ -231,3 +237,4 @@ $(srcdir)/%D%/guix-daemon.1: nix/nix-daemon/guix-daemon.cc
-$(AM_V_HELP2MAN)$(gen_man) --output="$@" `basename "$@" .1`
endif
+endif
- 25/36: services: Add guix-daemon-service as a Hurd service., (continued)
- 25/36: services: Add guix-daemon-service as a Hurd service., guix-commits, 2020/04/24
- 26/36: services: hurd: Add dummy syslog., guix-commits, 2020/04/24
- 27/36: services: hurd: Add dummy loopback., guix-commits, 2020/04/24
- 22/36: services: Add hurd-console-service-type., guix-commits, 2020/04/24
- 30/36: system: gnu: Populate "/etc" from "/boot/activation"., guix-commits, 2020/04/24
- 28/36: services: Add openssh-service as a Hurd service., guix-commits, 2020/04/24
- 32/36: system: hurd: Create system profile for guix development., guix-commits, 2020/04/24
- 29/36: system: hurd: Add the Shepherd., guix-commits, 2020/04/24
- 34/36: system: hurd: Add guix., guix-commits, 2020/04/24
- 33/36: system: gnu: Add %bootstrap-{gcc, binutils, glibc} for devel profile., guix-commits, 2020/04/24
- 02/36: build: Don't build man pages when cross-compiling.,
guix-commits <=
- 36/36: HACK use uncompiled .scm for shepherd, guix-commits, 2020/04/24
- 31/36: system: hurd: Add openssh service., guix-commits, 2020/04/24
- 08/36: gnu: guix: Use gnutls-3.6.13 when cross-compiling., guix-commits, 2020/04/24
- 20/36: system: hurd: Add /etc/group., guix-commits, 2020/04/24
- 35/36: system: hurd: Add the guix service., guix-commits, 2020/04/24