-
-
Notifications
You must be signed in to change notification settings - Fork 481
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
spkg-configure.m4 for pari #28242
Comments
comment:1
we should use sample GP commands to test for packages, as in https://pari.math.u-bordeaux.fr/packages.html:
if only the small version of need to figure out how to test for |
comment:2
The following may be used to test whether libpari knows about #include <pari/pari.h> /* cc t.c -lpari && ./a.out */
GEN t_t(long prec)
{
GEN x = pol_x(fetch_user_var("x"));
return gel(polgalois(gsubgs(gpowgs(x, 8), 2), prec), 1);
}
int main()
{
GEN r;
pari_init(5000000, 0);
r=t_t(100);
pari_printf("group order=%P4d\n", r); /* should be 16 */
pari_close();
return 0;
} |
This comment has been minimized.
This comment has been minimized.
Branch: u/dimpase/packages/pariconfig |
New commits:
|
Commit: |
Author: Dima Pasechnik |
comment:4
This is still WIP, more to be done here. |
comment:7
still needed to sort out dependencies properly, and provide spkg-configure.m4 for gp2c. For installing gp2c, one must provide pari.cfg location, something that it's not really discoverable. (save for |
comment:8
It seems that all the PARI package "deps" should be checked within spkg-configure of PARI itself (as PARI does not provide means to install extra packages, we need to disable system PARI lacking these packages). -- the branch does not yet implement this. And not only standard packages pari_galdata and The optional package pari_nftables is clearly an afterthought (not used anywhere in sagelib, too), and I don't want to rule out an otherwise OK installation of PARI/GP, is it is missing (e.g. Debian doesn't even ship it, although Fedora does ship it; not sure about Conda and Gentoo). pari_jupyter should be installable regardless. gp2c only needs the correct location of |
comment:9
Distros have a bone to pick with the data packages from pari. That may be why some distro decided not to bother. There are ways to install the stuff manually if you want too. Upstream is committing the cardinal sin of not versioning their data packages. The tarball is always called exactly the same - even when the content is changed. You understand that's a bit of a problem for automated build scripts that rely on a stored checksum to verify that the package is authentic. For info, I had the stuff packaged in Gentoo and I recently updated it. |
comment:10
I'm trying to convince the upstream to make configuration info for libpari discoverable. |
comment:11
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:14
Replying to @dimpase:
Is there a way to avoid checking for the optional packages? Maybe build PARI from SPKG if the optional package is not found, but requested.
I just packaged all the optional PARI database packages on conda including nftables.
Conda puts it into |
comment:15
Someone put |
comment:16
by the way, it seems that cypari needs either a patch or an amendend
which appears to indicate that it does not try to figure out where PARI/GP docs are, but just assumes that they are in |
comment:17
Oops, this is simply due to
in OK, I can move this stuff into |
comment:39
Thanks. Works for me |
comment:40
Sorry for the late intervention.
That bit causes me trouble when building the doc
|
comment:41
I would be happy for this ticket to proceed as is and the issue to be addressed in a follow up ticket. But the general assumption should be sage-on-distros don't run configure. In fact we have pushed a few things so that sage-distro can run without |
comment:42
Follow up will take place at #28341. |
Changed branch from u/dimpase/packages/pariconfig to |
Changed commit from |
comment:44
Can Archlinux get more PARI packages (as much as Debian 10), so that its PARI may be used? |
comment:45
Replying to @dimpase:
Standard packages are available from the official repositories, optional packages can easily be installed from AUR - https://aur.archlinux.org/packages/?K=pari- |
comment:46
Follow up at #29319 |
comment:47
Replying to @dimpase:
Follow up for this problem: #29342 |
comment:48
I was working on FreeBSD with 9.1.beta9 and pari as a system package without any problem related to gp / pari. Yesterday I switched to 9.1.rc1, with the same external package, and now the compilation of cysignals aborts with this message:
Anyone with the same problem on other OS, or is it specific to FreeBSD? |
comment:49
Hmm, not sure what's happening here. I don't think I saw this before. Something related to |
comment:50
But it seems that this is disabled when Sage builds Pari? In build/pkgs/pari/spkg-install.in there is "unset enable_tls". |
comment:51
I mean to say that we can use Pari built with Is Pari built with pthread on FreeBSD? |
comment:52
On the other hand, In view of this, linking |
comment:53
Actually the problem was different! Pari's spkg-configure.m4 is broken: I thought that I was using pari from the system packages, but I was not. spkg-configure.m4 includes unescaped [ ] and it produces an error. A fix could be:
(But ATM I removed this part) |
comment:54
That's fixed already by #29554 |
comment:55
Replying to @mkoeppe:
however, this still begs a question why cysignals is built with |
libpari-gmp is a dependency of many packages, so it's important to be able to use the one from the system.
We check that system's PARI/GP environment is close enough to what we would install in Sage (i.e. versions of GP and libpari, and that they share the datadir). Also, PARI packages need to be checked.
CC: @embray @kiwifb @isuruf @timokau @antonio-rojas
Component: build: configure
Author: Dima Pasechnik
Branch:
dd2b3fa
Reviewer: Isuru Fernando
Issue created by migration from https://trac.sagemath.org/ticket/28242
The text was updated successfully, but these errors were encountered: