Skip to content

Conversation

mkoeppe
Copy link
Contributor

@mkoeppe mkoeppe commented May 20, 2024

This is to alert users on WSL early about a source tree that has not been cloned correctly.

This will save users from running into build errors later, such as the one reported in https://groups.google.com/g/sage-devel/c/I6_yXdtMwQk/m/xQZoZFSGBgAJ

Fixes #37117

📝 Checklist

  • The title is concise and informative.
  • The description explains in detail what this PR is about.
  • I have linked a relevant issue or discussion.
  • I have created tests covering the changes.
  • I have updated the documentation and checked the documentation preview.

⌛ Dependencies

Copy link

github-actions bot commented May 20, 2024

Documentation preview for this PR (built with commit 53caf37; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

@@ -173,19 +173,19 @@ AC_MSG_CHECKING([the symbolic links in the source tree])
AS_IF([test -L build/pkgs/liblzma/package-version.txt], [dnl OK
AC_MSG_RESULT([intact])
Copy link
Collaborator

@kwankyu kwankyu May 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is build/pkgs/liblzma/package-version.txt right? Isn't it build/pkgs/sagelib/src?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps it doesn't matter. But as we also expect that build/pkgs/sagelib/src is a symbolic link and because subsequent checks are also about build/pkgs/sagelib/src, it is a bit confusing...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests are designed so that they also work when the configure script runs out of pkgs/sage-conf_pypi. In this distribution, there is no symlink build/pkgs/sagelib/src.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK. At least I can see that the test passes for ordinary sdist case at line 174 and sage-conf_pypi case at line 178, and otherwise something is wrong.

Copy link
Collaborator

@kwankyu kwankyu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. LGTM.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented May 31, 2024

Thanks!

@vbraun vbraun merged commit 306e6a6 into sagemath:develop Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

failed to build source code 10.2
3 participants