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

Fix gp2c spkg-configure #30231

Closed
mkoeppe opened this issue Jul 27, 2020 · 16 comments
Closed

Fix gp2c spkg-configure #30231

mkoeppe opened this issue Jul 27, 2020 · 16 comments

Comments

@mkoeppe
Copy link
Member

mkoeppe commented Jul 27, 2020

https://groups.google.com/d/msg/sage-devel/rZpwyAT2EZU/jiNWFinQBgAJ

Broken in b5d16d9 (#29491)

CC: @dimpase @orlitzky @slel

Component: build: configure

Keywords: pari, gp2c, pari.cfg

Author: Michael Orlitzky

Branch/Commit: 252633c

Reviewer: Samuel Lelièvre, Matthias Koeppe

Issue created by migration from https://trac.sagemath.org/ticket/30231

@mkoeppe mkoeppe added this to the sage-9.2 milestone Jul 27, 2020
@orlitzky
Copy link
Contributor

Branch: u/mjo/ticket/30231

@orlitzky
Copy link
Contributor

Author: Michael Orlitzky

@orlitzky
Copy link
Contributor

Commit: 8f1b8bd

@orlitzky
Copy link
Contributor

comment:1

I need to think about this a little harder, but this new spkg-configure seems to do the trick. The basic problem is that the check phase itself can be skipped with --with-system-gp2c=no, but the location of pari.cfg is needed regardless. Therefore we can't do any calculation that affects discovery of pari.cfg in the check phase. The new version does it all in pre/post-check instead.


New commits:

8f1b8bdTrac #30231: compute libpari_pari_cfg entirely in pre-post/check.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 28, 2020

Changed commit from 8f1b8bd to 252633c

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 28, 2020

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

252633cTrac #30231: compute libpari_pari_cfg entirely in pre-post/check.

@dimpase
Copy link
Member

dimpase commented Jul 29, 2020

comment:3

SAGE_SPKG_DEPCHECK was never meant to be called in pre-post/check (certainly never tested to do this, I think).
Not sure whether this will work, without testing all the corner cases.

@mkoeppe
Copy link
Member Author

mkoeppe commented Jul 29, 2020

comment:4

Please run it on GitHub CI and post the link...

@slel
Copy link
Member

slel commented Jul 30, 2020

comment:5

Lacking m4 skills to do a full review, but this
solves the problem I reported on sage-devel for me.

@mkoeppe
Copy link
Member Author

mkoeppe commented Jul 30, 2020

comment:6

Tests run at https://github.com/mkoeppe/sage/actions/runs/188912339

@mkoeppe
Copy link
Member Author

mkoeppe commented Jul 31, 2020

comment:7

The run hasn't quite completed yet, but it's looking fine (as expected)

@mkoeppe
Copy link
Member Author

mkoeppe commented Jul 31, 2020

Reviewer: Samuel Lelièvre, Matthias Koeppe

@orlitzky
Copy link
Contributor

comment:10

Someday pari should be able to tell us where it put that stupid file, but until then, I can't think of a better way to do it than this.

@slel
Copy link
Member

slel commented Jul 31, 2020

Changed keywords from none to pari, gp2c, pari.cfg

@dimpase
Copy link
Member

dimpase commented Jul 31, 2020

comment:12

Replying to @orlitzky:

Someday pari should be able to tell us where it put that stupid file, but until then, I can't think of a better way to do it than this.

I discussed this with upstream. The response was that it is left to pari/gp users to place it anywhere they want, full stop.

@vbraun
Copy link
Member

vbraun commented Aug 7, 2020

Changed branch from u/mjo/ticket/30231 to 252633c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants