Skip to content

Commit

Permalink
Merge pull request #134 from giuseppe/dist-yajl-symlink
Browse files Browse the repository at this point in the history
Makefile.am: distribute the src/yajl symlink
  • Loading branch information
giuseppe authored May 7, 2024
2 parents c715dcd + 2236d50 commit 7b27d0a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,17 @@ jobs:
install: |
apt-get update -q -y
apt-get install -q -y python3 automake libtool autotools-dev git make cmake pkg-config gcc wget libyajl-dev
apt-get install -q -y python3 automake libtool autotools-dev git make cmake pkg-config gcc wget xz-utils
run: |
find $(pwd) -name '.git' -exec bash -c 'git config --global --add safe.directory ${0%/.git}' {} \;
./autogen.sh
./configure CFLAGS='-Wall -Wextra -Werror'
make -j $(nproc) distcheck
# check that the working dir is clean
git describe --broken --dirty --all | grep -qv dirty
make clean
./autogen.sh --enable-embedded-yajl
./configure --enable-embedded-yajl CFLAGS='-Wall -Wextra -Werror'
make -j $(nproc) distcheck
make -j $(nproc) distcheck DISTCHECK_CONFIGURE_FLAGS="--enable-embedded-yajl"
# check that the working dir is clean
git describe --broken --dirty --all | grep -qv dirty
make clean
test_and_build_rust_bindings:
name: test and build rust bindings
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,8 @@ EXTRA_DIST = autogen.sh \
runtime-spec \
image-spec \
src/ocispec/json_common.h \
src/ocispec/json_common.c
src/ocispec/json_common.c \
src/yajl

sync:
(cd image-spec; git pull https://github.com/opencontainers/image-spec)
Expand Down
5 changes: 4 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ case "${enableval}" in
esac],[embedded_yajl=false])

AM_CONDITIONAL([HAVE_EMBEDDED_YAJL], [test x"$embedded_yajl" = xtrue])
AM_COND_IF([HAVE_EMBEDDED_YAJL], [], [PKG_CHECK_MODULES([YAJL], [yajl >= 2.1.0])])
AM_COND_IF([HAVE_EMBEDDED_YAJL], [], [
AC_SEARCH_LIBS(yajl_tree_get, [yajl], [AC_DEFINE([HAVE_YAJL], 1, [Define if libyajl is available])], [AC_MSG_ERROR([*** libyajl headers not found])])
PKG_CHECK_MODULES([YAJL], [yajl >= 2.0.0])
])

# Optionally install the library.
AC_ARG_ENABLE(libocispec-install,
Expand Down

0 comments on commit 7b27d0a

Please sign in to comment.