1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2026-10-24 00:48:56 +03:00

31 Commits

Author SHA1 Message Date
Bruno Haible
e7714db1af readutmp: Add option to make use of wtmpdb.
* m4/wtmpdb.m4: New file.
* m4/readutmp.m4 (gl_READUTMP): Invoke gl_WTMPDB_CHOICE. Define
READUTMP_USE_WTMPDB. Take it into account for READUTMP_LIB.
* lib/readutmp.h (WTMPDB_FILE): New macro.
* lib/readutmp.c: Include <wtmpdb.h>.
(wtmpdb_time_to_timespec): New function.
(struct wtmpdb_locals): New type.
(wtmpdb_callback, read_utmp_from_wtmpdb): New functions.
(read_utmp): For WTMP_FILE, conditionally use read_utmp_from_wtmpdb.
* modules/readutmp (Files): Add m4/wtmpdb.m4.
(Depends-on): Add str_endswith.
* DEPENDENCIES: Mention libwtmpdb.
2026-08-04 17:03:56 +02:00
Bruno Haible
42792a513b readutmp, boot-time: Improve documentation.
* DEPENDENCIES: Mention requirements of 'readutmp' and 'boot-time'.
2025-02-17 13:08:38 +01:00
Bruno Haible
97897a6a42 stack-trace: New module.
* lib/stdlib.in.h (print_stack_trace): Make part of the stack-trace
module.
* lib/stack-trace-impl.h: New file, based on lib/abort-debug.c.
* lib/stack-trace.c: New file, based on lib/abort-debug.c.
* lib/abort-debug.c: Include stack-trace-impl.h. Remove definitions
moved to stack-trace-impl.h.
(print_stack_trace): Remove function.
* m4/stdlib_h.m4 (gl_STDLIB_H_REQUIRE_DEFAULTS): Initialize
GNULIB_STACK_TRACE.
(gl_STDLIB_H_DEFAULTS): Initialize CAN_PRINT_STACK_TRACE.
* m4/stack-trace.m4: New file, based on m4/abort-debug.m4.
* m4/abort-debug.m4 (gl_ABORT_DEBUG_EARLY): Remove macro.
(gl_ABORT_DEBUG): Require gl_STDLIB_H_DEFAULTS, gl_STACK_TRACE_EARLY.
Set REPLACE_ABORT here.
* modules/stdlib (Makefile.am): Substitute GNULIB_STACK_TRACE,
CAN_PRINT_STACK_TRACE.
* modules/stack-trace: New file.
* modules/abort-debug (Depends-on): Add stack-trace. Remove execinfo.
(configure.ac-early): Remove section.
* DEPENDENCIES: Update.
2024-07-18 04:11:05 +02:00
Bruno Haible
e29a548fd7 doc: List library dependencies.
* DEPENDENCIES: List the library dependencies.
2024-07-17 17:33:12 +02:00
Bruno Haible
460775b418 doc: Revamp list of dependencies.
* DEPENDENCIES: Clarify that GNU make is only needed on OpenBSD and
Solaris. Mark GNU tar as optional, not recommended. Add note about
Solaris 10. Add a second section "Dependencies for building the imported
code". Document the needed locales.
2024-07-13 17:32:07 +02:00
Collin Funk
0f6c664fa6 DEPENDENCIES: Add Cygwin as supported platform.
* DEPENDENCIES: Mention Cygwin as a supported platform for building
Windows binaries.
2024-05-02 14:24:39 -07:00
Bruno Haible
8f9edb56aa Document prerequisite for gnulib-tool.
Suggested by Collin Funk in
<https://lists.gnu.org/archive/html/bug-gnulib/2024-04/msg00450.html>.

* DEPENDENCIES: Add Python 3.7 as "recommended".
2024-04-27 01:10:41 +02:00
Bruno Haible
f784420ae1 DEPENDENCIES: Update entry about gperf.
Reported by Gavin Smith <gavinsmith0123@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2024-02/msg00201.html>.

* DEPENDENCIES (gperf): Mention some more modules which require 'gperf'.
2024-02-24 00:56:18 +01:00
Simon Josefsson
4b17a1ae49 gnumakefile: Improve tarball reproducibility.
* top/GNUmakefile (TAR_OPTIONS): Add --sort=name.  Suggested by
Tzvetelin Katchov <katchov@gnu.org>.
* DEPENDENCIES: Mention tar 1.28 dependency.
2022-09-06 14:32:05 +02:00
Bruno Haible
291ececf2c Document that Automake ≥ 1.14 is needed (regression 2021-12-15).
Reported by Simon Josefsson and Mike Frysinger in
<https://lists.gnu.org/archive/html/bug-gnulib/2022-02/msg00010.html>.

* DEPENDENCIES (Automake): Require version 1.14 or newer.
2022-02-20 21:04:57 +01:00
Bruno Haible
57e8c50052 DEPENDENCIES: Mention the requirement for 'join'.
Reported by Simon Josefsson <simon@josefsson.org> in
<https://lists.gnu.org/archive/html/bug-gnulib/2021-05/msg00047.html>.

* DEPENDENCIES: Mention 'join' among the core POSIX utilities.
2021-05-14 18:05:22 +02:00
Bruno Haible
d0ea400dc3 DEPENDENCIES: Update.
* DEPENDENCIES: Require GCC >= 3.1. Tell where to find working GNU m4
tarballs. Mention awk. Point to pre-built packages for gettext, bison,
gperf, texinfo.
2021-02-21 19:21:42 +01:00
Bruno Haible
15ce5a630b Assume autoconf >= 2.64.
* gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Set to 2.64.
* DEPENDENCIES: Require Autoconf 2.64 or newer.
* NEWS: Mention the changed requirement.
* m4/00gnulib.m4 (_m4_divert_diversion, AC_DEFUN_ONCE): Remove macros.
* m4/gnulib-common.m4 (AS_VAR_IF, AS_VAR_COPY): Remove macros.
* m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Quote pushdef'ed
variables.
* m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
* m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
* m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
(gl_UNKNOWN_WARNINGS_ARE_ERRORS(C), gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++),
gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): Define through AC_DEFUN.
* m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C), gl_MANYWARN_ALL_GCC(C++)):
Likewise.
* m4/iconv.m4 (AM_ICONV): Define through AC_DEFUN_ONCE directly.
* m4/libunistring.m4 (gl_LIBUNISTRING): Likewise.
* m4/configmake.m4: Update comment.
2020-08-16 12:12:32 +02:00
Bruno Haible
844f63f957 Assume Autoconf >= 2.63.
* DEPENDENCIES: Mention the requirement.

* gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
(func_get_filelist): Don't list m4/onceonly.m4 any more.
* pygnulib/GLModuleSystem.py (getFiles): Likewise.
* m4/onceonly.m4: Remove file.

* m4/openmp.m4: Remove file.
* modules/openmp (Files): Remove m4/openmp.m4.

* m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
htmldir, dvidir, pdfdir, psdir, localedir.
* m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.

* m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
Autoconf < 2.60.
(AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
(AC_PROG_SED): Remove fallback for Autoconf < 2.60.

* m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
* m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
* m4/stdint.m4 (AC_COMPUTE_INT): Likewise.

* m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
exists.
* m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,

* m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
Autoconf < 2.61.

* m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
(AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
Autoconf >= 2.52.

* m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
* m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
* m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
2018-10-23 00:06:52 +02:00
Bruno Haible
03ce2e4a29 Update DEPENDENCIES.
* DEPENDENCIES: List only https URLs. Update recommended version for
autoconf, automake, gperf.
2017-01-10 21:57:47 +01:00
Pádraig Brady
3fb6e36036 mountlist: remove dependency on libmount
* lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
directly, rather than depending on libmount, which has many
dependencies due to its dependence on libselinux, as detailed at:
http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00063.html
Note we restrict this to __linux__ as that's probably where this
interface will remain.  If ever porting, it would be best
to first pull the makedev() wrapper from coreutils to a gnulib module.
Note also we don't add a getline dependency to the mountlist module,
as all Linux versions are sufficient.
2015-04-03 14:50:58 +01:00
Fridolin Pokorny
3ea43e0254 mountlist: use /proc/self/mountinfo when available
Use libmount to propagate device IDs provided by Linux in
/proc/self/mountinfo.  This will give more accurate output when
using df in chroot'ed environments as the device IDs are not
determined by stat() which may be inaccurate within the chroot.

* lib/mountlist.c (read_file_system_list): Use the libmount routines
from util-linux to parse "/proc/self/mountinfo" or fall back to
standard getmntent() processing.
* m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
getmntent() is used, as is the case on GNU/Linux.
* DEPENDENCIES: Mention the optional util-linux dependency.
2014-09-09 12:56:04 +01:00
Eric Blake
adae0138d4 doc: recommendations on gettext version
Based on the bootstrap fallout in commit bb2f5640.

* doc/gnulib-tool.texi (gettextize and autopoint): Document the
choice between versions.
* DEPENDENCIES (gettext): Cover both approaches.

Signed-off-by: Eric Blake <eblake@redhat.com>
2012-05-08 08:50:40 -06:00
Eric Blake
39f5f1e49c bootstrap: detect tools required by gnulib-tool
List tools needed by gnulib-tool, whether or not the project
also requires the tools in cfg.mk $buildreq.  In particular,
detect if the project uses gnulib-local diffs, in which case
patch is a prerequisite.

* build-aux/bootstrap (buildreq): Provide minimum implicit
dependencies.
* DEPENDENCIES: Mention patch as a prereq.

Signed-off-by: Eric Blake <eblake@redhat.com>
2011-12-07 13:55:08 -07:00
Bruno Haible
41137d99dc Update DEPENDENCIES.
* DEPENDENCIES (gettext): Recommend the newest release.
Reported by Simon Josefsson.
2011-05-01 23:10:44 +02:00
Eric Blake
2bb63bfb25 parse-datetime: better name than get_date
* NEWS: Reword the deprecation notice.
* modules/get_date: Rename to modules/parse-datetime.
* modules/get_date-tests: Rename to modules/parse-datetime-tests.
* m4/get_date.m4: Rename to m4/parse-datetime.m4.
* lib/get_date.y: Rename to lib/parse-datetime.y.
* tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
* doc/get_date.texi: Rename to doc/parse-datetime.texi.
* doc/getdate.texi: Provide fallback wrapper.
* lib/getdate.h: Move guts, and wrap...
* lib/parse-datetime.h: ...new file.
* lib/parse-datetime.y (get_date): Rename...
(parse_datetime): ...to this.
* m4/parse-datetime.m4 (gl_GET_DATE): Rename...
(gl_PARSE_DATETIME): ...to this.
* doc/posix-functions/getdate.texi (get_date): Provide fallback
documentation.
* modules/getdate (Files): Provide fallback docs and header.
(Notice, Depends-on): Update references.
* tests/test-parse-datetime.c: Likewise.
* DEPENDENCIES: Likewise.
* MODULES.html.sh (Date and time <time.h>): Likewise.
* doc/parse-datetime.texi (Date input formats)
(Authors of parse_datetime): Likewise.
* modules/parse-datetime (Files, configure.ac, Makefile.am)
(Include): Likewise.
* modules/parse-datetime-tests (Files, Makefile.am): Likewise.
* gnulib-tool: Likewise.
* m4/bison.m4 (gl_BISON): Likewise.
Suggested by Bruno Haible.

Signed-off-by: Eric Blake <eblake@redhat.com>
2010-10-05 12:05:18 -06:00
Bruno Haible
a88d2561c2 More renaming from 'getdate' to 'get_date'.
* doc/get_date.texi: Renamed from doc/getdate.texi.
* modules/get_date (Files): Update.
* MODULES.html.sh (Date and time <time.h>): Update.
* DEPENDENCIES: Update.
* gnulib-tool: Update comment.
* m4/bison.m4 (gl_BISON): Likewise.
* m4/get_date.m4 (gl_GET_DATE): Likewise.
2010-09-30 23:35:41 +02:00
Bruno Haible
408a553de2 Mention libtool 2.2.x requirement in special cases. 2010-03-13 16:31:43 +01:00
Ralf Wildenhues
b6c5012201 * DEPENDENCIES: Require Texinfo version 4.6 or newer. 2008-01-08 08:15:44 +01:00
Bruno Haible
c1e77c11b6 No need to mention tar and gzip - not direct depedencies. 2007-04-05 00:07:19 +00:00
Bruno Haible
d0c18edccb Typo. 2007-04-04 23:07:00 +00:00
Paul Eggert
0b2709e111 * DEPENDENCIES: Give overall description of version dependency
desirability.  Use more-typical names for apps.
Add shell, coreutils, diffutils, grep, tar, gzip.
2007-04-04 17:32:43 +00:00
Bruno Haible
84085e1576 Tweak the English.
automake 1.9.6 should suffice.
2007-04-04 11:14:43 +00:00
Eric Blake
89fbbfe489 Improve wording of dependencies 2007-04-04 02:45:49 +00:00
Eric Blake
9d7c328065 Weaken m4 dependency. 2007-04-04 01:19:00 +00:00
Bruno Haible
6db3c4a9bb List of dependendies of gnulib. 2007-04-03 23:02:10 +00:00