Commit Briefs

Thomas Adam

portable: add got_compat.h where necessary

Where new files have appeared, etc., in -portable, "got_compat.h" needs to be added.


Thomas Adam

portable: remove sockaddr-linux code

Now that socket handling is being done in a portable way upstream, there's no need to carry -portable specific code.


Thomas Adam

portable: add object_qid.c where required

Part of a wider change.


Thomas Adam

portable: linux: add libmd (ta/libmd-fixes)

On some systems libmd isn't explicitly implied, so detect this via pkg-config at configure time. Problem reported by @stsp


Thomas Adam

portable: configure: split out dependencies

Rather than assume all dependencies are required for all programs, split them out. This will make packaging easier, as well as splitting the code to use subprojects. Note that due to the use of config.h semantics, in most cases the got_compat.h header file is now at the top of the .c file it is included in, so that it can handle the system header inclusion properly.


Thomas Adam

portable: update Makefiles

sha1.c -> hash.c


Thomas Adam

portable: cross-compile pages.c

When building the template files on the host (which is cross-compiled), do so just by handling pages.c appropriately. Based on a patch by op@, and modified by me.


Thomas Adam

portable: move tmpl.h to EXTRA_DIST

This header isn't needed for direct compilation, but should be included as part of the main tarball.


Omar Polo

portable: gotwebd: add tmpl.h to gotwebd_SOURCES

unbreaks `make dist'


Thomas Adam

portable: gotwebd: use template

This updates -portable's gotwebd instance to make use of the new templating engine.


Thomas Adam

portable: support infrastructure for gotd/gotsh

Provide the ability for -portable to continue to compile, until such time that gotd and gotsh have been enabled in -portable.


Thomas Adam

portable: sort makefile source lines

For all key Makefile.am files in use, sort the files so that they're more easily identifiable -- especially when adding/removing source files.



Thomas Adam

move code for reading Git's config file into new file read_gitconfig_privsep.c

The end goal here is to remove the dependency of repository.c on privsep.c during compilation.


Thomas Adam

move functions which open objects into new file object_open_privsep.c

For the future, this will make it possible to provide alternative implementations of functions now stored in object_open_privsep.c. This will probably be needed by future gotd(8) which runs inside a chroot(2) environment and without the "exec" pledge(2) promise, making it impossible to run libexec helpers on the fly. Details of this design are not yet settled, but moving functions into a separate compilation unit won't hurt in any case.


Thomas Adam

portable: gotwebd: install to sbin

When installing gotwebd, put this under ${prefix}/sbin


Thomas Adam

portable: provide sockaddr-linux implementation

Someof the socket code has been factored out of gotwebd and put centrally so that platform-specific targets can be created, without the need of heavily modifying the central socket code to contain numerous ifdefs.


Thomas Adam

portable: gotwebd: add headers to EXTRA_DIST

Add the header files under gotwebd to EXTRA_DIST so that they're included in the distribution tarball.


Thomas Adam

portable: gotwebd: first stab at compilation

This is not yet "clean", but does compile. A few things to consider: * See comments beginning with "TA:"