Skip to content

Commit c317679

Browse files
committed
REBASEME: Try to fix Hydra build
1 parent b765e6e commit c317679

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

flake.nix

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,27 @@
4646
# target the same way nixpkgs does for isStatic platforms.
4747
static-liburing = final.liburing.overrideAttrs (old: {
4848
dontdisableStatic = true;
49+
# Workaround for macOS builders: recreate man page symlinks that may be lost
50+
# during cross-compilation from Darwin to Linux
51+
preInstall = (old.preInstall or "") + ''
52+
echo "=== LIBURING PREINSTALL DEBUG ==="
53+
echo "PWD: $(pwd)"
54+
echo "Checking man directory contents BEFORE fix:"
55+
ls -la man/ | grep -E "(IO_URING|io_uring).*VERSION" || echo "No VERSION-related files found"
56+
57+
# Always recreate symlinks to ensure they exist for install phase
58+
echo "Creating/recreating man page symlinks..."
59+
ln -sf io_uring_check_version.3 man/IO_URING_CHECK_VERSION.3
60+
ln -sf io_uring_check_version.3 man/IO_URING_VERSION_MAJOR.3
61+
ln -sf io_uring_check_version.3 man/IO_URING_VERSION_MINOR.3
62+
ln -sf io_uring_major_version.3 man/io_uring_major_version.3 2>/dev/null || true
63+
ln -sf io_uring_minor_version.3 man/io_uring_minor_version.3 2>/dev/null || true
64+
65+
echo "Checking man directory contents AFTER fix:"
66+
ls -la man/ | grep -E "(IO_URING|io_uring).*VERSION"
67+
echo "=== END LIBURING PREINSTALL DEBUG ==="
68+
'';
69+
4970
postInstall = ''
5071
# Always builds both static and dynamic libraries, so we need to remove the
5172
# dynamic libraries.

0 commit comments

Comments
 (0)