/srv/irclogs.ubuntu.com/2011/08/28/#kubuntu-devel.txt

=== tazz_ is now known as tazz
=== timblechmann is now known as tim
apacheloggerso11:20
apacheloggerquestion of the day11:20
apacheloggershould apachelogger upgrade to one-eye-rick?11:20
apacheloggeroh, we are oversized again11:22
bulldog98_apachelogger: yes11:30
apacheloggerwhat if it breaks?11:30
bulldog98_apachelogger: fix it :P11:30
* apachelogger is too stupid11:30
bulldog98_apachelogger: you don’t seem to be stupid11:32
* apachelogger almost toasted his router yesterday with openwrt :S11:33
bulldog98_apachelogger: we are more stable than openwrt :)11:34
apacheloggeryeah11:34
bulldog98_at least I hope so11:35
apacheloggeruntil ubuntu-x starts uploading stuff again11:35
bulldog98_apachelogger: do apt-pinning for x :)11:36
bulldog98_apachelogger: and who cares about x use wayland instead :P11:38
apacheloggerG11:38
bulldog98_apachelogger: can the icecc in the pbuilder access a scheduler running on the computer running the pbuilder?11:57
apacheloggersure it can11:57
tsimpsonit communicates over the network, so sure11:57
bulldog98_apachelogger: then why is says my pbuilder icecc that it’s gone build local?12:04
apacheloggercause you aint using the hook properly12:05
bulldog98_apachelogger: so what is needed? the ICECC_VERSION and my PATH are set12:06
apacheloggerread the readme12:06
bulldog98_apachelogger: I did all the stuff that’s in the README (the first two steps, the others aren’t possible anymore)12:08
=== danimo_ is now known as danimo
bulldog98_how do I change the shell for root in a pbuilder?12:29
apacheloggerJontheEchidna: pingpinpingping13:11
apacheloggerJontheEchidna: the muon needs to grow dist upgrade functionality13:11
bulldog98_!search /etc/console-setup/cached.kmap13:37
ubottuFound: 13:37
bulldog98_!help13:38
ubottuPlease don't ask to ask a question, simply ask the question (all on ONE line and in the channel, so that others can read and follow it easily). If anyone knows the answer they will most likely reply. :-)13:38
bulldog98_!help search13:38
ubottuSorry, I don't know anything about help search13:38
bulldog98_!13:38
bulldog98_~search13:38
kubotuincorrect usage, ask for help using 'kubotu: help search'13:38
bulldog98_kubotu: help search13:38
kubotusearch <string> (or: google <string>) => search google for <string> | wp <string> => search for <string> on Wikipedia | unpedia <string> => search for <string> on Uncyclopedia13:38
bulldog98_kubotu: help13:38
kubotuhelp topics: 10 core modules: auth, basics, config, filters, httputil, irclog, remote, unicode, userdata, wordlist; 56 plugins: alias, autoop, autorejoin, bans, bar, botsnack, chanserv, debug, dns, eightball, excuse, factoids, googlefight, greet, hangman, host, identica, insult, iplookup, karma, keywords, lart, lastfm, map, markov, modes, nickrecover, nickserv, note, poll, q, quote, reaction, remind, ri, roshambo, rot, rss, salut,13:38
kubotuscript, search, sed, seen, shiritori, spotify, time, topic, translator, tumblr, twitter, uno, urban, usermodes, wheeloffortune, wserver, youtube; 31 plugins ignored: use help ignored plugins to see why; 1 plugin failed to load: use help failed plugins to see why (help <topic> for more info)13:38
=== bulldog98_ is now known as bulldog98
JontheEchidnaapachelogger: as in, upgrade from one version of Kubuntu to another?15:03
apacheloggeryus15:03
apacheloggerwell15:03
apacheloggerdetecing the presence15:03
apacheloggerand invoke od-release-upgrade15:04
apacheloggers/od/do15:04
JontheEchidnakded/distupgradeedvent15:04
JontheEchidnathe muon-notifier kded module checks for this already15:04
apacheloggerah cool15:04
apacheloggernow if only the update-manager wasn't complete rubbish and could actually check for devel series15:05
JontheEchidnathe impending hurricane has cancelled the first day of class tomorrow15:08
JontheEchidnaprobably because they don't want all the residents moving in today during a hurricane ^^15:10
shadeslayerScottK: soprano 2.7.0+dfsg.1-0ubuntu2 does not fix kalzium as well15:55
* Quintasan is back16:26
Quintasanapachelogger: ping16:26
Quintasanyofel: ping16:26
yofelpong, somewhat16:27
Quintasanyofel: Did you try Riddell's proposed fix to runtime?16:27
yofelnope (he proposed one?)16:27
QuintasanYes he did, but now that I'm back I will try it in a second16:29
apacheloggerwell then16:46
apacheloggerthis update only screwed me over mostly16:46
apacheloggeralso it managed to do it worse than any before16:46
apacheloggerhooray16:46
yofelreally? what's broken now?16:47
apacheloggerfglrx results in black screen16:47
apacheloggerwith ati driver no plymouth is shown and of course nice and cosy graphics artifacts are to be enjoyed16:47
apacheloggerof course the xrandr stuff is still royally broken so my dual screen layout is all fckd up16:48
apacheloggeroh16:49
apacheloggerand there is this flash install thing16:49
apacheloggerthat now installs all of x8616:49
apacheloggerthanks to qapt not being able to handle multi arch16:49
apacheloggerRuntimeError: the PyQt4.QtCore module is version 1 but the PyKDE4.kdecore module requires version -116:51
apacheloggerhttp://i.imgur.com/cZCXq.png16:52
apacheloggertruth be told, I expected an icon there16:52
QuintasanGrrrr16:53
QuintasanNow we need rebuild of kdelibs and runtime and it will most likely work16:53
apacheloggeruhhh16:55
apacheloggerrekonq16:55
apacheloggernot wanting me google cookies16:55
apacheloggerthat is cool16:55
apacheloggerchop chop make[2]: *** No rule to make target `/usr/lib/libQtTest.so', needed by `phonon/libphonon.so.4.5.56'.  Stop.17:03
apacheloggerrow row row your boat gently down the stream17:04
* apachelogger kisses rekonq goodbye as it decided to hang itself17:05
apacheloggerok17:09
apacheloggersomeone explain that error to me17:09
Quintasanapachelogger: multiarch17:10
apacheloggerthat is not an explainatin of the error17:10
apacheloggeractually17:10
apacheloggeron second thought17:10
apacheloggerI dont give a rats ass why the error is there17:10
apacheloggerI want it gone17:10
apacheloggerlike now17:10
* bulldog98 suggest apachelogger not to use flash at all :)17:10
yofelapachelogger: rebuild of phonon should fix it I guess17:10
Quintasanapachelogger: Fix it yourself if you know how17:10
apacheloggeryofel: if that was not what I was doing17:11
yofelapachelogger: ah, then that's probably qtzeitgeist still not being rebuilt17:11
apacheloggerah17:13
apacheloggerthe madness17:13
apacheloggerahhh17:17
apacheloggerbroken opengl17:17
apacheloggerwhat more does a man need17:17
Quintasanbber?17:18
Quintasanbeer even17:18
shadeslayerapachelogger: ever written code in Objective C?17:41
apacheloggerread17:42
apacheloggerI do not write code that only makes sense on proprietary patent supporting vendor locked in systems17:42
shadeslayerhehe, just asking :P17:43
shadeslayeri17:43
apacheloggeralso I need to reboot17:43
* shadeslayer hits his keyboard17:43
* apachelogger sighs about the crap state of oneiric17:43
shadeslayerapachelogger: yeah, quite broken it is17:43
* shadeslayer blames shadeslayer17:43
shadeslayerno sound again it seems17:44
apacheloggerhm18:07
apacheloggershadeslayer, Quintasan: you know, I absolutely fail to get telepathy-kde to do anything useful18:07
shadeslayerapachelogger: depends on what you're trying to do18:10
apacheloggershow my contacts18:10
shadeslayerand also depends on how you installed18:10
apacheloggeror have the kcm remember my accounts for starters ^^18:10
apacheloggershadeslayer: ppa18:10
shadeslayerapachelogger: you need gnome-keyring for saving accounts iirc18:10
shadeslayerQuintasan: ^^ did you add that to depends?18:10
shadeslayerapachelogger: telepathy can't store passwords in kwallet yet18:11
* apachelogger giggles18:11
shadeslayerthey're working on integration for ksecretservice as of now18:11
apacheloggerepic18:11
shadeslayeryup18:11
apacheloggerI suppose that also explains all the rubbish it installed18:12
* apachelogger autoremoves18:12
shadeslayerapachelogger: http://community.kde.org/Real-Time_Communication_and_Collaboration/Troubleshooting#TroubleShooting18:12
Quintasanabsolutely fabulous18:12
apacheloggernow18:12
apacheloggeryou know18:12
shadeslayerapachelogger: what else? :)18:12
apacheloggeranother famous piece of KDE 4 technology has a troubleshooting wiki18:12
QuintasanI can install nvidia-glx but it doesnt work18:12
Quintasan!#$%=&*(18:12
apacheloggeralso another closely related one18:13
apacheloggerthey are called akonadi and nepomuk18:13
apacheloggerif you google them you will come to understand why I find it a bit worrying when software needs a troubleshooting documentation18:13
apacheloggerQuintasan: define does not work18:14
Quintasanapachelogger: no screens found,  fails to load module and tells me to look into logs but nothing there18:14
apacheloggerI have the funniest stuff with fglrx here18:14
apacheloggerif I do a normal boot up it will kernel panic at X start or something18:15
apacheloggerif I boot in failsafe and fire up kdm manually everything works as expected18:15
apacheloggeralso... is it just me or does oneiric boot take insanely long?18:15
QuintasanEE failed to load module "nvidia" (module-specific error, 0)18:16
Quintasansup18:16
* apachelogger must remember to not listen to bulldog9818:17
bulldog98apachelogger: sorry for me everything works fine18:17
* apachelogger thinks bulldog98 should do bug triage18:18
bulldog98Quintasan: you have to blacklist nouveau18:18
Quintasanshadeslayer: also, who on earth made KDE Telepathy using gnome-keyring?18:18
shadeslayerQuintasan: they use telepathy as the backend18:19
shadeslayerwhich uses gnome-keyring to store stuff18:19
shadeslayerapachelogger: yep, takes *alot* of time here18:19
Quintasanshadeslayer: Uhm, I lol'd here18:19
apacheloggerQuintasan: it is gnome people writing a technology, kde people coming along, adopting the technology and willingly take all the shit from aforementioned gnome people18:20
* Quintasan also can't get his second monitor to work18:21
Quintasanffs18:21
shadeslayerthey're working on a ksecretservice backend18:21
apacheloggerlet's install opensuse18:21
shadeslayerso, there's some progress there18:21
Quintasanapachelogger: I really don't understand why start telepathy-kde when still depending on gnomeshit18:21
apacheloggerI have friends there18:21
shadeslayersure18:21
apacheloggerwe surely woud be most welcome18:21
apacheloggerQuintasan: that is the beauty of it ... KDE people bowing to the superior might of GNOME18:22
apacheloggershadeslayer: there is no need for a backend18:22
Quintasan>superior18:22
Quintasan>GNOME18:23
apacheloggerkss implements the secret storage spec18:23
apacheloggerwhich gnome-keyring implements too18:23
apacheloggerone can use both with one implementation18:23
apacheloggerthat is the entire point18:23
apacheloggerBUT18:23
QuintasanI think Sput said that seeing GTK code makes him want to poke his eyes out with a rusty fork18:23
apacheloggerkss has been in development for forever and 3 weeks18:23
bambeeevening18:23
apacheloggerand I am not entirely sure it will land in 4.8 either18:23
apacheloggerAND18:23
apacheloggerAFAIK the spec is still in draft stage18:23
JontheEchidnalost power for 20 minutes there...18:24
apacheloggerJontheEchidna: hows the weather?18:24
JontheEchidnaironically, the power went out right as the hurricane past us :<18:25
* apachelogger wonders if his comment on kde bug 267319 was too provocative18:25
ubottuKDE bug 267319 in general "phonon-gstreamer does not proclaim the video/mp4 and audio/mp4 mimetypes [was amarok refuses to play an mp4 file]" [Normal,Reopened] http://bugs.kde.org/show_bug.cgi?id=26731918:25
JontheEchidnait never got too bad. It was a bit windy and there was  a lot of rain18:25
yofelQuintasan: oh, that error, boot with nomodeset then nvidia will work18:25
SputQuintasan: and I still stand by that utterance18:25
JontheEchidnanow there's a nice breeze, and less rain18:25
apacheloggerJontheEchidna: ah, not much of a hurricane then, that is good :)18:26
JontheEchidnayeah, it was downgraded to a tropical storm by the time it got to me18:26
apacheloggerSput: surely your new employer will have some gtk stuff to do :P18:26
* apachelogger only has good memories of gtk and glib18:26
Sputapachelogger: surely I wasn't hired for that :)18:27
JontheEchidnaapachelogger: that guy is an ass :(18:27
apacheloggerSput: difficult times my friend :P18:27
Sputmmmh. gnome keyring seems to be optional in telepathy-mission-control18:27
apacheloggerJontheEchidna: yus, always has been18:27
Sputnot sure if they can also use kwallet somehow18:28
apacheloggerSput: or maybe it is just badly engineered :P18:28
Sputmy telepathy-mission-control is built without gnome keyring support, and KDE manages to remember my passwords18:28
apacheloggerunencrypted storage in gconf then18:29
apacheloggerwhich would probably make sense18:29
Sputyeah looks like it, at least my kwallet doesn't seem to be storing account pws18:31
* apachelogger really cannot manage to find the energy to read JontheEchidna's mail on multiarch18:33
JontheEchidnalol18:33
apacheloggeractually I wonder what is with the tiredness these days18:33
apacheloggermust be side effect from being sober18:33
* bulldog98 has already done that18:33
apacheloggerrather horrible18:33
apacheloggerbulldog98: yet you did not give input :P18:33
bulldog98apachelogger: I was the guy reporting the problem, so that’s input :P18:33
apacheloggertrue18:35
bulldog98apachelogger: I would have given a mail, but kmail is broken (doesn’t send mails atm)18:36
bulldog98and it seems like I can blame ScottK or yofel for that18:37
* bulldog98 is in favor of option 3 cause we keep binary compitabilty18:38
* bambee wonders if kmail works sometimes18:38
bulldog98bambee: it will with release 4218:39
bambeeWill it work as well as other releases ? :P (no, I am kidding)18:42
bulldog98normaly kmail works quite well18:42
sheytanapachelogger: ping ping18:53
sheytancan I have the kdepase page again?18:53
sheytanI couldn't compile phonon last time, some errors18:53
apacheloggersheytan: it is gone19:20
apacheloggercheck your shel history19:20
apacheloggershell even19:20
apacheloggeror maybe it was shellll19:20
apacheloggersheeel19:20
apacheloggersomething like that anywayz19:21
sheytani did, it's gone ;/19:23
sheytanif you could, mail me it19:23
apachelogger    KIO::Integration::AccessManager::putReplyOnHold(reply);20:28
apacheloggereither that thing is broken or rekonq is using it wrong20:28
apacheloggerit causes quite the hang20:28
apacheloggerwhen downloading a file20:28
apachelogger(or trying to)20:28
apacheloggerwhat I find best about it is how that can block the UI20:28
apachelogger*thumbs up*20:29
bulldog98apachelogger: thread support is planed, but nobody steped up for that20:29
CIA-1[kubuntu-default-settings] Harald Sitter <apachelogger@ubuntu.com> * apachelogger@ubuntu.com-20110828205905-o0uf4v3691bkrfz4 * (debian/changelog share/config/kdeglobals) Set rekonq as explicit browser application in kdeglobals. Otherwise konqueror will be used as default when both are installed.20:59
apacheloggerperhaps we should chop kde-workspace's history21:01
apacheloggerit has become rather fat21:01
apacheloggeryofel: ping21:04
yofel?21:06
apacheloggeryofel: why for the love of kent beck does the install default wallpapers buttons install the wallpapers from workspace and artwork?21:07
apacheloggerI find this the ultimate overkill21:07
apacheloggerplus21:07
apacheloggerJontheEchidna: qapt aint asking me whether I want to install that rubbish21:07
apacheloggerit just asks for auth and I have no idea what for21:08
JontheEchidnathe wallpapers?21:08
apacheloggeryus21:08
yofelwell, what do you want to install then? Formery the button was installing stuff from artwork, then one of the artwork folks complained that we install the artwork stuff without installing the workspace wallpapers first21:08
JontheEchidnayou did click the "install wallpapes" button, so presumably you wanted to21:09
yofeladding 2 buttons is nonsense, and adding a dialog that asks you which to install isn't something I know how to do21:09
apacheloggerJontheEchidna: yeah but right now that drags in 10003482^50 trazillion TiB21:09
apacheloggerit would be jolly nice to tell me before hand, because I have 56k and could rather not effort to wait that long21:10
apacheloggeryofel: no, it installed the workspace one21:10
yofelapachelogger: well, _now_ it installs both21:11
* apachelogger files the bukx21:11
yofelbefore it installed the one from artwork21:11
apacheloggerbecause you broke it all21:11
yofelhuh?21:11
apacheloggerat the time the feature was introduced there were no wallpapers in artwork21:11
yofelI never wrote that patch21:11
yofelah21:11
yofelwell, what's that button *supposed* to do then?21:12
yofeland how is lord user supposed to know how to install the wallpapers that are shipped with kde?21:12
yofeleven in artwork21:12
apacheloggerpackage manag0r21:13
apacheloggerthe wallies in workspace are the latest  hot ones, so we want those21:13
apacheloggernot the bazillion wallies before the current ones21:13
yofelyeah, like a kde user will look in the package manager to add wallpapers...21:13
yofelthat's why that button is there in the first place21:14
apacheloggeryofel: yes, to give the default21:22
apacheloggernot every wallpaper ever 21:22
apacheloggerbug 83627621:24
ubottuLaunchpad bug 836276 in kdeartwork (Ubuntu) "kde wallpapers packages' descriptions are rubbish" [Undecided,New] https://launchpad.net/bugs/83627621:24
apacheloggeryofel: so what do we do with the button?21:25
yofelhm, I agree with the descriptions. We somewhat decided to leave the renaming of the package to the debian folks though21:26
yofelas for the button...21:26
yofelI didn't want to break the behaviour the button had before, so I just added it. If you think installing the artwork wallpapers isn't worth the download size then drop it21:27
apacheloggerroger21:27
apacheloggerwho wants to bring in a new snapshot of qtwebkit?21:28
apacheloggerthe current one is utter rubbish21:28
apacheloggeror maybe rekonq is21:28
apacheloggeron that note21:28
apacheloggerwe need a newer snapshot of rekonq21:28
apacheloggeroh right21:29
apacheloggerkde-wallpapers is now a seperate source package, no?21:29
yofelyep21:29
apacheloggeryou shoudl change the bug then :P21:30
* apachelogger installs qtwebkit-dbg before rekonq goes down again21:30
apacheloggerfunniest thing21:30
apacheloggerif rekonq went down once, it will again when restoring21:30
apacheloggerso I think this is a qtwebkit issue really21:30
yofelbah, didn't pay enough attention to the packages21:32
apacheloggerman21:33
apacheloggerwebkit is terrible21:33
apachelogger189 mib of dbg symbols21:33
apacheloggerthat is just insane21:33
apacheloggerdo we not lzma them, or something?21:34
apachelogger--with pkgkde_symbolshelper,lzma21:34
apacheloggershould21:34
apachelogger:S21:34
apacheloggerimagine how big that is without lzma!!!!21:34
apachelogger#6  primarySimpleFontData (f=0x7f3d7ecabe68, this=0x0) at platform/graphics/FontFallbackList.h:6121:38
apacheloggermhhh21:38
apachelogger"this be null, go away"21:38
apacheloggerJontheEchidna: ping21:58
JontheEchidnapong21:58
apacheloggerJontheEchidna: cant you get the architecture without the name from apt?21:58
apacheloggeror is it literally appended to the name?21:58
apacheloggerin the binary cache21:59
JontheEchidnathe arch is not part of the name in the binary cache, I don't think22:00
JontheEchidnawhich is why apt's fullname function has to append it + return an std::string22:01
JontheEchidnait can't simply point at the name in the binary cache22:01
apacheloggerright22:01
apacheloggerBUT22:01
apacheloggerwhy is there no explicit interface to query the arch?22:01
JontheEchidnahmm22:02
apacheloggerneither of the approaches you presented seems very object oriented... the arch would just be a property of a package, not of the package's name22:02
apacheloggerif a consumer were to require a fullname they could still concat themselfs22:03
apacheloggerwhich IMHO makes loads more sense than forcing users to go the other way around and split the fullname22:03
apacheloggerbecause for muon you'd not want the names to be displayed with arch anyway, but perhaps a dropbox where the user can select the arch of the package to install (or inform the user that only a x86 version of this package is availabe and that all deps will thus be fullfilled using x86 blah blah)22:05
apachelogger(in the muon UI anyway)22:05
JontheEchidnaapachelogger: would it be possible for you to install a foreign-arch package with dpkg or apt-get, and then paste the output of apt-cache show foo?22:05
apacheloggerfor the software center you'd only need it for dep resolving anyway22:05
JontheEchidnait might help me, since I'm not on a 64-bit system22:05
apacheloggerJontheEchidna: http://paste.ubuntu.com/676845/22:07
JontheEchidnahmm, apt-cache show says Architecture: amd64 :s22:07
JontheEchidnaoh, but when you specify :i386 it says i38622:07
apacheloggerthat is because it will prefer the x64 version of course22:08
apacheloggerflash might make more sense22:08
apacheloggersec22:08
apacheloggerJontheEchidna: http://paste.ubuntu.com/676846/22:09
apachelogger-installer has a x64 version22:09
apacheloggerBUT22:09
apachelogger-downloader only can do x86, so it shows the only available arch by default22:09
apacheloggerwhich is i38622:09
JontheEchidnaok, that's good22:10
JontheEchidnait would be trivial to add an arch() function to Package22:10
apacheloggerright, then you just need to look at the host arch I suppose and prefer that whenever possible22:11
JontheEchidnahmm, I think my lappy is 64-bit capable, actually. I should just reinstall w/ 64bit22:11
apacheloggerfor 11.10 simply filtering duplicated entries based on best match for host arch should be sufficient22:12
apacheloggerlater you can have a gui integration in muon to install/remove one specific arch22:12
apacheloggerwhich will probalby be a bit tricky22:12
apacheloggerUIwise22:12
JontheEchidnayeah, since it's tricky to know which packages can be multiarch'd22:12
JontheEchidnaoh, actually there is the MultiArch: field22:13
apacheloggerwell, name occurs more than once -> add checkbox with foreach entry, arch()22:13
apacheloggeruh22:13
apacheloggereven better22:13
apacheloggeranyhow, I think doing the actual UI is the really tricky part there ^^22:14
JontheEchidnayeah22:14
* JontheEchidna downloads 64-bit iso22:14
JontheEchidnablast, we're oversized. I'll have to use a dvd :/22:15
apacheloggerno usb stick?22:15
JontheEchidnanot big enough, no22:16
apacheloggeruff, I should send you some :P22:16
JontheEchidnaall I has is this 128 MB one I use for school papers, etc22:16
apacheloggerQuintasan: not only do I have devices coming out my ears, I also have usb sticks coming out my nouse :P22:16
JontheEchidnalol22:16
apacheloggerThe custom templates folder for identity "Ubuntu" does not exist (anymore); therefore, the default templates folder will be used.22:17
apacheloggerway to go kmail22:17
JontheEchidnaI can't use kmail. It's not able to show my kubuntu-devel folder anymore22:17
apacheloggertooo big22:17
apacheloggercleanup :P22:17
JontheEchidnaonly 8k mails in thar22:17
JontheEchidnaplus it has this habit of duplicating mails22:18
JontheEchidnaapachelogger: while I'm downloading, could you search for libc6 in synaptic and tell me if it has duplicate entries? (It's using solution 1 in my mail)22:19
apacheloggerawww22:20
apacheloggerI only ripped that piece of fluff out earlier today :(22:20
JontheEchidnalol22:20
apacheloggeroh22:20
apacheloggerand my vbox is broken22:20
apacheloggerdarn it22:20
JontheEchidnaif there's more than one it means that apt has two PkgIterators for both the native and multiarch versions22:21
JontheEchidnaand QApt::Package is a OO class wrapping a PkgIterator22:21
JontheEchidnawell, it has to look at several other apt classes to get all the info you'd want from a package, but that's because libapt is an un-OO piece of crap22:22
apacheloggerlol22:22
apacheloggerJontheEchidna: well, IMHO that is how it is supposed to be22:23
apacheloggerthey are 2 different packages after all22:23
JontheEchidnainitially I think it'll be ok to show both22:24
apacheloggerso it is essentially up to the API consumer to implement multiarch support22:24
apacheloggeri.e. the consumer would decide which to filter, or at least tell libqapt what policy to implement (return all, return only host, return only host except when no host is available, return arch xy)22:25
apacheloggeror you implement policy handling right away and default to return - only host except when no host is available -22:25
apacheloggerthat way even without change API consumers get a sane package listing with multiarch systems22:26
JontheEchidnaI'm trying to work out how I'd do this:22:29
JontheEchidnaWhen initialized, QApt::Backend creates a Package object for every PkgIterator in the apt depcache22:29
JontheEchidnait then stores all of those in a QList22:30
JontheEchidna(a qlist of pointers)22:30
JontheEchidnaThe Muon Package Manager's PackageModel is populated with Backend::availablePackages() which returns a copy of that list22:31
apacheloggerthat will need to become more expensive22:31
JontheEchidnathat's ok I think. sorting within the PackageModel is the bottleneck there anyways22:31
JontheEchidnaso if I create some flags, I can make a Backend::packages(ArchTypeFlag) that will filter out archs based on ArchTypeFlag22:32
JontheEchidnaand return a list of only native, only foreign, or both22:33
apacheloggeryou'd probably also want specific foreign22:33
apacheloggerbut for now I'd keep it to the bare minimum necessary for sane behavior22:33
JontheEchidnayeah22:33
apacheloggerthing is, how would you implement the algorithm22:34
JontheEchidnathe amount of archs dpkg/apt, et al. support is not guaranteed anyways22:34
JontheEchidnaso if we suddenly add an arch we'd need a new flag22:34
apacheloggeryou could just have a property22:34
apacheloggerQList<arches>22:35
apacheloggerarches being a QString22:35
apacheloggeror QBA perhaps22:35
JontheEchidnableh, that means doing a strcmp when filtering :(22:35
JontheEchidnawell, the QString equivalent, but yeah :P22:35
apacheloggeryou'll need strcmp anyway22:35
apacheloggeror how would you implement the algorithm?22:36
JontheEchidnaso mr consumer calls packages(NativePackages)22:36
apacheloggerbecause my first thought is to have a map<ql1s, package*>22:36
apacheloggerin the thing that makes the qlist22:36
apacheloggerthen for each iterator you check if the ql1s is already in the map22:37
JontheEchidnawe go to our store of every package, go through each, and if package arch matches native arch, add to the list we return22:37
apacheloggerif so you check your policy22:37
JontheEchidnawith the map we only incur the cost of checking the arch once22:38
JontheEchidnaright?22:38
JontheEchidnaat the cost of storing a qmap with 35,000 nodes :P22:39
apacheloggeryou throw the map away afterwards22:39
apacheloggeronce built you only need the resulting qlist22:39
apacheloggeralso it might be a map with 35,000*a nodes :P22:40
apacheloggeroh22:40
apacheloggeractually22:40
apacheloggerif policy is return all -> use existing algorithm22:40
apacheloggerotherwise use the qmap22:40
apacheloggerphew22:40
apacheloggernow that just saved our cpu from setting on fire \o/22:40
JontheEchidnaso you'd go through each package in the canonical list, map package to arch, then make a qlist from the packages with the correct arch?22:41
apacheloggernope22:41
apacheloggerway too expensive22:41
apacheloggerso22:41
apacheloggeryou iter over packages in libapt22:41
apacheloggerforeach iter:22:42
apacheloggerif policy is showmeall -> add to final qlist22:42
apacheloggerelse -> invoke map based algorithm22:42
apacheloggerlooks like this:22:42
JontheEchidnaoh, I should add that the iterating over libqapt iterators is only done once when Backend::init() is called22:42
apacheloggerget latin1name22:42
apacheloggercheck if latin1name is already in map22:42
apacheloggerif not -> add22:42
apacheloggerelse -> invoke policy check22:43
apacheloggerlooks like this:22:43
JontheEchidna::init() populates a QList<Package *>, and this list doesn't change22:43
apacheloggeruha22:43
apacheloggeruhaaaa22:43
apacheloggerJontheEchidna: then you need your own container structure22:43
apacheloggersimilar to a map22:43
apacheloggerstruct {QLatin1String string, Package *pkg}; where pkg is in the master list22:44
JontheEchidnaor22:44
JontheEchidnahmm, nvm22:45
apacheloggerwell, you need a more complicated container, as you need to store the whole list and then build a filtered list22:45
apacheloggerand I still did not finish explaining my approach to the filtering :P22:45
apacheloggerso, if there is already a package with the same name in the container, then you invoke a policy check22:46
apacheloggerwhich basically goes: does current Package*->arch() match policy better than Package* in the container22:46
apacheloggere.g. in the container we have an i386 Package, but host is amd64 -> overwrite the entry with our new Package * when amd64 is preferred22:47
apacheloggerif the policy is listAllForeign you'd skip the amd64 package22:48
apacheloggerif you want poth you simply add it to the container (so now you have two Package* with the same latin1name in your container)22:49
apacheloggerso a lot of strcmp but still relatively cheap22:49
apachelogger(as a matter of fact it might just make more sense to trade the QL1S instance for the pointer dereference)22:50
apacheloggerso you'd only have a list as container22:50
apacheloggerbut I don't think you'd get away from the n*n iteration to filter22:51
JontheEchidnaif only APT's multiarch impl. wasn't so hacky :(22:52
JontheEchidnathey probably did it the way they did so they wouldn't invalidate the binary package cache format22:52
apacheloggeryus yus, then again qstr stuff is probably more efficient than any std::string thing anyway ^^22:52
apacheloggerso I think their stuff is just fine from a qapt POV22:53
apacheloggerin fact I could not think of a much better approach for the APT impl22:54
apacheloggerJontheEchidna: about your syantpic question -> no duplicates from what I can tell22:54
JontheEchidnahmm22:55
apacheloggeralso it does not indicate multiarch ness or anything22:55
apacheloggervery useless tool :S22:55
apacheloggeroh22:55
apacheloggerJontheEchidna: nvm22:55
JontheEchidnait doesn't say libc6:i386 or anything?22:55
apacheloggerlibc622:55
apacheloggerand then there is libc6-amd6422:55
apacheloggermind me, the vbox is x86 it seems ^^22:55
* apachelogger installs natively22:56
JontheEchidnamy iso is half done downloading22:56
apacheloggerah yes22:59
apacheloggerJontheEchidna: proper duplication22:59
JontheEchidnaok, good22:59
apacheloggerlibc6 and libc:i36822:59
apacheloggereh libc6:i38622:59
apacheloggeralso there is libc6-i38622:59
apachelogger:O22:59
apacheloggerwtf22:59
JontheEchidnathat's the pre-multiarch solution, I think23:00
apacheloggeryeah23:00
apacheloggerlooks like it23:00
apacheloggerJontheEchidna: so kmail will, I sent a quick summary of this as reply to your mail23:01
JontheEchidnacool, thanks23:01
JontheEchidnabrb, reinstalling kubuntu23:47
JontheEchidnaDefault desktop doesn't look to shabby: http://i.imgur.com/Jpa6Q.png23:56
apacheloggertry it at a non-widescreen resolution23:59
apacheloggerthe wallpaper almost made me throw up23:59

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