mirrored from git://git.sv.gnu.org/gnulib.git
-
Notifications
You must be signed in to change notification settings - Fork 113
/
DEPENDENCIES
468 lines (416 loc) · 16.1 KB
/
DEPENDENCIES
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
Table of contents:
1) Dependencies for using gnulib-tool (maintainer environment)
2) Dependencies for building the imported code (target environment)
1) Dependencies for using gnulib-tool (maintainer environment)
**************************************************************
The following packages are needed by maintainers for using 'gnulib-tool'.
We call this the "maintainer environment", although it is not necessarily
a maintainer's or developer's machine; it can also be some containerized
environment.
In general, Gnulib prefers the latest stable version of each package,
but in some cases it also supports older versions; this caters to
commonly-used software distributions that may lag behind the latest
stable package. Support for older versions is not guaranteed, though,
and the version numbers in the following list may be incremented
at any time.
* A C runtime, compiler, linker, etc.
+ Mandatory. Using the platform's native 'cc' gives good portability
exposure, but you can also use GCC 3.1 or newer.
+ GCC Homepage:
https://gcc.gnu.org/
+ Download:
https://ftp.gnu.org/gnu/gcc/
* A 'make' utility.
+ Mandatory. Using the platform's native 'make' gives good portability
exposure for in-tree builds, but VPATH builds on OpenBSD or Solaris
require GNU Make 3.79.1 or newer.
+ GNU Make Homepage:
https://www.gnu.org/software/make/
+ Download:
https://ftp.gnu.org/gnu/make/
* GNU M4 1.4.5 or newer.
+ Mandatory.
1.4.5 or newer is mandatory, but 1.4.9 or newer is recommended.
If you want to build it from source, use the tarball from
https://gitlab.com/gnu-m4/ci-distcheck/-/jobs/artifacts/master/raw/m4-snapshot.tar?job=check-optimized
+ Homepage:
https://www.gnu.org/software/m4/
+ Download:
https://ftp.gnu.org/gnu/m4/
* Autoconf 2.64 or newer.
+ Mandatory.
+ Homepage:
https://www.gnu.org/software/autoconf/
+ Download:
https://ftp.gnu.org/gnu/autoconf/
* Automake 1.14 or newer.
+ Mandatory.
+ Homepage:
https://www.gnu.org/software/automake/
+ Download:
https://ftp.gnu.org/gnu/automake/
* A shell
+ Mandatory. Using the platform's native 'sh' gives good portability
exposure, but you can also use Bash.
+ Homepage:
https://www.gnu.org/software/bash/
+ Download:
https://ftp.gnu.org/gnu/bash/
* Core POSIX utilities, including:
[ basename cat chgrp chmod chown cp dd echo expand expr
false hostname install join kill ln ls md5sum mkdir mkfifo
mknod mv printenv pwd rm rmdir sleep sort tee test touch
true uname
+ Mandatory. Using the platform's native utilities gives good portability
exposure, but you can also use GNU coreutils.
+ Homepage:
https://www.gnu.org/software/coreutils/
+ Download:
https://ftp.gnu.org/gnu/coreutils/
* The comparison utilities 'cmp' and 'diff'.
+ Mandatory. Using the platform's native utilities gives good portability
exposure, but you can also use GNU diffutils.
+ Homepage:
https://www.gnu.org/software/diffutils/
+ Download:
https://ftp.gnu.org/gnu/diffutils/
* The patch utility 'patch'.
+ Mandatory if you use gnulib-local diffs. Using the platform's native
utilities gives good portability exposure, but you can also use GNU
patch.
+ Homepage:
https://www.gnu.org/software/patch/
+ Download:
https://ftp.gnu.org/gnu/patch/
* Grep.
+ Mandatory. Using the platform's native grep gives good portability
exposure, but you can also use GNU grep.
+ Homepage:
https://www.gnu.org/software/grep/
+ Download:
https://ftp.gnu.org/gnu/grep/
* Awk.
+ Mandatory.
Using the platform's native awk, mawk, or nawk gives good portability
exposure, but you can also use GNU awk.
+ Homepage:
https://www.gnu.org/software/gawk/
+ Download:
https://ftp.gnu.org/gnu/gawk/
* Python 3.7 or newer.
* Recommended.
Without it, gnulib-tool is between 8 times and 100 times slower and may lack
functionality added after April 2024.
+ Homepage:
https://www.python.org/
+ Download:
https://www.python.org/downloads/
+ Pre-built package name:
- On Debian and Debian-based systems: python3,
- On Red Hat distributions: python3.
- Other: https://repology.org/project/python/versions
* GNU gettext.
+ If your project wants to follow GNU Coding Standards:
+ Always use the newest available gettext release, see
<https://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html>.
+ Use the 'gettext' module.
+ If your project cares more about ease of development on older platforms:
+ gettext 0.17 or newer.
+ Use the 'gettext-h' module.
+ Recommended.
Needed if you use modules that use internationalization (many do).
+ Homepage:
https://www.gnu.org/software/gettext/
+ Download:
https://ftp.gnu.org/gnu/gettext/
+ Pre-built package name:
- On Debian and Debian-based systems: gettext,
- On Red Hat distributions: gettext.
- Other: https://repology.org/project/gettext/versions
* Bison 2.0 or newer.
+ Recommended.
Needed if you use the 'parse-datetime' module.
+ Homepage:
https://www.gnu.org/software/bison/
+ Download:
https://ftp.gnu.org/gnu/bison/
+ Pre-built package name:
- On Debian and Debian-based systems: bison,
- On Red Hat distributions: bison.
- Other: https://repology.org/project/bison/versions
* GNU gperf 3.0.1 or newer.
+ 3.0.1 or newer is mandatory, but 3.1 or newer is recommended.
Needed if you use the 'iconv_open' module or some of the
unictype/*, unicase/*, uninorm/* modules.
+ Homepage:
https://www.gnu.org/software/gperf/
+ Download:
https://ftp.gnu.org/gnu/gperf/
+ Pre-built package name:
- On Debian and Debian-based systems: gperf,
- On Red Hat distributions: gperf.
- Other: https://repology.org/project/gperf/versions
* Texinfo 4.6 or newer.
+ Recommended.
Needed if you use modules that include documentation.
+ Homepage:
https://www.gnu.org/software/texinfo/
+ Download:
https://ftp.gnu.org/gnu/texinfo/
+ Pre-built package name:
- On Debian and Debian-based systems: texinfo,
- On Red Hat distributions: texinfo.
- Other: https://repology.org/project/texinfo/versions
* GNU sed.
+ Recommended.
Needed on platforms where the vendor's 'sed' program is too buggy.
+ Homepage:
https://www.gnu.org/software/sed/
+ Download:
https://ftp.gnu.org/gnu/sed/
* GNU libtool 1.5.22 or newer.
+ Optional.
Needed if you want to invoke gnulib-tool with option --libtool.
libtool 2.2.x or newer is needed if you want to invoke gnulib-tool
with options --create-testdir/--test and --libtool.
+ Homepage:
https://www.gnu.org/software/libtool/
+ Download:
https://ftp.gnu.org/gnu/libtool/
* GNU tar 1.28 or newer.
+ Optional.
Needed if you use the 'gnumakefile' module, which sets TAR_OPTIONS
to --sort=names (added in version 1.28) in GNUmakefile for 'make dist'.
+ Homepage:
https://www.gnu.org/software/tar/
+ Download:
https://ftp.gnu.org/gnu/tar/
Note: Solaris 10 is no longer supported as maintainer environment.
<https://lists.gnu.org/archive/html/bug-gnulib/2024-07/msg00076.html>
2) Dependencies for building the imported code (target environment)
*******************************************************************
The following packages are needed for building the package that imports
code from Gnulib.
* A C runtime, compiler, linker, etc.
+ Mandatory. Using the platform's native 'cc' gives good portability
exposure, but you can also use GCC 3.1 or newer.
+ GCC Homepage:
https://gcc.gnu.org/
+ Download:
https://ftp.gnu.org/gnu/gcc/
* A 'make' utility.
+ Mandatory. Using the platform's native 'make' gives good portability
exposure for in-tree builds, but VPATH builds on OpenBSD or Solaris
require GNU Make 3.79.1 or newer.
+ GNU Make Homepage:
https://www.gnu.org/software/make/
+ Download:
https://ftp.gnu.org/gnu/make/
* A shell
+ Mandatory. Using the platform's native 'sh' gives good portability
exposure, but you can also use Bash.
+ Homepage:
https://www.gnu.org/software/bash/
+ Download:
https://ftp.gnu.org/gnu/bash/
* Core POSIX utilities, including:
[ basename cat chgrp chmod chown cp dd echo expand expr
false hostname install kill ln ls md5sum mkdir mkfifo
mknod mv printenv pwd rm rmdir sleep sort tee test touch
true uname
+ Mandatory. Using the platform's native utilities gives good portability
exposure, but you can also use GNU coreutils.
+ Homepage:
https://www.gnu.org/software/coreutils/
+ Download:
https://ftp.gnu.org/gnu/coreutils/
* The comparison utilities 'cmp' and 'diff'.
+ Mandatory. Using the platform's native utilities gives good portability
exposure, but you can also use GNU diffutils.
+ Homepage:
https://www.gnu.org/software/diffutils/
+ Download:
https://ftp.gnu.org/gnu/diffutils/
* Grep.
+ Mandatory. Using the platform's native grep gives good portability
exposure, but you can also use GNU grep.
+ Homepage:
https://www.gnu.org/software/grep/
+ Download:
https://ftp.gnu.org/gnu/grep/
* Awk.
+ Mandatory.
Using the platform's native awk, mawk, or nawk gives good portability
exposure, but you can also use GNU awk.
+ Homepage:
https://www.gnu.org/software/gawk/
+ Download:
https://ftp.gnu.org/gnu/gawk/
Prerequisites on Windows
------------------------
* Cygwin
+ Required.
Provides a POSIX-like environment and binary packages necessary to
build and run software. Native Windows binaries can be built with
a packaged mingw tool chain. This method is preferred over MSYS2.
+ Homepage:
https://cygwin.com/
+ Download:
https://cygwin.com/install.html
Libraries
---------
Various modules work best with certain libraries installed. These are runtime
dependencies that are also build dependencies.
For modules 'abort-debug' and 'stack-trace':
* libbacktrace
+ Recommended.
Needed for producing C stack traces with source file names and
line numbers.
+ Homepage:
https://github.com/ianlancetaylor/libbacktrace
+ Download:
https://github.com/ianlancetaylor/libbacktrace
+ Pre-built package name:
- On Debian and Debian-based systems: libgcc-N-dev,
- On Red Hat distributions: --.
- Other: https://repology.org/project/libbacktrace/versions
For module 'acl':
* libacl
+ Recommended on Linux systems.
Needed so that the creation of backup files respects the access control
lists (ACLs) set on the original files.
+ Homepage:
https://savannah.nongnu.org/projects/acl/
+ Download:
https://download.savannah.nongnu.org/releases/acl/
+ Pre-built package name:
- On Debian and Debian-based systems: libacl1-dev,
- On Red Hat distributions: libacl-devel.
- Other: https://repology.org/project/acl/versions
* libattr
+ Recommended on Linux systems.
Needed so that the creation of backup files respects the access control
lists (ACLs) set on the original files, with fewer system calls.
+ Homepage:
https://savannah.nongnu.org/projects/attr/
+ Download:
https://download.savannah.nongnu.org/releases/attr/
+ Pre-built package name:
- On Debian and Debian-based systems: libattr1-dev,
- On Red Hat distributions: libattr-devel.
- Other: https://repology.org/project/attr/versions
For module 'gettext-h':
* libintl, part of GNU gettext
+ Not needed on systems with glibc.
But highly recommended on all other systems.
Needed for localization (translation) of messages to the user's
native language.
+ Homepage:
https://www.gnu.org/software/gettext/
+ Download:
https://ftp.gnu.org/gnu/gettext/
+ Pre-built package name:
- On Debian and Debian-based systems: --,
- On Red Hat distributions: --.
- Other: https://repology.org/project/gettext/versions
+ If it is installed in a nonstandard directory, pass the option
--with-libintl-prefix=DIR to 'configure'.
For module 'iconv':
* GNU libiconv
+ Not needed on systems with glibc and on NetBSD.
But highly recommended on all other systems.
Needed for character set conversion of strings from/to Unicode.
+ Homepage:
https://www.gnu.org/software/libiconv/
+ Download:
https://ftp.gnu.org/gnu/libiconv/
+ Pre-built package name:
- On Debian and Debian-based systems: --,
- On Red Hat distributions: --.
- Other: https://repology.org/project/libiconv/versions
+ If it is installed in a nonstandard directory, pass the option
--with-libiconv-prefix=DIR to 'configure'.
+ On mingw, a slim alternative is the 'win-iconv' package version 0.0.8
from https://github.com/win-iconv/win-iconv .
For module 'libgmp':
* GNU gmp.
+ Recommended.
Needed for fast multiprecision computations.
+ Homepage:
https://www.gnu.org/software/gmp/
+ Download:
https://ftp.gnu.org/gnu/gmp/
+ Pre-built package name:
- On Debian and Debian-based systems: libgmp-dev,
- On Red Hat distributions: gmp-devel.
- Other: https://repology.org/project/gmp/versions
+ If it is installed in a nonstandard directory, pass the option
--with-libgmp-prefix to 'configure'.
For module 'readline':
* GNU readline
+ Recommended.
Needed for interactive editing of textual input.
+ Homepage:
https://www.gnu.org/software/readline/
+ Download:
https://ftp.gnu.org/gnu/readline/
+ Pre-built package name:
- On Debian and Debian-based systems: libreadline-dev,
- On Red Hat distributions: readline-devel.
- Other: https://repology.org/project/readline/versions
+ If it is installed in a nonstandard directory, pass the option
--with-libreadline-prefix=DIR to 'configure'.
For modules 'terminfo' and 'termcap':
* GNU ncurses (preferred)
or libtermcap (discouraged) or a curses library (legacy).
+ Recommended.
Needed for fancy input/output in terminal emulators.
+ Homepage:
https://www.gnu.org/software/ncurses/
+ Download:
https://ftp.gnu.org/gnu/ncurses/
+ Pre-built package name:
- On Debian and Debian-based systems: libncurses-dev,
- On Red Hat distributions: ncurses-devel.
- Other: https://repology.org/project/ncurses/versions
+ If it is installed in a nonstandard directory, pass the option
--with-libncurses-prefix=DIR or --with-libtermcap-prefix to 'configure'.
For modules 'crypto/md5-buffer', 'crypto/sha*-buffer':
* OpenSSL.
+ Optional.
Needed for optimized crypto hash sums.
+ Homepage:
https://www.openssl.org/
+ Download:
https://www.openssl.org/source/
+ Pre-built package name:
- On Debian and Debian-based systems: libssl-dev,
- On Red Hat distributions: openssl-devel.
- Other: https://repology.org/project/openssl/versions
Locales
-------
If your package includes the tests for the Gnulib modules that you imported,
you will want to maximize the test coverage of these tests, that is, to
minimize the number of tests that are skipped. To this effect, you need to
install a couple of locales, used by the tests.
You can get a listing of the locales installed by default through
$ locale -a
(Note: On glibc systems, this command displays the encoding names in a
mutilated form, e.g. it transforms "en_US.UTF-8" to "en_US.utf8".)
To install the needed locales on glibc systems:
$ sudo localedef -i en_US -f UTF-8 en_US.UTF-8
$ sudo localedef -i ar_SA -f ISO-8859-6 ar_SA.ISO-8859-6
$ sudo localedef -i de_DE -f UTF-8 de_DE.UTF-8
$ sudo localedef -i es_ES -f UTF-8 es_ES.UTF-8
$ sudo localedef -i fa_IR -f UTF-8 fa_IR
$ sudo localedef -i fr_FR -f ISO-8859-1 fr_FR.ISO-8859-1
$ sudo localedef -i fr_FR -f UTF-8 fr_FR.UTF-8
$ sudo localedef -i ja_JP -f EUC-JP ja_JP.EUC-JP
$ sudo localedef -i tr_TR -f UTF-8 tr_TR.UTF-8
$ sudo localedef -i zh_CN -f GB18030 zh_CN.GB18030
$ sudo localedef -i zh_HK -f BIG5-HKSCS zh_HK.BIG5-HKSCS
On Debian and Debian-based systems, if you want these locales to be
persistent across automatic system updates, the approach is different:
There, you need to enable the locales in the file /etc/locale.gen and
then run
$ sudo locale-gen