-
-
Notifications
You must be signed in to change notification settings - Fork 575
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
Copy needed dll to so files on Cygwin #11547
Comments
comment:1
I'm going to put Mike as an "author" of this because [[CygwinPort?version=54]] says he's the one who came up with this. |
Author: Mike Hansen |
This comment has been minimized.
This comment has been minimized.
Changed author from Mike Hansen to Mike Hansen, Karl-Dieter Crisman |
comment:3
Interestingly, both FLINT and cliquer spkgs currently make reference to needing to make dll's because they're on Windows... it looks like having both won't be a problem, but I wonder out loud whether in the long run we need only the so file. Anyway, I'm making the spkgs so that they have both. This will depend on #11246 in the sense that the flint spkg will be based upon it, though obviously there is nothing needed other than to directly upgrade. |
Dependencies: #11246 |
comment:4
I'm attaching a diff for the flint one (I may also need to do a second upgrade to flint for ntl, since on Cygwin we move certain ntl files out of the way and this would create another one). I used |
For review purposes only |
comment:5
Attachment: trac_11547-flint.diff.gz |
This comment has been minimized.
This comment has been minimized.
Attachment: trac_11547-ntl.diff.gz For review purposes only |
This comment has been minimized.
This comment has been minimized.
comment:6
For now, it looks in the spkg-install for flint that it was only the libntl.a file that needed to be moved, not the libntl.dll.a file, so hopefully the libntl.dll file also won't need to be moved. This could be revisited if that didn't work, of course. Otherwise ready for review, though I'm not assuming it will be immediately positive. That would be nice, though :) |
comment:7
Replying to @kcrisman:
Could you post the diff for cliquer, too? |
comment:8
Sure, I just didn't think to do it because it was much less invasive.
I don't think so. The lines were breaking in my editor, and it seems to be standard practice for the more conscientious Sage developers to fix them to have a more uniform line-width for easy viewing in a terminal session. The SPKG.txt for NTL was particularly bad. |
Attachment: trac_11547-cliquer.diff.gz For review purposes only |
comment:9
Okay, I posted the cliquer one as well. It is really straightforward. |
comment:10
Replying to @kcrisman:
OK, this is Cygwin–only (no changes on other platforms; did a sanity check --- tested spkgs on macosx). |
Changed keywords from none to cygwin FLINT NTL cliquer DLL shared library |
comment:12
The current flint spkg is now no longer based on #11246, because of some cleaning up done there. Hopefully someone there will make a p8, however. Otherwise I would suggest splitting that one off into a different ticket, just so the others are merged. |
This comment has been minimized.
This comment has been minimized.
comment:13
Replying to @kcrisman:
I've made a new FLINT p8 spkg based on the latest p7 from #11246. New FLINT spkg: http://spkg-upload.googlecode.com/files/flint-1.5.0.p8.spkg md5sum: Except for the removal of the leif@quadriga:~/Sage/spkgs/flint-1.5.0.p8$ hg diff --git -r flint-1.5.0.p7 -r flint-1.5.0.p8 diff --git a/.hgtags b/.hgtags
--- a/.hgtags
+++ b/.hgtags
@@ -1,2 +1,3 @@
df4a596f2ae97186054f73ca31b94ac0a06bd2b6 flint-1.2.5.p2
5252db23001a3fa2ed4ee2ad2069673b9a82faf0 flint-1.3.0
+03fb4e599477f450c711ccc121574c03888bdf3c flint-1.5.0.p7
diff --git a/SPKG.txt b/SPKG.txt
--- a/SPKG.txt
+++ b/SPKG.txt
@@ -28,13 +28,19 @@
== Special Update/Build Instructions ==
-We patch the makefile slightly to add 64 bit OSX build support and also change
-LIBS such that the NTL interface is linked into the flint library.
-This is not an officially supported option because flint is pure C
-and the NTL interface requires C++.
+ * We patch the makefile slightly to add 64 bit OSX build support and also change
+ LIBS such that the NTL interface is linked into the flint library.
+ This is not an officially supported option because flint is pure C
+ and the NTL interface requires C++.
+ * Remove the '.svn' directories from upstream ('src/') if present.
== Changelog ==
+=== flint-1.5.0.p8 (Karl-Dieter Crisman, 12th July 2011) ===
+ * Enable both libflint.dll and .so on Cygwin (see Trac 11547).
+ * Use 'cp' rather than '$CP' (affects only Cygwin).
+ * Remove '.svn' directories from upstream.
+
=== flint-1.5.0.p7 (Jeroen Demeyer, 6 July 2011) ===
* Trac #11246: remove check for gcc version since we require gcc >= 4.0.1
for Sage anyway.
diff --git a/spkg-install b/spkg-install
--- a/spkg-install
+++ b/spkg-install
@@ -98,8 +98,8 @@
if [ $UNAME = "CYGWIN" ]; then
# let's move libntl.a back
mv $SAGE_LOCAL/lib/xxx_libntl.a $SAGE_LOCAL/lib/libntl.a
- # also name flint library correctly for MS Windows (an so won't work).
- mv libflint.so libflint.dll
+ # make both kinds of dynamic libraries available for Windows
+ cp -p libflint.so libflint.dll
fi
echo "Deleting old FLINT"
rm -f $SAGE_LOCAL/lib/libflint* Ignore the strange diff w.r.t. the tags; the new one is tagged
|
comment:14
P.S.: Further clean-up will be made on another ticket, providing a FLINT 1.5**.2**.pN spkg, most probably #9858. |
comment:15
The NTL spkg should be rebased to ntl-5.5.2 from #5731. |
Work Issues: Rebase NTL spkg (#5731) |
Reviewer: Dmitrii Pasechnik |
comment:16
Replying to @jdemeyer:
Thanks for alerting us to that, Jeroen. Since that is a pretty big upgrade to NTL at that ticket, I'd prefer to split that off to another ticket - I think it would require retesting that the NTL package compiles on Cygwin and that the change still is necessary, for instance, though it almost certainly is. That is now #11635. If the other two could get merged asap, that would be wonderful. I can't do anything about it until at least Monday, probably later (due to needing access to Windows machines!), which is why I am splitting it off. |
This comment has been minimized.
This comment has been minimized.
Changed work issues from Rebase NTL spkg (#5731) to none |
Merged: sage-4.7.2.alpha1 |
comment:18
Ironically, this now doesn't actually work on one of my Cygwins, because of an extra line that crept into one of the patches.
Note the newline at the end; removing this solves the problem. I guess this didn't cause trouble on other systems, since these patches are applied universally. But this fix was still needed, so I've opened #11727 for this. |
As was put on the wiki for Cygwin,
See the comments for why the third one is dealt with at #11635.
Two spkg upgrades:
md5sum:
bcd152d2f0e1d503ffd1e7e637c388ef
Depends on #11246
CC: @dimpase @mwhansen @nexttime
Component: porting: Cygwin
Keywords: cygwin FLINT NTL cliquer DLL shared library
Author: Mike Hansen, Karl-Dieter Crisman
Reviewer: Dmitrii Pasechnik
Merged: sage-4.7.2.alpha1
Issue created by migration from https://trac.sagemath.org/ticket/11547
The text was updated successfully, but these errors were encountered: