| Submitter | Koen Kooi |
|---|---|
| Date | April 23, 2012, 8:15 a.m. |
| Message ID | <9301829E-837E-4C49-A3B8-57208CE9A196@dominion.thruhere.net> |
| Download | mbox | patch |
| Permalink | /patch/26327/ |
| State | New |
| Headers | show |
Comments
Op 23 apr. 2012, om 10:15 heeft Koen Kooi het volgende geschreven: > Op 15 apr. 2012, om 16:35 heeft Koen Kooi het volgende geschreven: > >> My theory is that this is caused by the openssl /usr changes, can anyone confirm or deny that? > > I dug into this. The breakage was recorded by buildhistory: [..] > I'm going to band-aid it so we can get a working python hashlib module in the 'denzil' branch, hopefully someone will come up with a proper fix soon. After spending some more time on this and getting a ton of help from RP: Python can't link to anything in ${base_libdir} due to a combination of python having a stupid buildsystem and the patches we apply to make it less stupid. The only fix I found to get hashlib and ssl to work in python is to revert the patch to openssl that moves libcrypto around. I really need python unbroken in the release branch, so I see a few scenarios: 1) revert openssl patch, seperate /usr doesn't work properly anyway in this release 2) fix python 3) revert openssl patch, statically link libcrypto into dhclient. 4) bbappend openssl in meta-angstrom to revert the openssl patch There are probably more scenarios, but I'm going to have lunch before thinking some more about it. My question to all of you: How do you want to fix this for denzil and how do you want to fix this for master? And to be clear: I'm mean getting things into the denzil branch of OE-core, not getting it into the release, it's too late for that. regards, koen
On Mon, 2012-04-23 at 15:08 +0200, Koen Kooi wrote: > Op 23 apr. 2012, om 10:15 heeft Koen Kooi het volgende geschreven: > > > Op 15 apr. 2012, om 16:35 heeft Koen Kooi het volgende geschreven: > > > >> My theory is that this is caused by the openssl /usr changes, can > anyone confirm or deny that? > > > > I dug into this. The breakage was recorded by buildhistory: > > [..] > > > I'm going to band-aid it so we can get a working python hashlib > module in the 'denzil' branch, hopefully someone will come up with a > proper fix soon. > > After spending some more time on this and getting a ton of help from > RP: > > Python can't link to anything in ${base_libdir} due to a combination > of python having a stupid buildsystem and the patches we apply to make > it less stupid. The only fix I found to get hashlib and ssl to work in > python is to revert the patch to openssl that moves libcrypto around. > > I really need python unbroken in the release branch, so I see a few > scenarios: > > 1) revert openssl patch, seperate /usr doesn't work properly anyway in > this release > 2) fix python > 3) revert openssl patch, statically link libcrypto into dhclient. > 4) bbappend openssl in meta-angstrom to revert the openssl patch > > There are probably more scenarios, but I'm going to have lunch before > thinking some more about it. My question to all of you: > > How do you want to fix this for denzil and how do you want to fix > this for master? > > And to be clear: I'm mean getting things into the denzil branch of > OE-core, not getting it into the release, it's too late for that. I've managed to squeeze a fix for this in, I posted the patches last night. It wasn't just the ssl piece that was broken, there were a number of problems in the python recipe causing various modules to fail to build (such as curses and readline). Some of these issues had been present for much longer than the openssl change. Its worth noting the openssl change was not the problem, it was python passing native paths to a cross-gcc which then understandably got confused. At this point the release is pretty much done, assuming a favourable QA report. Cheers, Richard
Patch
==========================================================================
commit fef22c30d3834abdfe8b5c12cd2dd17e3e031973
Author: Koen Kooi <koen@dominion.thruhere.net>
Date: Fri Feb 24 12:39:55 2012 +0100
Build Angstrom v2012.02-core of angstrom v2012.02-core for machine beagleboard on dominion
diff --git a/packages/armv7a-angstrom-linux-gnueabi/python/python-crypt/latest b/packages/armv7a-angstrom-linux-gnueabi/python/python-crypt/latest
index 3ec1030..829e7ce 100644
--- a/packages/armv7a-angstrom-linux-gnueabi/python/python-crypt/latest
+++ b/packages/armv7a-angstrom-linux-gnueabi/python/python-crypt/latest
@@ -1,7 +1,7 @@
PV = 2.7.2
PR = r0.6
-RDEPENDS = eglibc (>= 2.12) libcrypto (>= 1.0.0g) libpython2 (>= 2.7.2) python-core
+RDEPENDS = eglibc (>= 2.12) libpython2 (>= 2.7.2) python-core
RRECOMMENDS = openssl
-PKGSIZE = 25436
+PKGSIZE = 14252
FILES = /usr/lib/python2.7/hashlib.* /usr/lib/python2.7/md5.* /usr/lib/python2.7/sha.* /usr/lib/python2.7/lib-dynload/crypt.so /usr/lib/python2.7/lib-dynload/_hashlib.so /usr/lib/python2.7/lib-dynload/_sha256.so /usr/lib/python2.7/lib-dynload/_sha512.so
-FILELIST = /usr/lib/python2.7/hashlib.py /usr/lib/python2.7/hashlib.pyo /usr/lib/python2.7/lib-dynload/_hashlib.so /usr/lib/python2.7/lib-dynload/crypt.so /usr/lib/python2.7/md5.py /usr/lib/python2.7/md5.pyo /usr/lib/python2.7/sha.py /usr/lib/python2.7/sha.pyo
+FILELIST = /usr/lib/python2.7/hashlib.py /usr/lib/python2.7/hashlib.pyo /usr/lib/python2.7/lib-dynload/crypt.so /usr/lib/python2.7/md5.py /usr/lib/python2.7/md5.pyo /usr/lib/python2.7/sha.py /usr/lib/python2.7/sha.pyo
==========================================================================
The preceding commit affecting python crypt:
==========================================================================
commit f572f6547bc4b1e2a64e4cae8201b70c0e1b4162
Author: Koen Kooi <koen@dominion.thruhere.net>
Date: Wed Feb 22 14:53:00 2012 +0100
Build Angstrom v2012.02-core of angstrom v2012.02-core for machine beaglebone on dominion
diff --git a/packages/armv7a-angstrom-linux-gnueabi/python/python-crypt/latest b/packages/armv7a-angstrom-linux-gnueabi/python/python-crypt/latest
index 5f21c50..3ec1030 100644
--- a/packages/armv7a-angstrom-linux-gnueabi/python/python-crypt/latest
+++ b/packages/armv7a-angstrom-linux-gnueabi/python/python-crypt/latest
@@ -3,5 +3,5 @@ PR = r0.6
RDEPENDS = eglibc (>= 2.12) libcrypto (>= 1.0.0g) libpython2 (>= 2.7.2) python-core
RRECOMMENDS = openssl
PKGSIZE = 25436
-FILES = /usr/lib/python2.7/hashlib.* /usr/lib/python2.7/md5.* /usr/lib/python2.7/sha.* /usr/lib/python2.7/lib-dynload/crypt.so /usr/lib/python2.7/lib-dynload/_hashlib.so /usr/lib/python2.7/lib-dynload/_sha256.so /usr/lib/python2.7/lib-dynload/_sha512.so
-FILELIST = /usr/lib/python2.7/md5.py /usr/lib/python2.7/md5.pyo /usr/lib/python2.7/sha.pyo /usr/lib/python2.7/hashlib.pyo /usr/lib/python2.7/sha.py /usr/lib/python2.7/hashlib.py /usr/lib/python2.7/lib-dynload/_hashlib.so /usr/lib/python2.7/lib-dynload/crypt.so
+FILES = /usr/lib/python2.7/hashlib.* /usr/lib/python2.7/md5.* /usr/lib/python2.7/sha.* /usr/lib/python2.7/lib-dynload/crypt.so /usr/lib/python2.7/lib-dynload/_hashlib.so /usr/lib/python2.7/lib-dynload/_sha256.so /usr/lib/python2.7/lib-dynload/_sha512.so
+FILELIST = /usr/lib/python2.7/hashlib.py /usr/lib/python2.7/hashlib.pyo /usr/lib/python2.7/lib-dynload/_hashlib.so /usr/lib/python2.7/lib-dynload/crypt.so /usr/lib/python2.7/md5.py /usr/lib/python2.7/md5.pyo /usr/lib/python2.7/sha.py /usr/lib/python2.7/sha.pyo