From 80bc1678b7b859decae536e726a3e5870cbe84eb Mon Sep 17 00:00:00 2001 Message-Id: <80bc1678b7b859decae536e726a3e5870cbe84eb.1678657122.git.dev@jpoiret.xyz> In-Reply-To: References: From: Josselin Poiret Date: Mon, 31 Oct 2022 13:39:28 +0100 Subject: [PATCH 2/2] Add --without-rump configure option From: Samuel Thibault To allow cross-builds which cannot use AC_LINK_IFELSE at all. --- configure.ac | 47 ++++++++++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 21 deletions(-) diff --git a/configure.ac b/configure.ac index 0c1bf9b2..849b5fad 100644 --- a/configure.ac +++ b/configure.ac @@ -234,33 +234,38 @@ AS_IF([test "x$with_libz" != xno], [ ]) AC_SUBST([HAVE_LIBZ]) -# Save -oldLIBS="$LIBS" +AC_ARG_WITH([rump], + [AS_HELP_STRING([--without-rump], [disable rump])], , [with_rump=yes]) -LIBS="$oldLIBS -lrump" -AC_LINK_IFELSE( - [AC_LANG_PROGRAM( - [[#include +AS_IF([test "x$with_rump" != xno], [ + # Save + oldLIBS="$LIBS" + + LIBS="$oldLIBS -lrump" + AC_LINK_IFELSE( + [AC_LANG_PROGRAM( + [[#include #define _STANDALONE #include ]], - [])], - [HAVE_LIBRUMP=yes], - [HAVE_LIBRUMP=no]) -AC_SUBST([HAVE_LIBRUMP]) - -LIBS="$oldLIBS -lrumpvfs_nofifofs_pic" -AC_LINK_IFELSE( - [AC_LANG_PROGRAM( - [[#include + [])], + [HAVE_LIBRUMP=yes], + [HAVE_LIBRUMP=no]) + AC_SUBST([HAVE_LIBRUMP]) + + LIBS="$oldLIBS -lrumpvfs_nofifofs_pic" + AC_LINK_IFELSE( + [AC_LANG_PROGRAM( + [[#include #define _STANDALONE #include ]], - [])], - [HAVE_LIBRUMP_VFSNOFIFO=yes], - [HAVE_LIBRUMP_VFSNOFIFO=no]) -AC_SUBST([HAVE_LIBRUMP_VFSNOFIFO]) + [])], + [HAVE_LIBRUMP_VFSNOFIFO=yes], + [HAVE_LIBRUMP_VFSNOFIFO=no]) + AC_SUBST([HAVE_LIBRUMP_VFSNOFIFO]) -# Reset -LIBS="$oldLIBS" + # Reset + LIBS="$oldLIBS" +]) AC_ARG_ENABLE(boot-store-types, [ --enable-boot-store-types=TYPES... -- 2.39.1 acd8604b59aa434e944c73aecefd5183d13e'>gnu/services/telephony.scm
aw my-pine.scm returns: guix system: error: package linux-libre-arm64-generic@5.18.19 does not support x86_64-linux That's because there's no platform defined in the pine64-raw image-type, hence the guix system image tries to build the image for the host architecture. * gnu/system/images/novena.scm (novena-image-type): Use the armv7-linux platform. * gnu/system/images/pine64.scm (pine64-image-type): Use the aarch64-linux platform. * gnu/system/images/pinebook-pro.scm (pinebook-pro-image-type): Use the aarch64-linux platform. * gnu/system/images/rock64.scm (rock64-image-type): Use the aarch64-linux platform.
AgeCommit message (Expand)Author
2023-02-08gnu: libjami: Move jamid daemon to a "bin" output....* gnu/packages/jami.scm (libjami) [outputs]: Add a "bin" output. [arguments]: Add a move-jamid phase. * gnu/services/telephony.scm (jami-configuration->command-line-arguments): Refer to the "bin" output of libjami. (jami-shepherd-services): Likewise. Maxim Cournoyer
Mathieu Othacehe
2022-05-25Move (gnu platform) and (gnu platforms ...) to guix/....* gnu/platform.scm: * gnu/platforms/arm.scm: * gnu/platforms/hurd.scm: * gnu/platforms/mips.scm: * gnu/platforms/powerpc.scm: * gnu/platforms/riscv.scm: * gnu/platforms/s390.scm: * gnu/platforms/x86.scm: Move to guix/. * Makefile.am: * doc/guix.texi (Porting to a New Platform): * etc/release-manifest.scm: * gnu/ci.scm: * gnu/image.scm: * gnu/local.mk: * gnu/packages/bioinformatics.scm: * gnu/packages/bootstrap.scm: * gnu/packages/cross-base.scm: * gnu/packages/instrumentation.scm: * gnu/packages/linux.scm: * gnu/system/image.scm: * gnu/system/images/hurd.scm: * gnu/system/images/novena.scm: * gnu/system/images/pine64.scm: * gnu/system/images/pinebook-pro.scm: * gnu/system/images/rock64.scm: * guix/scripts/build.scm: * guix/scripts/system.scm: * guix/self.scm: Update (gnu platform...) to (guix platform...). Signed-off-by: Mathieu Othacehe <othacehe@gnu.org> Josselin Poiret