mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: libical: Add upstream patch to preserve API compatibility.
* gnu/packages/calendar.scm (libical)[source](patches): New field.
This commit is contained in:
parent
146d0483b0
commit
20fe3cd761
1 changed files with 19 additions and 2 deletions
|
@ -6,6 +6,7 @@
|
||||||
;;; Copyright © 2016 Troy Sankey <sankeytms@gmail.com>
|
;;; Copyright © 2016 Troy Sankey <sankeytms@gmail.com>
|
||||||
;;; Copyright © 2016 Stefan Reichoer <stefan@xsteve.at>
|
;;; Copyright © 2016 Stefan Reichoer <stefan@xsteve.at>
|
||||||
;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
|
;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||||
|
;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -58,7 +59,22 @@
|
||||||
version "/libical-" version ".tar.gz"))
|
version "/libical-" version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1z33wzaazbd7drl6qbh1750whd78xl2cg0gjnxyya9m83vgndgha"))))
|
"1z33wzaazbd7drl6qbh1750whd78xl2cg0gjnxyya9m83vgndgha"))
|
||||||
|
(patches
|
||||||
|
;; Add a patch slated for 3.0.8 which preserves backwards-
|
||||||
|
;; compatibility in the icalattach_new_from_data() function,
|
||||||
|
;; which accidentally changed in 3.0.7 and could break some uses.
|
||||||
|
;; https://gitlab.gnome.org/GNOME/evolution-data-server/issues/185
|
||||||
|
;; http://lists.infradead.org/pipermail/libical-devel/2020-January/000907.html
|
||||||
|
(list (origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (string-append
|
||||||
|
"https://github.com/libical/libical/commit/"
|
||||||
|
"ae394010c889e4c185160da5e81527849f9de350.patch"))
|
||||||
|
(file-name "libical-3.0.7-preserve-icalattach-api.patch")
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0v8qcxn8a6sh78grzxd61j9478928dx38l5mf8mkdrbxv47vmvvp")))))))
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:tests? #f ; test suite appears broken
|
'(#:tests? #f ; test suite appears broken
|
||||||
|
@ -67,7 +83,8 @@
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-before 'configure 'patch-paths
|
(add-before 'configure 'patch-paths
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
;; FIXME: This should be patched to use TZDIR so we can drop
|
;; TODO: libical 3.1.0 supports using TZDIR instead of a hard-coded
|
||||||
|
;; zoneinfo database. When that is released we can drop
|
||||||
;; the tzdata dependency.
|
;; the tzdata dependency.
|
||||||
(let ((tzdata (assoc-ref inputs "tzdata")))
|
(let ((tzdata (assoc-ref inputs "tzdata")))
|
||||||
(substitute* "src/libical/icaltz-util.c"
|
(substitute* "src/libical/icaltz-util.c"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue