/srv/irclogs.ubuntu.com/2012/10/24/#ubuntu-devel.txt

infinitybarry: Can you SRU bug #938869 to precise as well?00:03
ubottuLaunchpad bug 938869 in lsb (Ubuntu Raring) "lsb_release crashed with SIGABRT in Py_FatalError()" [High,In progress] https://launchpad.net/bugs/93886900:03
infinitybarry: From my reading of it, it's just as buggy there, it's just that we haven't (yet) seen a a crazy upstream package that, say, sets a py3.2 PYTHONHOME and breaks python2.7.00:03
infinitybarry: (Of course, the realisation that every other python script in /usr/(s)bin is wrong is a bit scary, but lsb_release does seem to be called an awful lot in these sorts of scenarios)00:04
barryinfinity: indeed about the scary bit ;).  let me just verify that i can break it in precise and i'll sru it there to if necessary00:09
infinitybarry: http://paste.ubuntu.com/1301515/00:12
barryinfinity: cool00:13
infinitybarry: Do I smell an ammendment to Debian Python Policy and a mass bug filing in the future?00:14
barryinfinity: probably so.  i will be out tomorrow giving my talk, but i plan on at least bringing it up on the d-p list asap00:14
infinitybarry: I'm not sure if it's sheer luck that this hasn't broken more often, or just proof that most of the python stuff in /usr/bin is useless. :P00:15
barry:-D00:15
infinityI have always wondered why lsb_release isn't a shell script.00:15
infinityOther than language flavor-of-the-month-ism.00:16
infinityWhich is probably the reason.00:16
* barry licks python00:16
barryer00:16
* barry likes python00:16
infinity*snicker*00:17
infinityI can take it or leave it, but I could frame it differently.  I really like Perl, but I still think lsb_release should be a shell script.00:17
infinityCause it does, well.  Nothing.  And hardly needs the massive memory footprint and load time to do all that nothing.00:17
slangasekinfinity: why would you expect this to be common breakage?00:18
slangaseksetting PYTHONHOME and then invoking system utilities seems crackful00:18
slangasekthe only case I'm aware of that we've seen so far is with vmware00:18
barryslangasek: and what vmware is doing is crackful00:19
slangasekyep00:19
infinityslangasek: I'd expect it to be common if more of those system utilities were actually called by crackful third parties.  Luckily, most of the crack they call is likely all binaries.00:19
barryslangasek: -s makes some sense too, but i bet few users are putting anything in their user site directory00:19
infinityslangasek: I didn't claim the crack should happen more often, just that I suspect it probably does happen more often, and those people just don't call python binaries in the midst of their crack.00:20
barryslangasek: i'd say: it's an important thing to do when writing system scripts, but we needn't freak out about it00:20
slangasekright, exactly00:20
infinityAnd yeah, I agree that it's not worth a crazy freak out.  But a transition to -Es over time doesn't sound like the worst idea.00:20
infinityAnyhow, this all just came about from my "if we're fixing it in Q and R, we should fix it in P" thing, that's all.  Since we have 4.5 more years of P, I'm sure VMWare will at some point start shipping a bundled python3 that breaks P the way their bundled python2 breaks Q. :P00:22
infinityI'm such an optimist.00:22
barryinfinity: sru'd and uploaded00:26
* barry -> eod00:26
infinitybarry: Thanks.00:30
* infinity processes those and EODs himself.00:30
=== dendrobates is now known as dendro-afk
=== dendro-afk is now known as dendrobates
=== SudoKing is now known as sudo|hiding
hyperairRAOF: turns out turning off semaphores really improved matters, and it's seeing something like 40-70% RC6pp residency now.02:02
hyperairRAOF: i'm suspecting that the semaphores were also causing the random hangcheck messages i was getting.02:02
RAOFCool.02:05
=== sudo|hiding is now known as sudo|king
vibhavDoes anybody know how to setup a raring pbuilder chroot?02:43
tsimpsonvibhav: create a precise chroot, change the sources.list to raring, and do a dist-upgrade02:45
vibhavah, I thought there was another way to do that02:45
tsimpsonerm, quantal, not precise02:45
tsimpsonthere are always other ways, you're using linux after all ;)02:46
tsimpsonas a quick hack, sudo ln -s /usr/share/debootstrap/scripts/quantal /usr/share/debootstrap/scripts/raring02:47
tsimpsonthen just create a raring builder as you would a quantal one02:47
vibhavtsimpson: clever :)02:50
tsimpsonvibhav: it's not that clever, once you realize that every release after gutsy only adds another symlink :)02:51
tsimpsonvibhav: try here please03:01
vibhav!ping03:06
ubottuanother contentless ping... sigh...03:06
=== morphis|away is now known as morphis
=== sudo|king is now known as SudoKing
pittiGood morning03:44
vibhavhey pitti03:45
vibhavor rather, guten Morgen :)03:46
pittivibhav: hehe :)03:49
vibhav:)03:53
=== morphis is now known as morphis|away
sarnoldpitti: another early morning? :)04:07
pittisarnold: yeah; it's actually kind of my normal time now, depending on wether/how long I manage to sleep again after my wife gets up04:10
sarnoldpitti: oof :) too early for me, by a long shot... but if it gives you an afternoon to yourself, hooray :)04:10
pittiright, that's the nice thing about it, and we have had stuff planned for pretty much every afternoon this week04:11
sarnold:)04:19
=== tkamppeter_ is now known as tkamppeter
DktrKranzjelmer: huh? I really don't remember me behaving "confrontational"06:45
DktrKranzjelmer: I proposed some solutions, neither of those worked for Thomas, and I had better things to do than fighting06:46
DktrKranzjelmer: if you can get him convinced, feel free to reintroduce waf anytime06:47
DktrKranz.oO(then you'll have to fight with the software with ports, but that's another story)06:48
lifelessDktrKranz: you saw jelmers next line right? : 11:14 < jelmer> ScottK: actually, I retract that. The tone from several Debian developers towards waf upstream was very confrontational, rather than constructive.06:49
=== smb` is now known as smb
dholbachgood morning06:55
seb128dholbach, salut06:56
=== doko_ is now known as doko
dokobarry, slangasek: maybe -E, but not -s for all scripts. call it the unix way to have user and local stuff precedence about system stuff07:29
vibhavIs it true that new uploads will go to raring-proposed?07:47
pittivibhav: yes, https://lists.ubuntu.com/archives/ubuntu-devel/2012-October/036043.html07:48
dokoxnox, I can understand --includes, but why --ldflags?07:50
vibhavah, I was not aware of that. That idea sounds good too, nevertheless07:50
vibhavthanks pitti07:51
pittivibhav: no, it doesn't sound good07:51
pittiit sounds OMGWANTTHISNOWGREAT! :-)07:51
vibhavheh07:52
pittiaka "never break dist-upgrades due to arch skew again"07:52
pittiand breaking ubiquity with a new glib, pygobject, etc.07:52
vibhavyeah, archive skews are something fearfull07:53
vibhav/win 908:08
mlankhorst /alias 9 win 908:09
=== henrix_ is now known as henrix
ailo-wapw: Hi. Just wanted to ping you about -lowlatency. I'm the kernel team guy in Ubuntu Studio, and the one who posted about it in the kernel mail list last month08:54
apwailo-w, good timing ... i have just finished redoing the P one and uploaded it to the kernel team PPA08:55
apwailo-w, we could do with some help confirming it works ok; if it is then the trees are both in a similar state and 'ready'08:57
xnoxdoko: to get the multiarch -L path. Unless I am doing something wrong and compiler is finding it anyway =)09:07
dokoxnox, I think this would be wrong, although you should search for libpython3.3m.so09:09
xnoxdoko: ok.09:09
=== mcclurmc is now known as mcclurmc_away
jmlHow stupid would it be to write code that assumes Contents-amd64.gz is alpha-sorted by FILE field?10:35
mlankhorstdepends how easy it is to avoid that assumption :P10:42
cjwatsonjml: I believe it's reasonably well guaranteed to be in strcmp() order by file10:45
jmlcjwatson: thanks.10:45
cjwatsonIf you can avoid that assumption, do, but I appreciate that that file is large10:46
jmlcjwatson: will do. I'll muck around a bit to see whether I get any significant speed gains by that assumption, and then make a completely irrational assessment as to whether they are worth it.10:53
sawrubhello all developers, i just installed 12.10 and i'm facing the long seen problem with the Atheros AR9485 WiFi under UBUNTU. Is there any fix on the way. the people at Fedora seems to have fixed the issue long back in July https://bugzilla.redhat.com/show_bug.cgi?id=736435#c810:53
ubottubugzilla.redhat.com bug 736435 in kernel "kernel network driver ath9k causes connection problems with TP-Link TL WN951 Atheros AR5008" [Medium,Closed: wontfix]10:54
cjwatsonsawrub: #ubuntu-kernel perhaps better10:54
sawrubbut i'mm still facing the lockdown issue10:54
sawrubi'm not able to enjoy the wifi.10:55
cjwatsonSure, I'm just directing you to an IRC channel that's more specialised10:56
sawrubthe only solution that i can find on the net is to use compact wireless10:56
sawrubhttp://ubuntuforums.org/showpost.php?p=11347273&postcount=6310:56
sawruband what will that be10:56
cjwatson11:54 <cjwatson> sawrub: #ubuntu-kernel perhaps better10:57
sawrubok...let me ask there..thanks10:57
ionEXT4 Data Corruption Bug Hits Stable Linux Kernels http://www.phoronix.com/scan.php?page=news_item&px=MTIxNDQ10:59
mlankhorstplease don't link phoronix :(11:00
ionPlease don’t “please don’t link phoronix”.11:01
mlankhorst:D11:02
=== _salem is now known as salem_
OdyXxnox: about PySide, I welcome co-maintainers and try to avoid any distro diff as much as possible. The version currently in experimental is the latest upstream.11:29
xnoxOdyX: ack. Well shiboken currently fails to build from source in quantal & raring. with any python.11:30
xnoxOdyX: no 3.3 shiboken, no 3.3 PySide =(11:30
=== tdc_ is now known as tdc
xnoxbug 107077211:30
ubottuLaunchpad bug 1070772 in shiboken (Ubuntu) "modelview_test.py segfaults python" [High,Confirmed] https://launchpad.net/bugs/107077211:30
xnoxthe bug is interesting, the unit test passes but upon clean up python interpreter itself segfaults after/during cleaning up floats. Maybe barry or doko can look into it ^^^^11:31
* xnox is rebuilding in debian at the moment to see if debian is affected as well or not.11:32
xnoxOdyX: in debian shiboken builds fine....11:36
OdyXxnox: eh :) It looks like a ubuntu python bug to me11:53
dokoxnox, hmm, mpi4py had someting similiar, was fixed in http://launchpadlibrarian.net/120852567/mpi4py_1.3%2Bhg20120611-1_1.3%2Bhg20120611-2.diff.gz11:53
xnoxdoko: I'd agree with you, but the unit test passes in shiboken case (no asserts about ref-counts) it's just python segfaults after the unit-test has passed and said so.11:59
xnoxand it segfaults all pythons after passing the unit test in Ubuntu, but everything is ok in Debian.11:59
xnoxe.g. 2.7, 3.2 and 3.3 segfault on ubuntu, but 2.7 & 3.2 on debian does not.12:00
=== cpg is now known as cpg|away
barryxnox: interesting.  i won't have time to look at this before i head to the conference today tho12:15
xnoxbarry: ack =) have fun12:16
cjwatsonxnox: refcounting bugs are like malloc arena corruption - the crash is often well after the cause.  I wouldn't rule out a bug in the extension just yet if I were you.12:27
xnoxcjwatson: thanks for explanation. ok.12:29
cjwatsonvalgrind might help a bit, though probably won't tell you what got the refcount wrong, only what acted on it (if it is indeed a refcounting bug)12:33
barryxnox: also, try it with a debug python12:39
dokodpkg: error: triggers ci file contains unknown directive ``time''12:42
dokoE: Sub-process /usr/bin/dpkg returned an error code (2)12:42
dokonever seen that12:42
philballew ubuntu open week starts in #ubuntu-classroom in 5 minutes12:57
xnoxstgraber: thanks for trianging to ibus. Do you think there should be "keyboard-inputs-indicator" which combines keyboars & input methods?13:03
stgraberxnox: I guess having ibus merged into the main keyboard configuration dialog and indicator would make sense, though there's the problem that they are separate projects and very likely aren't talking to each other...13:05
xnoxstgraber: you'd think keyboard layout people would have a common interest in like keyboards.... =)13:07
dokobarry, xnox: well, it's interesting that shiboken ignores the return values of the -dbg test runs, so it looks like the maintainer didn't care about failing test cases ...13:17
=== dendrobates is now known as dendro-afk
=== dendro-afk is now known as dendrobates
=== dholbach_ is now known as dholbach
=== dmart_ is now known as dmart
=== henrix is now known as henrix_
=== dpm__ is now known as dpm
ScottKmitya57: A diff against Ubuntu for python-defualts isn't very helpful.  I'd really need to see the diff against current Debian.14:28
mitya57ScottK: bzr diff -r 5614:29
mitya57that's why I used Debian branch as a base :)14:29
ScottKOK.14:29
ScottKIt'll have to wait until I have enough brain power to figure out using bzr for a review.14:29
* ScottK virtually never does that.14:30
infinityslangasek: Are we meeting today?14:30
slangasekinfinity: yes14:30
infinityslangasek: Mmkay.14:31
sconklin@pilot out14:46
=== udevbot changed the topic of #ubuntu-devel to: Ubuntu 12.10 (Quantal Quetzal) released! | Archive: Frozen | Dev' of Ubuntu (not support or app devel) | build failures -> http://qa.ubuntuwire.com/ftbfs/ | #ubuntu for support and dicussion of hardy -> quantal | #ubuntu-app-devel for app development on Ubuntu http://wiki.ubuntu.com/UbuntuDevelopment | See #ubuntu-bugs for http://bit.ly/lv8soi | Patch Pilots:
ScottKWhat's the equivalent of getattr(sys, "pydebug") for python3?14:58
ScottK(that's still False in the python3.2-dbg interpreter)14:58
ScottKbarry: ^^^14:58
cjwatsonScottK: "d" in sys.abiflags, possibly15:00
cjwatson?15:00
ScottKThanks.15:00
ScottKsys.abiflags[0] == 'd' works, but feels ugly.15:02
=== morphis|away is now known as morphis
cjwatsonScottK: is it a good idea to depend on the order?15:06
ScottKProbably not.15:07
ScottKI guess 'd' in sys.abiflags[0] is less ugly.15:07
cjwatsonWhy [0]?15:07
ScottKerr without the [0]15:07
cjwatsonRight :)15:07
ScottKThe lack of sys.pydebug in python3 seems odd, but I guess I'll move on.15:09
=== yofel_ is now known as yofel
dokoScottK, hmm, I didn't re-add it for 3.315:25
=== Ursinha-afk is now known as Ursinha
ScottK'd' in sys.abiflags works, so I'm not stressed about it.15:27
alexblighIf I am packaging an program which contains shared libraries, Lintian is warning me that "non-dev-pkg-with-shlib-symlink", which I'm guessing means the shared library symlinks should not exist in the package. I can remove them, but what is it that runs ldconfig on install?15:34
cjwatsonThose are two unconnected questions ...15:35
cjwatsonThe point is that .so links should generally go in a -dev package, not in the runtime package, because the only thing that needs the .so links (as opposed to .so.N) is the linker (ld) when building other packages against this library, not the runtime linker (ld.so)15:36
cjwatsonldconfig calls are inserted into your package's maintainer scripts by dh_makeshlibs15:37
cjwatsonIncidentally, you don't need to guess what lintian messages mean; you can use lintian-info.15:37
alexblighcjwatson, ah. So if this is a not a -dev package I can simply delete all symlinks in /usr/lib in the dist directory that the makefile for the undebianised things builds?15:38
cjwatsonThe details of exactly how to arrange it for any given build system vary.15:38
cjwatsonGenerally you install it into debian/tmp/ rather than debian/your-package-name/ (which dh_auto_install will do by default if you have multiple binary packages, as you should in this case) and then have dh_install pick the right files to put in each binary package.15:39
alexblighactually, per the lintian-info thing, I think this is harmless15:40
alexblighyes, it's actually a copy of the dist directory.15:40
cjwatsonIt is not the worst lintian error you could have, but it *is* generally wrong and should be fixed.15:40
cjwatsonPeople expect shared library packages to be done in broadly the same way as all other shared library packages.15:40
alexblighcjwatson, there are are LOT of things wrong with this package - I'm sort of looking for a quick and dirty hack and repackaging xen.15:41
cjwatsonThe exception is if it's a private library that isn't intended to be exposed outside this program, in which case you should put it in a private subdirectory of /usr/lib, not in /usr/lib itself.15:41
cjwatsonYeah, I'm not going to advise you on how to do things wrong, though :-)15:41
alexblighcjwatson, I appreciate that :-)15:42
alexblighdh_shlibdeps seems to complain if I start deleting symlinks.15:43
alexblighso I'll guess I'll leave it in horrible hacked state for now.15:43
cjwatsonEh, the point isn't to delete symlinks15:46
cjwatsonThe point is to put them in the right binary packages15:46
alexblighcjwatson, sure; what I'm saying is that if it's permissible for a 'small package', it isn't the worst sin in the world to do it on a larger package. Given the other horrors I have to contend with, I'm putting this in the 'mostly harmless' box :-)15:50
alexbligh(permissible per the lintian-info notes)15:50
cjwatsonYeah, I read those notes after I said that and I think they're far too lenienet.15:51
cjwatsonOr misphrased.15:51
cjwatsonI have a 50KB library package which does it right.  Can't get much smaller.15:51
alexblighafter all, xen4.2 is a really small package (cough cough)15:52
=== mcclurmc_away is now known as mcclurmc
=== dpm is now known as dpm-afk
=== dendrobates is now known as dendro-afk
=== mcclurmc is now known as mcclurmc_away
=== dendro-afk is now known as dendrobates
xnoxdoko: my python3-defaults package may be slightly wrong, as I have a broken symlink17:18
xnox/usr/lib/pkgconfig/python3.pc -> python-3.3.pc17:18
xnoxit should be17:18
xnox/usr/lib/pkgconfig/python3.pc -> ../../$(arch)/pkgconfig/python-3.3.pc17:19
xnoxor better for python3.pc symlink to be in /usr/lib/$(arch)/pkgconfig/17:19
xnoxScottK: in CMake pkg_check_modules(PYTHON python-3.3) actually does the right thing.... if packages build using PYTHON_INCLUDE_DIRS17:26
xnoxthe FindPythonLibs.cmake included with cmake itself kind of assumes there will be a single non-abi qualified include dir, which is not the case for the multiarched 3.317:27
ScottKA quick grep of the PyKDE4 source suggests it does not.17:28
ScottKsip4 will DTRT with multiple include dirs, but I had to patch python-qt4 configure to take advantage of that.17:28
=== dendrobates is now known as dendro-afk
xnoxScottK: sorry, do you say that FindPythonLibs.cmake is correct, and it's just that my package is doing something odd?! Where is yout python-qt4 ?17:36
ScottKNo, I said sip4 handles it.17:37
xnoxok.17:37
ScottKI didn't look at cmake17:37
ScottKpython-qt4 is ~done.17:37
xnoxack.17:37
ScottKHere's the configure patch: http://www.riverbankcomputing.com/pipermail/pyqt/2012-October/032049.html17:38
ScottKIn case you were wondering.17:38
xnoxAh, I see what you did there =)17:39
xnoxnifty17:39
dokoxnox, meh, yes, but it's an arch indep package ...18:10
dokowould be nice if pkgconfig had a predefined multiarch macro when called as <triplet>-pkgconfig18:12
jdstrandbarry: hi! do you think that you could poke someone on http://bugs.python.org/issue13512? (CVE-2011-4944) the last comment is that it will be ported to 3.2 soon, but nothing happened with it. I fixed this in py3.2 in quantal with 3.2.3-6ubuntu3.1, but raring 3.3 and 3.2 need it18:12
ubottuPython 2.6 through 3.2 creates ~/.pypirc with world-readable permissions before changing them after data has been written, which introduces a race condition that allows local users to obtain a username and password by reading this file. (http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-4944)18:12
jdstrandbarry: it isn't a big deal, but it would be nice to get it applied upstream18:14
xnoxdoko: last time this was brought up by wookey ( i think ) the "meta-packages" to select the default arch:any packages should also be arch:any.18:15
xnoxOtherwise multi-arch will not be able to do it's multiarch magic.18:15
xnoxcause it will not know how to do an M-A jump arch:all -> arch:any dep.18:16
dokoyeah, at least the libpythonX.Y-foo packages have to18:16
xnoxdoko: where foo is dev ?18:16
xnox=)18:16
dokoas dev, stdlib, etc18:17
xnoxwell all of them to be honest.18:17
dokohaven't to be all, I think. why the packages with the binary symlinks?18:17
xnoxbecause otherwise I will not be able to do build-dep python3:any18:19
dokohmm, maybe18:21
dokoohh I hate this multiarch stuff now18:21
dokoxnox, should fixed packages be uploaded to the ppa, and then copied to the distro?18:22
xnoxdoko: I am not sure =) but for one package I uploaded into both.18:22
xnoxdoko: plus this round of uploads has slightly wrong changelog entries (i didn't pass --nomultimaint to dch, while my ~/.devscripts was setting it)18:23
xnoxso currently there are [ Joe Bloggs ] * Rebuild for python3.3 -- Dmitrijs Ledkovs18:23
xnoxentries =/18:23
xnoxdoko: are you fixing up python3-defaults?18:24
dokowell, fixing will be splitting the packages ...18:24
* xnox haven't worked out how to bump the version in debian/changelog yet still have packages matching in version number with the real pythonX.Y default version number.18:24
xnoxdoko: create .pc symlink at postinst? =)))))18:25
* xnox hopes slangasek doesn't notice this suggestion.18:25
dokowell, as a quick fix I consider adding this link into the libpython3.3-dev package18:26
dokoand removing it from the python-defaults package18:26
xnoxdoko: but how would libpython3.3-dev know it's the default?18:27
slangasekgood way to avoid me noticing18:27
slangaseksince I have /hilight and /ignore confused18:27
dokoxnox, because it will be in the ppa18:27
xnoxdoko: ok. what about the real fix.18:28
slangasekwhat .pc files are you talking about?18:28
dokolater, not before uds18:28
slangasekwhy would a .pc file not be shipped in the per-arch directory?18:28
xnoxslangasek: python3-dev ships symlink python3.pc -> python3.X.pc18:28
slangasekok, so if it wasn't already clear, python3-dev needs to be Arch: any18:29
xnoxslangasek: currenlty python3-dev is arch:all package, but since 3.3 is multiarched, the meta-packages should be "multi-arched" as well, which for really means arch:all -> arch:any18:29
slangasekI have filed bugs in the past about this - python(3)-defaults need to be made arch: any18:29
slangasekdoko: ^^ you understand this, right?  We need to be able to specify the needed architecture of python3-dev for cross-building18:30
xnoxslangasek: all packages it builds? I looks like -doc can stay as arch:all, not sure about idle3 (it has python3 = ${binary:version} so probably arch:all as well)18:30
dokoslangasek, I do understand that it's not needed to make 3.3 the default. that's the priority for now18:31
slangasekxnox: yes, sorry, was being overly brief there18:31
xnoxdoko: the boost-defaults builds all packages as arch:any18:31
slangasekdoko: true18:31
xnoxack.18:31
slangasekxnox: AFAIK the only one we care about is -dev18:31
slangasekdoko: it's not the immediate priority, but it does need to be solved this cycle; I filed a bug about this about a year ago, and it blocks cross-bootstrapping18:32
dokoso, I'll prepare an python3.3 upload for the ppa18:32
xnoxslangasek: I thought we equally care a lot about "Build-Dep: python3:any"18:32
xnoxdoko: thanks.18:32
slangasekxnox: you only build-depend on python3 (instead of python3-dev) when you aren't building C extensions; therefore you don't care about the architecture of python3 being installed; so it can be Arch: all and rely on arch-all build-deps being implicitly Multi-Arch: foreign18:33
dokoslangasek, there will be so many python cross build failures ... none of the various python build systems supports cross building18:33
slangasekdoko: that's beside the point.  Not having Arch: any python3-dev is *blocking* fixing those things.18:34
dokoslangasek, you didn't, at least not for python3-defaults18:36
slangasekdoko: possibly the bug was only filed against python-defaults.  I can open a new task :)18:36
* xnox slangasek's bugs outlive python218:37
dokoslangasek, better file a new one, your memory seems to be corrupted ;-)18:39
slangasekdoko: bug #934593, which you closed and didn't reopen after you reverted the change! :)18:39
ubottuLaunchpad bug 934593 in python-defaults (Ubuntu Precise) "python-all-dev, python-dev must be Arch: any for multiarch" [Medium,Fix released] https://launchpad.net/bugs/93459318:39
slangasek(bug reopened)18:40
dokoahh, that one18:41
xnoxSo to fix the bug correctly: python3-dev should be arch:any package with symlink /usr/lib/$(arch)/pkgconfig/python3.pc -> python-3.X.pc18:43
slangasekyes18:43
* xnox off to have dinner and will poke python3-defaults after that.18:43
=== gallth is now known as tgall_foo
dokoxnox, how do you track the packages which you fix for the test rebuild?19:22
dokohttp://people.canonical.com/~xnox/py3.2/python3.2.html doesn't show any progress19:23
dokoslangasek, xnox: the proper fix is to split out libpython3-{stdlib,dev,dbg} packages *and* make all of these arch any19:25
slangasekdoko: what's the purpose of python3-dev, that would make it different from libpython3-dev/19:26
=== morphis is now known as morphis|away
dokoslangasek, having the python3.3-config binary19:28
slangasekdoko: and is it really useful to split the python3-dev package just for python3.3-config?19:29
slangasekit seems obvious to me that making python3-dev Arch: any is much simpler19:29
dokoprobably simpler, but how do you install a host interpreter, plus a target python-dev?19:30
dokomost python build systems do use python as implementation for the build system19:31
slangasekpython3-dev Arch: any Depends: python3.3-dev Arch: any Depends python3.3:any, with python3.3 as Multi-Arch: allowed?  (Or Depends python3.3 with python3.3 as Multi-Arch: foreign, whichever is correct)19:33
dokowhy should it be allowed, and not same?19:37
slangasekassuming you mean foreign rather than same (since same is definitely wrong for an interpreter package): "allowed" would be correct if it contains libraries as well as the interpreter, otherwise "foreign"19:38
dokowell, libpython3.3-dev is m-a same, as libpython3-dev would be too19:39
slangasekif libpython3.3 is M-A: same, and all the library bits are in libpython3.3, then python3.3 can probably be M-A: foreign19:39
dokoright, libpython3-{stdlib,dev,dbg} would be m-a same, and python3{,dev,-dbg} would be m-a foreign19:43
=== cpg|away is now known as cpg
slangasekdoko: er, except then you're changing the policy for python build-dependencies19:44
dokobut then how do I build not using the "target" interpreter?19:45
slangasekdoko: right now, packages that build extensions build-depend on python3-dev.  Splitting libpython3-dev out of python3-dev, and making python3-dev M-A: foreign, means packages would have to build-depend on libpython3-dev to be cross-buildable19:45
slangasekdoko: apt will prefer to install the host version of any package that's marked Multi-Arch: foreign19:46
dokoyes, this was my intention19:46
slangasekoh, I think I see the issue now19:46
slangasek/usr/bin/python3-config is not the same on all architectures, right?19:47
slangasekso it can't be in a M-A: same package19:47
dokoyes19:47
slangasekok19:47
dokocurrently it's meaningless because it's written in python, but it will be replaced by a shell script again19:48
slangasekso actually, I'm not sure it matters to have python3-dev as M-A: same... if it's M-A: none, it should still work19:48
slangasekthen when cross-building, Build-Depends: python3-dev gets you the target arch version of python3-dev and the host-arch version of python319:48
dokoand python3.3-dev depends on python3.3, with  a different binary too19:48
slangasekyou can't install more than one copy of python3-dev side-by-side, but for a first pass I don't think that's required19:49
dokook, then let's delay the split of the python3-defaults packages for now19:49
slangasek"python3.3-dev depends on python3.3" but that's ok, isn't it?  You should be able to use python3.3-dev:target + python3.3:host19:49
dokono19:50
slangasekwhy not?19:50
dokoI can't see how this would be right19:50
dokoif the build uses information from the sys or sysconfig modules, then these will come from the host, not the target19:51
slangasekif I'm not mistaken, it's right because python3.3 is *just* the interpreter, and python3.3-dev depends on the interpreter (which is Multi-Arch: foreign) + the lib (which is Multi-Arch: same)19:51
slangasekok19:51
slangasekbut that's a problem with the build system not being cross-build-safe19:51
slangasekI don't think there's any rearrangement of the interpreter packages that we can do to fix that19:52
slangasekinstalling the target-arch python3.3 doesn't solve the problem for a true cross-compile situation where you don't have qemu19:52
slangasek(such as, to pick a random example, aarch64)19:52
dokoyes, known19:52
slangasekSo I think python3.3-dev:target + libpython3.3:target + python3.3:host is still correct, and we just have to defer the fact that many build systems aren't cross-compile safe19:53
dokothe trick for distutils I am using is to set an env var to use the host python with the target standard library19:54
slangasekbut in the base system, there are a lot of *non*-python build systems being used which are cross-build-safe, they just need the right libpython available19:54
dokowhich works ok, as long as I'm only relying on sysconfig, not on the builtin sys module19:54
slangasekright19:54
dokoindeed, and my idea was to have these packages now build-depend on libpython3-dev19:55
slangasekI still think it's better to keep everything build-depending on python3-dev; that way it doesn't require changing python policy or changing build-dependencies, and that change doesn't help cross-compile without qemu anyway so I think we should take our time to look for a better solution for those19:58
ScottKHelp.20:02
ScottKIn debian/rules for python-qt4, I have: configure: $(PYTHONS:%=pyqtconfig-%) $(PYTHONS:%=build-%/configure-stamp) $(PYTHONS:%=dbg-build-%/configure-stamp)20:02
ScottKI've added the $(PYTHONS:%=pyqtconfig-%) rule.20:03
ScottKIf I run make -f debian/rules configure, then the pyqtconfig rule runs.20:03
ScottKBut when I build the package, it does not (even though the build/dbg-build rules do)20:04
ScottKAny suggestions?20:04
dokoslangasek, well, that would be brainstorming session for uds. I don't think that it will require a change to the python policy, as everything still builds, and python policy doesn't touch multiarch. and the b-d change ... how many packages are cross-buildable out of the box anyway20:04
slangasekScottK: are you cleaning in between?20:04
slangasekdoko: python policy says what build-dependencies are supposed to be20:04
ScottKNo.20:04
slangasekScottK: is pyqtconfig-$ver a real file?20:04
slangasek(pointer to source?)20:04
ScottKNo.20:04
ScottKLet me publish this somewhere.20:05
dokoslangasek, so yes, keep it unchanged, change it where it's needed for m-a20:06
slangasekdoko: ok.  in the meantime, will we still get Arch: any python3-dev?20:06
slangasekbecause that's still a blocker20:07
dokoyeah, for the first milestone20:07
slangasekgreat, thanks :)20:07
ScottKslangasek: http://kitterman.com/kubuntu/python-qt4_4.9.5-1ubuntu1.dsc should be dget'able.20:09
slangasekdgotten20:10
ScottKThanks for having a look.20:10
* ScottK needs to get up off the keyboard.20:10
slangasekdo I need raring in order to build this, or should it be quantal-compatible?20:10
ScottKoff/from20:10
ScottKYou need raring.20:10
slangasekok20:11
* slangasek gets his raring chroot set up while looking20:11
ScottKActually, or my PPA.20:11
dokoScottK, any quick idea where to fix the missing python include in boost?20:11
ScottKdoko: None.20:11
ScottKajmitch loves boost though.  Maybe he does.20:11
ajmitchyou're always trying to drop me in it20:13
* doko looks if he succeeds ...20:13
slangasekajmitch: doesn't knowing that you're wanted give a boost to your self-esteem?20:14
ajmitchslangasek: that pun certainly causes tears20:14
slangasekyou're welcome20:14
=== dendro-afk is now known as dendrobates
=== salem_ is now known as _salem
xnoxdoko: that page is *static* :-D20:18
Laneyxnox: I have a cool idea about ben20:19
Laneyit's in the skunkworks atm20:19
xnoxLaney: what processing ~/transitions/ ? Or scp'ing ben.native? =)20:21
jcastro_Riddell: heya, you going to be @ UDS for the flavors plenary? I sent a mail to kubuntu-devel.20:24
=== dendrobates is now known as dendro-afk
=== dendro-afk is now known as dendrobates
=== cpg is now known as cpg|away
=== glebihan_ is now known as glebihan
cjwatsondoko: cross-buildable out of the box> possibly more than you'd think, at least as of quantal (or even precise); it's not great, but it's not completely hopeless either21:05
xnoxLaney: is ben backported to 12.04?21:06
dokocjwatson, I'm just having my doubts with python related cross builds ...21:06
cjwatsonI think we had half the build system cross-building?21:06
cjwatsoner base system21:06
cjwatsonsure, I expect python's ecosystem will take a while :)21:07
dokonow trying to understand jam, to fix boost ...21:07
ScottKAt least I saved you dealing with sip.21:10
dokoScottK, sip4 builds did finish, didn't see the python-qt4 upload ;-P21:15
ScottKNot quite there yet.21:16
slangasekScottK: well, one thing is that you define a target for pyqtconfig-3.% but are patterning over $(PYTHONS) which includes python221:25
slangasekoh, but you have an explicit pyqtconfg-2.7 below21:26
ScottKYes.21:26
slangasekso I suppose that should work21:26
ScottKRunning configure directly failed without that.21:26
ScottKSwitching to like I had it in sip4 doesn't help either.21:27
ScottKconfigure: $(PYTHONS:%=build-%/configure-stamp) $(PYTHONS:%=dbg-build-%/configure-stamp)21:27
ScottKbuild-%/configure-stamp: $(PYTHON3S:%=sipconfig-%)21:27
slangasek+install-arch-3.%: pyqtconfig-%21:28
slangasekthat seems wrong?21:28
slangasek(but is probably not relevant)21:28
slangasekScottK: oh; when I asked if these were real files you said they weren't21:29
slangasekScottK: but you're clearly touching them21:30
ScottKThey are real after I touch them.21:30
slangasekso if you don't clean between builds, they won't be remade21:30
ScottKRight, I remove them in clean.21:30
slangasekok21:30
ScottKThe problem is they never get touched at all, so I know the rule never ran.21:30
xnoxScottK: or make sure the target ends in -stamp, then it will be auto-removed for you.21:30
xnoxwith dh_clean.21:31
xnoxhm..21:31
ScottKxnox: More automagic after it works.21:31
xnox=))))))))))21:31
xnoxmvo are you about?21:31
ScottKThe install-arch thing is a leftover of a previous attempt.21:31
slangasekScottK: ah.  Nothing actually depends on your configure rule.21:32
ScottKHmmm.21:32
ScottKThat would do it.21:32
slangasekthe configure target depends on the configure-stamp targets; it should normally be the other way around...21:33
slangaseker, no21:33
slangasekthat part is right - but then things should depend on configure instead of directly on the stamps21:33
slangasekprobably simplest to make the build-arch target depend on configure21:34
ScottKOK.21:34
* slangasek tests21:34
slangaseklooks good-ish so far21:34
ScottKI need to leave for the evening, so if you make it work, feel free to upload, although I'm not sure all the pushing stuff around in install-arch related to pyqtconfig is right (since I didn't ever test it yet)21:34
slangasekgah, now you're going to make me review the whole diff :P21:36
ScottKThat or pm me yours and I'll finish it later.21:37
=== cpg|away is now known as cpg
xnoxpython3, arch:all package only needs to be built once with 'python3' interpreter with correct forward looking X-Python3-Version tag. Because pycompile does the rest at install time and there are no python3.X specific files/paths generated.22:20
xnoxTrue or False?22:20
Riddelljcastro_: yeah I got that, no immediate volunteers from the community so sign up my name22:32
slangasekxnox: TTBOMK that's correct22:38
xnoxslangasek: good.22:39
dokoxnox, I still would build for all supported versions to check for incompatibilities22:49
dokoan issue which currently not addressed is how to detect any diff22:50
xnoxdoko: ok. but Build-Dep: python3 && building against py3versions -s is wrong =)22:51
dokosure22:53
wookeyif this doesn't work: from util import get_fh_out23:07
wookeywhat package am I missing?23:07
=== Quintasan_ is now known as Quintasan
slangasekwookey: that doesn't appear to be a standard python module.  What's the context?23:14
wookeyrunning 'multiarchify.py from johannes' bootstrap tools23:15
wookeyAh OK, maybe that's why I can;t find it - must be in the rest of his code somewhere23:15
slangasekmust be23:15
wookeyI assumed there was some standard module23:15
wookeyah yes - found it23:16
wookeythat script munges a packages file to make everything arch:all, M-A:none into M-A: foreign, which should woork round difference between ubuntu apt and libdose23:17
wookeyattempting to check this...23:17
xnoxdoko: if you really want to build arch:all against all supported py3s then reject auto-upgrade-testing and feedparser and I will reupload fixing the build-deps to be python3-all, instead of building with python3 only.23:19
dokoxnox, rejected23:22
xnoxack.23:22
xnoxdoko: hmm... did you reject my proposal to reject those packages and hence accepted them. Or did you accept by mistake?23:27
* xnox is confused23:27
xnoxI just wanted to point out that drinking decaf coffee is great after 9pm =)23:52
chrisccoulsonxnox, drinking fully caffeinated coffee after 9pm is even better :)23:53
slangaseknah; after 9pm you're just supposed to add whiskey to it to balance it out23:53
mwhudsonone of the pitfalls of uds is that it's easy for _everything_ you drink to contain alcohol or caffeine23:54
slangasekmwhudson: I don't understand23:54
slangasekhow is this a pitfall? ;)23:54
=== arand is now known as Guest36475
=== arand_ is now known as arand
mwhudson(or, occasionally, both)23:54
mwhudsonslangasek: dehydration isn't a barrel of laughs :-p23:55
xnoxmwhudson: but one barrel whiskey is :-P23:55
barryslangasek: hopefully you're not going to propose a foundations vs kernel team drinkoff23:55
slangasekmwhudson: I prefer to think of it as distilling my inner geek23:55
StevenKbarry: That could end up with a large trip to the hospital23:55
mwhudsonxnox: i dread to think how much decent whisky is going to cost in the hotel bar23:55
barryStevenK: i suppose i better pack my portable stomach pump23:56
StevenKbarry: Haha23:56
xnoxmwhudson: well, we are suppose to judge everything by mobile metrics now. So surely smaller in size, higher value and better kick is on the right path ;-)23:58

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!