From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id oEErL4S0CF/zAQAA0tVLHw (envelope-from ) for ; Fri, 10 Jul 2020 18:33:40 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 4OsXK4S0CF9/PAAAB5/wlQ (envelope-from ) for ; Fri, 10 Jul 2020 18:33:40 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6E9CB940900 for ; Fri, 10 Jul 2020 18:33:40 +0000 (UTC) Received: from localhost ([::1]:53026 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jtxq7-0005Kf-Cw for larch@yhetil.org; Fri, 10 Jul 2020 14:33:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45332) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jtxpZ-0004n5-EW for guix-patches@gnu.org; Fri, 10 Jul 2020 14:33:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60104) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jtxpZ-0006NK-3p for guix-patches@gnu.org; Fri, 10 Jul 2020 14:33:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jtxpZ-0001qJ-0x for guix-patches@gnu.org; Fri, 10 Jul 2020 14:33:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42229] [[PATCH V2] 07/10] gnu: jami: Fix compilation by providing necessary webchat files. Resent-From: Jan Wielkiewicz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 10 Jul 2020 18:33:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42229 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 42229@debbugs.gnu.org Cc: Jan Wielkiewicz Received: via spool by 42229-submit@debbugs.gnu.org id=B42229.15944059737001 (code B ref 42229); Fri, 10 Jul 2020 18:33:04 +0000 Received: (at 42229) by debbugs.gnu.org; 10 Jul 2020 18:32:53 +0000 Received: from localhost ([127.0.0.1]:43407 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jtxpM-0001ol-Oz for submit@debbugs.gnu.org; Fri, 10 Jul 2020 14:32:53 -0400 Received: from smtpo.poczta.interia.pl ([217.74.65.155]:54738) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jtxp9-0001mg-23 for 42229@debbugs.gnu.org; Fri, 10 Jul 2020 14:32:41 -0400 X-Interia-R: Interia X-Interia-R-IP: 89.64.43.25 X-Interia-R-Helo: Received: from localhost.localdomain (89-64-43-25.dynamic.chello.pl [89.64.43.25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by poczta.interia.pl (INTERIA.PL) with ESMTPSA; Fri, 10 Jul 2020 20:32:33 +0200 (CEST) From: Jan Wielkiewicz Date: Fri, 10 Jul 2020 20:32:17 +0200 Message-Id: <20200710183220.19829-7-tona_kosmicznego_smiecia@interia.pl> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200710183220.19829-1-tona_kosmicznego_smiecia@interia.pl> References: <20200710183220.19829-1-tona_kosmicznego_smiecia@interia.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Interia-Antivirus: OK DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=interia.pl; s=biztos; t=1594405953; bh=ghbhx85BCqfNETmd++BIaKACutBBbJbgPx3+x30TXoY=; h=X-Interia-R:X-Interia-R-IP:X-Interia-R-Helo:From:To:Cc:Subject: Date:Message-Id:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-Interia-Antivirus; b=ss1KIffb/6+RH+6bymmJe1JyJONdHfQeC83Mxj1UCTmq1LJXKEgA3ErQkVF9TPold P/u/x7nQ6bXpHRwLJbi4qc38RdAKJIheR7bixHlVhZwkXyTaSkb5H2Ysp7uB8NVTMs a0hRtdGp6yw1PMuQTbhzIyMoT75Kuf8ddHMzxxjU= X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.7 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=interia.pl header.s=biztos header.b=ss1KIffb; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 4.99 X-TUID: 3RdlqIqfM8Qq * gnu/packages/jami.scm (define-module): Add copy-build-system. (libringclient)[source]: Delete chatview files. [arguments]: Remove chatview files from CMakeLists.txt. (jami-chatview): New variable. (jami)[source]: Delete chatview directory. [inputs]: Add jami-chatview. [arguments]: Copy chatview files to destination. --- gnu/packages/jami.scm | 66 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 65 insertions(+), 1 deletion(-) diff --git a/gnu/packages/jami.scm b/gnu/packages/jami.scm index df3a268274..b5b2df61ac 100644 --- a/gnu/packages/jami.scm +++ b/gnu/packages/jami.scm @@ -56,6 +56,7 @@ #:use-module (gnu packages xorg) #:use-module (gnu packages) #:use-module (guix build-system cmake) + #:use-module (guix build-system copy) #:use-module (guix build-system gnu) #:use-module (guix download) #:use-module (guix git-download) @@ -526,6 +527,12 @@ functionality.") (url "https://review.jami.net/ring-lrc") (commit commit))) (file-name (git-file-name name version)) + (modules '((guix build utils))) + ;; These files are provided by the jami-chatview package + ;; let's remove them. + (snippet + '(begin + (delete-file-recursively "src/web-chatview"))) (sha256 (base32 "1s1wi80drabfjhvxbiyl8k9c2jsafvmx5v84s3wldsmmdg4f6xdf")))) @@ -541,6 +548,11 @@ functionality.") (assoc-ref %build-inputs "libring") "/include")) #:phases (modify-phases %standard-phases + (add-after 'unpack 'do-not-install-chatview + (lambda _ + (substitute* "CMakeLists.txt" + (("src/web-chatview/.*") "")) + #t)) (add-before 'configure 'fix-dbus-interfaces-path (lambda* (#:key inputs #:allow-other-keys) (substitute* "CMakeLists.txt" @@ -557,6 +569,41 @@ This package provides a library common to all Jami clients.") (home-page "https://jami.net") (license license:gpl3+)))) +(define jami-chatview + (let ((commit "0a790d86a20ae80e5d2ee0d35452fa77cfb8cc40") + (revision "0")) + (package + (name "jami-chatview") + (version (git-version %jami-version revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://review.jami.net/jami-chatview") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1zb3qa1x37kclbgk4wdg6qp4ivr6513ypj8s4k0qjps7h2clgna8")))) + (build-system copy-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'allow-copying + (lambda* (#:key inputs #:allow-other-keys) + ;; Permissions of this file are not right. + ;; Let's change this to allow installing it properly. + (chmod ".eslintrc.json" #o644) + #t))) + #:install-plan '(("." "include/libringclient/web-chatview") + (".eslintrc.json" + "include/libringclient/web-chatview/.eslintrc.json")))) + (synopsis "Chatview for Jami") + (description "This package provides HTML, CSS and JS files needed +by Jami clients to display chatview.") + (home-page "https://jami.net") + (license (list license:gpl3+ ; All but ... + license:expat))))) ; ... jed.js, linkify-html.js + (define-public jami (let ((commit "4703bf11348170da151c62a6a3ae54f83a7d866e") (revision "0")) @@ -569,6 +616,11 @@ This package provides a library common to all Jami clients.") (url "https://review.jami.net/ring-client-gnome") (commit commit))) (file-name (git-file-name name version)) + (modules '((guix build utils))) + ;; The web directory contains links to nowhere + (snippet + '(begin + (delete-file-recursively "web"))) (sha256 (base32 "0fzzgw6738gqvy4m9hamxdzkgbmv72j7zyxzcyaw21zmwacn7jfj")))) @@ -583,6 +635,7 @@ This package provides a library common to all Jami clients.") ("clutter-gtk" ,clutter-gtk) ("libcanberra" ,libcanberra) ("libnm" ,network-manager) ; optional to detect changes in the network + ("jami-chatview" ,jami-chatview) ("webkitgtk" ,webkitgtk) ("sqlite" ,sqlite))) (native-inputs @@ -595,7 +648,18 @@ This package provides a library common to all Jami clients.") ("adwaita-icon-theme" ,adwaita-icon-theme) ("evolution-data-server" ,evolution-data-server))) (arguments - `(#:tests? #f)) ; There is no testsuite. + `(#:tests? #f ; There is no testsuite. + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'symlink-chatview-files + (lambda* (#:key inputs #:allow-other-keys) + (let ((chatview + (string-append + (assoc-ref inputs "jami-chatview") + "/include/libringclient/web-chatview")) + (destination-dir "web")) + (symlink chatview destination-dir)) + #t))))) (synopsis "Distributed, privacy-respecting communication program") (description "Jami (formerly GNU Ring) is a secure and distributed voice, video and chat communication platform that requires no centralized server and -- 2.27.0