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

Let lrcalc build as a shared library on Cygwin. #13839

Closed
jpflori opened this issue Dec 17, 2012 · 23 comments
Closed

Let lrcalc build as a shared library on Cygwin. #13839

jpflori opened this issue Dec 17, 2012 · 23 comments

Comments

@jpflori
Copy link
Contributor

jpflori commented Dec 17, 2012

We need to pass the -no-undefined flag to libtool to build a shared library on Cygwin.

This was added to the 1.1.6 beta spkg distributed within Sage.

Following discussion with upstream it was decided that upstream would distribute an alternate autotools-based lrcalc, named lrcalc-sage, using the spkg modified sources.

The sources have been published upstream:
http://www.math.rutgers.edu/~asbuch/lrcalc/

Therefore we stop tracking the src directory (which was not such a good idea) as it will be done upstream.
(And as a consequence the diff attached here is quite big but the spkg does not grows.)

Try spkg at
http://boxen.math.washington.edu/home/jpflori/lrcalc-1.1.6.spkg

Upstream: None of the above - read trac for reasoning.

CC: @kcrisman @dimpase @nthiery

Component: porting: Cygwin

Keywords: lrcalc spkg cygwin

Author: Jean-Pierre Flori

Reviewer: Dmitrii Pasechnik

Merged: sage-5.8.beta1

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

@jpflori jpflori added this to the sage-5.7 milestone Dec 17, 2012
@jpflori
Copy link
Contributor Author

jpflori commented Dec 17, 2012

Attachment: lrcalc-1.1.6beta2.diff.gz

Spkg diff, for review only.

@jpflori

This comment has been minimized.

@jpflori
Copy link
Contributor Author

jpflori commented Dec 17, 2012

comment:1

New spkg uploaded.

I've rerun autoreconf with recent versions of the tool as the current state of the build system looked messy (and trying to use Jeroen smart spkg to produce a minimal diff complained a little and produced something broken).

It works fine on Linux, I won't be able to check on Cygwin before this night or tomorrow.

@jpflori
Copy link
Contributor Author

jpflori commented Dec 17, 2012

Changed keywords from lrcalc spkg to lrcalc spkg cygwin

@jpflori
Copy link
Contributor Author

jpflori commented Dec 17, 2012

Changed upstream from Reported upstream. No feedback yet. to None of the above - read trac for reasoning.

@jpflori
Copy link
Contributor Author

jpflori commented Dec 17, 2012

comment:2

Upstream is ready to distribute an alternative official package using autotools, in addition to the original one using a custom build system.

So I propose to wait for everybody to be happy with the spkg here, send it upstream, repackage it "properly" here and merge it.

@nthiery
Copy link
Contributor

nthiery commented Dec 17, 2012

comment:3

I checked the changes in the diff, and am happy with them. Feel free to set a positive review on my behalf (I'll be offline the next couple days).

@jpflori
Copy link
Contributor Author

jpflori commented Dec 18, 2012

comment:4

Just a confirmation that this works as expected on Cygwin.

After our discussion with upstream, I will remove tracking of the src directory from the spkg and repost a new spkg.
The src directory will now be tracked in a separate hg tree kept upstream.

@jpflori
Copy link
Contributor Author

jpflori commented Dec 18, 2012

Attachment: lrcalc-1.1.6beta2.2.diff.gz

Spkg diff, for review only.

@jpflori

This comment has been minimized.

@kcrisman
Copy link
Member

comment:6

Wait, did this not work right? Or is this just an enhancement? (I know there is a parent ticket, but I forget the number.)

@jpflori
Copy link
Contributor Author

jpflori commented Dec 18, 2012

comment:7

It was not build as shared before.
I cannot say that the static archive produced was dysfunctional, I've not run the tests, so we can consider it an enhancement if not a defect.

@jpflori

This comment has been minimized.

@jpflori
Copy link
Contributor Author

jpflori commented Feb 8, 2013

Work Issues: resyng wiht upstream

@jpflori
Copy link
Contributor Author

jpflori commented Feb 8, 2013

comment:9

There have been some minimal changes to the tarball posted upstream so we need to resync.

@jpflori
Copy link
Contributor Author

jpflori commented Feb 19, 2013

Changed work issues from resyng wiht upstream to none

@jpflori
Copy link
Contributor Author

jpflori commented Feb 19, 2013

comment:10

I've resynced the src folder with the upstream tarball (mostly copyright additions and some autotools regenration stuff) and polished a little bit SPKG.txt.

Nicolas could you have a quick look at the spkg and put this to positive review as we planned a few monthes ago?

@jpflori
Copy link
Contributor Author

jpflori commented Feb 19, 2013

Attachment: lrcalc-1.1.6.diff.gz

Spkg diff, for review only.

@dimpase
Copy link
Member

dimpase commented Feb 19, 2013

comment:11

Replying to @jpflori:

I've resynced the src folder with the upstream tarball (mostly copyright additions and some autotools regenration stuff) and polished a little bit SPKG.txt.

Nicolas could you have a quick look at the spkg and put this to positive review as we planned a few monthes ago?

It builds on cygwin, but fails tests. More precisely the following fails:

sage: from sage.libs.lcalc.lcalc_Lfunction import *
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-015a4f363123> in <module>()
----> 1 from sage.libs.lcalc.lcalc_Lfunction import *

ImportError: No such file or directory
sage:

Is it just me?

@jpflori
Copy link
Contributor Author

jpflori commented Feb 19, 2013

comment:12

Didn't you mess lcalc and lrcalc together?

@dimpase
Copy link
Member

dimpase commented Feb 19, 2013

comment:13

Replying to @jpflori:

Didn't you mess lcalc and lrcalc together?

oops, indeed. lrcalc works. Positive review.

@jdemeyer
Copy link
Contributor

Reviewer: Dmitrii Pasechnik

@jdemeyer jdemeyer modified the milestones: sage-5.7, sage-5.8 Feb 19, 2013
@jdemeyer
Copy link
Contributor

Merged: sage-5.8.beta1

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