X-Git-Url: http://git.hcoop.net/jackhill/guix/guix.git/blobdiff_plain/a9db7d10b6e4e86fb2b87a4161db3b1f202002fd..f9c3bd2e0183b777ad3794674a360222c62633b0:/gnu/packages/pth.scm diff --git a/gnu/packages/pth.scm b/gnu/packages/pth.scm index c3f572574e..1908ce7763 100644 --- a/gnu/packages/pth.scm +++ b/gnu/packages/pth.scm @@ -1,5 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2012 Ludovic Courtès +;;; Copyright © 2012, 2015 Ludovic Courtès +;;; Copyright © 2014 Mark H Weaver +;;; Copyright © 2017 Efraim Flashner ;;; ;;; This file is part of GNU Guix. ;;; @@ -35,27 +37,21 @@ (base32 "0ckjqw5kz5m30srqi87idj7xhpw6bpki43mj07bazjm2qmh3cdbj")))) (build-system gnu-build-system) - (arguments '(#:parallel-build? #f)) - (home-page "http://www.gnu.org/software/pth") + (arguments + `(#:parallel-build? #f + #:configure-flags (list + ,@(if (string=? "aarch64-linux" + (%current-system)) + '("--host=aarch64-unknown-linux-gnu") + '())))) + (home-page "https://www.gnu.org/software/pth/") (synopsis "Portable thread library") (description - "Pth is a very portable POSIX/ANSI-C based library for Unix -platforms which provides non-preemptive priority-based scheduling for -multiple threads of execution (aka ``multithreading'') inside -event-driven applications. All threads run in the same address space of -the server application, but each thread has it's own individual -program-counter, run-time stack, signal mask and errno variable. - -The thread scheduling itself is done in a cooperative way, i.e., the -threads are managed by a priority- and event-based non-preemptive -scheduler. The intention is that this way one can achieve better -portability and run-time performance than with preemptive -scheduling. The event facility allows threads to wait until various -types of events occur, including pending I/O on file descriptors, -asynchronous signals, elapsed timers, pending I/O on message ports, -thread and process termination, and even customized callback functions. - -Additionally Pth provides an optional emulation API for POSIX.1c -threads (\"Pthreads\") which can be used for backward compatibility to -existing multithreaded applications.") + "GNU Pth is a portable library providing non-preemptive, priority-based +scheduling for multiple execution threads. Each thread has its own +program-counter, run-time stack, signal mask and errno variable. Threads are +scheduled in a cooperative way, rather than in the standard preemptive way, +such that they are managed according to priority and events. However, Pth +also features emulation of POSIX.1c threads (\"pthreads\") for backwards +compatibility.") (license lgpl2.1+)))