From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sDlaJXzvI2KOEQAAgWs5BA (envelope-from ) for ; Sun, 06 Mar 2022 00:17:16 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id gJKdInzvI2Jj0AAA9RJhRA (envelope-from ) for ; Sun, 06 Mar 2022 00:17:16 +0100 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 043322023B for ; Sun, 6 Mar 2022 00:17:15 +0100 (CET) Received: from localhost ([::1]:45176 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nQdeE-0001PA-Qz for larch@yhetil.org; Sat, 05 Mar 2022 18:17:14 -0500 Received: from eggs.gnu.org ([209.51.188.92]:32840) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nQde2-0001Oo-6G for guix-patches@gnu.org; Sat, 05 Mar 2022 18:17:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:55521) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nQde1-0003Ma-UR for guix-patches@gnu.org; Sat, 05 Mar 2022 18:17:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nQde1-0001ug-RA for guix-patches@gnu.org; Sat, 05 Mar 2022 18:17:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#49943] [PATCH] gnu: Add openboard Resent-From: Nicolas Goaziou Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 05 Mar 2022 23:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49943 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch moreinfo To: Maxim Cournoyer Cc: 49943@debbugs.gnu.org Received: via spool by 49943-submit@debbugs.gnu.org id=B49943.16465221795275 (code B ref 49943); Sat, 05 Mar 2022 23:17:01 +0000 Received: (at 49943) by debbugs.gnu.org; 5 Mar 2022 23:16:19 +0000 Received: from localhost ([127.0.0.1]:49418 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nQddK-0001Ma-Oh for submit@debbugs.gnu.org; Sat, 05 Mar 2022 18:16:19 -0500 Received: from relay11.mail.gandi.net ([217.70.178.231]:47991) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nQddH-0001Fj-PD for 49943@debbugs.gnu.org; Sat, 05 Mar 2022 18:16:17 -0500 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by mail.gandi.net (Postfix) with ESMTPSA id 073C4100004; Sat, 5 Mar 2022 23:16:08 +0000 (UTC) From: Nicolas Goaziou In-Reply-To: <87r17msobc.fsf_-_@gmail.com> (Maxim Cournoyer's message of "Mon, 28 Feb 2022 15:56:07 -0500") References: <87czqoc7tj.fsf@nicolasgoaziou.fr> <87bkywlwp6.fsf@gmail.com> <87a6eghrw9.fsf@nicolasgoaziou.fr> <875yp0vqa1.fsf@gmail.com> <87r17msobc.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Date: Sun, 06 Mar 2022 00:16:08 +0100 Message-ID: <87czj02don.fsf@nicolasgoaziou.fr> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1646522236; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=i66//sKmYM3CdHCT7tcn7FX1QDaRyJ3sE9Ceh8PW+io=; b=HgqyBGr9TiRIeBE/NZJoDrh0fbf82Et6IeikhZUGvDbUIlrHbWg06Jy2h3FgX6BEkQrZdX Bg7A651AwG91vQLn/GnQbXEqIp4KdkljjdHWxA/3qE4xGY2eCA3TFCk5NoouRWdQSTM2YL LoXn6xfK7uy2fxH9UxGtwMZyVrPMWlkM43W+EPrKaVl34wIwvGdHf/Tzlub1UiA1Gzgrag IowqBOrTDio1e32DQrBbaglYqOVdetbR2VqO2lCKfcKdsA2c5sYMgtwd/RQKVJGQjpnsTM 48gBg0iLNSZx/3UlR7hfwpYc/L+P2IYELhFag9vb7jnTNttm1d+cqvGSvixHzQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646522236; a=rsa-sha256; cv=none; b=CME+X4j0U+GSft2H8eTtOamYZCwihvq+3SoSvGzgvbt92+iZax94V8id780WYqdHc/BoS6 T4RiefqThPoCxbz5pfyWoqoVKQvTG0JPRIqPdmO5Bp/DPikkCG//fTeVC7oVX97xOCOEUM x6cWp2X+86ssth9LNd+f4tLeK23H/3SuTxW0ADm+CSZG+eFSCJ2gZZsTObsQl5FRstkDWl pCGaLJIcX0A+OJP1prRfFs3HXChAcvI7mJSA61aqQwt6m7RrOnlTuUxwKl1wO/u2QfmvH6 KgtW6zc3jpmEPNOKzjBkIfR10M6ZlvSf+3h+R6nEoUkrjFy5ZcHH25aBSzL93w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.64 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 043322023B X-Spam-Score: -3.64 X-Migadu-Scanner: scn0.migadu.com X-TUID: y8nls25t+ymp --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, Maxim Cournoyer writes: > So a better suggestion with the above in mind would be to package it > using the non-released 1.7-dev development branch which relies already > on qtwebengine instead of qtwebkit. > > Would you like to give it a spin? I have put this together. It doesn't crash anymore and relies on qtwebengine, but some parts of it (e.g., interactive activities) are not working properly. Not sure if that's related, but I see messages like QIODevice::read (QFile,"/gnu/store/=E2=80=A6-openboard-1.7.0-a0255/share/openboard/librar= y/interactivities/Dice.wgt"):device not open on stderr. Anyway, I attach the new package definition. Regards, --=20 Nicolas Goaziou --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=v2-0001-gnu-Add-openboard.patch Content-Description: Add openboard (v2) >From 862ed34a048362c2682d82c32ea8c0ec4b2d6399 Mon Sep 17 00:00:00 2001 Message-Id: <862ed34a048362c2682d82c32ea8c0ec4b2d6399.1646522108.git.mail@nicolasgoaziou.fr> From: Nicolas Goaziou Date: Sun, 6 Mar 2022 00:14:25 +0100 Subject: [PATCH v2] gnu: Add openboard. * gnu/packages/education.scm (openboard): New variable. --- gnu/packages/education.scm | 126 +++++++++++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+) diff --git a/gnu/packages/education.scm b/gnu/packages/education.scm index 6fe79b99ca..891ffaf28b 100644 --- a/gnu/packages/education.scm +++ b/gnu/packages/education.scm @@ -543,6 +543,132 @@ (define-public childsplay (home-page "http://www.schoolsplay.org") (license license:gpl3+))) +(define-public openboard + (let ((commit "3bd40ebe67c665950fffa4a7cee4943919f04add")) + (package + (name "openboard") + (version "1.7.0-a0255") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/OpenBoard-org/OpenBoard") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0kh2i02qgankda9ygq01bkm58fd2p6mcaddvw0ny901dg7a0qkbr")))) + (build-system qt-build-system) + (arguments + (list + #:tests? #f ;no tests + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-initial-values + ;; Remove useless "Check for updates" action from menu. + ;; Also prevent pop-up window about importing Open Sankore + ;; documents since we don't package OpenBoard-Importer. + (lambda _ + (substitute* "src/core/UBSettings.cpp" + (("(appHideCheckForSoftwareUpdate = .*?)false(\\);)" _ beg end) + (string-append beg "true" end)) + (("(appLookForOpenSankoreInstall = .*?)true(\\);)" _ beg end) + (string-append beg "false" end))))) + (add-after 'unpack 'fix-build-error + ;; XXX: `errorOpeningVirtualKeyboard' variable is only + ;; defined when building for OSX. Yet, + ;; "UBBoardController.cpp" relies on it unconditionally, + ;; resulting in a build failure. Here, we get rid of + ;; that variable, assuming it is always false (its + ;; default value when building for OSX). + (lambda _ + (substitute* "src/board/UBBoardController.cpp" + (("if \\(!UBPlatformUtils::errorOpeningVirtualKeyboard\\)") + "")))) + (add-after 'unpack 'fix-hard-coded-env + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "src/frameworks/UBPlatformUtils_linux.cpp" + (("/usr/bin/env") (search-input-file inputs "/bin/env"))))) + (add-after 'unpack 'fix-library-path + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "OpenBoard.pro" + (("/usr/include/quazip") + (search-input-directory inputs "/include/quazip5")) + (("/usr/include/poppler") + (search-input-directory inputs "/include/poppler"))))) + (replace 'configure + (lambda _ + (invoke "qmake" "OpenBoard.pro"))) + (replace 'install + (lambda* (#:key inputs #:allow-other-keys) + (let* ((share (string-append #$output "/share")) + (openboard (string-append share "/openboard")) + (i18n (string-append openboard "/i18n"))) + ;; Install data. + (with-directory-excursion "resources" + (for-each (lambda (directory) + (let ((target + (string-append openboard "/" directory))) + (mkdir-p target) + (copy-recursively directory target))) + '("customizations" "etc" "library")) + (mkdir-p i18n) + (for-each (lambda (f) + (install-file f i18n)) + (find-files "i18n" "\\.qm$"))) + ;; Install desktop file an icon. + (install-file "resources/images/OpenBoard.png" + (string-append share + "/icons/hicolor/64x64/apps/")) + (make-desktop-entry-file + (string-append share "/applications/" #$name ".desktop") + #:name "OpenBoard" + #:comment "Interactive whiteboard application" + #:exec "openboard %f" + #:icon "OpenBoard" + #:mime-type "application/ubz" + #:categories '("Education")) + ;; Install executable. + (install-file "build/linux/release/product/OpenBoard" openboard) + (let ((bin (string-append #$output "/bin"))) + (mkdir-p bin) + (symlink (string-append openboard "/OpenBoard") + (string-append bin "/openboard"))))))))) + (native-inputs + (list qttools)) + (inputs + (list alsa-lib + ffmpeg + freetype + lame + libass + libfdk + libressl + libtheora + libva + libvorbis + libvpx + libx264 + opus + poppler + qtbase-5 + qtdeclarative + qtmultimedia + qtsvg + qtwebchannel + qtwebengine + qtxmlpatterns + quazip-0 + sdl + zlib)) + (home-page "https://openboard.ch/") + (synopsis "Interactive whiteboard for schools and universities") + (description + "OpenBoard is a teaching software for interactive whiteboard +designed primarily for use in schools and universities. It can be +used both with interactive whiteboards or in a dual-screen setup with +a pen-tablet display and a beamer.") + (license license:gpl3)))) + (define-public omnitux (package (name "omnitux") -- 2.34.0 --=-=-=--