From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wIwBAhNV8GP0PQEAbAwnHQ (envelope-from ) for ; Sat, 18 Feb 2023 05:33:23 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id uI0OARNV8GPSDgAAG6o9tA (envelope-from ) for ; Sat, 18 Feb 2023 05:33:23 +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 82D692399B for ; Sat, 18 Feb 2023 05:33:22 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=KCDbISTo; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676694802; a=rsa-sha256; cv=none; b=llLO3KRX8OG9zwef+H461AIde1KMyySU3pc6nPkqPzcm/mQ44Tt2Eb2NYBL9OIPZjTtvZL aakJZORwuZWy4T9Zx1ZZjKxsOb25S6LEeJsDzcYiDGsmR0/WvetQ8/jO2oLtOzcDo4FceA WSP9boclVAcD6cBRu/ZYhVg/s3m+Pi8Z/jVxQZQihsiv0h9kKF6S+9/CHrZx5rE5gbpYvE Lq5ydQuEWfAj9+7zdMVV22LzGX5c1U+plUJmcM9FpyeyF1Fj8oyXTNfwQtLZN5hKLHCvDj 0+dvor9dsDVX912ldvrdRwHmNyPxXXetCIaW7cUoz+6t60qwm507Kbvr9xGXPw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=KCDbISTo; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676694802; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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: dkim-signature; bh=r/uoiHRIKjKVEAhXRw7Cj8LKLJpQTgwLg9pQtZ0h7fg=; b=nu3FAcMC3Va4toEHHyG02tHGP1OKNh3wNkokmRhb9qRZLSzgVJuZVSKiuSxLmtQeRTrbs8 SBQdztdYKIL/w/ZxLUoZrylDU4IjtQU0bJygyixwRffWSPrAtyQeBUEiYUtE88iSOUyOW1 /cuAEUb55l5fFKb+YtP/OhKvV3JPq/xJ+P8nIh8gilnyINLI38dU5hfUPxLvofU10zeOyN pAkSoNjvyLtJKsJ12a+33GjX8akutM/5hf596KgS2xhwr6rPVWQsWBXNn5NwcL0lTXaJDa i6yCnOiHLYapYDzQywUCYovLnNXFxHBg/+5AiFuIPoqKRPWmfQubV2obL/maxA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pTEuF-0003Om-Vj; Fri, 17 Feb 2023 23:33: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 1pTEuF-0003Oc-C7 for bug-guix@gnu.org; Fri, 17 Feb 2023 23:33:03 -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 1pTEuE-0002fW-Oa for bug-guix@gnu.org; Fri, 17 Feb 2023 23:33:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pTEuE-0005iG-CW for bug-guix@gnu.org; Fri, 17 Feb 2023 23:33:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#59292: libreoffice password protection doesn't work Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 18 Feb 2023 04:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59292 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 59292@debbugs.gnu.org Received: via spool by 59292-submit@debbugs.gnu.org id=B59292.167669475621919 (code B ref 59292); Sat, 18 Feb 2023 04:33:02 +0000 Received: (at 59292) by debbugs.gnu.org; 18 Feb 2023 04:32:36 +0000 Received: from localhost ([127.0.0.1]:42139 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pTEtn-0005hS-Kk for submit@debbugs.gnu.org; Fri, 17 Feb 2023 23:32:35 -0500 Received: from mail-qv1-f48.google.com ([209.85.219.48]:39727) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pTEtl-0005hD-E9 for 59292@debbugs.gnu.org; Fri, 17 Feb 2023 23:32:34 -0500 Received: by mail-qv1-f48.google.com with SMTP id mz4so49745qvb.6 for <59292@debbugs.gnu.org>; Fri, 17 Feb 2023 20:32:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:to:from:from:to:cc:subject:date:message-id:reply-to; bh=r/uoiHRIKjKVEAhXRw7Cj8LKLJpQTgwLg9pQtZ0h7fg=; b=KCDbISToRWjoj7AvcX1f03ALqF3NNqfdkJwv/sjmzhYCdQKdhLPgeZ0d+P0qZMFnn9 7yxrowrmGMuPyolJipAEpk/Rnk9BMoB4uWUMjz7wknih5rcJYDZt4nyndLPXyywgswLD nP+ONq6I9YClbiEvc4cDXdpsERdSXh77ckrD0Y9K/HXr0pYdOhN97hgkdkM+tioBnhP2 5jgSMSziqz4eTFP0zaEZM42/byOvjWbEkXxgGr+LSrMdtS1q9np/wgEEi+JXxs01Xrdc JXkkCkdgk+0X44r2S4RaZqPYnj0VnJ7Lu+6dG72W1jRm8i0POsCmUm3kkBy5RpHdRFmk wZAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=r/uoiHRIKjKVEAhXRw7Cj8LKLJpQTgwLg9pQtZ0h7fg=; b=w2LCDdlH+5qlUY8SQY5p4p+q+THY4D1LvzI0zdJyr0+eKv605Ayq502pAX5ZfPRBZK YeGKH3qRuQiV9TJy5bhESHiM9FfmK9gX97WYY4BuXMRU4tTV2rU65rwIcOx5BITUxU+l z2eO/fJ/R+4soYHTIlh1V56gNqIHA83/AckCtDsUaUbXKq0+5c6pLgbcJTL/KnUsFxtm jzmiZ37EZWbBPvPVSY5rCvaPDqPB1KY8mzkm3llhqCMfvQzGuden5aMFH2QJ8sOmlE9X xVjh1IiEpAsEFoNqkB12zVsLspSWEMUHfA7wxZsFv77VgSxWPk/gCDaxtsROubooxFR4 tNSw== X-Gm-Message-State: AO0yUKVnotVDZFEU8wadFBYPSEF4evxyvETXYkqIHgAyMRFQsYOco6o4 +Aktjpn2M13Qd/55nQHKnFJMv1+wB9d67UC0 X-Google-Smtp-Source: AK7set/y0gaL9rh840eA1UEoX/5L6cGdUoBmV8T+xba5pJN/vzXCODV4fW1keCiB3MLbpTlOeUrSFA== X-Received: by 2002:ad4:5ba8:0:b0:56e:a2cb:5732 with SMTP id 8-20020ad45ba8000000b0056ea2cb5732mr6223915qvq.9.1676694747418; Fri, 17 Feb 2023 20:32:27 -0800 (PST) Received: from hurd (dsl-157-123.b2b2c.ca. [66.158.157.123]) by smtp.gmail.com with ESMTPSA id s4-20020a372c04000000b006f9f3c0c63csm4664822qkh.32.2023.02.17.20.32.26 for <59292@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Feb 2023 20:32:27 -0800 (PST) From: Maxim Cournoyer References: <87sfijln98.fsf@gmail.com> <87ilg0qazj.fsf@gmail.com> <877cwfr42x.fsf@gmail.com> Date: Fri, 17 Feb 2023 23:32:26 -0500 In-Reply-To: <877cwfr42x.fsf@gmail.com> (Maxim Cournoyer's message of "Fri, 17 Feb 2023 23:27:02 -0500") Message-ID: <87zg9bpp9h.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: X-Migadu-Queue-Id: 82D692399B X-Spam-Score: -1.03 X-Migadu-Spam-Score: -1.03 X-Migadu-Scanner: scn0.migadu.com List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-TUID: uVjd0gupPREc Hi again, Maxim Cournoyer writes: [...] > It never resolves libnssckbi.so. > > LibreOffice attempts to load this library in > xmlsecurity/source/xmlsec/nss/nssinitializer.cxx, in the > 'nsscrypto_initialize' procedure. > > The library appears to be dynamically loaded via SECMOD_LoadUserModule. > Perhaps we can patch 'OUString rootModule("libnssckbi" > SAL_DLLEXTENSION)' to its full name. Some more output, after building > libreoffice with "--enable-sal-log" and setting the 'SAL_LOG=+INFO' > environment variable: > > info:sal.bootstrap:8927:8927:sal/rtl/bootstrap.cxx:857: expandMacros called with: libnssckbi.so > info:sal.bootstrap:8927:8927:sal/rtl/bootstrap.cxx:985: expandMacros result: libnssckbi.so > info:xmlsecurity.xmlsec:8927:8927:xmlsecurity/source/xmlsec/nss/nssinitializer.cxx:471: FAILED to load the new root certificate module Root Certs for OpenOffice.orgcontained in libnssckbi.so > warn:legacy.osl:8927:8927:comphelper/source/misc/storagehelper.cxx:406: Can not create SHA256 digest! > warn:package.xstor:8927:8927:package/source/xstor/owriteablestream.cxx:1138: Can't write encryption related properties com.sun.star.uno.RuntimeException message: "No expected key is provided! at /tmp/guix-build-libreoffice-7.5.0.3.drv-0/libreoffice-7.5.0.3/package/source/zippackage/ZipPackageStream.cxx:243" > info:package.xstor:8927:8927:package/source/xstor/xstorage.cxx:2274: Rethrow com.sun.star.io.IOException message: "No expected key is provided! at /tmp/guix-build-libreoffice-7.5.0.3.drv-0/libreoffice-7.5.0.3/package/source/zippackage/ZipPackageStream.cxx:243 at /tmp/guix-build-libreoffice-7.5.0.3.drv-0/libreoffice-7.5.0.3/package/source/xstor/owriteablestream.cxx:1140" > > So it seems to cause an error, which is apparently ignored. I confirm this is the problem. A workaround is to augment LD_LIBRARY_PATH, e.g.: --8<---------------cut here---------------start------------->8--- "LD_LIBRARY_PATH=/gnu/store/...-nss-3.81/lib/nss:$LD_LIBRARY_PATH /gnu/store/...-libreoffice-7.5.0.3/bin/libreoffice --calc" --8<---------------cut here---------------end--------------->8--- -- Thanks, Maxim