CVS log for mandoc/configure

[BACK] Up to [cvsweb.bsd.lv] / mandoc

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.83 / (download) - annotate - [select for diffs], Thu Oct 19 11:45:42 2023 UTC (5 months, 1 week ago) by schwarze
Branch: MAIN
CVS Tags: HEAD
Changes since 1.82: +4 -1 lines
Diff to previous 1.82 (unified) to selected 1.12 (unified)

Install mandoc.css by default even if man.cgi(8) is not built.
It matters because users of "mandoc -T html" typically need it.

Issue found in a conversation with Alejandro Colomar <alx at kernel aot org>.

Revision 1.82 / (download) - annotate - [select for diffs], Thu Apr 14 16:43:43 2022 UTC (23 months, 2 weeks ago) by schwarze
Branch: MAIN
Changes since 1.81: +9 -1 lines
Diff to previous 1.81 (unified) to selected 1.12 (unified)

support for hunting memory leaks;
designed and written last autumn, polished today

Revision 1.81 / (download) - annotate - [select for diffs], Mon Sep 20 10:19:51 2021 UTC (2 years, 6 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_6
Changes since 1.80: +3 -1 lines
Diff to previous 1.80 (unified) to selected 1.12 (unified)

make the path to ar(1) configurable, needed by NixOS;
suggested by Lukas Epple <sternenseemann at systemli dot org>

Revision 1.80 / (download) - annotate - [select for diffs], Sun Sep 19 15:05:39 2021 UTC (2 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.79: +9 -2 lines
Diff to previous 1.79 (unified) to selected 1.12 (unified)

Test availability of mkstemps(3) and provide a fallback implementation
in case it is missing; needed for SUN Solaris 10.

Revision 1.79 / (download) - annotate - [select for diffs], Sun Sep 19 12:28:04 2021 UTC (2 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.78: +3 -3 lines
Diff to previous 1.78 (unified) to selected 1.12 (unified)

do not use the echo(1) -n option, it is not portable;
issue found on SUN Solaris 10

Revision 1.78 / (download) - annotate - [select for diffs], Sat Aug 7 13:02:10 2021 UTC (2 years, 7 months ago) by schwarze
Branch: MAIN
Changes since 1.77: +4 -3 lines
Diff to previous 1.77 (unified) to selected 1.12 (unified)

Rename the compile-time configuration variable $HOMEBREWDIR to
$READ_ALLOWED_PATH, allow it to contain more than one directory,
and explain how to use it for NixOS and for GNU Guix Linux.

Feature improvement based on observations, input, and earlier patches
from Lukas Epple <sternenseemann at systemli dot org>, and final
patch also tested by Lukas.

Revision 1.77 / (download) - annotate - [select for diffs], Mon Jul 20 16:57:30 2020 UTC (3 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.76: +25 -7 lines
Diff to previous 1.76 (unified) to selected 1.12 (unified)

Switch the default pager from "more -s" to "less".

POSIX explicitly allows using a different default pager if that is
documented.  Nowadays, the pager provided in most operating systems
is less(1).  Our man(1) implementation uses less(1) features that
traditional more(1) did not provide, in particular tagging.  Besides,
as noted by deraadt@, the user interface of less(1) is slightly
more refined and preferable over the user inferface of more(1).
This switch was originally suggested by Ian Ropers.

In ./configure, test whether less(1) is available.  If not, fall
back to more(1).  In ./configure.local, support overriding the
automatic test by setting BINM_PAGER.

As explained by jmc@ and deraadt@, the -s flag was added a very
long time ago when an antique version of groff(1) had an annoying
bug in terminal output that would randomly display blank lines in
the middle of pages.  Clearly, -s has no longer been needed for
many years, so drop it from the default pager invocation.

OK deraadt@ jmc@ martijn@ job@ on the OpenBSD version of this patch.

Revision 1.76 / (download) - annotate - [select for diffs], Mon Jun 22 20:00:38 2020 UTC (3 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.75: +4 -5 lines
Diff to previous 1.75 (unified) to selected 1.12 (unified)

Provide a real feature test for __attribute__().
Looking at version numbers like __GNUC__ is always a bad idea.
Believe it or not, this even makes ./configure shorter by one line.

Revision 1.75 / (download) - annotate - [select for diffs], Mon Jun 15 01:37:15 2020 UTC (3 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.74: +60 -29 lines
Diff to previous 1.74 (unified) to selected 1.12 (unified)

Only compile compat_*.c implementations that are actually needed.
That's cleaner and it is supposed to fix compiler warnings with gcc 10
reported by Wynn Wolf Arbor <wolf at oriole dot systems> on discuss@.

Revision 1.74 / (download) - annotate - [select for diffs], Sun Jun 14 23:40:31 2020 UTC (3 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.73: +68 -94 lines
Diff to previous 1.73 (unified) to selected 1.12 (unified)

Make the ./configure script simpler, more robust, and 23 lines shorter:
* three rather than four arguments for singletest()
* let runtest() support testing two variants of compiler flags
* always report a failed test, even when another test follows
* run all tests before detecting fatal conditions
* rename HAVE_CMSG_XPG42 to NEED_XPG4_2 for consistency
* consistently use braces for shell variable interpolation
* drop archaic "X${" syntax and unusual "==" in string comparisons

Revision 1.73 / (download) - annotate - [select for diffs], Fri Mar 13 17:31:44 2020 UTC (4 years ago) by schwarze
Branch: MAIN
Changes since 1.72: +15 -4 lines
Diff to previous 1.72 (unified) to selected 1.12 (unified)

Make the "make depend" maintainer target more convenient
by having it run ./configure with native fts and ohash disabled.

Revision 1.72 / (download) - annotate - [select for diffs], Wed Feb 5 15:12:11 2020 UTC (4 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.71: +2 -2 lines
Diff to previous 1.71 (unified) to selected 1.12 (unified)

No longer try to ask make(1) what the default compiler is, just use "cc".
That line was a bad idea in the first place, it tried to be too clever,
and it failed in different ways on different platforms.  Even when it
succeeded, what make(1) considered the default wasn't always useful.
Having a simple and robust default and asking users to override it
when needed is better.

Revision 1.71 / (download) - annotate - [select for diffs], Mon Jul 1 22:56:24 2019 UTC (4 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.70: +2 -2 lines
Diff to previous 1.70 (unified) to selected 1.12 (unified)

delete trailing whitespace and space-tab sequences; no code change;
patch from Michal Nowak <mnowak at startmail dot com>
who found these with git pbchk in the illumos tree

Revision 1.70 / (download) - annotate - [select for diffs], Wed Mar 6 16:04:31 2019 UTC (5 years ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_5
Changes since 1.69: +2 -2 lines
Diff to previous 1.69 (unified) to selected 1.12 (unified)

while $() is more modern than ``, it does not work with the
default /bin/sh on Solaris 10, so use the classical form

Revision 1.69 / (download) - annotate - [select for diffs], Wed Mar 6 10:18:58 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.68: +17 -1 lines
Diff to previous 1.68 (unified) to selected 1.12 (unified)

autoconfiguration test whether less(1) supports the -T option;
needed for Alpine Linux because it uses busybox less(1) by default;
based on a patch from Daniel Sabogal explained to me by Natanael Copa

Revision 1.68 / (download) - annotate - [select for diffs], Mon Mar 4 13:01:57 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.67: +24 -2 lines
Diff to previous 1.67 (unified) to selected 1.12 (unified)

When the -S option is given to man(1) and the requested manual page
name is not found and the requested architecture is unknown, complain
about the architecture rather than about the manual page name:

$ man -S vax cpu
man: Unknown architecture "vax".
$ man -S sparc64 foobar
man: No entry for foobar in the manual.

Friendlier error message suggested by jmc@, who also OK'ed the patch.

Revision 1.67 / (download) - annotate - [select for diffs], Wed Aug 15 02:15:52 2018 UTC (5 years, 7 months ago) by schwarze
Branch: MAIN
Changes since 1.66: +60 -42 lines
Diff to previous 1.66 (unified) to selected 1.12 (unified)

Autodetect whether _GNU_SOURCE or _OPENBSD_SOURCE are needed; the
latter is a NetBSD idiosyncrasy reported by wiz@.  Also take into
account that NetBSD declares getsubopt(3) in the wrong header.

Revision 1.66 / (download) - annotate - [select for diffs], Tue Jul 31 15:34:00 2018 UTC (5 years, 7 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_4
Changes since 1.65: +72 -36 lines
Diff to previous 1.65 (unified) to selected 1.12 (unified)

more 1.14.4 release preparations:
autodetect whether the compiler can use -W and -static,
clearer output from ./configure,
and adjust some configuration instructions

Revision 1.65 / (download) - annotate - [select for diffs], Tue Feb 27 11:16:23 2018 UTC (6 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.64: +9 -2 lines
Diff to previous 1.64 (unified) to selected 1.12 (unified)

Add strndup(3) compat implementation.
Jan Stary reports that MacOS X Snow Leopard and older lacks it.

Revision 1.64 / (download) - annotate - [select for diffs], Sat Jul 1 09:47:30 2017 UTC (6 years, 8 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_3, VERSION_1_14_2
Changes since 1.63: +3 -1 lines
Diff to previous 1.63 (unified) to selected 1.12 (unified)

Basic reporting of .Xrs to manual pages that don't exist
in the base system, inspired by mdoclint(1).

We are able to do this because (1) the -mdoc parser, the -Tlint validator,
and the man(1) manual page lookup code are all in the same program
and (2) the mandoc.db(5) database format allows fast lookup.

Feedback from, previous versions tested by, and OK jmc@.

A few features will be added to this in the tree, step by step.

Revision 1.63 / (download) - annotate - [select for diffs], Mon Jun 12 19:05:47 2017 UTC (6 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.62: +9 -2 lines
Diff to previous 1.62 (unified) to selected 1.12 (unified)

Implement automatic line breaking
inside individual table cells that contain text blocks.
This cures overlong lines in various Xenocara manuals.

Revision 1.62 / (download) - annotate - [select for diffs], Sat Mar 4 16:36:29 2017 UTC (7 years ago) by schwarze
Branch: MAIN
Changes since 1.61: +11 -8 lines
Diff to previous 1.61 (unified) to selected 1.12 (unified)

Debian needs relative symlinks not only for manual pages,
but also for program files.
Issue reported by Michael <Stapelberg at debian dot org>
and by Markus <Waldeck at gmx dot de>.

Revision 1.61 / (download) - annotate - [select for diffs], Sat Feb 18 12:24:24 2017 UTC (7 years, 1 month ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_1
Changes since 1.60: +4 -1 lines
Diff to previous 1.60 (unified) to selected 1.12 (unified)

proper test for O_DIRECTORY

Revision 1.60 / (download) - annotate - [select for diffs], Fri Feb 17 14:40:28 2017 UTC (7 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.59: +5 -2 lines
Diff to previous 1.59 (unified) to selected 1.12 (unified)

Make the directory explicit where source files are located.
This is simple and seems to help the NetBSD build infrastructure.
From Christos Zoulas <christos at NetBSD>.

Revision 1.59 / (download) - annotate - [select for diffs], Thu Feb 16 16:09:33 2017 UTC (7 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.58: +4 -2 lines
Diff to previous 1.58 (unified) to selected 1.12 (unified)

add $(LN) configuration variable; requested by Michael <Stapelberg@debian.org>

Revision 1.58 / (download) - annotate - [select for diffs], Thu Feb 16 15:12:32 2017 UTC (7 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.57: +4 -1 lines
Diff to previous 1.57 (unified) to selected 1.12 (unified)

Provide a variable BINM_CATMAN.
Suggested by Michael <Stapelberg@debian.org>.

Revision 1.57 / (download) - annotate - [select for diffs], Wed Feb 8 16:11:41 2017 UTC (7 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.56: +37 -2 lines
Diff to previous 1.56 (unified) to selected 1.12 (unified)

config glue for recvmsg(2) and CMSG_FIRSTHDR(3);
needed for Solaris 11

Revision 1.56 / (download) - annotate - [select for diffs], Sat Feb 4 12:03:07 2017 UTC (7 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.55: +7 -2 lines
Diff to previous 1.55 (unified) to selected 1.12 (unified)

experimental mandocd(8) and catman(8)
for development in the tree, not yet ready for production

Revision 1.55 / (download) - annotate - [select for diffs], Thu Jan 12 15:45:05 2017 UTC (7 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (unified) to selected 1.12 (unified)

Put compiler arguments that may contain -l at the end; according to
the people at Alpine Linux, gcc 6 seems to fail when it's at the
beginning.  From Daniel Sabogal via http://git.alpinelinux.org.

Revision 1.54 / (download) - annotate - [select for diffs], Sat Nov 19 15:24:51 2016 UTC (7 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.53: +4 -2 lines
Diff to previous 1.53 (unified) to selected 1.12 (unified)

Do not install libmandoc.a by default.
The only environment where it is ever needed is NetBSD base.
Even NetBSD ports and pkgsrc should better not install it.
Triggered by a question from bentley@.

Revision 1.53 / (download) - annotate - [select for diffs], Thu Oct 20 18:47:49 2016 UTC (7 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.52: +2 -2 lines
Diff to previous 1.52 (unified) to selected 1.12 (unified)

typo in informational message: s/UTF_LOCALE/UTF8_LOCALE/

Revision 1.52 / (download) - annotate - [select for diffs], Tue Oct 18 16:06:44 2016 UTC (7 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.51: +24 -15 lines
Diff to previous 1.51 (unified) to selected 1.12 (unified)

Compat glue for the FreeBSD comparison function prototype for fts_open(3)
which differs from what most other systems use.
While here, improve diagnostic output of ./configure tests.

Revision 1.51 / (download) - annotate - [select for diffs], Wed Aug 10 12:50:24 2016 UTC (7 years, 7 months ago) by schwarze
Branch: MAIN
Changes since 1.50: +2 -2 lines
Diff to previous 1.50 (unified) to selected 1.12 (unified)

When trying to figure out which C compiler make(1) wants to use,
pass it the POSIX -s option.  On most systems, this won't make a
difference, but Bdale Garbee reported that the make(1) on his Debian
system, most likely some version of gmake, breaks Makefile.local
by printing some 'entering directory' messages.  I failed to reproduce
and Bdale didn't report back, but judging from gmake source code,
this is likely to help and unlikely to do harm elsewhere.

Revision 1.50 / (download) - annotate - [select for diffs], Fri Aug 5 23:15:08 2016 UTC (7 years, 7 months ago) by schwarze
Branch: MAIN
Changes since 1.49: +22 -1 lines
Diff to previous 1.49 (unified) to selected 1.12 (unified)

The concept of endianness seems to be somewhat newfangled, so the
respective conversion functions are not yet properly standardized.
Rumour has it that POSIX is working on it, though.
For now, sprinkle some configuration glue.

Revision 1.49 / (download) - annotate - [select for diffs], Tue Aug 2 11:09:46 2016 UTC (7 years, 7 months ago) by schwarze
Branch: MAIN
Changes since 1.48: +4 -1 lines
Diff to previous 1.48 (unified) to selected 1.12 (unified)

POSIX allows PATH_MAX to not be defined, meaning "unlimited".
Found by Aaron M. Ucko <amu at alum dot mit dot edu> on the GNU Hurd,
via Bdale Garbee, https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=829624

Also add EFTYPE at two places where it was forgotten.

Revision 1.48 / (download) - annotate - [select for diffs], Sun Jul 31 09:29:13 2016 UTC (7 years, 7 months ago) by schwarze
Branch: MAIN
Changes since 1.47: +29 -2 lines
Diff to previous 1.47 (unified) to selected 1.12 (unified)

Autodetect a suitable locale for -Tutf8 mode,
and allow overriding it manually.
Based on a patch from Svyatoslav Mishyn <juef at openmailbox dot org>
tweaked by me.
The idea originally came up in a conversation with Markus Waldeck.

Revision 1.47 / (download) - annotate - [select for diffs], Wed Jul 20 14:03:06 2016 UTC (7 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.46: +19 -1 lines
Diff to previous 1.46 (unified) to selected 1.12 (unified)

Autodetect if -lrt is needed for nanosleep(3).
Helpful for Solaris 9 and 10.
Reminded by Thomas Klausner.

Revision 1.46 / (download) - annotate - [select for diffs], Wed Jul 20 00:23:14 2016 UTC (7 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.45: +3 -0 lines
Diff to previous 1.45 (unified) to selected 1.12 (unified)

Linux compatibility: Work around the lack of EFTYPE and protect <err.h>.

Revision 1.45 / (download) - annotate - [select for diffs], Tue Jul 19 22:40:33 2016 UTC (7 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.44: +1 -19 lines
Diff to previous 1.44 (unified) to selected 1.12 (unified)

Now that our man.conf(5) format is mature and extremely simple,
delete manpath(1) support.  With the mandoc-based man(1), manpath(1)
is utterly useless.  Just set MANPATH_DEFAULT in configure.local
for sane operating system defaults, use man.conf(5) for machine-
specific modifications, and use ${MANPATH}, -m, and -M for user
preferences.

Revision 1.44 / (download) - annotate - [select for diffs], Tue Jul 19 21:31:55 2016 UTC (7 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.43: +5 -65 lines
Diff to previous 1.43 (unified) to selected 1.12 (unified)

Remove the dependency on SQLite without loss of functionality.
Stop supporting systems that don't have mmap(3).
Drop the obsolete names_check() now that we deleted MLINKS.

Revision 1.43 / (download) - annotate - [select for diffs], Tue Jul 19 13:36:13 2016 UTC (7 years, 8 months ago) by schwarze
Branch: MAIN
Branch point for: VERSION_1_13
Changes since 1.42: +3 -5 lines
Diff to previous 1.42 (unified) to selected 1.12 (unified)

Use __attribute__((__format__ throughout.
Triggered by a smaller patch from Christos Zoulas.

While here, unify style, move several config tests to config.h,
and delete the useless MANDOC_CONFIG_H.

Revision 1.42 / (download) - annotate - [select for diffs], Fri Jul 15 18:03:45 2016 UTC (7 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.41: +2 -1 lines
Diff to previous 1.41 (unified) to selected 1.12 (unified)

add missing prototypes, no code change;
noticed by Christos Zoulas with -Wmissing-prototypes

Revision 1.41 / (download) - annotate - [select for diffs], Fri Jul 15 15:08:37 2016 UTC (7 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.40: +1 -1 lines
Diff to previous 1.40 (unified) to selected 1.12 (unified)

Sanitize the environment when calling make(1) to autodetect ${CC}.
Sevan Janiyan found during testing on AIX that ${CC} could leak in.

Revision 1.40 / (download) - annotate - [select for diffs], Tue Jul 12 05:18:38 2016 UTC (7 years, 8 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_13_4
Changes since 1.39: +3 -0 lines
Diff to previous 1.39 (unified) to selected 1.12 (unified)

Add support for Mac OS X's sandbox_init(3) sandbox functionality, which
is marked as DEPRECATED in OS X after 2011 or so, but has not been
removed and has no replacement.

ok schwarze@

Revision 1.39 / (download) - annotate - [select for diffs], Sun Jul 10 18:24:23 2016 UTC (7 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.38: +2 -0 lines
Diff to previous 1.38 (unified) to selected 1.12 (unified)

support LDFLAGS;
suggested by Christian Neukirchen <chneukirchen at gmail dot com>

Revision 1.38 / (download) - annotate - [select for diffs], Wed May 18 21:37:04 2016 UTC (7 years, 10 months ago) by schwarze
Branch: MAIN
Changes since 1.37: +33 -32 lines
Diff to previous 1.37 (unified) to selected 1.12 (unified)

Various people (among others Maxim Belooussov and Carsten Kunze)
reported that the build system still assumed that ohash is only
needed if sqlite3 is also in use, which is no longer true:
The ohash library is now required no matter what.

Rework sqlite3 and ohash library autodetection
such that both work independently of each other.
Provide LDADD for additional linker flags.
Add some missing variables to configure.local.example.

Revision 1.37 / (download) - annotate - [select for diffs], Thu Nov 26 07:42:11 2015 UTC (8 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.36: +1 -0 lines
Diff to previous 1.36 (unified) to selected 1.12 (unified)

No point in trying to go on when elementary database operations
like preparing queries or binding variables fail; that won't yield
useful results anyway but may generate huge pointless error messages.
Issue reported by deraadt@.

Revision 1.36 / (download) - annotate - [select for diffs], Sat Nov 7 21:31:22 2015 UTC (8 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (unified) to selected 1.12 (unified)

The sh(1) "test" builtin on Solaris 10 doesn't have -e,
even though that's required by POSIX.
Use -w and -r, that's just as good.

Revision 1.35 / (download) - annotate - [select for diffs], Sat Nov 7 20:52:52 2015 UTC (8 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.34: +8 -1 lines
Diff to previous 1.34 (unified) to selected 1.12 (unified)

provide a simple stand-alone implementation of getline(3)
for systems lacking it

Revision 1.34 / (download) - annotate - [select for diffs], Sat Nov 7 17:58:55 2015 UTC (8 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.33: +1 -8 lines
Diff to previous 1.33 (unified) to selected 1.12 (unified)

Modernization, no functional change intended:
Use the POSIX function getline(3) rather than the slightly
dangerous BSD function fgetln(3).
Remove the related compatibility code.

Revision 1.33 / (download) - annotate - [select for diffs], Sat Nov 7 14:01:16 2015 UTC (8 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.32: +4 -15 lines
Diff to previous 1.32 (unified) to selected 1.12 (unified)

In private header files, __BEGIN_DECLS and __END_DECLS are pointless.
Because these work slightly differently on different systems,
they are becoming a maintenance burden in the portable version,
so delete them.

Besides, one of the chief design goals of the mandoc toolbox is to
make sure that nothing related to documentation requires C++.
Consequently, linking mandoc against any kind of C++ program would
defeat the purpose and is not supported.
I don't understand why kristaps@ added them in the first place.

Revision 1.32 / (download) - annotate - [select for diffs], Sat Nov 7 13:14:21 2015 UTC (8 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.31: +0 -3 lines
Diff to previous 1.31 (unified) to selected 1.12 (unified)

garbage collect unused EXAMPLEDIR, forgotten in the CSS cleanup;
noticed by Peter Bray <pdb_ml at yahoo dot com dot au>

Revision 1.31 / (download) - annotate - [select for diffs], Fri Nov 6 21:19:09 2015 UTC (8 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.30: +6 -0 lines
Diff to previous 1.30 (unified) to selected 1.12 (unified)

In ./configure, select a RE syntax for word boundaries supported by libc;
issue reported by Svyatoslav Mishyn, Peter Bray, and Daniel Levai.

Revision 1.30 / (download) - annotate - [select for diffs], Fri Nov 6 17:33:34 2015 UTC (8 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.29: +3 -0 lines
Diff to previous 1.29 (unified) to selected 1.12 (unified)

merge pledge(2) support from OpenBSD

Revision 1.29 / (download) - annotate - [select for diffs], Fri Nov 6 16:30:33 2015 UTC (8 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.28: +5 -1 lines
Diff to previous 1.28 (unified) to selected 1.12 (unified)

Use getprogname(3) rather than __progname.
Suggested by Joerg@ Sonnenberger (NetBSD).
Last year, deraadt@ confirmed on tech@ that this "has the potential
to be more portable", and micro-optimizing for speed is not relevant
here.  Also gets rid of one global variable.

Revision 1.28 / (download) - annotate - [select for diffs], Sun Oct 11 21:12:54 2015 UTC (8 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.27: +13 -0 lines
Diff to previous 1.27 (unified) to selected 1.12 (unified)

Finally use __progname, err(3) and warn(3).
That's more readable and less error-prone than fumbling around
with argv[0], fprintf(3), strerror(3), perror(3), and exit(3).

It's a bad idea to boycott good interfaces merely because standards
committees ignore them.  Instead, let's provide compatibility modules
for archaic systems (like commercial Solaris) that still don't have
them.  The compat module has an UCB Copyright (c) 1993...

Revision 1.27 / (download) - annotate - [select for diffs], Sun Jul 19 06:05:16 2015 UTC (8 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (unified) to selected 1.12 (unified)

Do not fork and exec gunzip(1), just link with libz instead.
As discussed with deraadt@, that's cleaner and will help tame(2).
Something like this was also suggested earlier by bapt at FreeBSD.
Minus 50 lines of code, deleting one interface function (mparse_wait),
no functional change intended.

Revision 1.26 / (download) - annotate - [select for diffs], Wed May 20 22:22:59 2015 UTC (8 years, 10 months ago) by schwarze
Branch: MAIN
Changes since 1.25: +9 -3 lines
Diff to previous 1.25 (unified) to selected 1.12 (unified)

* remove FreeBSDisms
* purge and sort headers
* add build and compat glue
* and LICENSE information
for soelim(1)

Revision 1.25 / (download) - annotate - [select for diffs], Fri Mar 27 00:18:14 2015 UTC (9 years ago) by schwarze
Branch: MAIN
Changes since 1.24: +3 -0 lines
Diff to previous 1.24 (unified) to selected 1.12 (unified)

Add man.conf(5).  After adding some additional functionality,
one of the next steps will be to use it in addition to manpath(1)
rather than as an alternative to it.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Mar 22 18:14:30 2015 UTC (9 years ago) by schwarze
Branch: MAIN
Changes since 1.23: +2 -0 lines
Diff to previous 1.23 (unified) to selected 1.12 (unified)

make MANPATH_DEFAULT compile-time configurable

Revision 1.23 / (download) - annotate - [select for diffs], Thu Mar 19 14:57:29 2015 UTC (9 years ago) by schwarze
Branch: MAIN
Changes since 1.22: +19 -0 lines
Diff to previous 1.22 (unified) to selected 1.12 (unified)

Compat glue needed for Solaris 9 and 10.

Thanks to Sevan Janiyan <venture37 at geeklan dot co dot uk> for
reporting the Solaris 10 issues, to Jan Holzhueter <jh at opencsw
dot org> for some additional insight, and to OpenCSW in general for
providing me with a Solaris 9/10/11 testing environment.

Revision 1.22 / (download) - annotate - [select for diffs], Wed Mar 18 17:13:37 2015 UTC (9 years ago) by schwarze
Branch: MAIN
Changes since 1.21: +1 -0 lines
Diff to previous 1.21 (unified) to selected 1.12 (unified)

Pass the CC set in configure.local to Makefile.local.
Issue found while testing on opencsw.org.

Revision 1.21 / (download) - annotate - [select for diffs], Wed Mar 11 13:15:44 2015 UTC (9 years ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_3
Changes since 1.20: +1 -3 lines
Diff to previous 1.20 (unified) to selected 1.12 (unified)

When manpath(1) is available, enable HAVE_MANPATH even when building
without database support.  Required now that we have man(1) even
without database support.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Feb 16 16:23:54 2015 UTC (9 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.19: +0 -6 lines
Diff to previous 1.19 (unified) to selected 1.12 (unified)

Delete the -V option.  It serves no purpose but keeps confusing people.

Keeping track of the versions of installed software is the job of
the package manager, not of the individual binaries.  If individual
binaries include version numbers, that tends to goad people into
writing broken configuration tests that inspect version numbers
instead of properly testing for features.

Revision 1.19 / (download) - annotate - [select for diffs], Mon Feb 16 14:56:22 2015 UTC (9 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.18: +6 -0 lines
Diff to previous 1.18 (unified) to selected 1.12 (unified)

strtonum(3) compat glue

Revision 1.18 / (download) - annotate - [select for diffs], Wed Jan 21 22:41:49 2015 UTC (9 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.17: +3 -1 lines
Diff to previous 1.17 (unified) to selected 1.12 (unified)

Support homebrew-style linking on Mac OS X.
Idea found together with Alexis Hildebrandt <surryhill at gmail dot com>.

Revision 1.17 / (download) - annotate - [select for diffs], Sat Dec 13 13:43:47 2014 UTC (9 years, 3 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_2
Changes since 1.16: +1 -1 lines
Diff to previous 1.16 (unified) to selected 1.12 (unified)

version 1.13.2

Revision 1.16 / (download) - annotate - [select for diffs], Tue Dec 9 09:14:33 2014 UTC (9 years, 3 months ago) by schwarze
Branch: MAIN
Changes since 1.15: +24 -0 lines
Diff to previous 1.15 (unified) to selected 1.12 (unified)

Support choosing alternative binary and manual names from configure.local,
to help downstream distributions avoid naming conflicts.

Revision 1.15 / (download) - annotate - [select for diffs], Tue Dec 9 07:29:42 2014 UTC (9 years, 3 months ago) by schwarze
Branch: MAIN
Changes since 1.14: +5 -2 lines
Diff to previous 1.14 (unified) to selected 1.12 (unified)

Integrate the makewhatis binary into the mandoc binary
just like we do it on OpenBSD.  Smaller and neater.
While here, let ./configure set INSTALL_TARGETS.

Revision 1.14 / (download) - annotate - [select for diffs], Thu Aug 28 10:38:06 2014 UTC (9 years, 7 months ago) by schwarze
Branch: MAIN
Changes since 1.13: +1 -1 lines
Diff to previous 1.13 (unified) to selected 1.12 (unified)

On Linux, wcwidth() needs _XOPEN_SOURCE, or just _GNU_SOURCE for simplicity.
Besides, signedness of wchar_t and wint_t may differ, it i only
guaranteed that each wchar_t can be represented as a wint_t.
A problem report by Daniel Levai reminded me to fix this.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Aug 17 20:53:50 2014 UTC (9 years, 7 months ago) by schwarze
Branch: MAIN
Changes since 1.12: +1 -3 lines
Diff to previous 1.12 (unified)

Do not require getsubopt() to provide extern char *suboptarg.
We don't use it anyway in mandoc.  Like this, fewer systems need
the compat implementation.  In particular, we can now use the stock
getsubopt() on glibc and musl.

Besides, the comment in the BSD getsubopt.c that error messages are
tricky without *suboptarg is massively overblown.  If you simply
save a copy of the pointer you pass into getsubopt(), that's quite
usable for an error message.

People start campaigning for the addition of *suboptarg to C libraries
on the grounds that mandoc wants it, but actually, i consider library
functions manipulating global data quite ugly, so stop pushing people
into that questionable direction.

While here, add an explicit Copyright header to the test file.
While it's obviously to me what Kristaps intended, others might
consider this file copyrightable and wonder what's up.

Revision 1.12 / (download) - annotate - [selected], Sat Aug 16 23:04:25 2014 UTC (9 years, 7 months ago) by schwarze
Branch: MAIN
Changes since 1.11: +4 -0 lines
Diff to previous 1.11 (unified)

When BUILD_DB is active, link apropos(1) into the mandoc binary.
This is the first step on the way to a man(1) implementation.
The new ./configure is flexible enough to make this step quite easy.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Aug 16 19:00:01 2014 UTC (9 years, 7 months ago) by schwarze
Branch: MAIN
Changes since 1.10: +364 -24 lines
Diff to previous 1.10 (unified) to selected 1.12 (unified)

Improve build system and autodetection.
* Make ./configure standalone, that's what people expect.
* Let people write a ./configure.local from scratch, not edit existing files.
* Autodetect wchar, sqlite3, and manpath and act accordingly.
* Autodetect the need for -L/usr/local/lib and -lutil.
* Get rid of config.h.p{re,ost}, let ./configure only write what's needed.
* Let ./configure write a Makefile.local snippet, that's quite flexible.

Revision 1.10 / (download) - annotate - [select for diffs], Mon Aug 11 03:19:39 2014 UTC (9 years, 7 months ago) by schwarze
Branch: MAIN
Changes since 1.9: +1 -0 lines
Diff to previous 1.9 (unified) to selected 1.12 (unified)

work around lack of d_namlen and ALIGN/ALIGNBYTES on Linux

Revision 1.9 / (download) - annotate - [select for diffs], Mon Aug 11 01:39:00 2014 UTC (9 years, 7 months ago) by schwarze
Branch: MAIN
Changes since 1.8: +1 -0 lines
Diff to previous 1.8 (unified) to selected 1.12 (unified)

Provide a fallback version of fts(3) for systems lacking it.
I chose the OpenBSD version because it apparently contains various
bugfixes that never made it into libnbcompat.  To reduce size and
complexity, i stripped out the features we don't need.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Aug 10 02:45:04 2014 UTC (9 years, 7 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_1
Changes since 1.7: +2 -0 lines
Diff to previous 1.7 (unified) to selected 1.12 (unified)

Clarifications in comments and standard output suggested by
Paul Onyschuk <ptmelville at gmail dot com> (Alpine Linux)

Revision 1.7 / (download) - annotate - [select for diffs], Fri Aug 8 23:47:21 2014 UTC (9 years, 7 months ago) by schwarze
Branch: MAIN
Changes since 1.6: +2 -3 lines
Diff to previous 1.6 (unified) to selected 1.12 (unified)

Do not hardcode stuff in ./configure that is actually user-configurable
in the Makefile; instead, pass it down via the environment just
like CFLAGS.
Nice suggestion from kristaps@ hoping to make MacOS X happier.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Aug 5 12:50:52 2014 UTC (9 years, 7 months ago) by schwarze
Branch: MAIN
Changes since 1.5: +2 -0 lines
Diff to previous 1.5 (unified) to selected 1.12 (unified)

Since old SQLite versions do not have sqlite3_errstr(),
provide a dummy fallback implementation.
Do not bother to decode the error, SQLite error codes
are not useful enough for that to be worthwhile.
Note that using sqlite3_errmsg(db) would be a bad idea:
On malloc() failure, db is NULL, which would cause a segfault.
Issue noticed by kristaps@.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Aug 4 23:44:29 2014 UTC (9 years, 7 months ago) by schwarze
Branch: MAIN
Changes since 1.4: +0 -1 lines
Diff to previous 1.4 (unified) to selected 1.12 (unified)

remove strnlen(3) compat, we no longer use it

Revision 1.4 / (download) - annotate - [select for diffs], Fri Jun 20 02:55:49 2014 UTC (9 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (unified) to selected 1.12 (unified)

let the build system cope with the recent ohash changes

Revision 1.3 / (download) - annotate - [select for diffs], Wed Apr 23 21:06:41 2014 UTC (9 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.2: +1 -0 lines
Diff to previous 1.2 (unified) to selected 1.12 (unified)

Audit malloc(3)/calloc(3)/realloc(3) usage.
* Change eight reallocs to reallocarray to be safe from overflows.
* Change one malloc to reallocarray to be safe from overflows.
* Change one calloc to reallocarray, no zeroing needed.
* Change the order of arguments of three callocs (aesthetical).

Revision 1.2 / (download) - annotate - [select for diffs], Sat Jan 4 13:40:01 2014 UTC (10 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.1: +1 -0 lines
Diff to previous 1.1 (unified) to selected 1.12 (unified)

Even though strnlen(3) is required by POSIX 2008,
Matthias Scheler reports than Solaris 10 lacks it.
While here, sort the declarations in config.h
and move the headers to the top.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Jan 4 01:11:00 2014 UTC (10 years, 2 months ago) by schwarze
Branch: MAIN
Branch point for: VERSION_1_12
Diff to selected 1.12 (unified)

Clean up feature tests:
* Split the configure steering script out of the Makefile.
* Let the configure step depend on the test sources.
* Clean up the test programs such that they can be run.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb