source: general/graphlib/librsvg.xml@ 6bc97f24

12.2 lazarus trunk xry111/for-12.3 xry111/spidermonkey128
Last change on this file since 6bc97f24 was 6bc97f24, checked in by Xi Ruoyao <xry111@…>, 7 weeks ago

librsvg: Fix test suite FTBFS with new rustc

  • Property mode set to 100644
File size: 7.8 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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;
6
7 <!ENTITY librsvg-download-http "&gnome-download-http;/librsvg/&librsvg-minor;/librsvg-&librsvg-version;.tar.xz">
8 <!ENTITY librsvg-download-ftp " ">
9 <!ENTITY librsvg-md5sum "fcb9dd667d76564a52ac7f52264c57db">
10 <!ENTITY librsvg-size "5.9 MB">
11 <!ENTITY librsvg-buildsize "728 MB (17 MB installed), add 545 MB for tests">
12 <!ENTITY librsvg-time "0.7 SBU (add 0.7 SBU for tests; both using parallelism=4)">
13]>
14
15<sect1 id="librsvg" xreflabel="librsvg-&librsvg-version;">
16 <?dbhtml filename="librsvg.html"?>
17
18
19 <title>librsvg-&librsvg-version;</title>
20
21 <indexterm zone="librsvg">
22 <primary sortas="a-librsvg">librsvg</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to librsvg</title>
27
28 <para>
29 The <application>librsvg</application> package contains
30 a library and tools used to manipulate, convert and view
31 Scalable Vector Graphic (SVG) images.
32 </para>
33
34 &lfs121_checked;
35
36 <bridgehead renderas="sect3">Package Information</bridgehead>
37 <itemizedlist spacing="compact">
38 <listitem>
39 <para>
40 Download (HTTP): <ulink url="&librsvg-download-http;"/>
41 </para>
42 </listitem>
43 <listitem>
44 <para>
45 Download (FTP): <ulink url="&librsvg-download-ftp;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download MD5 sum: &librsvg-md5sum;
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download size: &librsvg-size;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Estimated disk space required: &librsvg-buildsize;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated build time: &librsvg-time;
66 </para>
67 </listitem>
68 </itemizedlist>
69
70 <bridgehead renderas="sect3">librsvg Dependencies</bridgehead>
71
72 <bridgehead renderas="sect4">Required</bridgehead>
73 <para role="required">
74 <xref linkend="cairo"/>,
75 <xref linkend="gdk-pixbuf"/>,
76 <xref linkend="pango"/>, and
77 <xref linkend="rust"/>
78 </para>
79
80 &build-use-internet;
81
82 <bridgehead renderas="sect4">Recommended</bridgehead>
83 <para role="recommended">
84 &gobject-introspection; and
85 <xref linkend="vala"/>
86 </para>
87
88 <bridgehead renderas="sect4">Optional</bridgehead>
89 <para role="optional">
90 <xref linkend="docutils"/> (for man pages),
91 <xref linkend="gi-docgen"/> (for documentation), and
92 <xref linkend="xorg7-font"/> (for tests)
93 </para>
94
95 </sect2>
96
97 <sect2 role="installation">
98 <title>Installation of librsvg</title>
99
100 <para>
101 Install <application>librsvg</application> by running the following
102 commands:
103 </para>
104
105<screen><userinput>./configure --prefix=/usr \
106 --enable-vala \
107 --disable-static \
108 --docdir=/usr/share/doc/librsvg-&librsvg-version; &amp;&amp;
109make</userinput></screen>
110
111 <!-- With some locales (zh_CN.UTF-8) 31 tests fail. With LC_ALL=C only
112 one failure.
113 https://gitlab.gnome.org/GNOME/librsvg/-/issues/1021 -->
114 <para>
115 To test the results, issue:
116 </para>
117
118 <screen remap='test'><userinput>cargo update --precise 0.3.36 time &amp;&amp;
119LC_ALL=C make check -k</userinput></screen>
120
121 <!-- https://gitlab.gnome.org/GNOME/librsvg/-/issues/1085 -->
122 <para>
123 One test named <literal>bugs_bug749415_svg</literal> is known to fail.
124 </para>
125
126 <para>
127 Now, as the <systemitem class="username">root</systemitem> user:
128 </para>
129
130<screen role="root"><userinput>make DOC_INSTALL_DIR='$(docdir)' install</userinput></screen>
131
132 <note>
133 <para>
134 If you installed the package on to your system using a
135 <quote>DESTDIR</quote> method, an important file was not installed and
136 should be copied and/or generated. Generate it using the following
137 command as the <systemitem class="username">root</systemitem> user:
138 </para>
139
140<screen role="root"><userinput>gdk-pixbuf-query-loaders --update-cache</userinput></screen>
141 </note>
142
143
144 </sect2>
145
146 <sect2 role="commands">
147 <title>Command Explanations</title>
148
149 <para>
150 <parameter>--enable-vala</parameter>: This switch enables
151 building of the Vala bindings. Remove this switch if you don't have
152 <xref linkend="vala"/> installed.
153 </para>
154
155 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
156 href="../../xincludes/static-libraries.xml"/>
157
158 <para>
159 <parameter>DOC_INSTALL_DIR='$(docdir)'</parameter>: This override
160 ensures installing the API documentation into the expected location
161 if <xref linkend='gi-docgen'/> is installed.
162 </para>
163
164 <para>
165 <command>cargo update --precise=0.3.36 time</command>: This updates
166 the <filename>Cargo.lock</filename> file to refer the version 0.3.36
167 of the time crate for the test suite. Originally it refers the
168 version 0.3.34 which fails to build with Rustc-1.80.0 or later.
169 </para>
170
171 <para>
172 <option>--disable-introspection</option>: Use this switch if you have
173 not installed <application>Gobject Introspection</application>.
174 </para>
175
176 <para>
177 <option>--disable-gtk-doc</option>: This switch prevents building
178 the API documentation, even if <xref linkend="gi-docgen"/> (despite
179 the name of the option) is available.
180 </para>
181
182 </sect2>
183
184 <sect2 role="content">
185 <title>Contents</title>
186
187 <segmentedlist>
188 <segtitle>Installed Programs</segtitle>
189 <segtitle>Installed Library</segtitle>
190 <segtitle>Installed Directories</segtitle>
191
192 <seglistitem>
193 <seg>
194 rsvg-convert
195 </seg>
196 <seg>
197 librsvg-2.so and
198 libpixbufloader-svg.so (installed in /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders)
199 </seg>
200 <seg>
201 /usr/include/librsvg-2.0 and
202 /usr/share/doc/librsvg-&librsvg-version;
203<!-- /usr/share/gtk-doc/html/rsvg-2.0 not built with
204 current instructions (needs gi-docgen)-->
205 </seg>
206 </seglistitem>
207 </segmentedlist>
208
209 <variablelist>
210 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
211 <?dbfo list-presentation="list"?>
212 <?dbhtml list-presentation="table"?>
213
214 <varlistentry id="rsvg-convert">
215 <term><command>rsvg-convert</command></term>
216 <listitem>
217 <para>
218 is used to convert images into PNG, PDF, PS, SVG and other formats
219 </para>
220 <indexterm zone="librsvg rsvg-convert">
221 <primary sortas="b-rsvg-convert">rsvg-convert</primary>
222 </indexterm>
223 </listitem>
224 </varlistentry>
225
226 <varlistentry id="librsvg-2">
227 <term><filename class="libraryfile">librsvg-2.so</filename></term>
228 <listitem>
229 <para>
230 provides the functions to render Scalable Vector Graphics
231 </para>
232 <indexterm zone="librsvg librsvg-2">
233 <primary sortas="c-librsvg-2">librsvg-2.so</primary>
234 </indexterm>
235 </listitem>
236 </varlistentry>
237
238 <varlistentry id="libpixbufloader-svg">
239 <term><filename class="libraryfile">libpixbufloader-svg.so</filename></term>
240 <listitem>
241 <para>
242 is the <application>Gdk Pixbuf</application> plugin that allows
243 <application>GTK+</application> applications to render Scalable
244 Vector Graphics images
245 </para>
246 <indexterm zone="librsvg libpixbufloader-svg">
247 <primary sortas="c-libpixbufloader-svg">libpixbufloader-svg.so</primary>
248 </indexterm>
249 </listitem>
250 </varlistentry>
251
252 </variablelist>
253
254 </sect2>
255
256</sect1>
Note: See TracBrowser for help on using the repository browser.