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 lcalc #28224

Closed
dimpase opened this issue Jul 21, 2019 · 59 comments
Closed

spkg-configure.m4 for lcalc #28224

dimpase opened this issue Jul 21, 2019 · 59 comments

Comments

@dimpase
Copy link
Member

dimpase commented Jul 21, 2019

Debian and Fedora package lcalc (Fedora calls the package L-function-devel). On Debian one needs packages liblfunction-dev and lcalc.

One needs to check how well-patched they are.

We had to introduce an env. var. SAGE_LCALC_INCDIR_NOLIBPREFIX to deal with the discrepancy in the include names, which is libLfunction/ on sage-dist, but Lfunction/ on Debian.

if SAGE_LCALC_INCDIR_NOLIBPREFIX is not '' then we assume that
the include prefix is Lfunction/, and otherwise it is
libLfunction/.

CC: @embray @isuruf @antonio-rojas @kiwifb

Component: build: configure

Author: Dima Pasechnik

Branch: 6aa7e76

Reviewer: Isuru Fernando

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

@dimpase dimpase added this to the sage-8.9 milestone Jul 21, 2019
@dimpase
Copy link
Member Author

dimpase commented Jul 21, 2019

comment:1

Does Conda provide lcalc?

@isuruf
Copy link
Member

isuruf commented Jul 21, 2019

comment:2

Replying to @dimpase:

Does Conda provide lcalc?

Yes and uses the patches from sage https://github.com/conda-forge/lcalc-feedstock/tree/master/recipe/patches

@dimpase
Copy link
Member Author

dimpase commented Jul 23, 2019

comment:3

lcalc depends on PARI, so we need to deal with pari first.

@dimpase
Copy link
Member Author

dimpase commented Jul 23, 2019

Dependencies: #28242

@dimpase

This comment has been minimized.

@dimpase
Copy link
Member Author

dimpase commented Sep 1, 2019

New commits:

311fce3spkg-configure for lcalc

@dimpase
Copy link
Member Author

dimpase commented Sep 1, 2019

Branch: u/dimpase/packages/lcalcconf

@dimpase
Copy link
Member Author

dimpase commented Sep 1, 2019

Author: Dima Pasechnik

@dimpase
Copy link
Member Author

dimpase commented Sep 1, 2019

Commit: 311fce3

@isuruf
Copy link
Member

isuruf commented Sep 1, 2019

comment:6

sage-dist, conda, arch installs the header as <prefix>/include/libLfunction/L.h while debian installs it as <prefix>/include/Lfunction/L.h.

You'll need more changes to make lcalc work with Debian way. For eg: https://github.com/sagemath/sage-prod/blob/master/src/sage/libs/lcalc/lcalc_sage.h#L1

@dimpase
Copy link
Member Author

dimpase commented Sep 1, 2019

comment:7

oops, right, one would in the very least deal with hardcoded

src/sage/libs/lcalc/lcalc_sage.h:#include "libLfunction/L.h"

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 1, 2019

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

dbcf506spkg-configure for lcalc

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 1, 2019

Changed commit from 311fce3 to dbcf506

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 1, 2019

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

36c5fcaspkg-configure for lcalc

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 1, 2019

Changed commit from dbcf506 to 36c5fca

@dimpase
Copy link
Member Author

dimpase commented Sep 1, 2019

comment:10

OK, so the updated branch works with Debian's lcalc, currently checking with sage-dist's lcalc.
Any chance to test this with Conda? Thanks!

@isuruf
Copy link
Member

isuruf commented Sep 1, 2019

comment:11

Works for me on conda. I see that you have test x$ac_cv_header_libLfunction = x. Isn't that supposed to be test x$ac_cv_header_libLfunction_L_h = x ?

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 1, 2019

Changed commit from 36c5fca to 093f706

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 1, 2019

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

093f706typo - with it the test was always passing

@dimpase
Copy link
Member Author

dimpase commented Sep 1, 2019

comment:13

good catch. I guess you won't be able to build lcalc cython extension without the latest commit...

@sagetrac-git sagetrac-git mannequin added the s: needs review label Sep 2, 2019
@dimpase
Copy link
Member Author

dimpase commented Sep 2, 2019

comment:33

reworded the last commit message, no code changes.

@dimpase
Copy link
Member Author

dimpase commented Sep 2, 2019

Changed dependencies from #28242 to none

@kiwifb
Copy link
Member

kiwifb commented Sep 2, 2019

comment:35

I avoided this ticket so far because lcalc is one of those packages that "smells" and may be better left alone.

For the record sage-on-gentoo installs headers in Lfunction which is closer to the original upstream than what libLfunction is. The latter being a sage packaging special.
https://github.com/sagemath/sagetrac-mirror/blob/master/build/pkgs/lcalc/patches/Makefile.patch#L231
being replaced by
https://github.com/sagemath/sagetrac-mirror/blob/master/build/pkgs/lcalc/patches/Makefile.patch#L234

@isuruf
Copy link
Member

isuruf commented Sep 2, 2019

comment:36

Shall we change the default and also the patch to use Lfunction then?

I can change it in conda.

@kiwifb
Copy link
Member

kiwifb commented Sep 2, 2019

comment:37

Being uniform about these headers locations in distributions and sage certainly would help.

@dimpase
Copy link
Member Author

dimpase commented Sep 2, 2019

comment:38

Right. I just checked that on Fedora it's Lfunction too.
I've asked on sage-devel about the reason for these naming twists...
https://groups.google.com/d/msg/sage-devel/fAPWh1G8_Qw/xMAmtUapAQAJ

@dimpase
Copy link
Member Author

dimpase commented Sep 3, 2019

comment:39

I've changed the branch so that INCDIR of libLfunction is Lfunction/.

this is much simpler, please review.


New commits:

ec86516Updated [SageMath](../wiki/SageMath) version to 8.9.beta8
567d9a0spkg-configure.m4 for lcalc, and INCDIR rename

@dimpase
Copy link
Member Author

dimpase commented Sep 3, 2019

@dimpase
Copy link
Member Author

dimpase commented Sep 3, 2019

Changed commit from 80bef09 to 567d9a0

@isuruf
Copy link
Member

isuruf commented Sep 3, 2019

comment:40

Needs a version bump for lcalc

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 3, 2019

Changed commit from 567d9a0 to 6aa7e76

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 3, 2019

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

6aa7e76lcalc version bump due to moved INCDIR

@kiwifb
Copy link
Member

kiwifb commented Sep 3, 2019

comment:43

Love the fact that I won't have to patch that little bit anymore - I am sure my colleagues in other distros are happy about that too.

@vbraun
Copy link
Member

vbraun commented Sep 5, 2019

Changed branch from u/dimpase/packages/lcalcchangeinclude to 6aa7e76

@thierry-FreeBSD
Copy link
Contributor

comment:45

FYI, a more recent snapshot, for version 1.3, is available at https://github.com/agrawroh/l-calc .
It has been exported from code.google.com/p/l-calc.

@thierry-FreeBSD
Copy link
Contributor

Changed commit from 6aa7e76 to none

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

7 participants