[dabe4b0] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
[ee9107e] | 6 |
|
---|
[1b99e99] | 7 | <!ENTITY gcr-download-http "&gnome-download-http;/gcr/&gcr-minor;/gcr-&gcr-version;.tar.xz">
|
---|
| 8 | <!ENTITY gcr-download-ftp "&gnome-download-ftp;/gcr/&gcr-minor;/gcr-&gcr-version;.tar.xz">
|
---|
[6ddb21a] | 9 | <!ENTITY gcr-md5sum "c1e98af977236255006e11e8f8cfbaca">
|
---|
| 10 | <!ENTITY gcr-size "1008 KB">
|
---|
| 11 | <!ENTITY gcr-buildsize "33 MB (with tests)">
|
---|
[e43d52d] | 12 | <!ENTITY gcr-time "0.2 SBU (with tests; both using parallelism=4)">
|
---|
[dabe4b0] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="gcr" xreflabel="Gcr-&gcr-version;">
|
---|
| 16 | <?dbhtml filename="gcr.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>Gcr-&gcr-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="gcr">
|
---|
| 22 | <primary sortas="a-Gcr">Gcr</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to Gcr</title>
|
---|
| 27 |
|
---|
| 28 | <para>
|
---|
| 29 | The <application>Gcr</application> package contains libraries used
|
---|
| 30 | for displaying certificates and accessing key stores. It also
|
---|
| 31 | provides the viewer for crypto files on the
|
---|
| 32 | <application>GNOME</application> Desktop.
|
---|
| 33 | </para>
|
---|
| 34 |
|
---|
[b4642992] | 35 | &lfs113_checked;
|
---|
[dabe4b0] | 36 |
|
---|
| 37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 38 | <itemizedlist spacing="compact">
|
---|
| 39 | <listitem>
|
---|
| 40 | <para>
|
---|
| 41 | Download (HTTP): <ulink url="&gcr-download-http;"/>
|
---|
| 42 | </para>
|
---|
| 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>
|
---|
| 46 | Download (FTP): <ulink url="&gcr-download-ftp;"/>
|
---|
| 47 | </para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>
|
---|
| 51 | Download MD5 sum: &gcr-md5sum;
|
---|
| 52 | </para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>
|
---|
| 56 | Download size: &gcr-size;
|
---|
| 57 | </para>
|
---|
| 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>
|
---|
| 61 | Estimated disk space required: &gcr-buildsize;
|
---|
| 62 | </para>
|
---|
| 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>
|
---|
| 66 | Estimated build time: &gcr-time;
|
---|
| 67 | </para>
|
---|
| 68 | </listitem>
|
---|
| 69 | </itemizedlist>
|
---|
| 70 |
|
---|
| 71 | <bridgehead renderas="sect3">Gcr Dependencies</bridgehead>
|
---|
| 72 |
|
---|
| 73 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 74 | <para role="required">
|
---|
[f6962ed] | 75 | <xref linkend="glib2"/>,
|
---|
[7af46e61] | 76 | <xref linkend="libgcrypt"/>, and
|
---|
[dabe4b0] | 77 | <xref linkend="p11-kit"/>
|
---|
| 78 | </para>
|
---|
| 79 |
|
---|
| 80 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 81 | <para role="recommended">
|
---|
[f6962ed] | 82 | <xref linkend="gnupg2"/>,
|
---|
[2377fb3] | 83 | <xref linkend="gobject-introspection"/>,
|
---|
| 84 | <xref linkend="gtk3"/>,
|
---|
[bee8bad] | 85 | <xref linkend="libsecret"/>,
|
---|
[2377fb3] | 86 | <xref linkend="libxslt"/>, and
|
---|
| 87 | <xref linkend="vala"/>
|
---|
[dabe4b0] | 88 | </para>
|
---|
| 89 |
|
---|
| 90 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 91 | <para role="optional">
|
---|
[f56d2e7] | 92 | <xref linkend="gi-docgen"/> and
|
---|
| 93 | <xref linkend="valgrind"/>
|
---|
[dabe4b0] | 94 | </para>
|
---|
| 95 |
|
---|
| 96 | <para condition="html" role="usernotes">
|
---|
| 97 | User Notes: <ulink url="&blfs-wiki;/gcr"/>
|
---|
| 98 | </para>
|
---|
| 99 | </sect2>
|
---|
| 100 |
|
---|
| 101 | <sect2 role="installation">
|
---|
| 102 | <title>Installation of Gcr</title>
|
---|
| 103 |
|
---|
[3b339ddc] | 104 | <!--
|
---|
[7af46e61] | 105 | <caution>
|
---|
| 106 | <para>
|
---|
| 107 | If you are upgrading from a version of gcr prior to 3.36.0, you must
|
---|
| 108 | run the <filename>remove-la-files.sh</filename> script from the
|
---|
| 109 | <xref linkend="la-files"/> after installing gcr.
|
---|
| 110 | </para>
|
---|
| 111 | </caution>
|
---|
[3b339ddc] | 112 | -->
|
---|
[7af46e61] | 113 |
|
---|
[6ddb21a] | 114 | <!--
|
---|
[8f16a204] | 115 | <para>
|
---|
| 116 | First apply a fix for building with newer versions of
|
---|
| 117 | <application>meson</application>:
|
---|
| 118 | </para>
|
---|
| 119 |
|
---|
| 120 | <screen><userinput>find . -name meson.build | xargs sed -i /packages.\*deps/d</userinput></screen>
|
---|
[6ddb21a] | 121 | -->
|
---|
[8f16a204] | 122 |
|
---|
[dabe4b0] | 123 | <para>
|
---|
| 124 | Install <application>Gcr</application> by running the following
|
---|
| 125 | commands:
|
---|
| 126 | </para>
|
---|
| 127 |
|
---|
[51695fd0] | 128 | <screen><userinput>sed -i 's:"/desktop:"/org:' schema/*.xml &&
|
---|
[b0480ef] | 129 |
|
---|
[92f5d53] | 130 | mkdir build &&
|
---|
| 131 | cd build &&
|
---|
[7af46e61] | 132 |
|
---|
[91318eb] | 133 | meson setup --prefix=/usr \
|
---|
| 134 | --buildtype=release \
|
---|
| 135 | -Dgtk_doc=false \
|
---|
| 136 | .. &&
|
---|
[3a7d81ba] | 137 | ninja</userinput></screen>
|
---|
| 138 |
|
---|
| 139 | <para>
|
---|
| 140 | If you have <xref linkend='gi-docgen'/> installed and wish to build
|
---|
| 141 | the API documentation for this package, issue:
|
---|
| 142 | </para>
|
---|
| 143 |
|
---|
| 144 | <screen role='nodump'><userinput>sed -e "/install_dir/s@,\$@ / 'gcr-&gcr-version;'&@" \
|
---|
| 145 | -e "/fatal-warnings/d" \
|
---|
| 146 | -i ../docs/*/meson.build &&
|
---|
| 147 | meson configure -Dgtk_doc=true &&
|
---|
[7af46e61] | 148 | ninja</userinput></screen>
|
---|
[dabe4b0] | 149 |
|
---|
| 150 | <para>
|
---|
[7af46e61] | 151 | To test the results, issue: <command>ninja test</command>.
|
---|
[88d8c967] | 152 | The tests must be run from an X Terminal or similar. <!-- One test,
|
---|
| 153 | "test-openssl 3", is known to fail. -->
|
---|
[dabe4b0] | 154 | </para>
|
---|
| 155 |
|
---|
| 156 | <para>
|
---|
| 157 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 158 | </para>
|
---|
| 159 |
|
---|
[7af46e61] | 160 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
[dabe4b0] | 161 | </sect2>
|
---|
| 162 |
|
---|
| 163 | <sect2 role="commands">
|
---|
| 164 | <title>Command Explanations</title>
|
---|
| 165 |
|
---|
[adf17153] | 166 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 167 | href="../../xincludes/meson-buildtype-release.xml"/>
|
---|
| 168 |
|
---|
[6ddb21a] | 169 | <!--
|
---|
[b0480ef] | 170 | <para>
|
---|
| 171 | <command>sed ... schema/*.xml</command>: This command fixes a
|
---|
| 172 | deprecated entry in the schema template.
|
---|
| 173 | </para>
|
---|
| 174 |
|
---|
[65d85668] | 175 | <para>
|
---|
| 176 | <command>sed ... ui/meson.build</command>: This command fixes a
|
---|
| 177 | problem when building with meson-0.59.0.
|
---|
| 178 | </para>
|
---|
[6ddb21a] | 179 | -->
|
---|
[65d85668] | 180 |
|
---|
[8252e757] | 181 | <!--
|
---|
[82a9ecf] | 182 | <para>
|
---|
[8252e757] | 183 | <!- - https://gitlab.gnome.org/GNOME/gcr/-/merge_requests/52/ - ->
|
---|
[82a9ecf] | 184 | <command>sed ... gck/gck-slot.c</command>: This command fixes a bug
|
---|
| 185 | (usage of uninitialized value) identified by upstream.
|
---|
| 186 | </para>
|
---|
[8252e757] | 187 | -->
|
---|
[82a9ecf] | 188 |
|
---|
[f6962ed] | 189 | <para>
|
---|
[7af46e61] | 190 | <option>-Dgtk=false</option>: Use this switch if you
|
---|
[9a363500] | 191 | haven't installed <xref linkend="gtk3"/>. Note that
|
---|
| 192 | <application>gcr-viewer</application> will not be installed
|
---|
[ff40dcf] | 193 | if this is passed to meson.
|
---|
[f6962ed] | 194 | </para>
|
---|
| 195 |
|
---|
[7af46e61] | 196 | <para>
|
---|
[3a7d81ba] | 197 | <option>-Dgtk_doc=true</option>: &gi-doc-disable;
|
---|
[7af46e61] | 198 | </para>
|
---|
| 199 |
|
---|
| 200 | <!--<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 201 | href="../../xincludes/gtk-doc-rebuild.xml"/>-->
|
---|
[dabe4b0] | 202 |
|
---|
| 203 | </sect2>
|
---|
| 204 |
|
---|
| 205 | <sect2 role="content">
|
---|
| 206 | <title>Contents</title>
|
---|
| 207 |
|
---|
| 208 | <segmentedlist>
|
---|
| 209 | <segtitle>Installed Program</segtitle>
|
---|
| 210 | <segtitle>Installed Libraries</segtitle>
|
---|
| 211 | <segtitle>Installed Directories</segtitle>
|
---|
| 212 |
|
---|
| 213 | <seglistitem>
|
---|
| 214 | <seg>
|
---|
[b230e27] | 215 | gcr-viewer
|
---|
[dabe4b0] | 216 | </seg>
|
---|
| 217 | <seg>
|
---|
[8252e757] | 218 | libgck-1.so, libgcr-base-3.so and libgcr-ui-3.so
|
---|
[dabe4b0] | 219 | </seg>
|
---|
| 220 | <seg>
|
---|
| 221 | /usr/include/gck-1,
|
---|
[7af46e61] | 222 | /usr/include/gcr-3, and
|
---|
| 223 | /usr/share/gtk-doc/html/{gcr,gck}
|
---|
[dabe4b0] | 224 | </seg>
|
---|
| 225 | </seglistitem>
|
---|
| 226 | </segmentedlist>
|
---|
| 227 |
|
---|
| 228 | <variablelist>
|
---|
| 229 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 230 | <?dbfo list-presentation="list"?>
|
---|
| 231 | <?dbhtml list-presentation="table"?>
|
---|
| 232 |
|
---|
| 233 | <varlistentry id="gcr-viewer">
|
---|
| 234 | <term><command>gcr-viewer</command></term>
|
---|
| 235 | <listitem>
|
---|
| 236 | <para>
|
---|
[4c24eb0a] | 237 | is used to view certificates and key files
|
---|
[dabe4b0] | 238 | </para>
|
---|
| 239 | <indexterm zone="gcr gcr-viewer">
|
---|
| 240 | <primary sortas="b-gcr-viewer">gcr-viewer</primary>
|
---|
| 241 | </indexterm>
|
---|
| 242 | </listitem>
|
---|
| 243 | </varlistentry>
|
---|
| 244 |
|
---|
| 245 | <varlistentry id="libgck-1">
|
---|
| 246 | <term><filename class="libraryfile">libgck-1.so</filename></term>
|
---|
| 247 | <listitem>
|
---|
| 248 | <para>
|
---|
[4c24eb0a] | 249 | contains GObject bindings for PKCS#11
|
---|
[dabe4b0] | 250 | </para>
|
---|
| 251 | <indexterm zone="gcr libgck-1">
|
---|
| 252 | <primary sortas="c-libgck-1">libgck-1.so</primary>
|
---|
| 253 | </indexterm>
|
---|
| 254 | </listitem>
|
---|
| 255 | </varlistentry>
|
---|
| 256 |
|
---|
| 257 | </variablelist>
|
---|
| 258 |
|
---|
| 259 | </sect2>
|
---|
| 260 |
|
---|
| 261 | </sect1>
|
---|