Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

c-ares configure fails with missing test/Makefile.in #2029

Open
mtelka opened this issue Apr 6, 2024 · 0 comments
Open

c-ares configure fails with missing test/Makefile.in #2029

mtelka opened this issue Apr 6, 2024 · 0 comments

Comments

@mtelka
Copy link
Contributor

mtelka commented Apr 6, 2024

The c-ares configure could fail with missing test/Makefile.in.

This is because:

  • the libcares copy in deps/c-ares does not contains tests (the test directory is missing), and
  • building of tests is enabled by default and so when the configure detects all prerequisites for building tests it tries to do so.

Suggested fix:

--- gevent-24.2.1/_setupares.py.orig
+++ gevent-24.2.1/_setupares.py
@@ -42,7 +42,7 @@
 ares_configure_command = ' '.join([
     "(cd ", quoted_dep_abspath('c-ares'),
     " && if [ -r include/ares_build.h ]; then cp include/ares_build.h include/ares_build.h.orig; fi ",
-    " && sh ./configure --disable-dependency-tracking -C " + cflags,
+    " && sh ./configure --disable-dependency-tracking --disable-tests -C " + cflags,
     " && cp src/lib/ares_config.h include/ares_build.h \"$OLDPWD\" ",
     " && cat include/ares_build.h ",
     " && if [ -r include/ares_build.h.orig ]; then mv include/ares_build.h.orig include/ares_build.h; fi)",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant