Copied from Debian: https://anonscm.debian.org/cgit/pkg-games/lierolibre.git/tree/debian/patches/0001-Use-unaligned-access-define-over-checking-arch.patch?id=82910748906855f6e6bfe30b3f077e8c793ae424 From a70691fb003cae1a33f06d682269285f9baa2dd9 Mon Sep 17 00:00:00 2001 From: Martin Erik Werner Date: Sun, 28 Jun 2015 19:00:23 +0200 Subject: [PATCH 2/3] At least try building for other archs than x86* Allow attempting to build for other architectures than x86 and x86_64, whether or not the build will succeed or produce sane output is another question... It emits plenty of warnings about it now though... Configuration of the FPU controller is disabled on all but x86*, and the uninformed hope and prayer is that defaults will be fine without messing with them. --- math/ieee.cpp | 2 ++ support/platform.h | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gvl/math/ieee.cpp b/src/gvl/math/ieee.cpp index 8b740d4..e0803d2 100644 --- a/src/gvl/math/ieee.cpp +++ b/src/gvl/math/ieee.cpp @@ -54,6 +54,8 @@ void gvl_init_ieee() { #if GVL_MSVCPP // Nothing needs to be done, TODO: we should however check that the x87 state is right +#elif !GVL_X86 && !GVL_X86_64 +// No idea what to do, but run with defaults and pray it doesn't mess things up #elif GVL_GCC && GVL_WIN32 unsigned int const flags = _RC_NEAR | _PC_53 | _EM_INVALID | _EM_DENORMAL | _EM_ZERODIVIDE | _EM_OVERFLOW | _EM_UNDERFLOW | _EM_INEXACT; _control87(flags, _MCW_EM | _MCW_PC | _MCW_RC); diff --git a/src/gvl/support/platform.h b/src/gvl/support/platform.h index 86dcaa6..1857b7c 100644 --- a/src/gvl/support/platform.h +++ b/src/gvl/support/platform.h @@ -88,12 +88,12 @@ # elif defined(__i386__) || defined(_M_IX86) || defined(i386) || defined(i486) || defined(intel) || defined(x86) || defined(i86pc) # define GVL_X86 1 # else -# error "Unknown architecture, please add it" +# warning "Unknown architecture, please add it" # endif #endif #if !GVL_LITTLE_ENDIAN && !GVL_BIG_ENDIAN -# if GVL_X86 || GVL_X86_64 +# if GVL_X86 || GVL_X86_64 || __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN # define GVL_LITTLE_ENDIAN 1 # else # define GVL_BIG_ENDIAN 1 -- 2.4.6 v class='content'>
AgeCommit message (Expand)Author
2023-08-21tests: Adjust 'node-back-edges' test for 'bag' to system-dependent glibc....Fixes a regression introduced in 560cb51e7b37e2c6f6fe4b72a3781185c57fdf83, which would lead this test on x86_64-linux to return a DIFF with two packages, nhc98 and dev86 (both have #:system "i686-linux" and thus depend on a different glibc object; why other system-specific packages such as 'wine' aren't reported is unclear). * tests/graph.scm ("node-transitive-edges + node-back-edges"): Use 'test-equal'. Define 'system-specific?' and use it. Ludovic Courtès
2023-04-07gnu: Purge pre-1.3.0 deprecated packages....* gnu/packages/bioinformatics.scm (deeptools): Remove variable. * gnu/packages/efi.scm (efi_analyzer): Ditto. * gnu/packages/guile.scm (guile-2.2/bug-fix, guile-json): Ditto. * gnu/packages/image.scm (libjpeg): Ditto. * gnu/packages/kde.scm (kdevplatform): Ditto * gnu/packages/linphone.scm (linphoneqt): Ditto. * gnu/packages/maths.scm (blis-sandybridge, blis-haswell, blis-knl): Ditto. * gnu/packages/mpi.scm (hwloc-2.0): Ditto. * gnu/packages/music.scm (python-abjad, zlfo): Ditto. * gnu/packages/perl.scm (perl-base, perl-parent): Ditto. * gnu/packages/tryton.scm (python-trytond): Ditto. * gnu/packages/video.scm (gnome-mpv): Ditto. * tests/graph.scm: Use guile-json-1. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Bruno Victal
2022-10-22Remove now unnecessary uses of (guix grafts)....These modules would use (guix grafts) just to access '%graft?' and related bindings, which are now in (guix store). * gnu/ci.scm, guix/gexp.scm, guix/lint.scm, guix/scripts.scm, guix/scripts/archive.scm, guix/scripts/build.scm, guix/scripts/challenge.scm, guix/scripts/deploy.scm, guix/scripts/environment.scm, guix/scripts/home.scm, guix/scripts/pack.scm, guix/scripts/package.scm, guix/scripts/pull.scm, guix/scripts/size.scm, guix/scripts/system.scm, guix/scripts/weather.scm, tests/builders.scm, tests/channels.scm, tests/cpan.scm, tests/derivations.scm, tests/gexp.scm, tests/graph.scm, tests/guix-daemon.sh, tests/monads.scm, tests/pack.scm, tests/packages.scm, tests/profiles.scm, tests/system.scm: Remove #:use-module (guix grafts). Ludovic Courtès
2022-07-01tests: Adjust 'guix graph' test to latest OCaml changes....* tests/graph.scm ("reverse bag DAG"): Adjust to latest OCaml changes by looking at dune/ocaml-camomile/ocaml-utop. Ludovic Courtès
2022-02-05tests: Assert that cyclic graphs can be produced....* tests/graph.scm ("package DAG, oops it was a cycle"): New test. Liliana Marie Prikler
2021-09-21graph: Add '--max-depth'....* guix/graph.scm (export-graph): Add #:max-depth and honor it, adding 'depths' argument to 'loop'. * guix/scripts/graph.scm (%options, show-help): Add '--max-depth'. (%default-options): Add 'max-depth'. (guix-graph): Pass #:max-depth to 'export-graph'. * tests/graph.scm ("package DAG, limited depth"): New test. * doc/guix.texi (Invoking guix graph): Document it. Ludovic Courtès
2020-10-20graph: Adjust test for recent OCaml changes....This is a followup to 339177956affdc471832750a3805b74356487e93. * tests/graph.scm ("reverse bag DAG"): Look for "ocaml4.07-dune" rather than "dune". Ludovic Courtès