Skip to content

Commit

Permalink
Merge trunk for release 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
herrhotzenplotz committed Sep 21, 2023
2 parents a6e295d + 36160ad commit 4aa4097
Show file tree
Hide file tree
Showing 242 changed files with 9,832 additions and 6,736 deletions.
10 changes: 5 additions & 5 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ alpine-amd64:
- linux
image: alpine:3.17
script:
- apk add libcurl gcc autoconf automake libtool make pkgconf musl-dev curl-dev flex bison xz gzip bzip2
- apk add libcurl gcc autoconf automake libtool make pkgconf musl-dev curl-dev flex bison xz gzip bzip2 libbsd-dev kyua atf-dev
- ./autogen.sh
- ./configure CFLAGS='-std=c99 -pedantic -Wall -Wextra -Werror' CPPFLAGS='-D_XOPEN_SOURCE=600' || (cat config.log && exit 42)
- ./configure CFLAGS='-std=c99 -pedantic -Wall -Wextra -Werror' CPPFLAGS='-D_XOPEN_SOURCE=600' --disable-silent-rules || (cat config.log && exit 42)
- make
- make distcheck

Expand All @@ -25,7 +25,7 @@ freebsd-arm64:
- arm64
script:
- ./autogen.sh
- ./configure LEX=flex YACC=byacc CFLAGS='-std=c99 -pedantic -Wall -Wextra -Wno-misleading-indentation -Werror' CPPFLAGS='-D_XOPEN_SOURCE=600' || (cat config.log && exit 42)
- ./configure LEX=flex YACC=byacc CFLAGS='-std=c99 -pedantic -Wall -Wextra -Wno-misleading-indentation -Werror' CPPFLAGS='-D_XOPEN_SOURCE=600' --disable-silent-rules || (cat config.log && exit 42)
- make
- make distcheck

Expand All @@ -50,8 +50,8 @@ debian-amd64:
image: debian:bullseye
script:
- apt-get update
- apt-get install -y --no-install-recommends build-essential libcurl4-openssl-dev pkgconf autotools-dev bison flex make autoconf automake libtool
- apt-get install -y --no-install-recommends build-essential libcurl4-openssl-dev pkgconf autotools-dev bison flex make autoconf automake libtool libbsd-dev libatf-dev kyua
- ./autogen.sh
- ./configure CFLAGS='-std=c99 -pedantic -Wall -Wextra -Werror -Wno-misleading-indentation' CPPFLAGS='-D_XOPEN_SOURCE=600' || (cat config.log && exit 42)
- ./configure CFLAGS='-std=c99 -pedantic -Wall -Wextra -Werror -Wno-misleading-indentation' CPPFLAGS='-D_XOPEN_SOURCE=600' --disable-silent-rules || (cat config.log && exit 42)
- make
- make distcheck
26 changes: 26 additions & 0 deletions .hgignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
syntax: glob
build/*
Makefile.in
aclocal.m4
ar-lib
autom4te.cache/
compile
config.guess
config.h.in
config.sub
configure
depcomp
install-sh
ltmain.sh
m4/libtool.m4
m4/ltoptions.m4
m4/ltsugar.m4
m4/ltversion.m4
m4/lt~obsolete.m4
missing
test-driver
ylwrap
*~
docs/tutorial/*.html
TAGS
build-*/
12 changes: 12 additions & 0 deletions .hotzrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# local kakrc for gcli

# We build inside the build directory
cd build

set-option global ctagscmd "uctags -R --fields=+S"
set-option global ctagspaths "../include ../src ../thirdparty"

hook global BufSetOption filetype=c %{
add-highlighter buffer/ show-whitespaces -spc " "
smarttab
}
42 changes: 42 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Changelog

This changelog does not follow semantic versioning.


## 2.0.0 (2023-Sep-21)

### Added

- This changelog has been added
- gcli is now built as a shared or static library which the gcli tool links against
This implied so many changes that the major version number was bumped.
- Added a package-config file for libgcli
- Added a `-L` flag to the `issues` and `pulls` subcommand to allow
filtering by label
- A work-in-progress tutorial has been added and is available at
[the GCLI directory](https://herrhotzenplotz.de/gcli/tutorial) on
my website.
- Gitlab jobs now show coverage information

### Fixed

- Parallel builds in autotools have been re-enabled
- Improved error messages in various places
- Bad roff syntax in manual pages has been fixed

### Changed

- the `gcli pulls create` subcommand does not print the URL to the
created release anymore.
- The test suite is now using [atf-c](https://github.com/jmmv/atf)
and [kyua](https://github.com/jmmv/kyua). These are dependencies
if you want to run the tests. These tools are installed out of
the box on most BSDs.
- A newly introduced dependency is the `sys/queue.h` header. On
GNU/Linux systems you might need to install it as part of libbsd.

### Removed

- The reviews subcommand has been removed because it was generally useless
This feature will be reimplemented as a WIP of
[#189](https://gitlab.com/herrhotzenplotz/gcli/-/issues/189)
15 changes: 13 additions & 2 deletions HACKING.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,19 @@ Then you can configure each build directory with appropriate options:
$ ../configure \
CC=/usr/bin/cc \
CFLAGS='-std=iso9899:1999 -pedantic -Wall -Wextra -Wno-misleading-indentation -Werror -g -O0' \
LDFLAGS='-g'
LDFLAGS='-g' \
--disable-shared

The above will give you a fully debuggable and build with strict C99
compiler errors. I very much suggest that you use those options while
working on and debugging gcli.

*Note*: The `--disable-shared` is required because if you build a
shared version of libgcli, libtool will replace the gcli binary with a
shell script that alters the dld search path to read the correct
`libgcli.so`. Because of `build/gcli` now not being a an ELF
executable but a shell script debuggers can't load gcli properly.

#### Sanitized Builds

I sometimes enable the sanitizer features of the C Compiler to check
Expand All @@ -69,7 +76,8 @@ for common bugs:
CFLAGS='-std=iso9899:1999 -pedantic -Wall -Wextra
-Wno-misleading-indentation -Werror -g -O0
-fsanitize=address,undefined' \
LDFLAGS=-g
LDFLAGS=-g \
--disable-shared

#### Cross-Compilation

Expand All @@ -91,6 +99,9 @@ to cram it into the LDFLAGS.

## Tests

The test suite depends on [Kyua](https://github.com/jmmv/kyua) and
[libatf-c](https://github.com/jmmv/atf).

Before submitting patches please make sure that your changes pass the
test suite:

Expand Down
Loading

0 comments on commit 4aa4097

Please sign in to comment.