2013-06-01 20:19:53 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
2017-10-23 11:53:25 +08:00
|
|
|
|
2022-04-17 22:26:10 +08:00
|
|
|
<!ENTITY gcr-download-http "&gnome-download-http;/gcr/&gcr-minor;/gcr-&gcr-version;.tar.xz">
|
|
|
|
<!ENTITY gcr-download-ftp "&gnome-download-ftp;/gcr/&gcr-minor;/gcr-&gcr-version;.tar.xz">
|
2022-07-21 07:52:19 +08:00
|
|
|
<!ENTITY gcr-md5sum "c1e98af977236255006e11e8f8cfbaca">
|
|
|
|
<!ENTITY gcr-size "1008 KB">
|
|
|
|
<!ENTITY gcr-buildsize "33 MB (with tests)">
|
2022-04-17 11:52:46 +08:00
|
|
|
<!ENTITY gcr-time "0.2 SBU (with tests; both using parallelism=4)">
|
2013-06-01 20:19:53 +08:00
|
|
|
]>
|
|
|
|
|
|
|
|
<sect1 id="gcr" xreflabel="Gcr-&gcr-version;">
|
|
|
|
<?dbhtml filename="gcr.html"?>
|
|
|
|
|
|
|
|
|
|
|
|
<title>Gcr-&gcr-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="gcr">
|
|
|
|
<primary sortas="a-Gcr">Gcr</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to Gcr</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
The <application>Gcr</application> package contains libraries used
|
|
|
|
for displaying certificates and accessing key stores. It also
|
|
|
|
provides the viewer for crypto files on the
|
|
|
|
<application>GNOME</application> Desktop.
|
|
|
|
</para>
|
|
|
|
|
2023-02-19 04:22:38 +08:00
|
|
|
&lfs113_checked;
|
2013-06-01 20:19:53 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&gcr-download-http;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&gcr-download-ftp;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download MD5 sum: &gcr-md5sum;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download size: &gcr-size;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated disk space required: &gcr-buildsize;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated build time: &gcr-time;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Gcr Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
|
|
<para role="required">
|
2013-07-29 00:36:49 +08:00
|
|
|
<xref linkend="glib2"/>,
|
2020-03-29 03:35:39 +08:00
|
|
|
<xref linkend="libgcrypt"/>, and
|
2013-06-01 20:19:53 +08:00
|
|
|
<xref linkend="p11-kit"/>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Recommended</bridgehead>
|
|
|
|
<para role="recommended">
|
2013-07-29 00:36:49 +08:00
|
|
|
<xref linkend="gnupg2"/>,
|
2014-03-25 02:48:03 +08:00
|
|
|
<xref linkend="gobject-introspection"/>,
|
|
|
|
<xref linkend="gtk3"/>,
|
2022-01-13 05:33:54 +08:00
|
|
|
<xref linkend="libsecret"/>,
|
2014-03-25 02:48:03 +08:00
|
|
|
<xref linkend="libxslt"/>, and
|
|
|
|
<xref linkend="vala"/>
|
2013-06-01 20:19:53 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
|
|
<para role="optional">
|
2023-01-18 22:32:27 +08:00
|
|
|
<xref linkend="gi-docgen"/> and
|
|
|
|
<xref linkend="valgrind"/>
|
2013-06-01 20:19:53 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of Gcr</title>
|
|
|
|
|
2021-04-07 09:06:55 +08:00
|
|
|
<!--
|
2020-03-29 03:35:39 +08:00
|
|
|
<caution>
|
|
|
|
<para>
|
|
|
|
If you are upgrading from a version of gcr prior to 3.36.0, you must
|
|
|
|
run the <filename>remove-la-files.sh</filename> script from the
|
|
|
|
<xref linkend="la-files"/> after installing gcr.
|
|
|
|
</para>
|
|
|
|
</caution>
|
2021-04-07 09:06:55 +08:00
|
|
|
-->
|
2020-03-29 03:35:39 +08:00
|
|
|
|
2022-07-21 07:52:19 +08:00
|
|
|
<!--
|
2022-01-18 20:53:48 +08:00
|
|
|
<para>
|
|
|
|
First apply a fix for building with newer versions of
|
|
|
|
<application>meson</application>:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen><userinput>find . -name meson.build | xargs sed -i /packages.\*deps/d</userinput></screen>
|
2022-07-21 07:52:19 +08:00
|
|
|
-->
|
2022-01-18 20:53:48 +08:00
|
|
|
|
2013-06-01 20:19:53 +08:00
|
|
|
<para>
|
|
|
|
Install <application>Gcr</application> by running the following
|
|
|
|
commands:
|
|
|
|
</para>
|
|
|
|
|
2020-10-03 23:08:54 +08:00
|
|
|
<screen><userinput>sed -i 's:"/desktop:"/org:' schema/*.xml &&
|
2016-01-16 02:28:38 +08:00
|
|
|
|
2021-05-30 07:48:23 +08:00
|
|
|
mkdir build &&
|
|
|
|
cd build &&
|
2020-03-29 03:35:39 +08:00
|
|
|
|
2023-03-14 00:48:55 +08:00
|
|
|
meson setup --prefix=/usr \
|
|
|
|
--buildtype=release \
|
|
|
|
-Dgtk_doc=false \
|
|
|
|
.. &&
|
2023-02-14 23:58:43 +08:00
|
|
|
ninja</userinput></screen>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
If you have <xref linkend='gi-docgen'/> installed and wish to build
|
|
|
|
the API documentation for this package, issue:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen role='nodump'><userinput>sed -e "/install_dir/s@,\$@ / 'gcr-&gcr-version;'&@" \
|
|
|
|
-e "/fatal-warnings/d" \
|
|
|
|
-i ../docs/*/meson.build &&
|
|
|
|
meson configure -Dgtk_doc=true &&
|
2020-03-29 03:35:39 +08:00
|
|
|
ninja</userinput></screen>
|
2013-06-01 20:19:53 +08:00
|
|
|
|
|
|
|
<para>
|
2020-03-29 03:35:39 +08:00
|
|
|
To test the results, issue: <command>ninja test</command>.
|
2019-10-15 10:19:42 +08:00
|
|
|
The tests must be run from an X Terminal or similar. <!-- One test,
|
|
|
|
"test-openssl 3", is known to fail. -->
|
2013-06-01 20:19:53 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
2020-03-29 03:35:39 +08:00
|
|
|
<screen role="root"><userinput>ninja install</userinput></screen>
|
2013-06-01 20:19:53 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
2021-06-04 20:57:26 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="../../xincludes/meson-buildtype-release.xml"/>
|
|
|
|
|
2022-07-21 07:52:19 +08:00
|
|
|
<!--
|
2016-01-16 02:28:38 +08:00
|
|
|
<para>
|
|
|
|
<command>sed ... schema/*.xml</command>: This command fixes a
|
|
|
|
deprecated entry in the schema template.
|
|
|
|
</para>
|
|
|
|
|
2021-08-01 08:51:38 +08:00
|
|
|
<para>
|
|
|
|
<command>sed ... ui/meson.build</command>: This command fixes a
|
|
|
|
problem when building with meson-0.59.0.
|
|
|
|
</para>
|
2022-07-21 07:52:19 +08:00
|
|
|
-->
|
2021-08-01 08:51:38 +08:00
|
|
|
|
2020-10-02 22:24:40 +08:00
|
|
|
<!--
|
2020-08-12 01:17:00 +08:00
|
|
|
<para>
|
2020-10-02 22:24:40 +08:00
|
|
|
<!- - https://gitlab.gnome.org/GNOME/gcr/-/merge_requests/52/ - ->
|
2020-08-12 01:17:00 +08:00
|
|
|
<command>sed ... gck/gck-slot.c</command>: This command fixes a bug
|
|
|
|
(usage of uninitialized value) identified by upstream.
|
|
|
|
</para>
|
2020-10-02 22:24:40 +08:00
|
|
|
-->
|
2020-08-12 01:17:00 +08:00
|
|
|
|
2013-07-29 00:36:49 +08:00
|
|
|
<para>
|
2020-03-29 03:35:39 +08:00
|
|
|
<option>-Dgtk=false</option>: Use this switch if you
|
2016-09-23 12:15:38 +08:00
|
|
|
haven't installed <xref linkend="gtk3"/>. Note that
|
|
|
|
<application>gcr-viewer</application> will not be installed
|
2021-01-24 12:24:53 +08:00
|
|
|
if this is passed to meson.
|
2013-07-29 00:36:49 +08:00
|
|
|
</para>
|
|
|
|
|
2020-03-29 03:35:39 +08:00
|
|
|
<para>
|
2023-02-14 23:58:43 +08:00
|
|
|
<option>-Dgtk_doc=true</option>: &gi-doc-disable;
|
2020-03-29 03:35:39 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<!--<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="../../xincludes/gtk-doc-rebuild.xml"/>-->
|
2013-06-01 20:19:53 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Program</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>
|
2015-04-05 20:45:56 +08:00
|
|
|
gcr-viewer
|
2013-06-01 20:19:53 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
2020-10-02 22:24:40 +08:00
|
|
|
libgck-1.so, libgcr-base-3.so and libgcr-ui-3.so
|
2013-06-01 20:19:53 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
/usr/include/gck-1,
|
2020-03-29 03:35:39 +08:00
|
|
|
/usr/include/gcr-3, and
|
|
|
|
/usr/share/gtk-doc/html/{gcr,gck}
|
2013-06-01 20:19:53 +08:00
|
|
|
</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="gcr-viewer">
|
|
|
|
<term><command>gcr-viewer</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2021-02-19 23:20:16 +08:00
|
|
|
is used to view certificates and key files
|
2013-06-01 20:19:53 +08:00
|
|
|
</para>
|
|
|
|
<indexterm zone="gcr gcr-viewer">
|
|
|
|
<primary sortas="b-gcr-viewer">gcr-viewer</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libgck-1">
|
|
|
|
<term><filename class="libraryfile">libgck-1.so</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2021-02-19 23:20:16 +08:00
|
|
|
contains GObject bindings for PKCS#11
|
2013-06-01 20:19:53 +08:00
|
|
|
</para>
|
|
|
|
<indexterm zone="gcr libgck-1">
|
|
|
|
<primary sortas="c-libgck-1">libgck-1.so</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|