Commits
- Commit:
00d6d36174cabcf3b60c6145e27db99a94767d88
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: release 0.85
- Commit:
8cff5e95a33fae159bff83b798f8c0425e2aff5c
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: OpenBSD compilation fixes
- Commit:
68069cf6014c5bd18aba4f3fa754c793c6740b3d
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: fixes for NetBSD
* Move the main incldue/got_compat.h to the top of the files they're
included in.
* Define SHA256Init and friends to the system equivalents.
- Commit:
d3f1e38b5d5c7188a56b8b08d472ff8683c10e15
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: curses: improve detection
When checking for ncurses, don't clobber previous checks for libpanel.
- Commit:
7ef51333b72702bfc0ec3a9ea6ea950ec7cdf7a8
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: cleanup headers
Remove useless headers which don't need to be included any longer.
- Commit:
206be139b57622a9d9d2fe28a7d2c1eb62109136
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: improve b64_ntop detection
When looking for base64 functions, check -lresolv and/or -lnetwork, and
only build those in compat if required.
Some of the detection code was modified from tmux's configure.ac script.
- Commit:
d9b944c72df6401d9aa2cdf40a196bb1b6066113
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: add missing header checks
Some code in compat/ has #defines which were not being checked for in
configure.ac, which could have lead to compilation failures were those
files to be included on systems which needed them.
In doing so, we can now remove libmd and libcrypto as these are no
longer needed.
- Commit:
40d5394383d9283d2c0b04b41ba26bb6e2105a9e
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: configure: use SHA_2{,56}_H
Don't use a custom variable when the header checks for these are already
available.
From Christian "naddy" Weisgerber.
- Commit:
c2417a8ec6a4fad60404fd1eb3a338f0f3fdaa58
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: alpine: include stdlib.h
Because musl is less forgiving about header-ordering, explicitly include
this before stdio.h -- this won't affect existing files as the include
guards elsewhere prevent this.
- Commit:
09e05ed50d7310833916e622c86ee1a18ba4a1b0
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: regress: imply compat
When building tests, compat needs to be built. Do this prior to running
any tests. This ensures tests can be run from a clean tree.
Furthermore, add got_compat.h to all test headers. This wasn't
necessary before as this was implicitly being included, but now isn't.
- Commit:
943e9ed21cb1949f950a6f921d59b438cb759ae2
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: configure: flatten LIBS
Set LIBS to the empty string so that only the specific dependencies are
included where needed, rather than relying on autotools to do this for
us. This will make splitting out got into different subprojects easier,
as well as allow for multi-packing on those systems which support it.
- Commit:
1ef7c68a194549db7b9f945ef5910cb5394d4cc6
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: extend got_compat2 include guard
Extend the include guard to the whole file.
- Commit:
4fccd2fe0ffbbc668b66abe63614470635f92f1b
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
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.
- Commit:
b49d4941c8516ec9461a2de2615819f87c4e9acd
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: Makefile: add -Wno-pointer-sign
Ignore warnings about pointer-signedness. This may well get fixed
upstream, but won't hurt to be left here, regardless.
- Commit:
47dc83f5bed376c49b704738968d3f44c8e01d1e
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: configure: use config.h
So that the command-line flags to CC don't get drowned out with copious
-D flags, move this detection to config.h instead.
Note that to reduce the code churn, the existing include/got_compat.h
header file has been renamed, and the generated file replaces it, but
with the contents of the original header file included.
Eventually, we might want to move some od the logic in
include/got_compat2.h into AH_VERBATIM() blocks, but for now, this is a
good compromise.
- Commit:
7f0ff4a55b1edcc332a395004bc76356777e30d8
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
bump version number
- Commit:
8f8b8c0017982b32248bd2fe9024245b21ce6af6
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
CHANGES for 0.85
- Commit:
bc3b59da2e3143efa33c56b9887ec506df8ed1bf
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
sync distfile list
- Commit:
8f3fcd24aef7952f1b7bd1b00ca3b39b31b2137d
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
ensure that obj/parse.h gets removed during 'make clean'
- Commit:
046f76c30e642757d0d52b64eabd263c7c206fec
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
fix gotd sometimes reading reused deltas from wrong pack file
The reuse-pack is pinned but may change its cache slot while objects
are being deltified. Refresh the pointer to the pinned reuse-pack before
writing out the pack file, ensuring that reused deltas will in fact be
read from the reuse-pack and not some other pack. Otherwise gotd may send
a broken pack file, or hit an ERR_RANGE condition if the pack file which
now occupies the pinned-pack's old cache slot is shorter. Which can trigger
attempts to read beyond end-of-file which show up in the logs like this:
gotd[37311]: repo_read /var/git/got.git: sending packfile: value out of range
gotd[43877]: uid 1002: value out of range
gotd[43877]: uid 1002: disconnecting
- Commit:
99fe3033f2c5c27a510a69c329fb1a542c4620cf
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
add xfail test for histedit folding of delete followed by add
If a file is deleted, then in modified form added again, folding
should restore the file with its new contents.
ok stsp
- Commit:
31a4bd82de06791beb82e8f570cc0236202acca5
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: regress: add back GOT_TEST_PACK
The definition for GOT_TEST_PACK went walkies during a previous merge
conflict. Add this back.
- Commit:
6d5b325d9740b5ea90167a5e47ecba3ff3777d2f
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: regress: remove sed wrapper
Now that the use of sed(1) in tests has been replaced with ed(1), the
sed wrapper can be retired.
There are existing tests which use sed, but they're modifying a stream,
rather than using -i, so there's no portability concerns.
- Commit:
ac3cdf31e06d51b4966449da12216d3614e10576
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
regress: replace "sed -i" with ed(1) for portable in-place editing
"sed -i" is fundamentally unportable. GNU and OpenBSD sed(1) treat
the extension for the backup file as an optional argument and use
"sed -i" for no backup file. FreeBSD sed(1) treats the extension
as an obligatory argument and uses "sed -i ''" for no backup file.
There is no single syntax that works for both.
ok stsp op
- Commit:
40f2f72b99bb70a7be40eada71e5acd8a77ab58d
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: regress: drop setting LC_TIME
common.sh sets LC_ALL=C which makes this change unnecessary now.
Patch from Christian "naddy" Weisgerber.