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

spkg-configure.m4 for giac #29541

Closed
thierry-FreeBSD opened this issue Apr 21, 2020 · 58 comments
Closed

spkg-configure.m4 for giac #29541

thierry-FreeBSD opened this issue Apr 21, 2020 · 58 comments

Comments

@thierry-FreeBSD
Copy link

This ticket adds an spkg-configure.m4 for giac, in order to use it from a system package if possible.

https://repology.org/project/giac/versions

See also:

CC: @dimpase @orlitzky @kiwifb @frederichan-IMJPRG @sagetrac-parisse @sheerluck @antonio-rojas @kliem @tobihan

Component: build: configure

Keywords: spkg-configure giac

Author: Thierry Thomas, Matthias Koeppe

Branch/Commit: 0df15df

Reviewer: Isuru Fernando

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

@thierry-FreeBSD
Copy link
Author

spkg-configure.m4 to be put under build/pkgs/giac/

@mkoeppe
Copy link
Contributor

mkoeppe commented Apr 21, 2020

comment:1

Attachment: spkg-configure.m4.gz

@mkoeppe mkoeppe modified the milestones: sage-9.1, sage-9.2 Apr 21, 2020
@mkoeppe

This comment has been minimized.

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 10, 2020

comment:4

Do we know which versions of system giac are acceptable? According to our update tickets (see #29552) >= 1.5.0-63 and < 1.6 are fine.

What does the check for ConvertUTF16toUTF8 in the proposed spkg-configure.m4 test? Does this test for a minimum version?

Is there a way to test the patchlevel of giac? giac --version does not include this information.

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 10, 2020

Changed author from gh-thierry-FreeBSD to Thierry Thomas

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 10, 2020

Branch: u/mkoeppe/spkg_configure_m4_for_giac

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 10, 2020

Commit: 43ee06b

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 10, 2020

Branch pushed to git repo; I updated commit sha1. New commits:

43ee06bbuild/pkgs/giac/distros: Add debian, fedora, opensuse

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 10, 2020

Changed author from Thierry Thomas to Thierry Thomas, Matthias Koeppe

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 10, 2020

Reviewer: github.com/mkoeppe/sage/actions/runs/203238491

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 12, 2020

comment:9

ubuntu-focal-standard (https://github.com/mkoeppe/sage/runs/969005184), debian-bullseye-standard: pexpect.exceptions.ExceptionPexpect: The command was not found or was not executable: giac.
So some package is still missing

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 12, 2020

comment:10

fedora-32-standard (https://github.com/mkoeppe/sage/runs/969005556):

Checking whether SageMath should install SPKG giac...
checking whether any of pari is installed as or will be installed as SPKG... no
checking giac/giac.h usability... no
checking giac/giac.h presence... no
checking for giac/giac.h... no
configure: no suitable system package found for SPKG giac

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 12, 2020

comment:12

archlinux-latest-standard (https://github.com/mkoeppe/sage/runs/969005637):

   TypeError: unable to start giac because the command 'giac --sage' failed: The command was not found or was not executable: giac.

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 12, 2020

comment:13

Replying to @mkoeppe:

ubuntu-focal-standard (https://github.com/mkoeppe/sage/runs/969005184), debian-bullseye-standard: pexpect.exceptions.ExceptionPexpect: The command was not found or was not executable: giac.
So some package is still missing

debian has the giac executable in package xcas, which pulls in a lot of dependencies

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 12, 2020

comment:14

Replying to @mkoeppe:

fedora-32-standard (https://github.com/mkoeppe/sage/runs/969005556):

... missing giac-devel

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 12, 2020

comment:15

Replying to @mkoeppe:

archlinux-latest-standard (https://github.com/mkoeppe/sage/runs/969005637):

need package giac

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 12, 2020

Branch pushed to git repo; I updated commit sha1. New commits:

1923160build/pkgs/giac/spkg-configure.m4: Test for giac executable
1016934build/pkgs/giac/distros: Add missing packages

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 12, 2020

Changed commit from 43ee06b to 1016934

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 12, 2020

Dependencies: #29552

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 12, 2020

Changed commit from 1016934 to b4f2434

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 12, 2020

Branch pushed to git repo; I updated commit sha1. New commits:

c076383src/sage/interfaces/giac.py: Make new latex doctest more flexible
b4f2434Merge branch 't/29552/upgrade_giac_to_1_5_0_87' into t/29541/spkg_configure_m4_for_giac

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 12, 2020

Changed reviewer from github.com/mkoeppe/sage/actions/runs/203238491 to https://github.com/mkoeppe/sage/actions/runs/205036006

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 12, 2020

comment:20

This fixed ubuntu-focal-standard (https://github.com/mkoeppe/sage/runs/974323603); waiting for other runs to finish.

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 15, 2020

comment:32

Replying to @mkoeppe:

archlinux-latest-standard (https://github.com/mkoeppe/sage/runs/974324005) now finds system giac 1.6.0.7 and reproduces the doctest errors reported in #29552 comment:2

ec95752 has changed it so it rejects giac >= 1.6, as can be seen in https://github.com/mkoeppe/sage/runs/985886420

The latest commit, 5efb0d7, fixes the doctest error.

Ready for review

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 15, 2020

Changed reviewer from github.com/mkoeppe/sage/actions/runs/208891335, github.com/mkoeppe/sage/actions/runs/208891338, github.com/mkoeppe/sage/actions/runs/208891334 to github.com/mkoeppe/sage/actions/runs/208891335, github.com/mkoeppe/sage/actions/runs/208891338, github.com/mkoeppe/sage/actions/runs/208891334, ...

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 19, 2020

Changed commit from 5efb0d7 to f6e801e

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 19, 2020

Branch pushed to git repo; I updated commit sha1. Last 10 new commits:

0338556src/sage/libs/giac/giac.pyx: Update `_latex_` doctest
798f6c2doctest fixes + `__len__` modification for giac 1.5.0.87 behavior with emptylist seq[]
17bc2e4sage/libs/giac/giac.pyx: Make `_latex_` doctest more flexible
7d25a4bMerge branch 'public/29171' of git://trac.sagemath.org/sage into public/29171
2f528a1put giac methods in a separate file with doctrings from giac's help
2e44aa6remove optional giacpy_sage from multi_polynomial_ideal
db48d99add a lazy import for libgiac
923f8f3Merge tag '9.2.beta9' into t/29171/public/29171
911ddfbGiacElement._latex_: Make array doctest more flexible
f6e801eMerge branch 't/29171/public/29171' into t/29541/spkg_configure_m4_for_giac

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 19, 2020

Changed dependencies from #30127, #30339, #30345, #30144 to #30127, #30339, #30345, #30144, #29171

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 24, 2020

Changed commit from f6e801e to 4cf38df

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 24, 2020

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

ca43dddbuild/pkgs/giac/spkg-configure.m4: New
64e80acbuild/pkgs/giac/distros: Add debian, fedora, opensuse
ab410b9build/pkgs/giac/spkg-configure.m4: Test for giac executable
83543d0build/pkgs/giac/distros: Add missing packages
4cf38dfbuild/pkgs/giac/spkg-configure.m4: Reject giac >= 1.6

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 24, 2020

comment:37

Rebased, needs review

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 24, 2020

Changed dependencies from #30127, #30339, #30345, #30144, #29171 to none

@EmmanuelCharpentier
Copy link
Mannequin

EmmanuelCharpentier mannequin commented Sep 4, 2020

comment:39

On Debian testing, installing xcas, libgiac (and their dependencies) is not detected by ./configure. From config.log :

configure:35644: result: giac-1.5.0.87p0:                             does not support check for system package; will be installed as an SPKG

==>needs_work

@dimpase
Copy link
Member

dimpase commented Sep 4, 2020

comment:40

I suppose you need libgiac-dev, not just libgiac.

https://packages.debian.org/sid/libgiac-dev

@EmmanuelCharpentier
Copy link
Mannequin

EmmanuelCharpentier mannequin commented Sep 4, 2020

comment:41

Replying to @dimpase:

I suppose you need libgiac-dev, not just libgiac.

That's what I installed (and typoed when typing my answer... ;-).

So, still needs_work...

@mkoeppe
Copy link
Contributor

mkoeppe commented Sep 4, 2020

comment:42

does not support check for system package

If you want to test this ticket, you need to use ./bootstrap

@mkoeppe

This comment has been minimized.

@isuruf
Copy link
Member

isuruf commented Sep 10, 2020

comment:45

This looks good to me. Can you add giac to distros/conda.txt? You can set it to positive review afterwards.

@isuruf
Copy link
Member

isuruf commented Sep 10, 2020

Changed reviewer from github.com/mkoeppe/sage/actions/runs/208891335, github.com/mkoeppe/sage/actions/runs/208891338, github.com/mkoeppe/sage/actions/runs/208891334, ... to Isuru Fernando

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 10, 2020

Branch pushed to git repo; I updated commit sha1. New commits:

0df15dfbuild/pkgs/giac/distros/conda.txt: New

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 10, 2020

Changed commit from 4cf38df to 0df15df

@mkoeppe
Copy link
Contributor

mkoeppe commented Sep 10, 2020

comment:47

Thanks!

@vbraun
Copy link
Member

vbraun commented Sep 15, 2020

Changed branch from u/mkoeppe/spkg_configure_m4_for_giac to 0df15df

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