Omar Polo
8068d2ff33
tag v1.7.1
...
This version includes two bugfixes:
- use ${MAKE} to recursively call make
- fix the misleading example in the man page: macros name may not be
reserved words
Both bugs found and fixed by Anna “CyberTailor”, thanks!
2021-07-11 09:50:26 +02:00
Omar Polo
b79b2d811b
tag v1.7
2021-07-10 09:22:19 +00:00
Omar Polo
f361f79979
move version number to configure script
2021-07-10 09:19:44 +00:00
Anna “CyberTailor”
8c9b8f487e
replace add_{cflags,ldflags} with add_library
2021-07-08 16:56:29 +02:00
Anna “CyberTailor”
9c84a04f9c
check freedesktop's libbsd
2021-07-08 16:55:58 +02:00
Omar Polo
68ef117092
always append -W flags to CFLAGS
2021-07-07 09:19:24 +00:00
Omar Polo
d336aeafd4
refactor add_{cflags,ldflags}
2021-07-07 08:46:23 +00:00
Omar Polo
489e1655a0
add --enable-sandbox
...
patch from Anna "CyberTailor"
It's handy for helpers like ebuild's use_enable.
(the sandbox is still always enabled by default)
2021-07-07 08:43:33 +00:00
Omar Polo
1a572d4221
check libimsg too
...
patch from Anna "CyberTailor"
2021-07-07 08:41:27 +00:00
Omar Polo
af15474448
always append LDFLAGS and CFLAGS
...
Initial patch from Anna "CyberTailor", tweaked by me (drop guessing_*
and always append CFLAGS)
2021-07-07 08:38:19 +00:00
Omar Polo
6edcfca97f
try to preserve as much as possible CFLAGS and LDFLAGS from env
...
but still try to autodetect with pkg-config if they aren't provided.
Passing CFLAGS/LDFLAGS from the command line will still override the
guessed ones.
2021-07-06 13:01:11 +00:00
Omar Polo
eb877bffaa
explain the OpenBSD bit
2021-07-06 12:18:53 +00:00
Omar Polo
8bb8cf2ad4
configure: add --disable-sandbox
...
Calling `configure' with --disable-sandbox will disable the sandbox
support *completely* at compile time. gmid will still complain at
compile time and during the startup.
Users shouldn't disable the sandbox if possible, but instead report
problem upstream so they get fixed (hopefully.)
#4 related
2021-07-02 09:26:59 +00:00
Omar Polo
74f0778b9a
drop the dependency on lex by implementing yylex by ourselves
...
The actual implementation is based off doas' parse.y. This gave us
various benefits, like cleaner code, \ to break long lines, better
handling of quotes etc...
2021-06-16 14:43:16 +00:00
Omar Polo
578f13e4b2
add compat for reallocarray
2021-04-25 12:50:19 +00:00
Omar Polo
fda7b99fc7
include sys/types.s to fix the build on OpenBSD
2021-02-23 14:07:49 +00:00
Omar Polo
aa627c91fc
checks for compat + don't initialise HAVE_*
2021-02-23 13:44:20 +01:00
Omar Polo
6b191ed52a
tests and compat for imsg
2021-02-23 13:43:14 +01:00
Omar Polo
d278a0c3c5
moving logging to its own process
2021-02-23 13:40:59 +01:00
Omar Polo
dfa6d77b70
typo
2021-02-12 12:55:29 +00:00
Omar Polo
52418c8d82
fix various compilation errors
...
Include gmid.h as first header in every file, as it then includes
config.h (that defines _GNU_SOURCE for instance).
Fix also a warning about unsigned vs signed const char pointers in
openssl.
2021-02-12 12:47:20 +00:00
Omar Polo
a72cc6be31
improve compat/getprogname on GNU libc
...
but why'd they called it program_invocation_short_name? They couldn't
find a longer name?
2021-02-11 09:13:58 +00:00
Omar Polo
4ad0601d18
link to compat/ even in regress
...
this unlocks the full regress tests on arch, for instance, or every
OS where we don't have strl*
2021-02-10 22:06:16 +00:00
Omar Polo
1516fd4dad
fix detection on non-openbsd systems
2021-02-08 10:28:56 +00:00
Omar Polo
337c74209b
look for libevent
2021-02-08 10:12:04 +00:00
Omar Polo
809c4bd0f8
keep original CFLAGS
2021-02-07 11:28:42 +00:00
Omar Polo
60dbafbf2f
define MANDIR
2021-02-07 09:24:00 +00:00
Omar Polo
fe90d24fd0
add compat for setproctitle
...
This adds a check for setproctitle and for the (linux) prctl
PR_SET_NAME. If setproctitle is not available, on linux we provide an
implementation that use prctl (taken from tmux compat layer.)
2021-02-04 13:42:35 +00:00
Omar Polo
5b4a641893
let LEX and YACC be customizable via args
2021-02-02 09:58:05 +00:00
Omar Polo
40dc608f1f
adjust CFLAGS detection
2021-01-27 16:05:55 +00:00
Omar Polo
333a671107
gen compat for getprogname
2021-01-25 15:09:18 +00:00
Omar Polo
8443bff77a
rework the configless mode: change flags and generate certs
2021-01-25 14:08:31 +00:00
Omar Polo
7e26256394
fixing compat compilation
...
include headers if needed and include config.h
2021-01-22 17:00:56 +00:00
Omar Polo
3527b7a58a
missing ; in prototype
2021-01-22 16:53:21 +00:00
Omar Polo
2d7abb7017
add missing getprogname test + eventually include err.h
2021-01-21 16:15:35 +00:00
Omar Polo
5c342d059f
more OpenBSD goodies
2021-01-21 15:37:02 +00:00
Omar Polo
86939cb45b
simplify CFLAGS/LDFLAGS autodetection
2021-01-21 13:40:22 +00:00
Omar Polo
597ddf6ca8
typo
2021-01-21 13:01:54 +00:00
Omar Polo
12042ad700
add a configure script and some compat
...
tested on openbsd, alpine and void
2021-01-21 11:57:46 +00:00