/srv/irclogs.ubuntu.com/2012/09/17/#ubuntu-devel.txt

pittiGood morning04:44
pittiinfinity: I don't think they were04:45
pittiinfinity: I checked the upload log, and there was just one package that it tried to upload to ppa.launchpad.net, failed with "connection refused", and then it stopped04:45
pittinothing else04:46
pittiinfinity: the log timestamps coincide with the failed upload log at least04:46
pittiWTF??04:46
* pitti mass-rejects04:47
pittiinfinity: so this remains a complete and utter mystery to me; PPA upload seems broken again (firewall changes?), but then the script should (and according to the log, did) break, not upload to other places04:49
pittiinfinity: oooh *headdeask* I know what happened04:56
pittiinfinity: I guess the next time it auto-uploaded quantal packages, the failed list of precise/lucid packages were still in "updated-packages" (the file with the upload list), and so it uploaded those along04:59
pittiI'm not sure how that dodged the "if test -s updated-packages; then exit 1" command, though04:59
StevenKtest -s updated-packages && exit 1 ? :-)05:00
pittiwell, there's an echo in between as well05:00
pittiStevenK: but that should essentially be the same?05:00
* pitti asks IS for fixing firewall rules05:01
StevenKpitti: Yeah, that's why I suggested it, it avoids an if, but since there's an echo there's no point.05:01
pittiaah, I know05:05
* pitti fixes05:05
dholbachgood morning06:57
jamespagemorning all07:13
=== mcclurmc_away is now known as mcclurmc
tjaaltoni've forgot again.. how to disable multiarch on quantal? just getting rid of /etc/dpkg/dpkg.cfg.d/multiarch isn't enough07:46
tjaaltonnot that useful on chroots07:46
tjaaltonat least when not mirroring i386 locally, making sbuild-update fail07:47
=== smb` is now known as smb
=== henrix_ is now known as henrix
=== henrix is now known as henrix_
jodh/whois Daviey Daviey08:31
jodh 08:31
=== henrix_ is now known as henrix
jodh@pilot in08:32
=== udevbot changed the topic of #ubuntu-devel to: Quantal Quetzal development | Archive: Open | Dev' of Ubuntu (not support or app devel) | build failures -> http://qa.ubuntuwire.com/ftbfs/ | #ubuntu for support and general discussion for hardy -> precise | #ubuntu-app-devel for app development on Ubuntu http://wiki.ubuntu.com/UbuntuDevelopment | See #ubuntu-bugs for http://bit.ly/lv8soi | Patch Pilots: jodh
evmpt: we're getting kernel crashes sent to daisy.ubuntu.com. I know this because the code mistakenly attempts to insert their very large core files into Cassandra.09:33
mptev, that's a problem then, because (as far as I could tell from the code) the UI for that class of error doesn't exist, so whatever UI is being used to send them is bound to be confusing.09:34
mpt(doesn't exist yet, anyway)09:35
evKernelCrash?09:35
mptHm, did I just read it and then completely forget it existed? :-]09:35
* mpt looks again09:36
=== doko_ is now known as doko
mptev, it calls get_system_application_title(), which shows "Sorry, Ubuntu has experienced an internal error." I guess that's strictly accurate, but not the intended text. <https://wiki.ubuntu.com/ErrorTracker#kernel-oops>09:39
evindeed09:41
evmind that we're only seeing these a few times a day09:41
evand we don't have the ability to retrace them yet09:41
ev(lp:apport, bin/apport-retrace:354)09:42
evthat's not to say we shouldn't fix the dialog09:42
mptSure, though fixing bug 1033902 would be much more important if it happens much more often09:44
ubottuLaunchpad bug 1033902 in apport (Ubuntu) "Application thread crash shows application crash error alert" [Undecided,Confirmed] https://launchpad.net/bugs/103390209:44
evyeah, definitely09:44
mptAnnoying that that missed UI Freeze09:45
mptev, so do you think we're getting only a small percentage of kernel crashes from typically-reporting machines? "A few times a day" might actually be right, compared with (for example) 173/day for the current #1.09:45
evI think so. If you look at https://errors.ubuntu.com/oops-local, any exception with MaximumRetryException is likely a kernel crash.09:46
cjwatsonslangasek: A ucf prompt that isn't actually displayed to you seems like it must be a package management bug rather than a bug in the package09:49
evmpt: I'll silently drop them at daisy.ubuntu.com and increment a counter for the day period so we at least know how many we would be getting09:51
cjwatsontjaalton: dpkg --remove-architecture i38609:55
cjwatson@pilot in09:57
=== udevbot changed the topic of #ubuntu-devel to: Quantal Quetzal development | Archive: Open | Dev' of Ubuntu (not support or app devel) | build failures -> http://qa.ubuntuwire.com/ftbfs/ | #ubuntu for support and general discussion for hardy -> precise | #ubuntu-app-devel for app development on Ubuntu http://wiki.ubuntu.com/UbuntuDevelopment | See #ubuntu-bugs for http://bit.ly/lv8soi | Patch Pilots: jodh, cjwatson
mptev, there are four bugs apparently reducing the proportion of kernel errors reported: bug 401370, bug 480421, bug 527026, and bug 624562.10:02
ubottuLaunchpad bug 401370 in apport (Ubuntu) "when attempting to report a kernel crash, apport-gtk enter D wait state" [Undecided,New] https://launchpad.net/bugs/40137010:02
ubottuLaunchpad bug 480421 in apport (Ubuntu) "apport won't report vanilla kernel oops" [Undecided,New] https://launchpad.net/bugs/48042110:02
ubottuLaunchpad bug 527026 in apport (Ubuntu) "Apport is unable to report a bug on a kernel that you are not booted into" [Undecided,Confirmed] https://launchpad.net/bugs/52702610:02
ubottuLaunchpad bug 624562 in apport (Ubuntu) "Reporting kerneloops fails with "permission denied"" [Undecided,Confirmed] https://launchpad.net/bugs/62456210:02
mptand I just reported bug 1051891 about the UI text.10:03
ubottuLaunchpad bug 1051891 in apport (Ubuntu) "Kernel crash/oops shows confusing UI text" [Undecided,New] https://launchpad.net/bugs/105189110:03
evmpt: to be clear, kernel crashes and kernel oops are different10:04
evthe former is when you get a full kernel panic and it dumps its brain into a file (if it even can)10:04
evthe latter is a sort of recoverable error10:04
evthings keep chugging along and you get an OOPS! in the syslog10:04
mptOk ... they're treated the same in apport-gtk currently.10:05
mptSo, an oops *should* have the "Ubuntu just had an internal error" text, then10:05
mptit's only a crash that shouldn't10:05
evyes, I reckon10:05
mpt?10:05
evcorrect10:05
evat least that's my understanding10:06
mptupdated the bug report10:07
mptfixed the specification too <https://wiki.ubuntu.com/ErrorTracker?action=diff&rev2=97&rev1=95>10:10
tjaaltoncjwatson: thanks, found it on the debin wiki too, added to the askubuntu question10:14
=== mcclurmc is now known as mcclurmc_away
=== xymox_ is now known as xymox
didrocksxnox: hey, is ubiquity still in gtk2 or using pygi?10:54
xnoxdidrocks: it's using pygi & python310:55
akheroncjwatson: currently installing quantal beta 1 to another machine from exactly the same usb stick, and seems to work great10:55
cjwatsonakheron: ok, I still have a task for today to investigate it though10:55
akheroncjwatson: fwiw, I had to use the nomodeset kernel option with the first one10:55
xnoxdidrocks: some elements do not use width-for-height widgets, e.g. there are GtkBox here and there.10:55
cjwatsonnomodeset -> not my problem10:55
akheronwith the machine that fails10:55
akheronok10:55
cjwatsonakheron: I didn't mean to say that the name server was broken, BTW, only that something had gone wrong with resolver configuration within the target chroot10:56
didrocksxnox: hum, ok, I'm wondering about bug #1049215 as gnome-bluetooth stacktrace is about using pygi as well10:56
ubottuLaunchpad bug 1049215 in gnome-bluetooth (Ubuntu) "ubiquity-bluetooth-agent crashed with ImportError in /usr/lib/python3/dist-packages/gi/__init__.py: could not import gobject (error was: EOFError('EOF read where not expected',))" [Medium,New] https://launchpad.net/bugs/104921510:56
cjwatsonThis is a plausible enough failure mode, sadly10:56
didrocksnot sure what imported gobject10:56
akheroncjwatson: yeah10:56
cjwatsondidrocks: ubiquity doesn't even support python2 any more10:56
cjwatsondidrocks: but if it's calling some external process which uses python2, that's a different mattere10:57
cjwatson-e10:57
cjwatsonyeah, bluetooth-applet10:57
didrockscjwatson: I guess it's the case10:57
cjwatsonnowt to do with ubiquity10:57
cjwatsonit's pretty obvious from the traceback :)10:57
didrockscjwatson: hum? bluetooth-applet is using pygi10:57
didrocks    from gi.repository import GObject10:57
didrocks?10:57
cjwatsonWait, that's actually ubiquity's substitute bluetooth-agent10:58
xnoxhmmm.... I totally missed that....10:58
pittididrocks: I usually sudo vi /usr/share/pyshared/gobject/constants.py and do something like raise TypeError("not static")10:59
didrockscjwatson: you lost me :)10:59
pittithis will give a proper backtrace which sub-sub-submodule imports the static bindings10:59
cjwatsondidrocks: I lost myself for a bit10:59
xnoxdidrocks: ubiquity-dm fakes a desktop session and half of indicators to provide "ubuntu style session" which only shows ubiquity =)10:59
xnoxbut I didn't think bluetooth was one of them.11:00
=== MacSlow is now known as MacSlow|lunch
cjwatsonI can run the imports at the top of ubiquity-bluetooth-agent without any problem though11:01
cjwatsonPuzzling.  Anyway I should get back to piloting ...11:01
didrocksxnox: cjwatson: I confirm gnome-bluetooth is using pygi11:02
didrocksxnox: did you reproduce it?11:02
pittiI've seen this strange EOFError on a totally different context recently (in a bug report); I think doko attributed it to mis-installation11:02
pittibug 102968311:02
ubottuLaunchpad bug 1029683 in Ubuntu "import causes EOFError: EOF read where not expected" [Medium,Invalid] https://launchpad.net/bugs/102968311:02
didrocksxnox: if so, you can do what pitti is telling to know which component is the guilty one :)11:02
xnoxdidrocks: if you cannot reproduce, maybe something else happened, e.g. somebody yanked their installation media hence that file was actually empty / EOF =)11:02
didrockspossibly11:03
dokopitti, wasn't this one where the reporter even did say that the machine was hanging?11:03
pittibut as that's the third report in a few days, I'm beginning to become suspicious11:03
cjwatsondidrocks: gnome-bluetooth is irrelevant11:03
pittiperhaps something does create zero-byte files somewhere11:03
* didrocks retarget on xnox's plate then :)11:03
cjwatsondidrocks: casper dpkg-diverts away the bluetooth-agent from gnome-bluetooth, and replaces it with a symlink to ubiquity-bluetooth-agent11:03
pittidoko: no, not this one; there might be more dupes, though11:03
didrockscjwatson: ah ok, so the /usr/bin/ is not the one we can expect, thanks for the info :)11:04
cjwatsontumbleweed: looking at bug 1049343 and slightly puzzled by it being a sync - doesn't the reporter say there's a patch to be reapplied?  and he seems to be right11:04
ubottuLaunchpad bug 1049343 in Ubuntu "FFe: Un-blacklist and sync sensors-applet 3.0.0-0.2 (universe) from Debian testing (main)" [Wishlist,Triaged] https://launchpad.net/bugs/104934311:04
xnoxdidrocks: ok ;-)(11:05
xnoxdidrocks: ok ;-)11:05
tumbleweedcjwatson: ah, whoops, I forgot about that11:05
tumbleweedcjwatson: I did ask him on IRC to prepare the patch, a week ago, and clearly he hasn't11:06
tumbleweed(and today, I just saw that it built, and remembered that it had seemed reasonable)11:06
xnoxdidrocks: looking at the code, there were GObject vs Gobject typos fixed in the past, maybe this is a bug report from an acient image?!11:07
didrocksxnox: hum, I think you would get an import error and not this "library mixture" error one (pygtk was gobject, not Gobject)11:07
cjwatsonxnox: the report makes the image version clear11:08
xnoxdidrocks: cjwatson: yeah, it's a recent image and the import is the correct gi one GObject.11:09
=== tkamppeter_ is now known as tkamppeter
didrockshum, seems I can't nominate for Quantal anymore? https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/1045845/+nominate11:45
ubottuLaunchpad bug 1045845 in xorg-server (Ubuntu) "12.10 guest crash on login when using 12.04 qemu-kvm with cirrus driver" [Medium,Confirmed]11:45
cjwatsondidrocks: screenshot?11:45
ogra_hmm, same for me with that link11:46
ogra_nothing between the precise and r-series checkboxes11:47
didrocksright, same11:47
didrockscjwatson: do you still want a screenshot?11:47
cjwatsonYes.11:47
cjwatsonOh, wait, I see what you mean.  No.11:47
didrocksok :)11:48
cjwatsonYou can't nominate for quantal because apparently it was already nominated for quantal and that bug task was then deleted.11:48
cjwatsonhttps://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/1045845/+activity11:48
ubottuLaunchpad bug 1045845 in xorg-server (Ubuntu) "12.10 guest crash on login when using 12.04 qemu-kvm with cirrus driver" [Medium,Confirmed]11:48
didrockscjwatson: oh interested, I didn't know about that feature :)11:48
ogra_http://people.canonical.com/~ogra/quantal.png11:48
ogra_oh,. wow11:49
cjwatsonYou'll find you can nominate other bugs just fine.11:49
didrocksok, but I guess jamespage just nominated them by error and then reverted11:49
cjwatsonIt's arguably a Launchpad bug that you can't re-nominate, so please make sure that's filed.11:49
cjwatsonWell, re-target.11:49
didrocksbut no way to give it back then?11:49
cjwatsonNot that I can see.11:49
cjwatsonPlease file an LP bug.11:49
didrockscjwatson: will do, thanks :)11:49
jamespagedidrocks, gah - sorry - I was not aware of that bug11:50
didrocksjamespage: well, I wasn't as well :)11:50
didrocksbug #105191811:53
ubottuLaunchpad bug 1051918 in Launchpad itself "Can't renominate a bug when a nominated task was deleted" [Undecided,New] https://launchpad.net/bugs/105191811:53
=== mcclurmc_away is now known as mcclurmc
melodiehi12:10
melodiecan someone help me understanding a piece of bash in a cron daily script ? it's related to the permissions on a file12:10
melodieit's about this version of mlocate : http://packages.ubuntu.com/precise/mlocate12:11
cjwatsonSure.  What don't you understand?12:12
melodiehi cjwatson : I would like to know if the file /usr/bin/updatedb.mlocate is supposed to be executable. is it, or is it not ? and is the cron supposed to make it executable "on the fly" ?12:13
=== _salem is now known as salem_
geserit should be executable (at least it's here)12:13
melodieit's lines number 3 to 5 whic make me think so: http://pastebin.com/N2CWL1TR12:14
cjwatsonmelodie: It's shipped executable in the package.12:14
cjwatsonmelodie: There is no reason the cron script should need to change its permissions.12:14
melodiecjwatson, ok, I thank you.12:14
melodiegeser, thank you too12:14
cjwatsonThe -x test there is really just "is it there", actually.  -f would have been fine too but -x is a bit more exact.12:14
melodieall right12:14
cjwatson(Or -e, for that matter.)12:15
cjwatsonBut it's correct as it is.12:15
melodieis this package issued from Debian sid, or Debian testing ? in testing they have the same version number, but I am unable to find how the permissions are setup in the package (which bugs me)12:15
cjwatsonIt doesn't matter where it came from.  Testing comes from unstable.12:16
gesermelodie: as you can remove the package (but leave the configuration files installed incl. the cron-snippet), the cron-snippet has to check if the binary is still there12:16
cjwatsonI expect that the permissions are not explicitly set up at all.  The compiler will emit binaries as executable right from the start.12:16
melodieoh ! I see !12:16
cjwatsonThere's no need to override permissions explicitly when they're correct already.12:17
=== MacSlow|lunch is now known as MacSlow
melodiecjwatson, so if the permissions are not right, it can be the fault of the configurations done in the compiler ?12:18
=== ara is now known as Guest39435
LaneyMost packages will run the dh_fixperms program during building which does some normalisation of permissions and owners (by default).12:23
cjwatsonmelodie: Are the permissions wrong, or is this theoretical?12:24
cjwatsonmelodie: In fifteen years of working on Unix I have never seen the compiler get this wrong, so I don't think the theoretical point is interesting.12:24
melodiecjwatson, the permissions are wrong in my virtualbox machine. Your information allowed me to eliminate a possible source for this issue. the guilty one is the vbox machine.12:25
cjwatsonmelodie: Is this an environment that has been upgraded from some earlier version?12:25
cjwatsonAnd does reinstalling the mlocate package fix it?12:25
melodiethe original system has the right permissions. the spin has wrong permissions12:25
cjwatson"spin"?12:26
=== cpg is now known as cpg|away
melodiea remix if you prefer12:26
cjwatsonI still don't know what you're talking about :)12:26
cjwatson*Which* remix?12:26
melodiea project I am training on in a vbox machine. :)12:26
cjwatsonDoes reinstalling the mlocate package fix it?12:27
melodienothing very important but I was wondering if there was a bug somewhere12:27
melodiecjwatson, this could be, I am going to check.12:27
cjwatsonI expect this is a bug in the remix's image build process.12:27
melodieI think it can also come from something in the virtualbox machine. I am not hundred percent sure that using it for remix is a good idea12:28
melodiecjwatson, reinstalling does fix the issue. thank you !12:29
gesercjwatson: got the embedded image of grub2 bigger with the recent package upload? because I got hit by bug #1051154 with the recent updated (it worked till now with RAID and LVM)12:30
ubottuLaunchpad bug 1051154 in grub2 (Ubuntu) "[quantal] warning: your embedding area is unusually small. core.img won't fit in it." [Undecided,Confirmed] https://launchpad.net/bugs/105115412:30
cjwatsongeser: wouldn't be surprising.  I'll look later12:31
cjwatsongeser: may not be terribly fixable12:31
cjwatson62 sectors is very little space to fit anything useful in ...12:31
cjwatsonwait, "embedding area is unusually small" means there's even less than 62 sectors12:32
cjwatsonI wonder if that's lying, since it doesn't match the fdisk output there12:33
cjwatsonanyway, must finish piloting first.12:33
geserI can add my fdisk output too to that bug later (if it helps)12:35
cjwatsonsure12:36
alkisg1cjwatson: re: LP bug #978654, I believe the correct thing to do there is to leave the .decode() call for as long as pkcompat.py is python2 (i.e. 12.04/12.10). When it's ported to python 3, that change should be reverted.12:39
ubottuLaunchpad bug 978654 in aptdaemon (Ubuntu) "<type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xc3 in position 24: ordinal not in range(128)" [Medium,In progress] https://launchpad.net/bugs/97865412:39
alkisg1cjwatson: it's not the only call to dbus.String(), and I don't think we want to change all the calls to include the decode() + the guard if...12:40
jodh@pilot out12:43
=== udevbot changed the topic of #ubuntu-devel to: Quantal Quetzal development | Archive: Open | Dev' of Ubuntu (not support or app devel) | build failures -> http://qa.ubuntuwire.com/ftbfs/ | #ubuntu for support and general discussion for hardy -> precise | #ubuntu-app-devel for app development on Ubuntu http://wiki.ubuntu.com/UbuntuDevelopment | See #ubuntu-bugs for http://bit.ly/lv8soi | Patch Pilots: cjwatson
cjwatsonalkisg1: No, I disagree.  Leaving timebombs around for ourselves is unwise.12:45
cjwatsonalkisg1: The guard I suggested is safe in Python 2 as well.12:45
cjwatsonalkisg1: Unless pkcompat will *never* be ported to Python 3.12:45
alkisg1cjwatson: there are multiple dbus.String() calls in the code, a wrapper function for dbus.String() should probably be defined then12:45
cjwatsonIn fact, there is already a python3-aptdaemon.pkcompat package.12:45
alkisg1cjwatson: my idea is that when it's ported to python3, decode() won't be needed, so it should only be there until it is12:46
cjwatsonSo the "it's only Python 2" argument is definitely invalid.12:46
cjwatsonA better counterargument, if you wanted to avoid this, would be to demonstrate that last_update can never be assigned a Unicode string.12:46
cjwatsonBut I don't know whether that's true.12:46
alkisg1So, you'd vote for a call-dbus-string() wrapper for all of the calls?12:47
alkisg1Or just for this one call?12:47
cjwatsonI don't know enough of the context.  It would depend.12:47
cjwatsonI suggest you look into how these functions are called (i.e. answer my question above).12:48
alkisg1aptdaemon$ grep -r dbus.String * | wc -l12:48
alkisg110912:48
alkisg1I think that looking into 109 calls would be too much work12:48
cjwatsonWell, I'm not going to sponsor a change when I'm not convinced it's safe12:49
alkisg1I.e. some wrapper would be easier. Or, just leave it without a wrapper, since it's more clearly written for python 3, and only fix that one call for the python2 in 12.04/12.10 problem12:49
ogra_you could train your sed skills with it ;)12:49
cjwatsonBut since this is implementing a (presumably) defined interface, why not look into what defines that interface ...12:49
cjwatsonI wouldn't have expected most of those calls to be relevant; many of them may well be operating on always-bytes data12:50
cjwatsonOr, sorry, I mean always-text (Unicode)12:50
cjwatsonAs usual with Python 2/3 porting you need to make sure that you know whether each object is binary or text.12:50
alkisg1So the idea is that the code should be python2 compatible even if it's ported to python3?12:51
alkisg1What I don't understand is why would we want the decode() functions in a python3 port of the code12:52
cjwatsonWe don't want to have to maintain separate Python 2 and 3 versions.12:52
cjwatsonIt's a horrendous hassle.12:52
alkisg1OK, I thought the python2 version wouldn't be developed anymore12:53
cjwatsonFor most packages, as long as they still build Python 2 versions, they should be written in code that's compatible with both.12:53
cjwatsonThat's not usually how it works.12:53
alkisg1Gotcha12:53
cjwatsonThe Python 2 binary package comes from the same source package as the Python 3 one.12:53
alkisg1OK, then it's a bigger problem than what I have time for. I can't study someone else's code for 109 occurances of possible time bombs...12:54
alkisg1Thank you very much for your input, I'll unassign the bug12:54
cjwatsonLooking at the code, it seems clearly possible for this method to receive text input.12:54
cjwatsonalkisg1: I think you're overreacting12:55
cjwatsonalkisg1: You don't need to do any such study12:55
cjwatsonalkisg1: You're proposing a change to this one method, and it may well be that in practice this is the only method where this is a problem12:55
alkisg1cjwatson: my idea was that this would be a quick patch, and that the person undertaking the python3 port would solve it properly12:55
cjwatsonalkisg1: If written in the style I suggest, this change would be harmless; it might not fix everything, but it would be an improvement12:56
alkisg1I.e. either make a wrapper function for all dbus.string calls, or fix the ones that need decoding, etc12:56
cjwatsonalkisg1: You seem to be suggesting that no change should be made until it is perfect, which is not usually a wise approach12:56
cjwatsonAll I'm saying is that this change should be written in a way that means it's clearly not a regression12:56
cjwatsonI'm not saying you need to audit all those dbus.String calls, at all12:57
alkisg1Well, currently the script isn't runnable with python312:57
alkisg1So it wouldn't be a regression12:57
cjwatsonWhich script?12:57
alkisg1pkcompat.py12:57
cjwatsonThe file you're editing is shipped in python3-aptdaemon.pkcompat12:57
cjwatsonIt may have '#!/usr/bin/env python' at the top, but it is principally a module to be imported from other programs, not principally a script to be run standalone12:58
cjwatsonSo I don't consider the #! line very relevant12:58
alkisg1OK, I thought it was to be revisited by someone for python3 compatibility12:59
cjwatsonIf you run python3 you can then say 'from aptdaemon import pkcompat' and it works12:59
cjwatsonIt has already been ported to Python 312:59
cjwatsonI suspect that in fact the reported problem that you're debugging only exists in Python 212:59
alkisg1True, dbus.String() can accept unicode strings in python313:00
cjwatsonSo it's not a lack of port to Python 3, it's (perhaps) a slightly overenthusiastic port, if anything13:00
cjwatsondbus.String can accept Unicode strings in Python 213:00
cjwatsonas well13:00
cjwatsonWhat it can't accept is a Unicode string encoded as bytes13:00
cjwatson>>> dbus.String(u"é")13:01
cjwatsondbus.String(u'\xe9')13:01
cjwatson>>> dbus.String(u"é".encode("UTF-8"))13:01
cjwatsonTraceback (most recent call last):13:01
cjwatsonIf you pass bytes to dbus.String() in Python 3, in an odd reversal of the usual situation, it doesn't crash, but it produces incorrect results due to the behaviour of str(bytes):13:02
cjwatson>>> dbus.String("é")13:02
cjwatsondbus.String('é')13:02
cjwatson>>> dbus.String("é".encode("UTF-8"))13:02
cjwatsondbus.String("b'\\xc3\\xa9'")13:02
cjwatsonSo this demonstrates that in both Python 2 and 3 you *must* pass text (Unicode) to dbus.String and it is incorrect in both worlds to do otherwise13:03
alkisg1Aaah I didn't realize that part13:03
cjwatsonThus, I'd suggest that perhaps you should be looking further up in the traceback heree13:03
alkisg1I did say it wrongly above (unicode instead of utf8 strings), but I thought python3 would correctly handle utf8 strings (byte sequences)13:03
cjwatsoni.e. don't change last_package_setter at all - leave its interface as being defined to take Unicode strings only13:04
alkisg1What I'm saying though, is that someone needs to have a look at all those calls13:04
alkisg1My only part in this is because students get an apport dialog13:04
cjwatsonFor this bug, somebody needs to have a look at *this* call13:04
cjwatsonPlease don't let the perfect be the enemy of the good13:04
alkisg1And instead of disabling apport, I thought I'd invest a few minutes to help there13:04
alkisg1I understand the problem, and I really think it's a job for the maintainer13:04
cjwatsonIt shouldn't need to be13:05
alkisg1I really thank you for your time, and I'm not avoiding this due only to time constrains. I really feel that it's a bigger problem that I shouldn't tackle. It needs a better solution, and personally I'd go for a wrapper function, to avoid all possible cases at once.13:06
cjwatsonI really don't think that's right13:07
cjwatsonA wrapper function is missing the point13:07
cjwatsonThese functions are (implicitly) defined to take Unicode strings only - a wrapper function would be masking bugs elsewhere13:07
cjwatsonIn this case, I believe I see the bug13:07
cjwatsonLook in 'def _get_id_from_version'13:08
cjwatsonorigin = version.origins[0].label13:08
alkisg1A wrapper function could log + fix the problems elsewhere13:08
cjwatsonNo13:08
cjwatsonI'm not going to pursue that13:08
alkisg1I.e. have the devs notified without having the users apps breaking13:08
cjwatsonI bet (though I'll check) that version.origins[0].label is bytes, not text13:08
cjwatsonalkisg1: What is the URL for the PPA you used in your example (https://bugs.launchpad.net/ubuntu/+source/aptdaemon/+bug/978654/comments/12)?13:10
ubottuLaunchpad bug 978654 in aptdaemon (Ubuntu) "<type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xc3 in position 24: ordinal not in range(128)" [Medium,In progress]13:10
alkisg1cjwatson: https://launchpad.net/~ts.sch.gr/+archive/ppa/+packages13:10
=== jcastro_ is now known as jcastro
cjwatsonThanks13:11
alkisg1We have about 20 papercut-like problems in schools here. E.g. we can't type greek due to lightdm not supporting multiple layouts, we have aptd, colord, apport etc crashes, sshfs problems... we try to help where the fixes are simple, but we don't have time to dive + properly fix all those cases13:13
davmor2pitti: I'm just wondering if bug #1051951 could be related to bug #952933  but I'm pretty sure I saw you and seb128 say that you would push the fix upstream to debian, it's just it has the exact same symptoms13:14
ubottuLaunchpad bug 1051951 in gvfs (Ubuntu) "sansa fuze and samsung s3 phone are both shown as usb drive not devices" [Undecided,New] https://launchpad.net/bugs/105195113:14
ubottuLaunchpad bug 952933 in gvfs (Ubuntu) "media players do not trigger "Open with Music Player" dialog" [Medium,Fix released] https://launchpad.net/bugs/95293313:14
cjwatsonSure, you can do whatever you like locally of course, but this is a merge proposal into Ubuntu so I want to do the right thing and not mask bugs13:14
alkisg1So e.g. for lightdm we're using an /etc/X11/Xkbmap override, and we have to leave the proper fix up to the maintainer, even if it needs more than 1 year now13:14
cjwatsonEspecially since it doesn't look too hard to do the right thing here13:14
cjwatsonIn fact, add-apt-repository has a similar problem (still :-/)13:15
juliankcjwatson: Origin's label has Python's standard string type.13:16
cjwatsonIndeed.13:17
cjwatsonSo in Python 2 that needs to be encoded if the desired type is in fact text.13:17
dokotjaalton, yeah for http://people.canonical.com/~ubuntu-archive/nbs.html \o/13:25
dokowhat did break the build dependencies?13:25
tjaaltondoko: libglu not accepted yet?13:25
cjwatsoneh, that's transient13:25
tjaaltonit's in NEW I think, mesa dropped it13:25
cjwatsonyeah13:26
cjwatsondoko: feel free to process that in NEW :)13:26
dokook, looking at it13:26
juliankcjwatson: Yes, and placing something like get_dbus_string() in tests/regressions/aptdaemon/core.py into a common module would be useful for fixing this aptdaemon bug. (try: return dbus.String(text), except ...: return dbus.String(text.encode("utf-8"))13:26
cjwatsonjuliank: Well, I think the fix in aptdaemon actually belongs several layers up.13:27
dokotjaalton, all the code was in mesa before?13:29
tjaaltondoko: yes13:30
tjaaltonshould be safe to accept13:31
juliankcjwatson: I don't think it can be fixed on any other level. The fact is that python-apt has a 'str' API, and python-dbus a 'unicode' API. You could change python-dbus to accept utf-8 encoded byte strings, but I don't think this is sensible. You can also change the applications to set the default encoding to UTF-8, which fixes this as well.13:31
tjaaltonpackaging was copied straight from it, debian/copyright should be accurate etc :)13:31
cjwatsonjuliank: I think you're misunderstanding me.13:32
cjwatsonjuliank: The fix in aptdaemon belongs at the point where it retrieves data from python-apt, not in the methods that construct dbus.Strings from values.13:32
cjwatsonjuliank: These are several layers apart in the call stack.13:33
cjwatsonjuliank: I didn't mean to say that it should not be fixed in aptdaemon; it clearly should.  I meant several layers up *within aptdaemon* from where alkisg1 was suggesting.13:33
dokoaccepted13:34
cjwatsonalkisg1: It seems fairly complicated to set up a reproduction environment for this bug.  Would you mind testing http://paste.ubuntu.com/1211094/, which I believe should fix it?14:02
alkisg1cjwatson: sure, give me a minute to test with the other guy that set up the reproduction environment...14:03
cjwatsonHah, although python-aptdaemon.pkcompat has actually been removed from quantal14:05
cjwatsonBut this won't hurt and will provide a better basis for an SRU14:05
alkisg1cjwatson: works as expected :)14:08
alkisg1(tested with python2, precise)14:08
cjwatsonHooray14:09
cjwatsonalkisg1: Perhaps somebody could add a test case to the bug description, in the form required by https://wiki.ubuntu.com/StableReleaseUpdates?14:11
alkisg1I can try to14:11
cjwatson@pilot out14:14
=== udevbot changed the topic of #ubuntu-devel to: Quantal Quetzal development | Archive: Open | Dev' of Ubuntu (not support or app devel) | build failures -> http://qa.ubuntuwire.com/ftbfs/ | #ubuntu for support and general discussion for hardy -> precise | #ubuntu-app-devel for app development on Ubuntu http://wiki.ubuntu.com/UbuntuDevelopment | See #ubuntu-bugs for http://bit.ly/lv8soi | Patch Pilots:
* dholbach hugs cjwatson :)14:16
cjwatsonalkisg1: I've uploaded a fix to precise-proposed, pending approval.  The test case will help that. :-)14:20
alkisg1cjwatson: ty, /me is still writing... :)14:20
alkisg1cjwatson: done, as well as I could write those... :)14:27
cjwatsonalkisg1: thans14:40
cjwatson*thanks14:40
alkisg1np, thank you too and sorry for not doing it myself the way you pointed14:40
cjwatsonnp14:40
alkisg1I just feel that larger bugs should be handled by the maintainers... /me is probably just getting too old for this... :)14:41
cjwatsonWell, I'm not an aptdaemon maintainer14:42
cjwatsonSo unless you're saying I shouldn't have handled it ...14:42
ogra_age is not an excuse14:42
ogra_(i think colin is older than you :P )14:42
alkisg1I surely appreciate that you've handled it, but shouldn't the maintainer have a look at all the other 108 dbus.String() calls?14:45
cjwatsonNo, because that's a red herring14:46
cjwatsonThe problem is not dbus.String; the problem is the interaction with a different string model in python-apt14:46
cjwatsonAnd I grepped for other uses of Origin.label, and fixed the one other case of that14:47
dokobryceh, about 1050674: is this a copy of the existing driver packaging, or are these maintained somehow together?14:48
cjwatsonIt's sometimes a mistake to microfocus on the bottom level of the traceback - what you want is for types to be correct all the way through the program14:48
alkisg1So e.g. "BackendAuthor": dbus.String(__author__), => are we sure that won't be utf8?14:49
cjwatsonYes, because it is a hardcoded constant!14:49
alkisg1And  we're sure no e.g. chinese guy will be the author in the next year?14:50
cjwatsonAny future changes will be to the Python 3 code where this won't arise.14:51
cjwatsonSince "..." is a Unicode type in Python 3.14:51
alkisg1I thought we wanted to maintain a python2 + python3 compatible version14:51
cjwatsonCan you just drop it?14:51
alkisg1Sure14:51
cjwatsonpython-aptdaemon.pkcompat actually no longer exists in quantal.14:51
alkisg1I don't mean to chat just for the ...fun of it14:51
alkisg1We both have lots of things to better invest our time in :)14:52
alkisg1Thank you again.14:52
cjwatsonAnd the reason I'm not harping on dbus.String is that any problems of that form would be *separate bugs*.14:52
cjwatsonThey wouldn't really be the same as this one; they would need to be addressed in entirely separate ways.14:52
cjwatsonI don't think it's worth doing a full audit for that.14:52
cjwatsonThis bug isn't really about dbus.String, it's about incorrectly fetching information from python-apt.14:53
cjwatsonSo I focused on the general case of that, not on the general case of dbus.String handling.14:53
alkisg1Much appreciated; let's move on to other matters :)14:53
cjwatsonI don't mean to snap; I just feel you were pushing me about a generalisation of the problem that I don't actually think is the right generalisation to be looking at.  I did look at the generalised version of what I felt was the correct characterisation of the bug.14:54
alkisg1cjwatson: I honestly have/had etc no hard feelings or anything else bad for you; I also didn't mean to push anywhere etc. I _am_ actually not always understanding the way you (and all ubuntu devs) choose to handle some stuff.14:56
alkisg1That's probably because after 4 years I'm still not sure where the upstream / distro maintainer / bug triager seperation is, exactly14:57
melodiehi again14:57
alkisg1I think after 20 years of being upstream for some programs, it's hard for me to think as a bug reporter / distro maintainer14:59
melodieI do have a general question. I have tried to follow the "UbuntuFromScratch" howto at the Ubuntu website and I have almost reached the end of it (while building the way it is explained). At the end, I see things that I am almost sure I will not be able to handle without some extra help, either because I don't understand, or because it might be outdated for some parts. Is there a chan where I could get help on making a Remix (from scratch)14:59
melodie ?14:59
cjwatsonWell, ideally upstream (who's mostly glatzor) would have addressed this, but since it's mostly a legacy Python 2 matter I decided to just go ahead and fix it and he can pick up the patch if he wants to.15:00
=== salem_ is now known as _salem
=== hggdh_ is now known as hggdh
brycehdoko, the packaging is maintained in the same git tree as the normal driver, on its own branch.  So yes to both.15:46
* Laney is glad that he enjoys playing whack a mole on broken fontconfig configuration files15:53
=== _salem is now known as salem_
* ogra_ wonders why such a little script http://paste.ubuntu.com/1211296/ actually reserves 3MB when running it 15:58
ogra_gtk2-perl clearly got bloated since i looked last15:58
=== Ursinha` is now known as Ursinha
=== Ursinha is now known as Ursula
=== Ursula is now known as Guest90196
=== Guest90196 is now known as Ursinha
=== Guest56315 is now known as zumbi
=== zumbi is now known as Guest95171
=== dendro-afk is now known as dendrobates
=== infinity_ is now known as infinity
=== cmagina is now known as cmagina_away
infinitypitti: So, I assume you rejected all those lucid uploads?16:45
infinitypitti: If so, you missed the ones in NEW.16:46
* infinity finds the others in the rejected queue and confirms before dumping the new ones too.16:46
=== Guest95171 is now known as zumbi
blackbugI have a fix for a bug, how can I submit?17:47
xnoxblackbug: attach a patch to that bug?!17:47
=== mcclurmc is now known as mcclurmc_away
blackbugxnox: sorry, i am doing this first time on ubuntu. By path you mean, tarball of the package in which i have fixed? or in some other form?17:52
blackbugi mean patch*17:52
xnoxblackbug: by patch I mean: $ diff -r -U 4 original-dir/ modified-dir/17:54
xnoxblackbug: google for "how to create a patch", or google for "how to create a merge proposal"17:54
blackbugxnox: thanks, i will google for the same. As of now, i have created branch using lp and did my changes over that.17:55
xnoxblackbug: great17:55
xnoxblackbug: $ bzr diff --old lp:ubuntu/package17:55
xnoxwill make a patch17:55
xnoxblackbug: or simply go to your branch web page and click "Propose a merge"17:56
blackbugxnox: Thanks for the guidance :) . I will do as suggested.17:57
=== ara is now known as Guest53220
cjwatson-U 4?  Weirdo. :-)18:00
blackbugxnox: just 1 last question, after running bzr diff --old lp:ubuntu/package i got the differences on the console. So, I need to redirect them to a file or some patch file is created somewhere? ( posting again, as I got disconnected )18:06
cjwatsonblackbug: redirect18:09
cjwatsonit's a straightforward Unix command, it outputs to standard output by default :)18:10
blackbugcjwatson: Thanks, I will redirect. I thought may be its creates some compress file in background, and also shows output on console :). Thanks :)18:11
cjwatsonNo.18:11
=== jtechidna is now known as JontheEchidna
sbeattiedoko: so one issue I'm noticing with openjdk-7/precise is that update-manager doesn't want to install it because it needs to remove icedtea-7-jre-cacao, which got pulled in by default because openjdk-7-jre-headless used to recommend it.18:34
blackbugcjwatson: one more question......i redirected the output to text file. When i tried to upload it as patch on launchpad, it displayed "Attachment, doesnt seem to be a patch file, Are you sure its patch?". So, everything is cool or I need to change the format?18:36
jdstrand@pilot in18:45
=== udevbot changed the topic of #ubuntu-devel to: Quantal Quetzal development | Archive: Open | Dev' of Ubuntu (not support or app devel) | build failures -> http://qa.ubuntuwire.com/ftbfs/ | #ubuntu for support and general discussion for hardy -> precise | #ubuntu-app-devel for app development on Ubuntu http://wiki.ubuntu.com/UbuntuDevelopment | See #ubuntu-bugs for http://bit.ly/lv8soi | Patch Pilots: jdstrand
=== henrix is now known as henrix_
=== cmagina_away is now known as cmagina
=== cpg|away is now known as cpg
slangasekcjwatson: yep, found where the prompt went and filed a bug on u-m19:39
=== Simira_ is now known as Simira
pittiinfinity: ah, forgot the NEW ones, indeed; but they should be rejected either way; thanks!19:59
=== henrix_ is now known as henrix
dokosbeattie, what do you suggest? adding a conflict?21:24
=== ara is now known as Guest17480
=== nxvl_ is now known as nxvl
=== salem_ is now known as _salem
=== cmagina is now known as cmagina_away
=== cpg is now known as cpg|away
sbeattiedoko: I *think* we need an empty stub icedtea-7-jre-cacao package (for precise only), but perhaps slangasek has a better idea?22:15
jdstrand@pilot out22:35
=== udevbot changed the topic of #ubuntu-devel to: Quantal Quetzal development | Archive: Open | Dev' of Ubuntu (not support or app devel) | build failures -> http://qa.ubuntuwire.com/ftbfs/ | #ubuntu for support and general discussion for hardy -> precise | #ubuntu-app-devel for app development on Ubuntu http://wiki.ubuntu.com/UbuntuDevelopment | See #ubuntu-bugs for http://bit.ly/lv8soi | Patch Pilots:
=== cpg|away is now known as cpg
StevenKRAOF: Using Do's MPD plugin makes my computer sad23:00
RAOFStevenK: In what way sad?23:00
StevenKRAOF: Every action creates a zombie mpc process23:01
ogra_resident evil Do23:01
RAOFStevenK: Ah, yeah.23:01
RAOFStevenK: That's actually a mono bug I should track down.23:02
StevenKRAOF: Yeah, I got annoyed enough to read the plugin code23:02
StevenKWhen I found the process code and found it looked suspiciously like the example code on microsoft's site, I figured it was probably lower down the stack.23:03
RAOFYeah. Something in the BCL isn't waiting properly on the child.23:03
=== henrix is now known as henrix_

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