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 mpc #27259

Closed
dimpase opened this issue Feb 12, 2019 · 34 comments
Closed

spkg-configure.m4 for mpc #27259

dimpase opened this issue Feb 12, 2019 · 34 comments

Comments

@dimpase
Copy link
Member

dimpase commented Feb 12, 2019

mpc depends on GMP/MPIR and MPFR.
I am trying something like this:

SAGE_SPKG_CONFIGURE([mpc], [
    AC_CHECK_HEADER(mpc.h, [], [sage_spkg_install_mpc=yes])
dnl mpc_cmp_abs appeared in MPC 1.1.0
    AC_SEARCH_LIBS([mpc_cmp_abs], [mpc], [break], [sage_spkg_install_mpc=yes])
])

to be merged as a part of #27822

Depends on #27212
Depends on #27258

CC: @embray

Component: build: configure

Keywords: spkg-configure mpc

Author: Dima Pasechnik, Erik Bray

Branch: d15ead5

Reviewer: Erik Bray, Dima Pasechnik

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

@dimpase dimpase added this to the sage-8.7 milestone Feb 12, 2019
@dimpase
Copy link
Member Author

dimpase commented Feb 25, 2019

comment:1

mpfrcx's spkg-install hardcodes the location of mpc to SAGE_LOCAL. So this will need to be fixed.

@embray
Copy link
Contributor

embray commented Feb 26, 2019

comment:2

That should be no problem (in theory). We'll treat the prefix for mpc similarly to how we've done with GMP.

@dimpase
Copy link
Member Author

dimpase commented Feb 26, 2019

Branch: u/dimpase/packages/mpc-config

@dimpase
Copy link
Member Author

dimpase commented Feb 26, 2019

Last 10 new commits:

b070088Move all the --with-mp logic into the spkg-configure.m4 for MPIR so that it
3b6eebdReplace various --with-gmp=$SAGE_LOCAL flags in spkg-installs with a
b80bf72Reworked this a bit more
0ca3f56fix typo
06798caadded a bit more explanation
b592d77correct logic for SAGE_GMP_PREFIX etc
5057680add the AX_ABSOLUTE_HEADER macro
101537biml in particular is very picky about being given an absolute path to the
5e1a30bspkg-configure for mpfr, adjustments for its dependees
db992bespkg-configure for mpc, adjustments for its dependees

@dimpase
Copy link
Member Author

dimpase commented Feb 26, 2019

Commit: db992be

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Feb 28, 2019

Changed commit from db992be to 38427e1

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Feb 28, 2019

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

18fbf7badd SAGE_CONFIGURE_MPFR, fix sage-env-config.in
50aebabimplement --with-mpfr=system/install
38427e1spkg-configure for mpc, adjustments for its dependees

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Mar 20, 2019

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

862ca6aMerge remote-tracking branch 'trac/develop' into HEAD
03dc987Merged trac #27215 in
c9873aeMerge remote-tracking branch 'trac/develop' into mpf
0fc433fupdate for Sage 8.7.rc0, a typo fix
ec32471Merge branch 'u/dimpase/packages/mpc-config' of trac.sagemath.org:sage into mpf
91f423frebase, deal with --with-mpc

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Mar 20, 2019

Changed commit from 38427e1 to 91f423f

@dimpase
Copy link
Member Author

dimpase commented Mar 20, 2019

New commits:

862ca6aMerge remote-tracking branch 'trac/develop' into HEAD
03dc987Merged trac #27215 in
c9873aeMerge remote-tracking branch 'trac/develop' into mpf
0fc433fupdate for Sage 8.7.rc0, a typo fix
ec32471Merge branch 'u/dimpase/packages/mpc-config' of trac.sagemath.org:sage into mpf
91f423frebase, deal with --with-mpc

@embray
Copy link
Contributor

embray commented Mar 25, 2019

comment:7

Ticket retargeted after milestone closed (if you don't believe this ticket is appropriate for the Sage 8.8 release please retarget manually)

@embray embray modified the milestones: sage-8.7, sage-8.8 Mar 25, 2019
@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 30, 2019

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

0b72a68spkg-configure for mpfr, adjustments for its dependees
d690c9fadd SAGE_CONFIGURE_MPFR, fix sage-env-config.in
a833f93implement --with-mpfr=system/install
62feae3build mpir if gmp/mpir is built
df8e63dbumped up configure
bfac833spkg-configure for mpc, adjustments for its dependees
f41aab4rebase, deal with --with-mpc

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 30, 2019

Changed commit from 91f423f to f41aab4

@embray
Copy link
Contributor

embray commented May 10, 2019

Changed branch from u/dimpase/packages/mpc-config to public/packages/mpc-config

@embray
Copy link
Contributor

embray commented May 10, 2019

comment:9

Rebased on latest #27258.

Confirmed that Sage built successfully on Ubuntu 18.04 with system gmp+mpfr+mpc among other packages. Running the tests now but they all passed in #27258, so I would be surprised if that changed here.


New commits:

d9bbdd4Add support for unconditional pre- and post-check actions in spkg-configure.m4
a360518Refactor the mpir/spkg-configure.m4 (and to a lesser extent the one for gmp) to use the new pre and post arguments to SAGE_SPKG_CONFIGURE
d5986afspkg-configure for mpfr, adjustments for its dependees
1948e33Add one missing SAGE_CONFIGURE_MPFR, for building gcc
16b907aspkg-configure for mpc, adjustments for its dependees
0c906f1rebase, deal with --with-mpc
5372ee0Clean up spkg-configure.m4 for mpc to follow the current model for mpc
428dfabUse SAGE_CONFIGURE_MPC for building gcc
953ba02Add missing AC_MSG_RESULT

@embray
Copy link
Contributor

embray commented May 10, 2019

Changed commit from f41aab4 to 953ba02

@embray
Copy link
Contributor

embray commented May 10, 2019

comment:10

Tests pass, so, LGTM. Would you like to test more on other systems or are you already generally satisfied with how this is?

@dimpase
Copy link
Member Author

dimpase commented May 10, 2019

comment:11

I'll run tests on OSX and if all is good, set it and the mpfr tickets to positive reviews. Thanks!

@embray
Copy link
Contributor

embray commented May 10, 2019

comment:12

And then we'll add a separate ticket just for a new confball?

@embray
Copy link
Contributor

embray commented May 10, 2019

Changed keywords from none to spkg-configure mpc

@embray embray removed the c: build label May 10, 2019
@dimpase
Copy link
Member Author

dimpase commented May 10, 2019

comment:14

how about adding config tarball here?

or perhaps we can proceed rebasing nil/flint/arb over this one (we should do this one way or another) and add a config tarball on arb's ticket?

@sagetrac-git sagetrac-git mannequin added the s: needs review label May 13, 2019
@embray
Copy link
Contributor

embray commented May 13, 2019

comment:17

Rebased and squashed.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 13, 2019

Changed commit from b63bc91 to d15ead5

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 13, 2019

Branch pushed to git repo; I updated commit sha1 and set ticket back to needs_review. This was a forced push. New commits:

d5e5e3dspkg-configure for mpfr, adjustments for its dependees
0329fd9Add one missing SAGE_CONFIGURE_MPFR, for building gcc
d15ead5Trac #27259: spkg-configure for mpc, adjustments for its dependents

@embray
Copy link
Contributor

embray commented May 13, 2019

comment:19

Rebased again, but specifically over the branch for #27258.

@embray
Copy link
Contributor

embray commented May 13, 2019

comment:20

This ticket should probably not be merged by itself. Instead please merge #27822 which incorporates this one.

@vbraun
Copy link
Member

vbraun commented May 17, 2019

Changed branch from public/packages/mpc-config to d15ead5

@vbraun
Copy link
Member

vbraun commented May 20, 2019

Changed commit from d15ead5 to none

@vbraun vbraun reopened this May 20, 2019
@dimpase

This comment has been minimized.

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

4 participants