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

Patch adding soname to ntl shared library #3159

Closed
timabbott opened this issue May 11, 2008 · 9 comments
Closed

Patch adding soname to ntl shared library #3159

timabbott opened this issue May 11, 2008 · 9 comments

Comments

@timabbott
Copy link
Contributor

François Bissey and I merged our patches for adding library versioning and a soname to ntl's shared library and for building the static library without -fPIC and the shared library with -fPIC, and tested that they work for Debian and Gentoo builds. I believe that if this patch were applied upstream, SAGE would be able to stop patch the ntl makefile as well. I'm submitting it here so that it can be tested for a standard SAGE build, so we can be sure the patch works before submitting it to Victor Shoup.

CC: @kiwifb

Component: packages: standard

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

@timabbott
Copy link
Contributor Author

Attachment: ntl-dynamic-library.patch.gz

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented May 11, 2008

comment:1

Hi Tim, Francois,

the patch looks good, but as is it needs some changes to our spkg-install. I also noticed some other issues with some scripts in to the src directory, i.e. all shell scripts are missing a shebang, so that causes trouble with csh in some instances. Once I got those sorted out I will respin our spkg and merge this patch while I am at it.

Cheers,

Michael

@sagetrac-mabshoff sagetrac-mabshoff mannequin changed the title Patch adding soname to ntl shared library [pending changes] Patch adding soname to ntl shared library May 11, 2008
@kiwifb
Copy link
Member

kiwifb commented May 11, 2008

comment:2

Mea culpa! One of us should at least have thought about the spkg-install,
we were more concerned that it would work correctly with our distros and that
it was "minimal". Good thing is now libntl.a is correctly compiled without
-fpic and libntl.so is now completely compiled with -fpic.
I attach a tentative patch for spkg-install.

Cheers,
Francois

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented May 11, 2008

comment:3

Attachment: spkg-install.patch.gz

I have fixed a small couple issues with the patch in

http://sage.math.washington.edu/home/mabshoff/release-cycles-3.0.2/alpha0/ntl-5.4.2.p3.spkg

I did not patch src/src/mfile, but the one in patches, so the new Debian package as well as the ebuild needs to take that into consideration. The spkg builds fine on OSX and Linux, so positive review.

Cheers,

Michael

@sagetrac-mabshoff sagetrac-mabshoff mannequin changed the title [pending changes] Patch adding soname to ntl shared library Patch adding soname to ntl shared library May 11, 2008
@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented May 11, 2008

comment:4

One more thing: When creating symbolic links in spkg-install do not make those links absolute since they will break Sage once it is moved or install to another location. I fixed that and a couple other things, so I am taking partial credit on this ticket :)

Cheers,

Michael

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented May 11, 2008

comment:5

Merged in Sage 3.0.2.alpha0

@sagetrac-mabshoff sagetrac-mabshoff mannequin closed this as completed May 11, 2008
@kiwifb
Copy link
Member

kiwifb commented May 11, 2008

comment:6

I'll remember that. It was a _tentative_ patch :)

@timabbott
Copy link
Contributor Author

comment:7

I noticed the spkg-install script now has the current NTL version number in it; I'm attaching a patch that copies libntl*.so that should avoid having to update the patch every time there's a new NTL release.

@timabbott
Copy link
Contributor Author

Attachment: ntl-forget-version.patch.gz

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

2 participants