From: Jan Wielkiewicz <tona_kosmicznego_smiecia@interia.pl>
To: 39005@debbugs.gnu.org
Cc: Jan Wielkiewicz <tona_kosmicznego_smiecia@interia.pl>
Subject: [bug#39005] [PATCH 07/22] gnu: jami: Fix the procedure for applying patches. Use the procedure correctly in pjproject-jami.
Date: Tue, 7 Jan 2020 11:17:26 +0100 [thread overview]
Message-ID: <20200107101741.970-7-tona_kosmicznego_smiecia@interia.pl> (raw)
In-Reply-To: <20200107101741.970-1-tona_kosmicznego_smiecia@interia.pl>
---
gnu/packages/jami.scm | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/gnu/packages/jami.scm b/gnu/packages/jami.scm
index c6f38d4a8c..f257767a85 100644
--- a/gnu/packages/jami.scm
+++ b/gnu/packages/jami.scm
@@ -58,6 +58,22 @@
#:use-module (guix download)
#:use-module (guix git-download))
+(define-public jami-apply-dependency-patches
+ '(lambda* (#:key inputs dep-name patches)
+ (let ((savoir-faire-linux-patches-directory "Savoir-faire Linux patches"))
+ (mkdir-p savoir-faire-linux-patches-directory)
+ (invoke "tar" "-xvf" (assoc-ref inputs "savoir-faire-linux-patches")
+ "-C" savoir-faire-linux-patches-directory
+ "--strip-components=5"
+ (string-append "ring-project/daemon/contrib/src/"
+ dep-name))
+ (for-each
+ (lambda (file)
+ (invoke "patch" "--force" "-p1" "-i"
+ (string-append savoir-faire-linux-patches-directory "/"
+ file ".patch")))
+ patches))))
+
(define %jami-version "20191128.1.4c44bb7")
(define* (jami-source #:key without-daemon)
@@ -115,6 +131,8 @@
;; making a shared object;
"CFLAGS=-fPIC"
"CXXFLAGS=-fPIC")
+ #:modules ((guix build utils)
+ ,@(@@ (guix build-system gnu) %default-modules))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'make-git-checkout-writable
@@ -157,6 +175,31 @@
file ".patch")))
savoir-faire-linux-patches))
#t))
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((jami-apply-dependency-patches ,jami-apply-dependency-patches))
+ ;; Comes from
+ ;; "ring-project/daemon/contrib/src/pjproject/rules.mak".
+ ;; WARNING: These amount for huge changes in pjproject.
+ (jami-apply-dependency-patches #:inputs inputs
+ #:dep-name "pjproject"
+ #:patches
+ '("fix_turn_alloc_failure"
+ "rfc2466"
+ "ipv6"
+ "multiple_listeners"
+ "pj_ice_sess"
+ "fix_turn_fallback"
+ "fix_ioqueue_ipv6_sendto"
+ "add_dtls_transport"
+ "rfc6544"
+ "ice_config"
+ "sip_config"
+ "fix_first_packet_turn_tcp"
+ "fix_ebusy_turn"
+ "ignore_ipv6_on_transport_check"
+ "fix_turn_connection_failure"
+ "disable_local_resolution"))
+ #t))
;; TODO: We could use substitute-keyword-arguments instead of
;; repeating the phases from pjproject, but somehow it does
;; not work.
--
2.24.1
next prev parent reply other threads:[~2020-01-07 11:49 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-07 0:29 [bug#39005] [PATCH 00/22] Maintaining Jami Jan
2020-01-07 10:17 ` [bug#39005] [PATCH 01/22] gnu: jami: Bump to 20191128.1.4c44bb7 Jan Wielkiewicz
2020-01-07 10:17 ` [bug#39005] [PATCH 02/22] gnu: jami: fix downloading by changing the prefix to jami_ Jan Wielkiewicz
2020-01-07 10:17 ` [bug#39005] [PATCH 03/22] gnu: Add libnatpmp Jan Wielkiewicz
2020-01-07 10:17 ` [bug#39005] [PATCH 04/22] gnu: libupnp: Bump to 1.8.3; change fetch-method; add missing dependencies Jan Wielkiewicz
2020-01-07 10:17 ` [bug#39005] [PATCH 05/22] gnu: Jami: add libnatpmp (an optional dependency) Jan Wielkiewicz
2020-01-07 10:17 ` [bug#39005] [PATCH 06/22] gnu: jami: Move Jami and its dependencies to a separate file (jami.scm) Jan Wielkiewicz
2020-01-07 10:17 ` Jan Wielkiewicz [this message]
2020-01-07 10:17 ` [bug#39005] [PATCH 08/22] gnu: Add ffmpeg-jami Jan Wielkiewicz
2020-01-07 10:17 ` [bug#39005] [PATCH 09/22] gnu: jami: Bump to 20191209.1.4b48135 Jan Wielkiewicz
2020-01-07 10:17 ` [bug#39005] [PATCH 10/22] gnu: Add gnutls-jami (not yet working) Jan Wielkiewicz
2020-01-07 10:17 ` [bug#39005] [PATCH 11/22] gnu: jami: Bump to 20191214.1.07edb5e Jan Wielkiewicz
2020-01-07 10:17 ` [bug#39005] [PATCH 12/22] gnu: ffmpeg-jami: skip tests Jan Wielkiewicz
2020-01-07 10:17 ` [bug#39005] [PATCH 13/22] gnu: jami: bump to 20191217.1.ce5f295 Jan Wielkiewicz
2020-01-07 10:17 ` [bug#39005] [PATCH 14/22] gnu: opendht: Bump to 2.0.0beta3 Jan Wielkiewicz
2020-01-07 10:17 ` [bug#39005] [PATCH 15/22] gnu: restinio: Bump to 0.6.1.1 Jan Wielkiewicz
2020-01-07 10:17 ` [bug#39005] [PATCH 16/22] gnu: pjproject-jami: Fix formatting - replace a tab sign with a space. No code changes! Jan Wielkiewicz
2020-01-07 10:17 ` [bug#39005] [PATCH 17/22] gnu: pjproject-jami: Remove unnecessary lambda, which came from doing rebase improperly; jami.scm: untabify, remove trailing whitespace Jan Wielkiewicz
2020-01-07 10:17 ` [bug#39005] [PATCH 18/22] gnu: jami.scm: Fix formatting. No code changes! Jan Wielkiewicz
2020-01-07 10:17 ` [bug#39005] [PATCH 19/22] gnu: jami: Bump to 20191224.1.5c0154a Jan Wielkiewicz
2020-01-07 10:17 ` [bug#39005] [PATCH 20/22] gnu: libring: Use ffmpeg-jami instead of ffmpeg Jan Wielkiewicz
2020-01-07 10:17 ` [bug#39005] [PATCH 21/22] gnu: pjproject-jami: Apply a missing patch Jan Wielkiewicz
2020-01-07 10:17 ` [bug#39005] [PATCH 22/22] gnu: jami: Bump to 20191227.2.74b55b6 Jan Wielkiewicz
2020-02-09 23:12 ` bug#39005: Closing the issue, will post not messy patches soon Jan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200107101741.970-7-tona_kosmicznego_smiecia@interia.pl \
--to=tona_kosmicznego_smiecia@interia.pl \
--cc=39005@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.