From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id sEfKC4VkyGPoIQAAbAwnHQ (envelope-from ) for ; Wed, 18 Jan 2023 22:28:37 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id MKrEC4VkyGNxFQAA9RJhRA (envelope-from ) for ; Wed, 18 Jan 2023 22:28:37 +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 C6B8C18FE for ; Wed, 18 Jan 2023 22:28:36 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pIFyW-0006tB-T3; Wed, 18 Jan 2023 16:28:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pIFyU-0006sS-HF for guix-patches@gnu.org; Wed, 18 Jan 2023 16:28:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pIFyU-0008Lq-91 for guix-patches@gnu.org; Wed, 18 Jan 2023 16:28:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pIFyU-00052r-40 for guix-patches@gnu.org; Wed, 18 Jan 2023 16:28:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60939] [PATCH v2 2/2] gnu: libreoffice: Enable build with skia. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 18 Jan 2023 21:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60939 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60939@debbugs.gnu.org Cc: ngraves@ngraves.fr Received: via spool by 60939-submit@debbugs.gnu.org id=B60939.167407727619373 (code B ref 60939); Wed, 18 Jan 2023 21:28:02 +0000 Received: (at 60939) by debbugs.gnu.org; 18 Jan 2023 21:27:56 +0000 Received: from localhost ([127.0.0.1]:41927 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pIFyO-00052P-Ge for submit@debbugs.gnu.org; Wed, 18 Jan 2023 16:27:56 -0500 Received: from 7.mo576.mail-out.ovh.net ([46.105.50.32]:43073) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pIFyL-00052F-IV for 60939@debbugs.gnu.org; Wed, 18 Jan 2023 16:27:54 -0500 Received: from director3.ghost.mail-out.ovh.net (unknown [10.108.4.85]) by mo576.mail-out.ovh.net (Postfix) with ESMTP id ACB0B21654 for <60939@debbugs.gnu.org>; Wed, 18 Jan 2023 21:27:50 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-rftrh (unknown [10.110.115.91]) by director3.ghost.mail-out.ovh.net (Postfix) with ESMTPS id F413A1FE9B; Wed, 18 Jan 2023 21:27:47 +0000 (UTC) Received: from ngraves.fr ([37.59.142.109]) by ghost-submission-6684bf9d7b-rftrh with ESMTPSA id nTTUL1NkyGNU0wUAJaxvQA (envelope-from ); Wed, 18 Jan 2023 21:27:47 +0000 X-OVh-ClientIp: 81.67.140.142 Date: Wed, 18 Jan 2023 22:27:35 +0100 Message-Id: <20230118212735.27131-2-ngraves@ngraves.fr> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230118212735.27131-1-ngraves@ngraves.fr> References: <20230118212735.27131-1-ngraves@ngraves.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 7229966255754633954 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvhedruddtkedgudegkecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomheppfhitgholhgrshcuifhrrghvvghsuceonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqeenucggtffrrghtthgvrhhnpeelffejteeutefhfeekfffffedvudekjeekgfeludeitdfhkeevhfeivdfhffeggeenucfkphepuddvjedrtddrtddruddpfeejrdehledrudegvddruddtleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqpdhnsggprhgtphhtthhopedupdhrtghpthhtohepiedtleefleesuggvsggsuhhgshdrghhnuhdrohhrghdpoffvtefjohhsthepmhhoheejiedpmhhouggvpehsmhhtphhouhht 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: , Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches From: Nicolas Graves via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674077316; a=rsa-sha256; cv=none; b=dR3ITXrAS4aOcveXgLB50cMDGmiO9s+7GKRdQjchBvK6Bcwg/3gl+C9C88M7UrGEX2H3f/ dzLHfmz0E39/yg3bExEmPFxokPpJIRlcGbc1tLhnVNybdzJZwmQ5zJL7jcBPtIXyeJwyzM 90QPp/sO2qRMycwEO04butTfUi75WLnNxxhpUdZXfD/xufSzGDcUFAa3ssGiCu1Vq8bVQf 5dPEWTh7Nhj/PPw8hbB9Q4dTnaHCDZO77D3ov9koOP8lBXHWD/e/duR+jmNd2wVyZ1yT/e rN0YtsfBATWnvANrtf5ebqz4erN18FYXoNBKVJKeymAJcgD2wYqfeH9IaRb4CA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674077316; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: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=fvW6Pw2fzcYOoFYgRdcloLNGR6T+2KOIPHeOsi4JNtA=; b=LWqjvuagKOgjo2ihG5T/d7fCByi9ishjWpGpQwObSyNujZPzJGOQSEd1o87kcoHEWsSy43 +wFfLsAoCnvMHPtJHzW/mGHtm/f7ciCmjdFfCR0veG+MbqFYJWGULaxLJyjJWfErtuOW7D VjfHnTVFZXJIshur8+HVpeYYgm10t2HRG4lH+rnEDNXIprHhRn08eeDa8oRJWv4Ypg1AnC Bcso98QjYF6+WEcTkzrSSvdlAGCTt7eMSi1aU3M1mJD/Vxe0HoqAdQvpJ9GGjh0SYj+kEG tzOjHLXLLxlwFse1h2RleQEaKL2fKOXKEbKbg47dbiNxjcERL8pgPA1zffhghA== X-Spam-Score: -3.73 X-Migadu-Queue-Id: C6B8C18FE Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -3.73 X-TUID: g1SP8/fydZ4N * gnu/packages/libreoffice.scm (libreoffice): Enable build with skia. --- gnu/packages/libreoffice.scm | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/gnu/packages/libreoffice.scm b/gnu/packages/libreoffice.scm index 372b18a24f..72cd17fa09 100644 --- a/gnu/packages/libreoffice.scm +++ b/gnu/packages/libreoffice.scm @@ -970,6 +970,34 @@ (define-public libreoffice (("/usr/bin/xdg-open") (search-input-file inputs "/bin/xdg-open"))) (setenv "CPPFLAGS" "-std=c++17"))) + (add-before 'configure 'include-built-skia + (lambda* (#:key inputs #:allow-other-keys) + (let* ((incdir (search-input-directory inputs "include/skia/")) + (outdir (string-drop-right + incdir + (string-length "include/skia/"))) + (libdir (string-append outdir "lib"))) + (substitute* "RepositoryExternal.mk" + ;; Delete options that trigger skia build. + (("-DSK_USER_CONFIG_HEADER=\"<\\$\\(BUILDDIR\\)\\/config_host\\/config_skia\\.h>\"") + "") + (("-DSKIA_DLL") + "") + ;; Include skia .h files. + (("\\$\\(call gb_UnpackedTarball_get_dir,skia\\)") + incdir) + ;; Use skia as an external library. + (("\\$\\(call gb_LinkTarget_use_libraries,\\$\\(1\\),skia\\)") + (string-append "$(call gb_LinkTarget_add_libs,$(1)," + "-L" libdir " -lskialo)"))) + ;; Delete skia library unpack and build steps. + (substitute* "external/skia/Module_skia.mk" + (("UnpackedTarball_skia") "") + (("Library_skia") "")) + ;; Symlink the library (used in make install). + (mkdir-p "instdir/program") + (symlink (search-input-file inputs "lib/libskialo.so") + "instdir/program/libskialo.so")))) (add-after 'install 'reset-zip-timestamps (lambda _ (for-each (lambda (file) @@ -1042,7 +1070,6 @@ (define (install-appdata app) "--without-java" ;; FIXME: Enable once the corresponding inputs are packaged. "--disable-coinmp" - "--disable-skia" ;; This could (Debian does this) be a separate output containing only ;; program/libfirebird_sdbclo.so, if there's a way to point to it. "--enable-firebird-sdbc" @@ -1138,6 +1165,7 @@ (define (install-appdata app) qrcodegen-cpp redland sane-backends + skia-for-libreoffice unixodbc unzip vigra -- 2.38.1