diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2026-06-16 23:02:33 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2026-06-22 11:52:39 +0200 |
| commit | 98d51e75c23b5cabee61bd1111c9adf6c84b1851 (patch) | |
| tree | bc10f48d8d6994d87f506071c8f3cdb8f3e365b1 /gnu/packages/version-control.scm | |
| parent | 0ca2a361fa963051ed4b0fbd0a161290765b879c (diff) | |
gnu: libgit2@1.9: Update to 1.9.4.
* gnu/packages/version-control.scm (libgit2-1.9): Update to 1.9.4.
Remove ‘libgit2-uninitialized-proxy-settings.patch’: the patch applies but is
now unnecessary.
[inputs]: Move ‘libssh2’ to…
[propagated-inputs]: … here.
(libgit2-1.9/pinned)[source]: Add ‘patches’.
[inputs, propagated-inputs]: New fields.
(libgit2-1.8)[inputs, propagated-inputs]: New fields.
(libgit2-1.3)[arguments]: Add #:configure-flags.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages/version-control.scm')
| -rw-r--r-- | gnu/packages/version-control.scm | 39 |
1 files changed, 31 insertions, 8 deletions
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index e57f2441ebf..03d6d74144b 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm | |||
| @@ -1365,7 +1365,7 @@ other git-like projects such as @code{libgit2}.") | |||
| 1365 | (define-public libgit2-1.9 | 1365 | (define-public libgit2-1.9 |
| 1366 | (package | 1366 | (package |
| 1367 | (name "libgit2") | 1367 | (name "libgit2") |
| 1368 | (version "1.9.2") | 1368 | (version "1.9.4") |
| 1369 | (source (origin | 1369 | (source (origin |
| 1370 | (method git-fetch) | 1370 | (method git-fetch) |
| 1371 | (uri (git-reference | 1371 | (uri (git-reference |
| @@ -1374,10 +1374,9 @@ other git-like projects such as @code{libgit2}.") | |||
| 1374 | (file-name (git-file-name "libgit2" version)) | 1374 | (file-name (git-file-name "libgit2" version)) |
| 1375 | (sha256 | 1375 | (sha256 |
| 1376 | (base32 | 1376 | (base32 |
| 1377 | "1f3wnw0s5fx4lf68i400mj6l7qyw9hf6mr7i2xlqqmp9q23q89sc")) | 1377 | "07gfycsmq3hdaic3x3ldgnry3gnam1yxsy8q5f94s52xgb7j59b4")) |
| 1378 | (patches | 1378 | (patches |
| 1379 | (search-patches "libgit2-uninitialized-proxy-settings.patch" | 1379 | (search-patches "libgit2-proxy-reconnection.patch" |
| 1380 | "libgit2-proxy-reconnection.patch" | ||
| 1381 | "libgit2-path-max.patch")) | 1380 | "libgit2-path-max.patch")) |
| 1382 | (modules '((guix build utils))) | 1381 | (modules '((guix build utils))) |
| 1383 | (snippet | 1382 | (snippet |
| @@ -1411,12 +1410,12 @@ other git-like projects such as @code{libgit2}.") | |||
| 1411 | ;; Tests may be disabled if cross-compiling. | 1410 | ;; Tests may be disabled if cross-compiling. |
| 1412 | (format #t "Test suite not run.~%"))))))) | 1411 | (format #t "Test suite not run.~%"))))))) |
| 1413 | (inputs | 1412 | (inputs |
| 1414 | (list libssh2 http-parser)) | 1413 | (list http-parser)) |
| 1415 | (native-inputs | 1414 | (native-inputs |
| 1416 | (list pkg-config python)) | 1415 | (list pkg-config python)) |
| 1417 | (propagated-inputs | 1416 | (propagated-inputs |
| 1418 | ;; These libraries are in 'Requires.private' in libgit2.pc. | 1417 | ;; These libraries are in 'Requires.private' in libgit2.pc. |
| 1419 | (list openssl pcre2 zlib)) | 1418 | (list openssl libssh2 pcre2 zlib)) |
| 1420 | (home-page "https://libgit2.org/") | 1419 | (home-page "https://libgit2.org/") |
| 1421 | (synopsis "Library providing Git core methods") | 1420 | (synopsis "Library providing Git core methods") |
| 1422 | (description | 1421 | (description |
| @@ -1440,7 +1439,11 @@ write native speed custom Git applications in any language with bindings.") | |||
| 1440 | (file-name (git-file-name "libgit2" version)) | 1439 | (file-name (git-file-name "libgit2" version)) |
| 1441 | (sha256 | 1440 | (sha256 |
| 1442 | (base32 | 1441 | (base32 |
| 1443 | "1f3wnw0s5fx4lf68i400mj6l7qyw9hf6mr7i2xlqqmp9q23q89sc")))) | 1442 | "1f3wnw0s5fx4lf68i400mj6l7qyw9hf6mr7i2xlqqmp9q23q89sc")) |
| 1443 | (patches | ||
| 1444 | (search-patches "libgit2-uninitialized-proxy-settings.patch" | ||
| 1445 | "libgit2-proxy-reconnection.patch" | ||
| 1446 | "libgit2-path-max.patch")))) | ||
| 1444 | (arguments | 1447 | (arguments |
| 1445 | (list #:configure-flags | 1448 | (list #:configure-flags |
| 1446 | #~(list "-DUSE_NTLMCLIENT=OFF" ;TODO: package this | 1449 | #~(list "-DUSE_NTLMCLIENT=OFF" ;TODO: package this |
| @@ -1460,6 +1463,11 @@ write native speed custom Git applications in any language with bindings.") | |||
| 1460 | (invoke "./libgit2_tests" "-v" "-Q") | 1463 | (invoke "./libgit2_tests" "-v" "-Q") |
| 1461 | ;; Tests may be disabled if cross-compiling. | 1464 | ;; Tests may be disabled if cross-compiling. |
| 1462 | (format #t "Test suite not run.~%"))))))) | 1465 | (format #t "Test suite not run.~%"))))))) |
| 1466 | (inputs | ||
| 1467 | (list libssh2 http-parser)) | ||
| 1468 | (propagated-inputs | ||
| 1469 | ;; These libraries are in 'Requires.private' in libgit2.pc. | ||
| 1470 | (list openssl pcre2 zlib)) | ||
| 1463 | (properties '((hidden? . #t))))) | 1471 | (properties '((hidden? . #t))))) |
| 1464 | 1472 | ||
| 1465 | (define-public libgit2-1.8 | 1473 | (define-public libgit2-1.8 |
| @@ -1486,7 +1494,12 @@ write native speed custom Git applications in any language with bindings.") | |||
| 1486 | "deps/ntlmclient" | 1494 | "deps/ntlmclient" |
| 1487 | "deps/pcre" | 1495 | "deps/pcre" |
| 1488 | "deps/winhttp" | 1496 | "deps/winhttp" |
| 1489 | "deps/zlib")))))))) | 1497 | "deps/zlib")))))) |
| 1498 | (inputs | ||
| 1499 | (list libssh2 http-parser)) | ||
| 1500 | (propagated-inputs | ||
| 1501 | ;; These libraries are in 'Requires.private' in libgit2.pc. | ||
| 1502 | (list openssl pcre2 zlib)))) | ||
| 1490 | 1503 | ||
| 1491 | (define-public libgit2-1.7 | 1504 | (define-public libgit2-1.7 |
| 1492 | (package | 1505 | (package |
| @@ -1577,6 +1590,16 @@ write native speed custom Git applications in any language with bindings.") | |||
| 1577 | "1dngga8jq419z6ps65wpmh2jihcf70k6r98pb1m1yiwj7qqh9792")))) | 1590 | "1dngga8jq419z6ps65wpmh2jihcf70k6r98pb1m1yiwj7qqh9792")))) |
| 1578 | (arguments | 1591 | (arguments |
| 1579 | (substitute-keyword-arguments (package-arguments libgit2-1.5) | 1592 | (substitute-keyword-arguments (package-arguments libgit2-1.5) |
| 1593 | ((#:configure-flags _ #~'()) | ||
| 1594 | ;; XXX: Drop '-DUSE_SHA1=HTTPS' to avoid a major rebuild. | ||
| 1595 | #~(list "-DUSE_NTLMCLIENT=OFF" | ||
| 1596 | "-DREGEX_BACKEND=pcre2" | ||
| 1597 | "-DUSE_HTTP_PARSER=system" | ||
| 1598 | "-DUSE_SSH=ON" ; cmake fails to find libssh if this is missing | ||
| 1599 | ;; See https://github.com/libgit2/libgit2/issues/7169 | ||
| 1600 | #$@(if (target-32bit?) | ||
| 1601 | '("-DCMAKE_C_FLAGS=-D_FILE_OFFSET_BITS=64") | ||
| 1602 | '()))) | ||
| 1580 | ((#:phases _ '%standard-phases) | 1603 | ((#:phases _ '%standard-phases) |
| 1581 | `(modify-phases %standard-phases | 1604 | `(modify-phases %standard-phases |
| 1582 | ;; Run checks more verbosely, unless we are cross-compiling. | 1605 | ;; Run checks more verbosely, unless we are cross-compiling. |
