Commit Graph

14 Commits

Author SHA1 Message Date
Michael Forney 1f2e769865 openbsd: Explicitly list the libc headers that are required
Previously, we just added the openbsd header directories to the
search path with -idirafter to prevent openbsd headers from being
used where we already have musl headers.

However, if the system had its own version of the headers (such as
sys/tree.h), those would get preferred over the openbsd versions,
which may result in build failures due to slight incompatibilities.

To fix this, just isolate the few headers we do need into their own
directory, and include it normally (with -I/-isystem).
2020-10-01 13:36:42 -07:00
Michael Forney 25b960547f libevent2: Update to 2.1.12 2020-07-05 20:00:42 -07:00
Michael Forney 8b81b69317 libevent: Add source headers to header target 2020-06-02 04:22:27 -07:00
Michael Forney 051963c7fe Add support for building multiple configurations
Now, you can build in separate directories per configuration:

	mkdir foo
	(cd foo && ../setup.lua)
	samu -C foo
2020-01-29 22:14:33 -08:00
Michael Forney 0aeb19b7ba libevent: Update to 2.1.11 2019-08-02 09:18:43 -07:00
Michael Forney 7367783297 libevent: Update to 2.1.10 2019-06-10 00:12:49 -07:00
Michael Forney 4332740046 Rename rev to ver, and keep track of package versions as well 2019-03-19 00:14:12 -07:00
Michael Forney 3fec229bb7 Remove unnecessary -I include
config-posix.h is being phased out.
2018-04-17 14:27:26 -07:00
Michael Forney e5cfa84477 Move $outdir/fetch.stamp -> $dir/fetch 2017-10-23 21:43:33 -07:00
Michael Forney ba94a8513d Rewrite ninja generation scripts in Lua 2017-09-25 19:23:06 -07:00
Michael Forney 75f1d54019 libevent: Update to 2.1.8 2017-02-01 20:48:01 -08:00
Michael Forney 5791071dc2 libevent: Disable debug mode 2017-02-01 20:38:36 -08:00
Michael Forney 36835fdbd9 Declare some missing dependencies 2016-12-13 23:10:30 -08:00
Michael Forney 293f5a93b7 Move to flat package hierarchy
Note to self: never try to move submodules again

To migrate your existing submodules (more or less):

	set -x
	set -e

	mkdir .git/modules/pkg
	for old in */*/src ; do
	        new="pkg/${old#*/}"
	        if ! [ -f "$old/.git" ] || [ "${old%%/*}" = pkg ] ; then
			continue
		fi
		git -C ".git/modules/$old" config core.worktree "../../../../../$new"
		rmdir "$new"
		mv "$old" "$new"
	        sed -e "s,$old,$new," "$new/.git" > "$new/.git.tmp"
	        mv "$new/.git.tmp" "$new/.git"
		mkdir ".git/modules/${new%/src}"
	        mv ".git/modules/$old" ".git/modules/$new"

		rm "${old%/src}"/*.ninja
		mv "${old%/src}"/*.tar.{gz,xz,bz2} "${new%/src}/"
		rmdir "${old%/src}" || true
	done
	sed -e 's,^\[submodule "[^/]*/,[submodule "pkg/,' .git/config > .git/config.tmp
	mv .git/config.tmp .git/config
2016-12-13 23:10:30 -08:00