CVS log for mandoc/configure

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.77 / (download) - annotate - [select for diffs], Mon Jul 20 16:57:30 2020 UTC (2 weeks, 2 days ago) by schwarze
Branch: MAIN
CVS Tags: HEAD
Changes since 1.76: +25 -7 lines
Diff to previous 1.76 (colored)

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 (6 weeks, 2 days ago) by schwarze
Branch: MAIN
Changes since 1.75: +4 -5 lines
Diff to previous 1.75 (colored)

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 (7 weeks, 3 days ago) by schwarze
Branch: MAIN
Changes since 1.74: +60 -29 lines
Diff to previous 1.74 (colored)

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 (7 weeks, 3 days ago) by schwarze
Branch: MAIN
Changes since 1.73: +68 -94 lines
Diff to previous 1.73 (colored)

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 months, 3 weeks ago) by schwarze
Branch: MAIN
Changes since 1.72: +15 -4 lines
Diff to previous 1.72 (colored)

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 (6 months ago) by schwarze
Branch: MAIN
Changes since 1.71: +2 -2 lines
Diff to previous 1.71 (colored)

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 (13 months ago) by schwarze
Branch: MAIN
Changes since 1.70: +2 -2 lines
Diff to previous 1.70 (colored)

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 (17 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_5
Changes since 1.69: +2 -2 lines
Diff to previous 1.69 (colored)

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 (17 months ago) by schwarze
Branch: MAIN
Changes since 1.68: +17 -1 lines
Diff to previous 1.68 (colored)

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 (17 months ago) by schwarze
Branch: MAIN
Changes since 1.67: +24 -2 lines
Diff to previous 1.67 (colored)

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 (23 months, 3 weeks ago) by schwarze
Branch: MAIN
Changes since 1.66: +60 -42 lines
Diff to previous 1.66 (colored)

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 (2 years ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_4
Changes since 1.65: +72 -36 lines
Diff to previous 1.65 (colored)

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 (2 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.64: +9 -2 lines
Diff to previous 1.64 (colored)

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 (3 years, 1 month 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 (colored)

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 (3 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.62: +9 -2 lines
Diff to previous 1.62 (colored)

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

Revision 1.43.2.13 / (download) - annotate - [select for diffs], Sat Mar 4 16:44:43 2017 UTC (3 years, 5 months ago) by schwarze
Branch: VERSION_1_13
Changes since 1.43.2.12: +11 -8 lines
Diff to previous 1.43.2.12 (colored) next main 1.44 (colored)

Merge Makefile 1.507, configure 1.62, configure.local.example 1.30:
relative symlinks for program files

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

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.43.2.12 / (download) - annotate - [select for diffs], Tue Feb 21 17:04:04 2017 UTC (3 years, 5 months ago) by schwarze
Branch: VERSION_1_13
Changes since 1.43.2.11: +9 -35 lines
Diff to previous 1.43.2.11 (colored)

Drop support for building without SQLite.
There whole point of the 1.13 branch is SQLite support after all.

Revision 1.43.2.11 / (download) - annotate - [select for diffs], Tue Feb 21 16:25:19 2017 UTC (3 years, 5 months ago) by schwarze
Branch: VERSION_1_13
Changes since 1.43.2.10: +3 -3 lines
Diff to previous 1.43.2.10 (colored)

first step of 1.13.5 release preparations

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

proper test for O_DIRECTORY

Revision 1.43.2.10 / (download) - annotate - [select for diffs], Fri Feb 17 14:50:13 2017 UTC (3 years, 5 months ago) by schwarze
Branch: VERSION_1_13
Changes since 1.43.2.9: +5 -2 lines
Diff to previous 1.43.2.9 (colored)

merge small style improvements from christos@ to the 1.13 branch

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

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.43.2.9 / (download) - annotate - [select for diffs], Thu Feb 16 16:21:04 2017 UTC (3 years, 5 months ago) by schwarze
Branch: VERSION_1_13
Changes since 1.43.2.8: +4 -2 lines
Diff to previous 1.43.2.8 (colored)

Merge Makefile 1.501, configure 1.59, configure.local.example 1.28:
add $(LN) configuration variable

Revision 1.59 / (download) - annotate - [select for diffs], Thu Feb 16 16:09:33 2017 UTC (3 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.58: +4 -2 lines
Diff to previous 1.58 (colored)

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 (3 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.57: +4 -1 lines
Diff to previous 1.57 (colored)

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 (3 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.56: +37 -2 lines
Diff to previous 1.56 (colored)

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 (3 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.55: +7 -2 lines
Diff to previous 1.55 (colored)

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

Revision 1.43.2.8 / (download) - annotate - [select for diffs], Thu Jan 12 15:47:47 2017 UTC (3 years, 6 months ago) by schwarze
Branch: VERSION_1_13
Changes since 1.43.2.7: +3 -3 lines
Diff to previous 1.43.2.7 (colored)

merge rev. 1.55: gcc 6 fix from Alpine Linux

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

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 (3 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.53: +4 -2 lines
Diff to previous 1.53 (colored)

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.43.2.7 / (download) - annotate - [select for diffs], Thu Oct 20 19:34:18 2016 UTC (3 years, 9 months ago) by schwarze
Branch: VERSION_1_13
Changes since 1.43.2.6: +2 -1 lines
Diff to previous 1.43.2.6 (colored)

fix sqlite3_errstr() autodetection if sqlite3 is in /usr/local

Revision 1.43.2.6 / (download) - annotate - [select for diffs], Thu Oct 20 18:52:27 2016 UTC (3 years, 9 months ago) by schwarze
Branch: VERSION_1_13
Changes since 1.43.2.5: +27 -18 lines
Diff to previous 1.43.2.5 (colored)

merge reproducible build support including compat glue to 1.13 branch:
mandocdb.c 1.231 & 1.232; configure 1.52 & 1.53; configure.local.example 1.21

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

typo in informational message: s/UTF_LOCALE/UTF8_LOCALE/

Revision 1.43.2.5 / (download) - annotate - [select for diffs], Thu Oct 20 17:51:45 2016 UTC (3 years, 9 months ago) by schwarze
Branch: VERSION_1_13
Changes since 1.43.2.4: +4 -1 lines
Diff to previous 1.43.2.4 (colored)

merge rev. 1.46: work around the lack of EFTYPE

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

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.43.2.4 / (download) - annotate - [select for diffs], Wed Aug 10 12:54:02 2016 UTC (3 years, 11 months ago) by schwarze
Branch: VERSION_1_13
Changes since 1.43.2.3: +2 -2 lines
Diff to previous 1.43.2.3 (colored)

merge tentative 'entering directory' fix for gmake to 1.13 branch

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

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 (4 years ago) by schwarze
Branch: MAIN
Changes since 1.49: +22 -1 lines
Diff to previous 1.49 (colored)

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.43.2.3 / (download) - annotate - [select for diffs], Tue Aug 2 11:19:26 2016 UTC (4 years ago) by schwarze
Branch: VERSION_1_13
Changes since 1.43.2.2: +3 -1 lines
Diff to previous 1.43.2.2 (colored)

1.13 backport: handle absence of PATH_MAX

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

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.43.2.2 / (download) - annotate - [select for diffs], Sun Jul 31 09:47:01 2016 UTC (4 years ago) by schwarze
Branch: VERSION_1_13
Changes since 1.43.2.1: +29 -2 lines
Diff to previous 1.43.2.1 (colored)

1.13 backport: autodetect UTF8_LOCALE

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

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.43.2.1 / (download) - annotate - [select for diffs], Wed Jul 20 14:14:07 2016 UTC (4 years ago) by schwarze
Branch: VERSION_1_13
Changes since 1.43: +19 -1 lines
Diff to previous 1.43 (colored)

1.13 backport: Autodetect if -lrt is needed for nanosleep(3).

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

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 (4 years ago) by schwarze
Branch: MAIN
Changes since 1.45: +3 -0 lines
Diff to previous 1.45 (colored)

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 (4 years ago) by schwarze
Branch: MAIN
Changes since 1.44: +1 -19 lines
Diff to previous 1.44 (colored)

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 (4 years ago) by schwarze
Branch: MAIN
Changes since 1.43: +5 -65 lines
Diff to previous 1.43 (colored)

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 (4 years ago) by schwarze
Branch: MAIN
Branch point for: VERSION_1_13
Changes since 1.42: +3 -5 lines
Diff to previous 1.42 (colored)

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 (4 years ago) by schwarze
Branch: MAIN
Changes since 1.41: +2 -1 lines
Diff to previous 1.41 (colored)

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 (4 years ago) by schwarze
Branch: MAIN
Changes since 1.40: +1 -1 lines
Diff to previous 1.40 (colored)

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 (4 years ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_13_4
Changes since 1.39: +3 -0 lines
Diff to previous 1.39 (colored)

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 (4 years ago) by schwarze
Branch: MAIN
Changes since 1.38: +2 -0 lines
Diff to previous 1.38 (colored)

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 (4 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.37: +33 -32 lines
Diff to previous 1.37 (colored)

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 (4 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.36: +1 -0 lines
Diff to previous 1.36 (colored)

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 (4 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored)

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 (4 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.34: +8 -1 lines
Diff to previous 1.34 (colored)

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 (4 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.33: +1 -8 lines
Diff to previous 1.33 (colored)

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 (4 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.32: +4 -15 lines
Diff to previous 1.32 (colored)

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 (4 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.31: +0 -3 lines
Diff to previous 1.31 (colored)

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 (4 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.30: +6 -0 lines
Diff to previous 1.30 (colored)

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 (4 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.29: +3 -0 lines
Diff to previous 1.29 (colored)

merge pledge(2) support from OpenBSD

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

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 (4 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.27: +13 -0 lines
Diff to previous 1.27 (colored)

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 (5 years ago) by schwarze
Branch: MAIN
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

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 (5 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.25: +9 -3 lines
Diff to previous 1.25 (colored)

* 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 (5 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.24: +3 -0 lines
Diff to previous 1.24 (colored)

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 (5 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.23: +2 -0 lines
Diff to previous 1.23 (colored)

make MANPATH_DEFAULT compile-time configurable

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

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 (5 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.21: +1 -0 lines
Diff to previous 1.21 (colored)

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 (5 years, 4 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_3
Changes since 1.20: +1 -3 lines
Diff to previous 1.20 (colored)

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 (5 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.19: +0 -6 lines
Diff to previous 1.19 (colored)

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 (5 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.18: +6 -0 lines
Diff to previous 1.18 (colored)

strtonum(3) compat glue

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

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 (5 years, 7 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_2
Changes since 1.16: +1 -1 lines
Diff to previous 1.16 (colored)

version 1.13.2

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

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 (5 years, 7 months ago) by schwarze
Branch: MAIN
Changes since 1.14: +5 -2 lines
Diff to previous 1.14 (colored)

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 (5 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.13: +1 -1 lines
Diff to previous 1.13 (colored)

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 (5 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.12: +1 -3 lines
Diff to previous 1.12 (colored)

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 - [select for diffs], Sat Aug 16 23:04:25 2014 UTC (5 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.11: +4 -0 lines
Diff to previous 1.11 (colored)

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 (5 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.10: +364 -24 lines
Diff to previous 1.10 (colored)

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.1.2.5 / (download) - annotate - [select for diffs], Thu Aug 14 20:33:55 2014 UTC (5 years, 11 months ago) by schwarze
Branch: VERSION_1_12
CVS Tags: VERSION_1_12_4
Changes since 1.1.2.4: +2 -0 lines
Diff to previous 1.1.2.4 (colored) next main 1.2 (colored)

Standard output reminder to run ./configure from make, suggested by
Paul Onyschuk <ptmelville at gmail dot com> (Alpine Linux)

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

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 (5 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.8: +1 -0 lines
Diff to previous 1.8 (colored)

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 (5 years, 11 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_1
Changes since 1.7: +2 -0 lines
Diff to previous 1.7 (colored)

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 (5 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.6: +2 -3 lines
Diff to previous 1.6 (colored)

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 (6 years ago) by schwarze
Branch: MAIN
Changes since 1.5: +2 -0 lines
Diff to previous 1.5 (colored)

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.1.2.4 / (download) - annotate - [select for diffs], Mon Aug 4 23:45:37 2014 UTC (6 years ago) by schwarze
Branch: VERSION_1_12
Changes since 1.1.2.3: +0 -1 lines
Diff to previous 1.1.2.3 (colored)

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

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

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 (6 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

let the build system cope with the recent ohash changes

Revision 1.1.2.3 / (download) - annotate - [select for diffs], Wed Apr 23 21:31:38 2014 UTC (6 years, 3 months ago) by schwarze
Branch: VERSION_1_12
Changes since 1.1.2.2: +1 -0 lines
Diff to previous 1.1.2.2 (colored)

Audit malloc(3)/calloc(3)/realloc(3) in VERSION_1_12.

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

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.1.2.2 / (download) - annotate - [select for diffs], Sat Jan 4 13:49:22 2014 UTC (6 years, 7 months ago) by schwarze
Branch: VERSION_1_12
Changes since 1.1.2.1: +1 -0 lines
Diff to previous 1.1.2.1 (colored)

Merge strnlen(3) configuration bits.

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

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.2.1 / (download) - annotate - [select for diffs], Sat Jan 4 01:24:48 2014 UTC (6 years, 7 months ago) by schwarze
Branch: VERSION_1_12
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored)

Merge cleanup of feature tests to VERSION_1_12, resolving conflicts.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Jan 4 01:11:00 2014 UTC (6 years, 7 months ago) by schwarze
Branch: MAIN
Branch point for: VERSION_1_12

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