diff options
| author | Ricardo Wurmus <rekado@elephly.net> | 2024-04-16 11:59:34 +0200 |
|---|---|---|
| committer | Ricardo Wurmus <rekado@elephly.net> | 2024-04-16 11:59:34 +0200 |
| commit | e2ec85d17d905876b7b4f582bc98debcd343b8c2 (patch) | |
| tree | cd79b9d630c8f516361d59e193b1c193b9dcd3cb /gnu/packages/lua.scm | |
| parent | 9374b0fe5240eb140cf09530bf779aacaccdee2b (diff) | |
gnu: lua-cqueues: Update to 20200726.
* gnu/packages/lua.scm (lua-cqueues): Update to 20200726.
[source]: Fetch from git repository.
[arguments]: Use G-expressions; disable two tests that need LuaJIT's ffi
module.
Change-Id: I969a9f173339d22e57fd6a5e4689889c0268c52d
Diffstat (limited to 'gnu/packages/lua.scm')
| -rw-r--r-- | gnu/packages/lua.scm | 147 |
1 files changed, 74 insertions, 73 deletions
diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm index 821ac6c9c9a..7b17c0756b3 100644 --- a/gnu/packages/lua.scm +++ b/gnu/packages/lua.scm | |||
| @@ -485,86 +485,87 @@ secure session between the peers.") | |||
| 485 | (define (make-lua-cqueues name lua lua-ossl) | 485 | (define (make-lua-cqueues name lua lua-ossl) |
| 486 | (package | 486 | (package |
| 487 | (name name) | 487 | (name name) |
| 488 | (version "20171014") | 488 | (version "20200726") |
| 489 | (source (origin | 489 | (source (origin |
| 490 | (method url-fetch) | 490 | (method git-fetch) |
| 491 | (uri (string-append "https://25thandclement.com/~william/" | 491 | (uri (git-reference |
| 492 | "projects/releases/cqueues-" version ".tgz")) | 492 | (url "https://github.com/wahern/cqueues") |
| 493 | (commit (string-append "rel-" version)))) | ||
| 494 | (file-name (git-file-name name version)) | ||
| 493 | (sha256 | 495 | (sha256 |
| 494 | (base32 | 496 | (base32 |
| 495 | "1dabhpn6r0hlln8vx9hxm34pfcm46qzgpb2apmziwg5z51fi4ksb")))) | 497 | "17gwqndlga6gnishgs6wk8cvgwzanddr42yikkg2xd4nanhcg8z9")))) |
| 496 | (build-system gnu-build-system) | 498 | (build-system gnu-build-system) |
| 497 | (arguments | 499 | (arguments |
| 498 | `(#:modules ((guix build gnu-build-system) | 500 | (list |
| 501 | #:modules '((guix build gnu-build-system) | ||
| 499 | (guix build utils) | 502 | (guix build utils) |
| 500 | (ice-9 string-fun)) | 503 | (ice-9 string-fun)) |
| 501 | #:make-flags | 504 | #:make-flags |
| 502 | (let ((out (assoc-ref %outputs "out")) | 505 | #~(let ((lua-api-version #$(version-major+minor (package-version lua)))) |
| 503 | (lua-api-version ,(version-major+minor (package-version lua)))) | 506 | (list (string-append "CC=" #$(cc-for-target)) |
| 504 | (list ,(string-append "CC=" (cc-for-target)) | 507 | (string-append "LUA_APIS=" lua-api-version))) |
| 505 | (string-append "LUA_APIS=" lua-api-version))) | 508 | #:phases |
| 506 | #:phases | 509 | #~(modify-phases %standard-phases |
| 507 | (modify-phases %standard-phases | 510 | (delete 'configure) |
| 508 | (delete 'configure) | 511 | (delete 'check) |
| 509 | (delete 'check) | 512 | (replace 'install |
| 510 | (replace 'install | 513 | (lambda* (#:key make-flags #:allow-other-keys) |
| 511 | (lambda* (#:key make-flags outputs #:allow-other-keys) | 514 | (apply invoke "make" "install" |
| 512 | (let ((out (assoc-ref outputs "out"))) | 515 | (append make-flags |
| 513 | (apply invoke "make" "install" | 516 | (list (string-append "DESTDIR=" #$output) |
| 514 | (append make-flags | 517 | "prefix="))))) |
| 515 | (list (string-append "DESTDIR=" out) | 518 | (add-after 'install 'check |
| 516 | "prefix=")))))) | 519 | (lambda* (#:key make-flags #:allow-other-keys) |
| 517 | (add-after 'install 'check | 520 | (let* |
| 518 | (lambda* (#:key inputs outputs make-flags #:allow-other-keys) | 521 | ((lua-version #$(version-major+minor (package-version lua))) |
| 519 | (let* | 522 | (env-suffix (if (equal? lua-version "5.1") |
| 520 | ((lua-version ,(version-major+minor (package-version lua))) | 523 | "" |
| 521 | (env-suffix (if (equal? lua-version "5.1") | 524 | (string-append |
| 522 | "" | 525 | "_" |
| 523 | (string-append | 526 | (string-replace-substring lua-version "." "_")))) |
| 524 | "_" | 527 | |
| 525 | (string-replace-substring lua-version "." "_")))) | 528 | (lua-cpath (lambda (p) |
| 526 | 529 | (string-append p "/lib/lua/" lua-version "/?.so"))) | |
| 527 | (lua-ossl (assoc-ref inputs "lua-ossl")) | 530 | (lua-path (lambda (p) |
| 528 | (out (assoc-ref outputs "out")) | 531 | (string-append p "/share/lua/" lua-version "/?.lua")))) |
| 529 | 532 | ;; The test suite sets Lua-version-specific search-path variables | |
| 530 | (lua-cpath (lambda (p) | 533 | ;; when available so we must do the same, as these take |
| 531 | (string-append p "/lib/lua/" lua-version "/?.so"))) | 534 | ;; precedence over the generic "LUA_CPATH" and "LUA_PATH" |
| 532 | (lua-path (lambda (p) | 535 | (setenv (string-append "LUA_CPATH" env-suffix) |
| 533 | (string-append p "/share/lua/" lua-version "/?.lua")))) | 536 | (string-append |
| 534 | ;; The test suite sets Lua-version-specific search-path variables | 537 | (string-join (map lua-cpath (list #$output #$lua-ossl)) ";") |
| 535 | ;; when available so we must do the same, as these take | 538 | ";;")) |
| 536 | ;; precedence over the generic "LUA_CPATH" and "LUA_PATH" | 539 | (setenv (string-append "LUA_PATH" env-suffix) |
| 537 | (setenv (string-append "LUA_CPATH" env-suffix) | 540 | (string-append |
| 538 | (string-append | 541 | (string-join (map lua-path (list #$output #$lua-ossl)) ";") |
| 539 | (string-join (map lua-cpath (list out lua-ossl)) ";") | 542 | ";;")) |
| 540 | ";;")) | 543 | |
| 541 | (setenv (string-append "LUA_PATH" env-suffix) | 544 | ;; Skip regression tests we expect to fail |
| 542 | (string-append | 545 | (with-directory-excursion "regress" |
| 543 | (string-join (map lua-path (list out lua-ossl)) ";") | 546 | (for-each (lambda (f) |
| 544 | ";;")) | 547 | (rename-file f (string-append f ".skip"))) |
| 545 | 548 | (append | |
| 546 | ;; Skip regression tests we expect to fail | 549 | ;; Regression tests that require network |
| 547 | (with-directory-excursion "regress" | 550 | ;; connectivity |
| 548 | (for-each (lambda (f) | 551 | '("22-client-dtls.lua" |
| 549 | (rename-file f (string-append f ".skip"))) | 552 | "30-starttls-completion.lua" |
| 550 | (append | 553 | "62-noname.lua" |
| 551 | ;; Regression tests that require network | 554 | "153-dns-resolvers.lua") |
| 552 | ;; connectivity | 555 | |
| 553 | '("22-client-dtls.lua" | 556 | ;; Regression tests that require LuaJIT |
| 554 | "30-starttls-completion.lua" | 557 | '("44-resolvers-gc.lua" |
| 555 | "62-noname.lua" | 558 | "51-join-defunct-thread.lua" |
| 556 | "153-dns-resolvers.lua") | 559 | ;; These both need the ffi module. |
| 557 | 560 | "73-starttls-buffering.lua" | |
| 558 | ;; Regression tests that require LuaJIT | 561 | "87-alpn-disappears.lua") |
| 559 | '("44-resolvers-gc.lua" | 562 | |
| 560 | "51-join-defunct-thread.lua") | 563 | ;; Regression tests that require Lua 5.3 |
| 561 | 564 | (if (not (equal? lua-version "5.3")) | |
| 562 | ;; Regression tests that require Lua 5.3 | 565 | '("152-thread-integer-passing.lua") |
| 563 | (if (not (equal? lua-version "5.3")) | 566 | '())))) |
| 564 | '("152-thread-integer-passing.lua") | 567 | |
| 565 | '())))) | 568 | (apply invoke "make" "check" make-flags))))))) |
| 566 | |||
| 567 | (apply invoke "make" "check" make-flags))))))) | ||
| 568 | (native-inputs | 569 | (native-inputs |
| 569 | (list m4)) | 570 | (list m4)) |
| 570 | (inputs | 571 | (inputs |
