From ed121ba302a484f6fd97ed49277e793d992ab800 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89loi=20Rivard?= Date: Thu, 17 Sep 2026 22:23:11 +0200 Subject: [PATCH] chore: bump to libfaketime 0.9.13 --- .github/workflows/tests.yaml | 2 +- CHANGELOG.md | 6 ++++++ README.md | 2 +- libfaketime/_version.py | 2 +- libfaketime/vendor/libfaketime | 2 +- setup.py | 5 ++++- 6 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 31d5c48..f76cf57 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -36,7 +36,7 @@ jobs: key: pip|${{ hashFiles('setup.py') }}|${{ hashFiles('setup.cfg') }} - run: pip install tox - run: git submodule update --init --force - - run: env FAKETIME_COMPILE_CFLAGS="-UFAKE_STAT -UFAKE_UTIME -UFAKE_SLEEP" make -C libfaketime/vendor/libfaketime + - run: env FAKETIME_COMPILE_CFLAGS="-UFAKE_STAT -UFAKE_UTIME -UFAKE_SLEEP -Wno-unused-function" make -C libfaketime/vendor/libfaketime if: runner.os == 'Linux' - run: make -C libfaketime/vendor/libfaketime if: runner.os == 'macOS' diff --git a/CHANGELOG.md b/CHANGELOG.md index dab933f..59c871c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,12 @@ Changelog [Semantic versioning](http://semver.org/) is used. +3.1.0 +----- + +- upgrade underlying libfaketime to 0.9.13 without modifications, fixing build failures with recent glibc versions and compilers defaulting to ISO C23 +- build the vendored libfaketime with `-Wno-unused-function`, to work around an upstream build failure in 0.9.13 + 3.0.1 ----- released 2026-08-19 diff --git a/README.md b/README.md index 0cda3fa..f77cb3f 100644 --- a/README.md +++ b/README.md @@ -183,7 +183,7 @@ Contributions are welcome! You should compile libfaketime before running tests: ```bash git submodule init --update # For Linux: -env FAKETIME_COMPILE_CFLAGS="-UFAKE_STAT -UFAKE_UTIME -UFAKE_SLEEP" make -C libfaketime/vendor/libfaketime +env FAKETIME_COMPILE_CFLAGS="-UFAKE_STAT -UFAKE_UTIME -UFAKE_SLEEP -Wno-unused-function" make -C libfaketime/vendor/libfaketime # For macOS env make -C libfaketime/vendor/libfaketime ``` diff --git a/libfaketime/_version.py b/libfaketime/_version.py index 0552768..f5f41e5 100644 --- a/libfaketime/_version.py +++ b/libfaketime/_version.py @@ -1 +1 @@ -__version__ = "3.0.1" +__version__ = "3.1.0" diff --git a/libfaketime/vendor/libfaketime b/libfaketime/vendor/libfaketime index d475b92..86b37fd 160000 --- a/libfaketime/vendor/libfaketime +++ b/libfaketime/vendor/libfaketime @@ -1 +1 @@ -Subproject commit d475b925943ad404c6c728ac868dc73949e7281c +Subproject commit 86b37fde2fed7336ea2d0c17928e3015a55d9b4a diff --git a/setup.py b/setup.py index 664693e..5c60be7 100644 --- a/setup.py +++ b/setup.py @@ -40,10 +40,13 @@ class CustomInstall(install): def run(self): self.my_outputs = [] if sys.platform in ("linux", "linux2"): + # -Wno-unused-function works around a libfaketime 0.9.13 build + # failure under -UFAKE_SLEEP; drop it once 0.9.14 is vendored. subprocess.check_call( [ "env", - "FAKETIME_COMPILE_CFLAGS=-UFAKE_STAT -UFAKE_UTIME -UFAKE_SLEEP", + "FAKETIME_COMPILE_CFLAGS=" + "-UFAKE_STAT -UFAKE_UTIME -UFAKE_SLEEP -Wno-unused-function", "make", "-C", _vendor_path,