Blame patches/mandoc-1.14.6.local.patch

096bf3
diff -ru mandoc-1.14.6.orig/Makefile mandoc-1.14.6/Makefile
096bf3
--- mandoc-1.14.6.orig/Makefile 2021-09-23 20:03:23.000000000 +0200
096bf3
+++ mandoc-1.14.6/Makefile      2024-02-26 15:20:48.758788836 +0100
096bf3
@@ -369,11 +369,40 @@
096bf3
096bf3
 # === USER CONFIGURATION ===============================================
096bf3
096bf3
-include Makefile.local
096bf3
+MANDOC_COBJS    =  compat_fts.o compat_ohash.o compat_progname.o compat_recallocarray.o compat_strtonum.o
096bf3
+SOELIM_COBJS    =  compat_progname.o compat_stringlist.o
096bf3
+PREFIX      = 
096bf3
+BINDIR      = /bin
096bf3
+SBINDIR     = /sbin
096bf3
+BIN_FROM_SBIN   = ../bin
096bf3
+INCLUDEDIR  = /include/mandoc
096bf3
+LIBDIR      = /lib/mandoc
096bf3
+MANDIR      = /man
096bf3
+WWWPREFIX   = /var/www
096bf3
+HTDOCDIR    = /var/www/htdocs
096bf3
+CGIBINDIR   = /var/www/cgi-bin
096bf3
+BINM_APROPOS    = apropos
096bf3
+BINM_CATMAN = catman
096bf3
+BINM_MAKEWHATIS = makewhatis
096bf3
+BINM_MAN    = man
096bf3
+BINM_SOELIM = soelim
096bf3
+BINM_WHATIS = whatis
096bf3
+MANM_MAN    = man
096bf3
+MANM_MANCONF    = man.conf
096bf3
+MANM_MDOC   = mdoc
096bf3
+MANM_ROFF   = roff
096bf3
+MANM_EQN    = eqn
096bf3
+MANM_TBL    = tbl
096bf3
+INSTALL     = install
096bf3
+INSTALL_PROGRAM = install -m 0555
096bf3
+INSTALL_LIB = install -m 0444
096bf3
+INSTALL_MAN = install -m 0444
096bf3
+INSTALL_DATA    = install -m 0444
096bf3
+LN = ln -f
096bf3
096bf3
 # === DEPENDENCY HANDLING ==============================================
096bf3
096bf3
-all: mandoc man demandoc soelim $(BUILD_TARGETS) Makefile.local
096bf3
+all: mandoc man demandoc soelim $(BUILD_TARGETS)
096bf3
096bf3
 install: base-install $(INSTALL_TARGETS)
096bf3
096bf3
diff -ruN mandoc-1.14.6.orig/config.h mandoc-1.14.6/config.h
096bf3
--- mandoc-1.14.6.orig/config.h	1970-01-01 01:00:00.000000000 +0100
096bf3
+++ mandoc-1.14.6/config.h	2024-02-26 14:41:39.744045181 +0100
096bf3
@@ -0,0 +1,59 @@
096bf3
+#ifdef __cplusplus
096bf3
+#error "Do not use C++.  See the INSTALL file."
096bf3
+#endif
096bf3
+
096bf3
+#include <sys/types.h>
096bf3
+
096bf3
+#define MAN_CONF_FILE "/etc/man.conf"
096bf3
+#define MANPATH_BASE "/usr/share/man:/usr/X11R6/man"
096bf3
+#define MANPATH_DEFAULT "/share/man"
096bf3
+#define OSENUM MANDOC_OS_OTHER
096bf3
+#define OSNAME "Midipix"
096bf3
+#define UTF8_LOCALE "en_US.UTF-8"
096bf3
+#define EFTYPE EINVAL
096bf3
+
096bf3
+#define HAVE_DIRENT_NAMLEN 0
096bf3
+#define HAVE_ENDIAN 1
096bf3
+#define HAVE_ERR 1
096bf3
+#define HAVE_FTS 1
096bf3
+#define HAVE_FTS_COMPARE_CONST 0
096bf3
+#define HAVE_GETLINE 1
096bf3
+#define HAVE_GETSUBOPT 1
096bf3
+#define HAVE_ISBLANK 1
096bf3
+#define HAVE_LESS_T 0
096bf3
+#define HAVE_MKDTEMP 1
096bf3
+#define HAVE_MKSTEMPS 1
096bf3
+#define HAVE_NTOHL 1
096bf3
+#define HAVE_PLEDGE 0
096bf3
+#define HAVE_PROGNAME 0
096bf3
+#define HAVE_REALLOCARRAY 1
096bf3
+#define HAVE_RECALLOCARRAY 0
096bf3
+#define HAVE_REWB_BSD 0
096bf3
+#define HAVE_REWB_SYSV 1
096bf3
+#define HAVE_SANDBOX_INIT 0
096bf3
+#define HAVE_STRCASESTR 1
096bf3
+#define HAVE_STRINGLIST 0
096bf3
+#define HAVE_STRLCAT 1
096bf3
+#define HAVE_STRLCPY 1
096bf3
+#define HAVE_STRNDUP 1
096bf3
+#define HAVE_STRPTIME 1
096bf3
+#define HAVE_STRSEP 1
096bf3
+#define HAVE_STRTONUM 0
096bf3
+#define HAVE_SYS_ENDIAN 0
096bf3
+#define HAVE_VASPRINTF 1
096bf3
+#define HAVE_WCHAR 1
096bf3
+#define HAVE_OHASH 0
096bf3
+#define NEED_XPG4_2 0
096bf3
+
096bf3
+#define BINM_APROPOS "apropos"
096bf3
+#define BINM_CATMAN "catman"
096bf3
+#define BINM_MAKEWHATIS "makewhatis"
096bf3
+#define BINM_MAN "man"
096bf3
+#define BINM_SOELIM "soelim"
096bf3
+#define BINM_WHATIS "whatis"
096bf3
+#define BINM_PAGER "less"
096bf3
+
096bf3
+extern	const char *getprogname(void);
096bf3
+extern	void	  setprogname(const char *);
096bf3
+extern	void	 *recallocarray(void *, size_t, size_t, size_t);
096bf3
+extern	long long strtonum(const char *, long long, long long, const char **);