From 837d8ec64f50b9e0466238c59f109b9ad97c0ba1 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Wed, 1 Jul 2026 21:04:06 -0700 Subject: [PATCH 1/7] linux: Update actions/checkout to v7 --- .github/workflows/linux.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 5fab1030..f71a4720 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -10,7 +10,7 @@ jobs: build_linux_autotools_default_args: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v7 - name: Install doc packages run: sudo apt-get install -y texlive texinfo texi2html doxygen - name: create configure @@ -27,7 +27,7 @@ jobs: build_linux_autotools_other_args: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v7 - name: Install doc packages run: sudo apt-get install -y texlive texinfo texi2html doxygen - name: create configure @@ -44,7 +44,7 @@ jobs: build_linux_autotools_gcc: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v7 - name: create configure run: autoreconf -i - name: configure gcc @@ -57,7 +57,7 @@ jobs: build_linux_autotools_clang: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v7 - name: create configure run: autoreconf -i - name: configure clang @@ -68,7 +68,7 @@ jobs: build_linux_autotools_crosscompile_mingw32: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v7 - name: Install doc packages run: sudo apt-get install -y gcc-mingw-w64 - name: create configure @@ -82,7 +82,7 @@ jobs: build_linux_autotools_prereleasecheck: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v7 - name: Install doc packages run: sudo apt-get install -y texlive texinfo texi2html doxygen - name: create configure @@ -95,7 +95,7 @@ jobs: build_linux_autotools_docs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v7 - name: Install doc packages run: sudo apt-get install -y texlive texinfo texi2html doxygen - name: create configure @@ -110,7 +110,7 @@ jobs: build_linux_autotools_example: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v7 - name: Install doc packages run: sudo apt-get install -y texlive texinfo texi2html doxygen - name: create configure @@ -137,7 +137,7 @@ jobs: build_linux_cmake: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v7 - name: cmake cversion run: cmake --version - name: create configs @@ -152,7 +152,7 @@ jobs: build_linux_scanbuild: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v7 - name: Install scan-build packages run: sudo apt-get install -y clang-tools - name: create configure @@ -172,7 +172,7 @@ jobs: build_linux_cmake_project_usage: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v7 - name: run test run: | cmake --version || exit 1 From 7fe1d45f0ddae88699aeaa48eb32c906a6794bef Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Wed, 1 Jul 2026 21:04:42 -0700 Subject: [PATCH 2/7] osx: Update actions/checkout to v7 --- .github/workflows/osx.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/osx.yml b/.github/workflows/osx.yml index 5fbc801a..5b3cd2ac 100644 --- a/.github/workflows/osx.yml +++ b/.github/workflows/osx.yml @@ -10,7 +10,7 @@ jobs: build_osx_autotools_default_args: runs-on: macos-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v7 # Brew may not have permission to install its packages - name: change brew install folder permissions run: sudo chmod -R a+rwx /usr/local/share/ || mkdir -p /usr/local/share/ -m a+rwx @@ -36,7 +36,7 @@ jobs: build_osx_autotools_other_args: runs-on: macos-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v7 # Brew may not have permission to install its packages - name: change brew install folder permissions run: sudo chmod -R a+rwx /usr/local/share/ || mkdir -p /usr/local/share/ -m a+rwx @@ -62,7 +62,7 @@ jobs: build_osx_autotools_gcc: runs-on: macos-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v7 # Brew may not have permission to install its packages - name: change brew install folder permissions run: sudo chmod -R a+rwx /usr/local/share/ || mkdir -p /usr/local/share/ -m a+rwx @@ -82,7 +82,7 @@ jobs: build_osx_autotools_clang: runs-on: macos-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v7 # Brew may not have permission to install its packages - name: change brew install folder permissions run: sudo chmod -R a+rwx /usr/local/share/ || mkdir -p /usr/local/share/ -m a+rwx @@ -102,7 +102,7 @@ jobs: build_osx_autotools_example: runs-on: macos-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v7 # Brew may not have permission to install its packages - name: change brew install folder permissions run: sudo chmod -R a+rwx /usr/local/share/ || mkdir -p /usr/local/share/ -m a+rwx @@ -138,7 +138,7 @@ jobs: build_osx_cmake: runs-on: macos-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v7 - name: cmake cversion run: cmake --version - name: create configs From f500bc5752bb728b690dce2b9a1f0dddecd5f62e Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Tue, 30 Jun 2026 20:54:16 -0700 Subject: [PATCH 3/7] osx: Install libtool too --- .github/workflows/osx.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/osx.yml b/.github/workflows/osx.yml index 5b3cd2ac..aee46256 100644 --- a/.github/workflows/osx.yml +++ b/.github/workflows/osx.yml @@ -20,6 +20,8 @@ jobs: run: brew install texi2html doxygen - name: install automake run: brew install automake + - name: install libtool + run: brew install libtool - name: install pkg-config run: brew install pkgconfig - name: create configure @@ -46,6 +48,8 @@ jobs: run: brew install texi2html doxygen - name: install automake run: brew install automake + - name: install libtool + run: brew install libtool - name: install pkg-config run: brew install pkgconfig - name: create configure @@ -68,6 +72,8 @@ jobs: run: sudo chmod -R a+rwx /usr/local/share/ || mkdir -p /usr/local/share/ -m a+rwx - name: install automake run: brew install automake + - name: install libtool + run: brew install libtool - name: install pkg-config run: brew install pkgconfig - name: create configure @@ -88,6 +94,8 @@ jobs: run: sudo chmod -R a+rwx /usr/local/share/ || mkdir -p /usr/local/share/ -m a+rwx - name: install automake run: brew install automake + - name: install libtool + run: brew install libtool - name: install pkg-config run: brew install pkgconfig - name: create configure @@ -112,6 +120,8 @@ jobs: run: brew install texi2html doxygen - name: install automake run: brew install automake + - name: install libtool + run: brew install libtool - name: install pkg-config run: brew install pkgconfig - name: create configure From 58b8347e7f2ab8b90cf5107c0d95a02cbb187a21 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Tue, 30 Jun 2026 21:06:42 -0700 Subject: [PATCH 4/7] osx: Install texinfo too for makeinfo --- .github/workflows/osx.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/osx.yml b/.github/workflows/osx.yml index aee46256..fe9dd8e2 100644 --- a/.github/workflows/osx.yml +++ b/.github/workflows/osx.yml @@ -17,7 +17,7 @@ jobs: - name: install maxtex run: brew install --cask mactex - name: install doc programs - run: brew install texi2html doxygen + run: brew install texi2html doxygen texinfo - name: install automake run: brew install automake - name: install libtool @@ -45,7 +45,7 @@ jobs: - name: install maxtex run: brew install --cask mactex - name: install doc programs - run: brew install texi2html doxygen + run: brew install texi2html doxygen texinfo - name: install automake run: brew install automake - name: install libtool @@ -117,7 +117,7 @@ jobs: - name: install maxtex run: brew install --cask mactex - name: install doc programs - run: brew install texi2html doxygen + run: brew install texi2html doxygen texinfo - name: install automake run: brew install automake - name: install libtool From 8a5e9e659c9498a328b61613655b3e14f2b9e9f8 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Tue, 30 Jun 2026 21:20:52 -0700 Subject: [PATCH 5/7] osx: Try texlive (like Linux) rather than mactex. --- .github/workflows/osx.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/osx.yml b/.github/workflows/osx.yml index fe9dd8e2..a1100097 100644 --- a/.github/workflows/osx.yml +++ b/.github/workflows/osx.yml @@ -14,10 +14,8 @@ jobs: # Brew may not have permission to install its packages - name: change brew install folder permissions run: sudo chmod -R a+rwx /usr/local/share/ || mkdir -p /usr/local/share/ -m a+rwx - - name: install maxtex - run: brew install --cask mactex - name: install doc programs - run: brew install texi2html doxygen texinfo + run: brew install texlive texi2html doxygen texinfo - name: install automake run: brew install automake - name: install libtool @@ -42,10 +40,8 @@ jobs: # Brew may not have permission to install its packages - name: change brew install folder permissions run: sudo chmod -R a+rwx /usr/local/share/ || mkdir -p /usr/local/share/ -m a+rwx - - name: install maxtex - run: brew install --cask mactex - name: install doc programs - run: brew install texi2html doxygen texinfo + run: brew install texlive texi2html doxygen texinfo - name: install automake run: brew install automake - name: install libtool @@ -114,10 +110,8 @@ jobs: # Brew may not have permission to install its packages - name: change brew install folder permissions run: sudo chmod -R a+rwx /usr/local/share/ || mkdir -p /usr/local/share/ -m a+rwx - - name: install maxtex - run: brew install --cask mactex - name: install doc programs - run: brew install texi2html doxygen texinfo + run: brew install texlive texi2html doxygen texinfo - name: install automake run: brew install automake - name: install libtool From dd3be6e4ac6d52efb5c4d92ab89ed850d4995416 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Wed, 1 Jul 2026 21:37:50 -0700 Subject: [PATCH 6/7] timer_{delete,settime} must always return --- lib/timer_delete.c | 1 + lib/timer_settime.c | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/timer_delete.c b/lib/timer_delete.c index 4b0af79f..5ac4fd52 100644 --- a/lib/timer_delete.c +++ b/lib/timer_delete.c @@ -57,5 +57,6 @@ int timer_delete(timer_t timerid CK_ATTRIBUTE_UNUSED) * There is no support for alternative timers, so there is nothing * to delete or reset. */ + return 0; #endif } diff --git a/lib/timer_settime.c b/lib/timer_settime.c index 4e194df1..e03012e2 100644 --- a/lib/timer_settime.c +++ b/lib/timer_settime.c @@ -61,5 +61,6 @@ int timer_settime(timer_t timerid CK_ATTRIBUTE_UNUSED, /* * There is no support for timers on the platform. */ + return 0; #endif } From e8c8487f8c968cc6efe81e5a65dfafbe91e891e8 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Wed, 1 Jul 2026 21:50:40 -0700 Subject: [PATCH 7/7] CMake: Ensure HAVE_SETITIMER can be set Since `cmake/config.h.in` gets filled in by calls to `check_function_exists()` within `CMakeLists.txt`, it needs an entry for `HAVE_SETITIMER` in order for it to propagate to the generated `config.h` file. --- CMakeLists.txt | 1 + cmake/config.h.in | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ff4336b9..be54b579 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -182,6 +182,7 @@ check_function_exists(mkstemp HAVE_MKSTEMP) check_function_exists(realloc HAVE_REALLOC) check_function_exists(setenv HAVE_DECL_SETENV) check_function_exists(sigaction HAVE_SIGACTION) +check_function_exists(setitimer HAVE_SETITIMER) check_function_exists(strdup HAVE_DECL_STRDUP) check_function_exists(strsignal HAVE_DECL_STRSIGNAL) check_function_exists(_getpid HAVE__GETPID) diff --git a/cmake/config.h.in b/cmake/config.h.in index cea2f3b3..9ef7b560 100644 --- a/cmake/config.h.in +++ b/cmake/config.h.in @@ -270,6 +270,9 @@ typedef uint64_t uintmax_t; /* Define to 1 if you have the 'sigaction' function. */ #cmakedefine HAVE_SIGACTION 1 +/* Define to 1 if you have the 'setitimer' function. */ +#cmakedefine HAVE_SETITIMER 1 + /* Define to 1 if you have the header file. */ #cmakedefine HAVE_STDARG_H 1