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
python spkg build fails on various Debian systems #11447
Comments
Attachment: 11447-python-mint11.patch.gz Patch for building crypt module on Linux Mint 11 |
comment:1
Please test http://users.aims.ac.za/~jan/python-2.6.4.p11.spkg ( Dave: I changed a grep to egrep. Is this POSIX? Is grep -E better? |
comment:3
Jan, if you want to make sure someone sees a ticket, you will need to cc: them like I am doing with drkirkby now. You could also put the person for whom it worked properly (as you mentioned on sage-devel) as a reviewer - why not? They helped, after all, even if they can't check that the code is fine (which it certainly seems to me, but I don't know what etc/issue is for sure). |
Work Issues: Remove extra | character. Create a complete package. |
comment:4
These should not be two '|' characters in the egrep expression.
There should be only one. You also need to create a new package, so we can test the complete package, but this looks pretty simple to me. It would be good if we could attempt to find other popular Ubuntu derivatives that will get the problem and include the patch for them too. But that's not important - just nice if possible to do easily. Dave |
Reviewer: David Kirkby |
comment:5
Thanks Dave, new patch following. I made a typo with the pipe, but it I'm not sure he has a trac account (for reviewing). New patch attached for review purposes, and spkg at |
Replaces previous patch to build on Linux Mint 11 |
comment:6
Attachment: 11447-python-mint11b.patch.gz
What I meant was that you could put his name down as a reviewer, assuming you do not have actual access to a Mint machine and neither does David. |
Changed reviewer from David Kirkby to David Kirkby, Bill Odefey |
comment:8
Bill Odefey reports that the new spkg worked for him again on Linux Mint 11. |
comment:9
egrep is not a POSIX command, but I think in this instance it is acceptable to use it. The use of 'grep -E' confirms to the latest POSIX, but would fail on Solaris if someone has /usr/bin in their path before /usr/xpg4/bin. This is because to maintain backwards compatibility with older Solaris releases, whilst still conforming to the various POSIX versions, there are two or sometimes three versions of some commands on Solaris. More portable would be to split the two greps up, but I think that would unnecessarily complicate things. Positive review. |
This comment has been minimized.
This comment has been minimized.
Changed work issues from Remove extra | character. Create a complete package. to none |
comment:10
Looking at |
comment:11
Yes, it is hidden in the original thread which lead to ticket #11243. If the way to check for Linux Release/Distribution it is suboptimal, do you know of a better way? It comes down to this http://bugs.python.org/issue9762 . |
This comment has been minimized.
This comment has been minimized.
comment:27
I will test the new package on the buildbots and give positive_review if these are successful. |
Changed keywords from crypt library to python spkg crypt library |
comment:29
Replying to @jdemeyer:
So adding a note on installing It's perhaps to specific to get into the Sage Installation Guide. P.S.: You don't need to add keywords that are already in the ticket's title. |
comment:30
It would be great if the patch included a suggestion to "sudo apt-get install dpkg-dev" if it is not installed. |
comment:32
P.S.: To detect Debian and any of its derivatives (in order to give an appropriate message if importing |
comment:33
Replying to @pipedream:
Patch is on the way... Cannot really test it myself though, as I have no newer Debian here. |
SPKG patch. Adds message, some minor changes. Apply on top of Jan Medlock's patch. |
comment:34
Attachment: trac_11447-give_hint_on_dpkg-dev.patch.gz Patch is up. Relevant part: diff --git a/spkg-install b/spkg-install
--- a/spkg-install
+++ b/spkg-install
@@ -242,12 +248,28 @@
# All these modules are important and if any one
# fails to build, Sage will not work.
+import_errors=false
for module in math hashlib crypt ; do
"$SAGE_LOCAL/bin/python" -c "import $module"
if [ $? -eq 0 ] ; then
echo "$module module imported OK"
else
- echo "$module module failed to import"
- exit 1
+ echo >&2 "$module module failed to import"
+ import_errors=true
+ # exit 1 # not yet
fi
done
+
+if $import_errors; then
+ echo >&2 "Error: One or more modules failed to import."
+ # Check if we are on Debian or one of its derivatives:
+ if command -v dpkg && ! command -v dpkg-architecture >/dev/null; then
+ echo >&2 "You may have to install 'dpkg-architecture'"
+ echo >&2 "which is part of the Debian package 'dpkg-dev'."
+ echo >&2 "Try installing it by typing"
+ echo >&2 " sudo apt-get install dpkg-dev"
+ echo >&2 "and rerun 'make'."
+ fi
+ exit 1
+fi I haven't uploaded the new spkg to Ggle code yet.** Maybe Jeroen wants to create it on |
comment:35
Ooops, I just noticed the output of |
This comment has been minimized.
This comment has been minimized.
comment:37
Replying to @nexttime:
Ok, will do now... |
This comment has been minimized.
This comment has been minimized.
comment:39
Messy in various places, but at least it improves over the existing version, so positive_review. |
comment:40
Replying to @jdemeyer:
Details, please. ;-) |
comment:41
Replying to @nexttime:
should be
or
Mixed usage of On SunOS, you first patch Patching is better done using one Why call
should be
Remove this:
Why this:
I guess On SunOS, do we need the configure flag |
comment:42
Replying to @jdemeyer:
Yes, I mentioned on the ticket that I forgot it; minor.
Agreed, but didn't want to change too much, since it is a blocker and needs quick review.
No idea. Ask Dave. (The real patch is only necessary on Debian Linuces, so at least that shouldn't break anything.)
Hmmm, depends on the situation. Order might matter, and not all patches are applied on all systems. You'd also have to delete (or rename) patches that [currently] don't get applied anymore. Having a bit of redundancy in But we still have the
Guess that's some libtool issue, which sometimes drops e.g.
should be
I know. I always get beaten when I change such, as some people consider it to be a "dangerous change"... (I put a comment on that in.)
Orrr.
See above ("dangerous change"). I added a comment that this is certainly no longer necessary, on the other hand it doesn't hurt much.
Typical stupidity. Only one of N instances of that.
That's again related to libtool I think. If you come across such things and don't want to fix them immediately, it's IMHO best to simply put comments into the files or Also, the next one touching the spkg (or files in general) hopefully will take them into account, and doesn't have to search trac for older tickets with open issues. |
Merged: sage-4.7.1.rc0 |
Ubuntu 11.04 derivative Mint 11 and other newer Debian GNU/Linux derivatives fail to build the Python spkg.
This is a known issue in #11243 on Ubuntu 11.04, and any derivatives such as Mint 11 will suffer from this as well.
Updated spkg: http://spkg-upload.googlecode.com/files/python-2.6.4.p11.spkg
md5sum:
e808dc5edba8c82c098f0c9641b34634 python-2.6.4.p11.spkg
(With Jan Medlock's patch of June 17th applied, and now also attachment: trac_11447-give_hint_on_dpkg-dev.patch. The old one with only Jan Medlock's patch applied had
md5sum 5bc63c1814fc7ae34f4fed5a8fffe380
.)No patches need to be applied to the Sage library - only the package updated. The patches attached to the ticket are for review purposes only.
CC: @sagetrac-drkirkby @jpflori
Component: packages: standard
Keywords: python spkg crypt library
Author: Jan Medlock
Reviewer: David Kirkby, Bill Odefey, Jan Groenewald
Merged: sage-4.7.1.rc0
Issue created by migration from https://trac.sagemath.org/ticket/11447
The text was updated successfully, but these errors were encountered: