The Gcr package contains libraries used for displaying certificates and accessing key stores. It also provides the viewer for crypto files on the GNOME Desktop.
Development versions of BLFS may not build or run some packages properly if dependencies have been updated since the most recent stable versions of the book.
Download (HTTP): https://download.gnome.org/sources/gcr/3.41/gcr-3.41.0.tar.xz
Download (FTP): ftp://ftp.acc.umu.se/pub/gnome/sources/gcr/3.41/gcr-3.41.0.tar.xz
Download MD5 sum: 6b6d52de90d4ae95be7d36abf66626fa
Download size: 1.0 MB
Estimated disk space required: 28 MB (with tests)
Estimated build time: 0.2 SBU (with tests; both using parallelism=4)
GLib-2.72.2, libgcrypt-1.10.1, and p11-kit-0.24.1
GnuPG-2.3.6, gobject-introspection-1.72.0, GTK+-3.24.34, libsecret-0.20.5, libxslt-1.1.35, and Vala-0.56.1
GTK-Doc-1.33.2 and Valgrind-3.19.0
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/gcr
First apply a fix for building with newer versions of meson:
find . -name meson.build | xargs sed -i /packages.\*deps/d
Install Gcr by running the following commands:
sed -i 's:"/desktop:"/org:' schema/*.xml && sed -e '208 s/@BASENAME@/gcr-viewer.desktop/' \ -e '231 s/@BASENAME@/gcr-prompter.desktop/' \ -i ui/meson.build && mkdir build && cd build && meson --prefix=/usr --buildtype=release -Dgtk_doc=false .. && ninja
To test the results, issue: ninja test. The tests must be run from an X Terminal or similar.
Now, as the root
user:
ninja install
--buildtype=release
:
Specify a buildtype suitable for stable releases of the package, as
the default may produce unoptimized binaries.
sed ... schema/*.xml: This command fixes a deprecated entry in the schema template.
sed ... ui/meson.build: This command fixes a problem when building with meson-0.59.0.
-Dgtk=false
: Use this switch if you
haven't installed GTK+-3.24.34. Note that gcr-viewer will not be installed if this is
passed to meson.
-Dgtk_doc=true
: Use this switch if you
wish to generate the API reference documentation. Note that you
must have GTK-Doc installed.