This patch is borrowed from Debian's patches for plink Author: Peter Green Puropose: Fallback to endian.h if all else fails on 64bit machines Closes: #528659 Forwarded: Shaun Purcell License: same as plink itself. =================================================================== --- plink-1.06.orig/Rsrv.h 2009-05-15 03:35:29.000000000 +0100 +++ plink-1.06/Rsrv.h 2009-05-15 03:35:41.000000000 +0100 @@ -313,7 +313,18 @@ #define __BIG_ENDIAN__ 1 #define SWAPEND 1 #elif ! defined Win32 /* Windows is little-endian is most cases, anywhere else we're stuck */ -#error "Cannot determine endianness. Make sure config.h is included or __{BIG|LITTLE}_ENDIAN__ is defined ." + //try endian.h before we finally bail out + #include + #if __BYTE_ORDER == __LITTLE_ENDIAN + #warning using little endian based on information from endian.h + #define __LITTLE_ENDIAN__ 1 + #elif __BYTE_ORDER == __BIG_ENDIAN + #warning using big endian based on information from endian.h + #define __BIG_ENDIAN__ 1 + #define SWAPEND 1 + #else + #error "Cannot determine endianness. Make sure config.h is included or __{BIG|LITTLE}_ENDIAN__ is defined ." + #endif #endif /* FIXME: all the mess below needs more efficient implementation - the current one is so messy to work around alignment problems on some platforms like Sun and HP 9000 */ .scm?id=8520f00d6989ff5ab22755a97dfcfd0375f6b5ca'>diff
AgeCommit message (Expand)Author
2022-06-04cache: Catch invalid 'last-expiry-cleanup'....Fixes <http://issues.guix.gnu.org/55638>. * guix/cache.scm (maybe-remove-expired-cache-entries)[last-expiry-date]: Use 'get-string-all' + 'string->number' instead of 'read'; ignore invalid numbers. * tests/cache.scm ("maybe-remove-expired-cache-entries, empty cache") ("maybe-remove-expired-cache-entries, corrupted cache"): New tests. Co-authored-by: Ludovic Courtès <ludo@gnu.org> zimoun
2020-03-22Remove workaround for 'time-monotonic' in Guile 2.2.2....This is a followup to e688c2df3924423b67892cc9939ca099c729d1cb. * build-aux/hydra/evaluate.scm <top level>: Remove 'time-monotonic' definition. * guix/cache.scm: Likewise. * guix/progress.scm: Likewise. * guix/scripts/substitute.scm: Likewise. * guix/scripts/weather.scm: Likewise. * tests/cache.scm: Likewise. Ludovic Courtès