/srv/irclogs.ubuntu.com/2008/08/21/#ubuntu-devel.txt

kirklandslangasek: okay, my focus is on pam/ecryptfs now....00:00
verwilstdoes pbuilder use the sources.list of the system?00:00
verwilstVersion: 1.9.0.1+build1+nobinonly-0ubuntu0.8.04.3 is available there...00:01
kirklandslangasek:  I didn't see any debian/pam-configs/ within the pam package ....  perhaps you meant another package?  i'm downloading the bzr branch (on the hotel's sad wireless) right now....00:01
slangasekkirkland: which version were you looking at?00:02
verwilstany idea what i could be doing wrong?00:02
kirklandslangasek: hmm... maybe i went about this wrong... apt-get source pam pulls pam-1.0.100:03
slangasekkirkland: at what Debian revision? :)00:04
kirklandthat sounds conspicuously nascent00:04
kirklandpam (1.0.1-1ubuntu1) intrepid; urgency=low00:04
kirklandslangasek: okay, bzr branch has the docs ;-)00:04
kirklandslangasek: gimme a few minutes, i'll peruse this....00:05
slangasekyep, your apt mirror is at least 4 hours out of date ;)00:06
kirklandslangasek: :-)  thankfully, my hotel wifi pull the bzr mirror, though, initially estimates pointed at 4 hours to branch that00:07
=== RAOF_ is now known as RAOF
slangasekkirkland: heh, ouch00:08
kirklandslangasek: any guidelines on the priority front?00:17
slangasekkirkland: I threw some together in the wiki (https://wiki.ubuntu.com/PAMConfigFrameworkSpec)00:18
* kirkland subscribes to changes to that page, albeit after-the-fact00:18
slangasekkirkland: but I think this hooks in as an 'optional' module, so I'm not sure the priorities matter as much?00:19
kirklandslangasek: agreed, optional in all points in the pam stack00:19
kirklandslangasek: would Priority 0 be acceptable?00:20
slangasekkirkland: yes, that's what I'm currently using for smbpasswd00:21
kirklandslangasek: http://pastebin.ubuntu.com/39236/00:22
slangasekkirkland: s/^\s+(auth|session|password)//;00:24
slangasek(that's the recent syntax change I made during the implementation)00:24
slangasekkirkland: oh, and s/Initial/Final/00:26
slangasekkirkland: because if there's no "Initial" stanza defined it'll fall back to "Final", but not the other way around00:26
kirklandslangasek: http://pastebin.ubuntu.com/39237/00:27
kirklandslangasek: nice, (auth|session|password) were redundant00:27
slangasekprecisely :-)00:28
slangasekkirkland: looks good to me... throw it in there, call pam-auth-update --package in your postinst, and test it? :)00:28
kirklandslangasek: suggestions on where to install the file?  /usr/share/foo ?00:29
slangasekkirkland: it has to be installed in /usr/share/pam-configs/00:30
kirklandslangasek: k00:30
kirklandslangasek: i see it in the wiki now....00:30
kirklandslangasek: "Package config declarations are shipped in the packages under /usr/share, and are not user-editable" ... should I install it 444?00:34
slangasekkirkland: 0644, the default for all files00:34
slangasek("not user editable" meaning only that user changes will not be preserved or honored)00:35
kirklandslangasek: right, but that's chmod-able in postinst, no?00:35
kirklandk00:35
slangasekthere's no need to chmod it at all00:35
=== spm changed the topic of #ubuntu-devel to: Launchpad is going down from 00:00 UTC until 02:00 UTC for a code update. ||libpam-runtime 1.0.1-2ubuntu1 badly broken, see bug #259867 || Alpha-4 released! | archive: open | Development of Ubuntu (not support, not application development on Ubuntu) | #ubuntu for support and general discussion for dapper/feisty/gutsy/hardy, #ubuntu+1 for intrepid | #ubuntu-motu for getting involved in development | http://wiki.ubuntu.com/UbuntuDevelopmen
=== slangasek changed the topic of #ubuntu-devel to: Launchpad is going down from 00:00 UTC until 02:00 UTC for a code update. | pam 1.0.1-2ubuntu1 broken (bug #259867) | Alpha-4 released! | archive: open | Development of Ubuntu (not support, not application development on Ubuntu) | #ubuntu for support and general discussion for dapper/feisty/gutsy/hardy, #ubuntu+1 for intrepid | #ubuntu-motu for getting involved in development | http://wiki.ubuntu.com/UbuntuDevelopment | See #ubuntu-bugs f
=== Kopfgeldjaeger is now known as Kopfi|offline
=== slangasek changed the topic of #ubuntu-devel to: Launchpad down from 00:00 UTC until 02:00 UTC for a code update | pam 1.0.1-2ubuntu1 broken (bug #259867) | Alpha-4 released! | archive: open | Development of Ubuntu (not support, not application development on Ubuntu) | #ubuntu for support and general discussion for dapper/feisty/gutsy/hardy, #ubuntu+1 for intrepid | #ubuntu-motu for getting involved in development | http://wiki.ubuntu.com/UbuntuDevelopment | See #ubuntu-bugs for http://
slangasekcan't win00:43
=== slangasek changed the topic of #ubuntu-devel to: Launchpad down from 00:00 UTC until 02:00 UTC for a code update | pam 1.0.1-2ubuntu1 broken (bug #259867) | archive: open | Development of Ubuntu (not support, not application development on Ubuntu) | #ubuntu for support and general discussion for dapper/feisty/gutsy/hardy, #ubuntu+1 for intrepid | #ubuntu-motu for getting involved in development | http://wiki.ubuntu.com/UbuntuDevelopment | See #ubuntu-bugs for http://wiki.ubuntu.com/Help
kirklandslangasek: no manpage for pam-auth-update yet?00:43
slangasekclose enough for now :P00:43
slangasekkirkland: correct; I wanted to get this into your hands (& into the archive), documentation is next along with a couple of missing features (like, being able to deconfigure a module in prerm remove)00:43
kirklandslangasek: i don't see a usage statement in the wiki either00:43
kirklandslangasek: no worries...00:44
slangasekpam-auth-update --package is all you should ever call from a postinst00:44
=== asac_ is now known as asac
kirklandslangasek: http://pastebin.ubuntu.com/39240/00:44
kirklandslangasek: oh, maybe i should drop the ecryptfs-utils then00:44
kirklandslangasek: and the file installed to /usr/share/pam_configs/ should just be the package name?  ie, ecryptfs-utils?00:46
slangasekkirkland: a simple, descriptive filename; package name is fine00:46
slangasekor simply "ecryptfs", even00:47
kirklandslangasek: which pam version should I depend on in the control file?00:50
slangasekkirkland: libpam-runtime (>= 1.0.1-2ubuntu1)00:50
kirklandslangasek: i suppose "Recommends" would be most appropriate00:51
slangasekwhy not a simple Depends?00:52
slangasekif you do a 'Recommends', then you have to make the use in the postinst conditional00:52
kirklandslangasek: okay, f that00:52
kirkland:-)00:52
kirklandslangasek: error message... pam-auth-update: Run pam-auth-config --force to override.01:02
kirklandslangasek: looks like you change names of the bin at some point?01:02
slangasekkirkland: no, I just fail at looking at the name of the file I'm editing01:08
slangasekI'll fix that up, thanks :)01:08
ion_$001:08
kirklandslangasek: np.... okay i'm close01:08
kirklandslangasek: i got added to common-auth and common-session fine, but not common-password for some reason01:09
slangasekkirkland: s/addit/Addit/01:10
slangasekcase-sensitive field names, sorry01:10
kirklandslangasek: aha01:10
kirklandslangasek: got it01:10
kirklandslangasek: okay, now for the sensitive part....01:11
kirklandslangasek: i've been telling users all along to use auth-client-config to setup pam manually01:11
kirklandslangasek: i see your utility is smart enough to detect outside edits of pam.d/*01:11
kirklandslangasek: i suppose in the postinst i should tear down the auth-client-config configuration, if present01:11
kirklandslangasek: to properly support upgrades?01:12
slangasekkirkland: by then it's too late, I think; libpam-runtime will already be installed, and will have already decided to go into manual mode01:12
slangasekkirkland: I think this is a "you were running a devel release, fix it up by hand" case01:12
kirklandslangasek: i can see that....01:12
slangaseknoting that "fix it up by hand" probably means nothing more than "pam-auth-update --force"01:13
kirklandslangasek: shall i rip out the auth-client-config in the same patch as the one where I'm adding this?01:14
kirklandslangasek: that seems logic to me...01:14
slangasekI have no opinion on that; maybe ask jdst<tab><tab> ok, he's not here :)01:14
lifelessasac: well, I'd implement a magic mark filter for that01:17
lifelessthe basic theory graydon notes is accurate01:17
lifelessthough actually we can do better with N-parent diffs01:17
kirklandslangasek: okay, i have a tested working ecryptfs-utils package01:22
slangasekw00t01:22
kirklandslangasek: however, i would like to provide a better upgrade vector for my bleeding edge testers01:23
slangasekok01:23
kirklandslangasek: perhaps a dpkg-reconfigure libpam-runtime?01:23
slangasekinsufficient; libpam-runtime isn't going to have enough smarts to know whether it's safe to overwrite this stuff, so at best you get a debconf prompt asking to overwrite (and in any case, it's not safe to call dpkg-reconfigure from a maintainer script01:24
slangasek)01:24
kirklandhrm01:25
slangasekbut what you can do is do the same thing as libpam-runtime's postinst: have a version check, and an md5sum check, and if you recognize the files as being your handiwork (via auth-client-config), call pam-auth-update --package --force01:25
slangaseky'know, I'm having the hardest time remembering that the program is named pam-auth-update instead of pam-auth-config.  Maybe I named it wrong and should change it?01:25
kirkland:-)01:26
kirklandslangasek: you've typed it that way a few times01:26
kirklandslangasek: i cut-and-pasted it into a shell at some point and it didn't worky01:26
slangasek:)01:26
kirkland:-)01:27
kirklandslangasek: i think i can actually issue an auth-client-config command to undo its changes01:28
kirklandslangasek: would that help?01:28
slangaseknope01:28
slangasek:)01:28
kirklandah, it's too late01:28
slangaseksomething still has to call pam-auth-update --force01:28
kirklandas you've said01:28
kirklandokay01:28
kirklandslangasek: okay, i see the libpam-runtime.postinst, i'll use something like that01:30
slangasekI guess you probably only have one md5sum for each file that you need to worry about, so I would suggest including them as variables in the maintainer script instead of having to ship files for it01:30
cjwatsonargh, testing cdebconf changes => officially a pain01:54
lifeless:>01:54
ion_cjwatson: Why is that?01:54
slangasekbecause you can't install cdebconf on a full system01:55
ion_slangasek: chroot01:55
slangasekdue to conflicts with debconf (though we should be getting closer to the end of that transition)01:55
ion_All that can be done by a test suite.01:55
cjwatsonyes yes yes stop preaching at me :)01:55
cjwatsonI'm trying to test something exceedingly specific and need to do a proper system test in an Ubuntu CD environment01:56
cjwatsonalso I don't need solutions since I've figured it out01:56
cjwatsonI should have known that saying "test" would bring out the helpful crew01:56
lifelessI have not claimed helpful  :)01:56
slangasekhttps://launchpad.net/~the-helpful-crew/+members01:57
StevenKAnd Launchpad is offline01:57
slangasekha-ha, made you look01:57
StevenK:-P01:57
cjwatsonion_: short answer, if you don't know what I'm trying to do, don't suggest a chroot ;-)01:58
cjwatsond-i is not amenable to that approach01:59
LaserJockhmm, for some reason the Edubuntu CD seems to not be working anymore01:59
slangasekheh, that too01:59
slangasekyou /used/ to be able to chroot d-i...01:59
cjwatsonI wouldn't like to attempt to install as far as tasksel that way01:59
slangasek...right :)02:00
kirklandslangasek: something like http://pastebin.ubuntu.com/39252/ ?02:00
cjwatson(the bug I'm working on is related to the combination of preseeding and debconf -> cdebconf passthrough)02:00
cjwatson$ dpkg --compare-versions "" lt "53-1ubuntu6"; echo $?02:01
cjwatson002:01
cjwatsonkirkland: you can leave out the [ -z "$2" ] test02:01
kirklandcjwatson: thx, copied from slangasek ;-)02:01
* cjwatson <- nitpicking maintainer scripts since 200002:01
slangasek<cough> I'll just pretend that Sam wrote that part of the postinst originally02:02
slangasekanyway, sometimes it's nice to make it explicit for the benefit of readers :)02:03
slangasekkirkland: actually, in your case I think you explicitly *don't* want to do this on first install of the package, so better to omit the [ -z ] test and use lt-nl as the operator...02:04
kirklandslangasek: i thought i might have an off-by-one there....02:04
slangasekkirkland: lt-nl != le, if that's what you mean02:06
slangasek-nl is "null versions compare greater than everything instead of less than everything"02:06
kirklandslangasek: not what i meant02:06
kirklandslangasek: just that 53-1ubuntu6 didn't seem like quite the right operand02:07
slangasekkirkland: looks right to me02:08
cjwatsonI think I prefer "No version is Later than any version" as the expansion of -nl, myself; "greater than" isn't so mnemonic02:08
kirklandslangasek: okay, i'm fading fast...  i will test this more thoroughly asap tomorrow02:09
kirklandslangasek: upgrade some of my vm's in various conflagurations02:09
kirklandslangasek: before posting the patch for sponsorship02:09
kirklandslangasek: but i'm liking what i'm seeing out of your utility!02:09
cjwatsonoh, this is so wrong, I'm using kickstart as a way to get in ahead of cdebconf starting02:09
kirklandslangasek: i just don't want to smack the people who adopted this early, if you know what i mean02:10
slangasekkirkland: sure, I understand :)02:10
slangasekkirkland: fwiw, I normally use lt $fixed version, rather than le $last_known_good, because I figure repeating the operation against uncoordinated ~ versions is the safer course02:11
slangaseker, $last_known_bad02:11
kirklandslangasek: i'll try to find a Euro sponsor for the patch tomorrow; if not, i'll be waiting for your review02:11
cjwatson(if you pass 'ks=http://foo.invalid/bar' to the installer, it will bring up the network and then stop with an error message before starting main-menu)02:11
slangasekkirkland: good-o, cheers :)02:11
kirklandnight all02:12
slangasek'night!02:12
slangasekkirkland: one thing that's missing here is to check that /etc/pam.d/common-account is also pristine before deciding to overwrite; your package hasn't edited it, so it should just be a matter of using the checksum from libpam-runtime, but we should check that all four files are unmodified before taking an action that will clobber them all02:21
slangasekkirkland: how I would write this: http://pastebin.ubuntu.com/39257/02:32
ScottKslangasek: If you have a moment, would you please do the wireshark 1.0.2 backport for Hardy.  I'm trying to administer a "Please use the system" lesson to my local LUG and it'd be handy if that magically appeared soonish.02:32
ScottKIt's Bug #25987602:32
ubottuLaunchpad bug 259876 in hardy-backports "Please backport wireshark 1.0.2-1 from Intrepid to Hardy" [Wishlist,In progress] https://launchpad.net/bugs/25987602:32
slangasekScottK: heh :)02:32
slangasekI guess that means LP is back up, though02:33
ScottKWas it down?  I turned off the network and went out in the backyard to work without distraction for the last several hours.02:33
ScottK(with my laptop)02:33
slangasekyeah, it's still down if you ask the /topic02:33
StevenKScottK: Which was when LP was down02:33
ScottKRight, of course.02:34
StevenKIt's 1:34UTC, they're early02:34
StevenK"We still have 30 minutes! Bring it back down!"02:34
ScottKWell I've looked at one page and didn't claw my eyes out, so that's good news.02:35
slangasekScottK: magic moofled02:36
ScottKThanks.02:36
=== spm changed the topic of #ubuntu-devel to: pam 1.0.1-2ubuntu1 broken (bug #259867) | archive: open | Development of Ubuntu (not support, not application development on Ubuntu) | #ubuntu for support and general discussion for dapper/feisty/gutsy/hardy, #ubuntu+1 for intrepid | #ubuntu-motu for getting involved in development | http://wiki.ubuntu.com/UbuntuDevelopment | See #ubuntu-bugs for http://wiki.ubuntu.com/Help
spmslangasek: sorry :-)02:38
=== slangasek changed the topic of #ubuntu-devel to: pam 1.0.1-2ubuntu1 broken (bug #259867) | archive: open | Development of Ubuntu (not support, not application development on Ubuntu) | #ubuntu for support and general discussion for dapper/feisty/gutsy/hardy, #ubuntu+1 for intrepid | #ubuntu-motu for getting involved in development | http://wiki.ubuntu.com/UbuntuDevelopment | See #ubuntu-bugs for http://wiki.ubuntu.com/HelpingWithBugs
slangasekspm: no worries :)02:39
=== superm1|away is now known as superm1
dholbachgood morning06:23
Hobbseehey dholbach!06:25
dholbachhi Hobbsee06:25
=== superm1 is now known as superm1|away
StevenKslangasek: I guess "Cannot make/remove an entry for specified session" iz the pam bug?07:03
slangasekStevenK: yes07:12
StevenKslangasek: Yes, I actually read the bug between asking and you replying. :-)07:13
slangasekwell, hmph07:13
StevenKHeh, sorry :-)07:13
slangasekroughly, that was also a "yes; do you need help getting anything un-broken?"07:15
StevenKNothing OMG kittens urgent07:15
StevenKJust need to update a mobile image chroot/squashfs07:16
StevenKslangasek: Has the fixed package been published?07:16
slangasekyes, hours ago07:16
StevenKAh, my local mirror needs to be booted07:17
slangasekhuh, when did mailman start sorting admindb entries by sender first name instead of by date?07:26
TheMuso7~/me has had a mental blank... .la files do go in dev packages right?07:33
slangasek.la files go to /dev/null ;)07:33
slangasekyes, they go in dev packages or nowhere at all, depending on your perspective07:33
TheMusoslangasek: heh right, thanks.07:35
slangasekkees: so with the new framework, all we have to do to change the default password hash from md5 to something else is to edit debian/pam-configs/unix. <mad giggle>07:43
asaclifeless: hmm. does that mean that a solution is already available?07:50
lifelessasac: no more than that thread talks about07:56
lifelessthough you can do a merge and diff yourself07:56
lifelessand I have some plans that may help eventually07:56
* TheMuso grumbles at libtool changes breaking another package...07:58
TheMusoAnd in a non-obvious way as well. The package builds, but no .so files are built.07:59
slangasekhrm; did something regress on bazaar.lp in the latest launchpad code rollout?:08:19
slangasekUsing saved location: bzr+ssh://vorlon@bazaar.launchpad.net/~ubuntu-core-dev/pam/ubuntu/08:19
slangasekServer is too old for streaming pull, reconnecting.  (Upgrade the server to Bazaar 1.2 to avoid this)08:19
StevenKI thought the server was 1.5 ?08:19
StevenKslangasek: Beg in #launchpad?08:20
\shslangasek: see #launchpad08:20
RAOFStevenK: The server is 1.6rc3, actually :)08:28
StevenKRAOF: Not according to that error :-P08:28
RAOFRight; apparently it's got to do with something that bzr 1.5 uses that 1.6 doesn't support.08:29
slangasekmmk08:30
* persia suspects the error is actually " Server is too new for streaming pull, reconnecting."08:36
=== ara_ is now known as ara
amitksoren: kvm doesn't like being shutdown on intrepid....10:10
sorenamitk: -v10:13
=== tkamppeter_ is now known as tkamppeter
amitksoren: bug 25933610:15
ubottuBug 259336 on http://launchpad.net/bugs/259336 is private10:16
amitkbug 25933610:16
ubottuLaunchpad bug 259336 in kvm "kvm crashed with SIGSEGV in __libc_start_main()" [Medium,New] https://launchpad.net/bugs/25933610:16
sorencould you try with kvm 72, please?10:16
amitksure10:19
Keybukooh, I didn't just get quoted in LWN10:22
KeybukI made "Quotes of the week" in the LWN Kernel page10:22
* Keybuk is FAMOUS!10:22
sorenKeybuk: Ooh, top spot, no less :)10:28
TreenaksKeybuk: woo!10:30
emgentmoin people10:35
stefanlsdhihi10:35
emgenthey stefan! :)10:35
persiacjwatson: Could you subscribe me also to the CD image reports for alternate CDs for the ports?  I get ports_daily-live, but not ports_daily.11:06
=== dholbach_ is now known as dholbach
cjwatsonpersia: the reason you aren't getting mails is that the builds are succeeding, not that you aren't subscribed11:29
persiacjwatson: Ah, I only saw hppa and lpia on cdimages.ubuntu.com, and so thought that I should be getting errors for ia64, sparc, and powerpc.11:31
persiacjwatson: On another note, do you have any plans for further updates to the ArchiveReorganisation spec, or do you think it's ready for presentation to the TB for review/approval?11:31
cjwatsonpersia: oh, I think it only sends out a mail if the entire build fails11:33
cjwatsonthat's probably a bug11:33
cjwatsonhttp://people.ubuntu.com/~ubuntu-archive/cd-build-logs/ubuntu/intrepid/ports_daily-20080821.log11:33
cjwatsonpersia: I want to run it by Mark this week while I'm in the office; I already gave him a heads-up on it11:33
persiacjwatson: OK.  I asked about it at the last TB meeting, and was advised that the idea was accepted, but that the specific proposal had not yet been submitted for review.  Please let me know if I may be of any assistance in helping the process along.11:34
cjwatsonok11:35
cjwatsonthanks11:35
=== Mez is now known as Mez|Reading
\shhmm...python2.4 will still be available in intrepid, right?11:51
\shRiddell: please apply http://archive.linux-server.org/debdiffs/python-qt4_4.4.3-1ubuntu1.debdiff and reupload to intrepid, thx11:55
\shargl...FC11:55
sorenIIUIC, it's ok for a GPL project to copy code from an LGPL project. Is that right?12:15
cjwatsonyes12:16
sorenBut not the other way around?12:17
cjwatsonremember that the code retains its original licence12:17
sorenOh, it does?12:17
cjwatsonan LGPL project can import GPL code if it likes - it's just that the work as a whole may now only be released under the terms of the GPL12:17
sorenI thought the LGPL said that you were free to change the license to GPL.12:17
cjwatsonactually, yes, that is true in the LGPL case12:18
sorenOk..12:18
cjwatsonso indeed it would just become pure GPL then12:18
sorenSo if a GPL project takes code from an LGPL project and improves upon it, the LGPL project can't use those improvements. Correct? (without changing their own license, of course)12:18
cjwatsonthat's correct12:18
cjwatsonunless the owners of the GPL code relicense it back12:19
sorenFigures..12:19
sorencjwatson: Ok, thanks for clearing that up.12:19
cjwatsonsoren: ok for me to merge your server seed stuff now?12:22
sorencjwatson: Oh, by all means.12:22
cjwatsonI merged my tasksel branch and fixed a cdebconf bug that was causing problems there12:23
cjwatsonserver seed merged12:23
cjwatsonI'll get the debian-cd stuff done shortly12:23
vargadanishey there... I want to build a GUI with a different look and feel from the OS's default using either GTK (preferred) or QT...12:23
vargadaniswhat are my options?12:23
cjwatsonhttp://developer.gnome.org/arch/gtk/themes.html12:24
cjwatsonlinks to art.gnome.org which has a good deal of tutorial information12:25
vargadaniscjwatson: so you say that with this I can set the theme of my application without modifying the theme of the whole desktop?12:26
cjwatsonyou can do that sort of thing with local resource files, yes12:27
cjwatsonor local styles12:27
sorenYou can apply a different theme to your application. For an example, see rawstudio.12:27
* cjwatson <- not an expert12:28
vargadaniscjwatson: you are more of an expert in the issue than me ^_^12:29
vargadanissoren: I will do that, thanx for the tip12:29
sorenvargadanis: np12:29
vargadanissoren: do you think that I can even let's say create custom widgets and say set the background image for them just by these local rc files?12:32
sorenI imagine so. I've never used it myself.12:32
vargadanissoren: alright... I will look into that12:33
Riddellmvo: synaptic recommends apt-xapian-index, do you plan to get that into main?12:40
mvoRiddell: yes I have not written a MIR for it yet though12:40
Riddellmvo: ok, I need one for adept so I'll write one12:42
mvoaha, excellent12:44
persiaogra: About denemo.  The last I heard from LaserJock was that it had three chunks of stuff that needed MIR.12:51
persiaThose being csound, lilypond, and libaubio12:51
ograright12:52
persiaI think csound is best dropped to suggests, as it's an optional audio rendering system, and timidity can also be used to render.12:52
ograi asked pitti about lilypond and he didnt find any harm in MIRing it ... i didnt know about the others back then12:52
persiadenemo doesn't make any sense without lilypond, so that, and the other 4 sources that go with it ought drop in.12:52
ograas i mentioned before, i dont really need the midi functionallity in edubuntu but want the notesetting capabilities it offers in edubuntu12:53
ograsure it makes sense if you want to write down notes and prnt them out in music class12:53
persiaTHe issue is really with libaubio.  It depends on JACK.  JACK depends on freebob.12:54
ograwe never had any midi stuff in edubuntu12:54
ograbut denemo was always there12:54
persiaif libaubio doesn't depend on JACK, then denemo and lilypond become less interesting for Studio, which is bad.12:54
persiaIf JACK doesn't depend on freebob, we drop support for all firewire audio interfaces, which is bad.12:55
persiafreebob is dead upstream.  There is a replacement ffado project, but it has yet to reach it's first release.12:55
ograwhat happened to the plan ubuntustudio had to snaitize jack for main ?12:55
persiaIt's waiting on a ffado release.12:55
ograwill that happen in time for intrepid ?12:55
persiaNo.12:56
ogra:(12:56
persiaogra: That said, while I'm not comfortable with a dead upstream in main, someone else might want to maintain it.12:57
persiaAlternately, if you look at the feedback to LaserJock's mail to the edubuntu-users mailing list, it seems that at least a couple users would rather install Studio directly for teaching music.12:57
ograwell, but it was part of edubuntu the last years ... i'm not really comfortable to drop the feature12:58
ograand it never did any midi stuff without installing the universe components either12:58
persiaogra: Makes sense.  Let's wait to hear more from LaserJock, who has been following this more closely.12:58
ograright12:58
JontheEchidnamvo: Did you get my email about software-properties-kde ?13:04
mvoJontheEchidna: yes, thanks a lot! I haven't looked at the merge yet, sorry. I will do it today13:11
JontheEchidnamvo: Ok, I don't want to  be pushy or anything, but with the feature freeze coming up I got a bit nervous...13:11
JontheEchidnathanks :)13:11
mvothank you :)13:11
hwildefyi system has been stable for 14 hours since removing console-kit-daemon  (244218)13:33
=== superm1|away is now known as superm1
=== Kopfi|offline is now known as Kopfgeldjaeger
kirklandcjwatson: what's the magic you're putting on the end of your kvm command to get the keyboard mapping back to a sane state?14:06
soren-k us, probably.14:08
sorenkirkland: Good news on that front, though. It seems we have a fix that works, that will land withing the next couple of days.14:09
kirklandsoren: rock on14:09
sorenkirkland: aliguori strikes again :)14:09
kirkland\o/14:09
nxvlgood morning14:10
kirklandnxvl: howdy14:10
nxvlwaiting for some news14:12
nxvl:D14:12
cjwatsonkirkland: -k en-us14:15
kirklandcjwatson: cool, thanks14:15
cjwatsonit doesn't quite work, but it at least fixes arrow keys14:15
kirklandcjwatson: yeah, partitioning in the installer is excruciatingly difficult without arrow keys :-)14:16
LaserJockI noticed yesterday that in VMware Player my up arrow takes a screenshot :-)14:18
LaserJockogra, persia: would it make sense to MIR freebob with the expectation that it'll be replaced ASAP?14:33
persiaLaserJock: As long as someone is willing to maintain freebob, I'm happy with that.  I don't have that kind of HW, so don't feel comfortable doing it myself.14:34
LaserJockhmm, I don't either14:34
LaserJockI tried to look in the denemo ./configure for an option to turn it off14:35
LaserJockthere wasn't any obvious flag14:36
persiaSee, I'd be opposed to turning it off.  While mScore is gaining mindshare, denemo is still the most popular score editor for ubuntustudio14:36
ograoh14:37
ograwhy did obody poit me to mscore yet14:37
ogra*nobody14:37
persiaI didn't know you wanted it.  It's nicer than denemo, but it kinda needs a real soundfont, which makes it a little awkward if you want it on a CD.14:37
ograit doesnt even have any deps14:37
* sistpoty|work hands ogra another n14:37
ogra(apart from QT)14:37
LaserJockogra: because I checked the number of MIRs I'd have to do to get it14:37
ograpersia, well, my words should have told you14:38
ograall i want in edubuntu is a score editor for note setting14:38
persiaogra: mScore needs JACK too, and jack-in-main is the primary blocker here.14:38
ograupstream doesnt talk about any midi deps14:38
ograhttp://mscore.sourceforge.net/en/download.php says alsa, cmake, freetype2 and qt414:39
persiaIt doesn't have any MIDI deps, it has a built-in soundfont player.  It doesn't need a MIDI interpreter (like denemo), but it does need sounds.14:39
persiafluid-soundfont is the only free GM/GS soundfont anyone has been able to find, but it's *huge*14:40
* ogra likes huge 14:40
ograsize does matter, you know ;)14:40
ograwe have ~400M free space on the edubuntu CD14:40
ograspace os my smallest concern14:41
ogra*is14:41
LaserJockmore like ~188MB free at the moment14:41
persiaOh, if you've that much space, mScore is *way* better than denemo, and mScore+MuSE is most of a complete environment ffor iddling about.14:42
persiaStill needs jack-in-main though, which is about freebob, and not about anything else.14:42
ograLaserJock, minus WINFOSS14:43
ograwhich is about 200M14:43
LaserJockwell, we can trade lilypond for a few more MIRs for mscore14:43
ograi see libjack in the deps though14:43
persiaRight, it's all about freebob.  If someone is willing to support freebob-in-main, we're golden.  If not, we're sunk either way.14:44
LaserJockso.... we need find a victim/volunteer14:44
persiaAnd I'll maintain, for the same reasons I did pre-Sevilla, that dropping the freebob dep isn't the right way to solve it, as there are too many users who depend on this.14:45
ograpfft ... users ... who cares about *them*14:45
ograas long as the devs have fun :P14:46
persiaogra: Well, at least I'll stand up for people with fancy firewire audio interfaces that make me drool.  If I'm lucky, one of them will demo one for me one day :)14:46
* ogra used to live in an artists colony some years ago ... i would have had 100s of midi devices to test back then (there were also a lot of musicians... it had the biggest rehearsal center in northern germany attached ... (people like mousse-t come from there)) sadly i lost all contacts to these people14:48
LaserJockwell, we're looking at removing note-editing altogether here, it'd be nice to come up with something14:48
* persia checks the freebob mailing list14:49
soren"freebob"? A free implementatino of Microsoft Bob?14:50
Treenakssoren: ooh! that should fit well in the new PAM framework!14:50
=== superm1 is now known as superm1|away
persiaFreeBoB from BeBoB, which is Bridgeco Enhanced BreakOut Box14:51
sorenTreenaks: That's a very disturbing though.14:51
sorent14:51
persiaogra: LaserJock: I'm only seeing spam on the FreeBob lists.  There is a beta ffado out (http://www.ffado.org/?q=release/beta) which might be usable.  Some good reports of it working on Ubuntu in the mailing lists.14:55
persiaDoesn't work with ALSA or pulseaudio yet, but that likely doesn't matter because most users wouldn't expect to use it.14:56
persiaErr, to use the ffado backend.14:56
ograif users dont expect it, why would we depend on it ?14:57
persiaogra: The vast majority of users won't have hardware that requires freebob/ffado.14:58
ograthen it should become a suggests14:58
persiaFrom the perspective of having a note editor in Edubuntu, I don't think it matters that these devices don't work well with ALSA or pulse yet.14:58
persiaIt can't be a suggests: JACK needs to link against the libraries, and the note editors need to be linked against JACK to use JACK.14:59
persiaI use JACK a lot, but I don't use those backends, because I don't have that hardware.14:59
persiaThe contention is that most Edubuntu users won't mind not being able to use firewire audio interfaces with ASLA or pulse, but want a note editor.15:00
ograright15:02
cr3what does this file mean on archive.u.c/ubuntu: Archive-Update-in-Progress-leningradskaya.canonical.com15:03
LaserJockpersia: would we be more likely to find somebody to maintain ffado than freebob?15:04
LaserJockseems more of a "who's got the hardware" issue15:05
persiaLaserJock: Given the ffado beta, that's what I'm thinking.15:05
persiaI could get some of the lower-end HW that it supports this weekend, but I'm just not confident that I understand the subsystems well enough to be more than a tester.15:06
asackees: can you give me your /e/n/interfaces ?15:14
asackees: you appear to have a rather complex setup. would like to take a look at that ;)15:15
* cjwatson does a snoopy dance15:16
cjwatsonsuccessful 256MB installation15:16
cjwatson(desktop CD)15:16
persiaWow!  Very nice!15:16
ograYAY !!15:16
persiaThis is compcache showing it's colours?15:17
ogranow try with 75% compcache and 128M :)15:17
cjwatsonI may do in a bit :)15:17
ograthough users wont have much fun with such a system once installed :)15:17
ograunless we'd carry over compcache into the install15:18
cjwatson256MB was the target I wanted to hit, so I'm happy enough; 'free' immediately after booting says that about 128MB is used, so there's decent headroom there15:19
ograwell, it might be intresting for UME once we get to arm support ... i think there are many 128M arm devices out there15:21
ograbut thats not on the plate yet15:22
cjwatsonarm> I agree15:22
persiaThe Zaurus is an example, and someone got Ubuntu Desktop on one15:23
ograright, compcache might make that more comfortable ...15:23
ograthere are a lot of opportunities ... but all rather intrepid+115:24
persiaIndeed.  One week isn't enough to play enough.15:24
ograwell, the feture is in since a week ...15:26
ogra*feature15:26
ograit always depends if you call the enhancement of it another feature :)15:27
ograits there for all arches in intramfs ... just a matter of setting the COMPCACHE_SIZE variable in initramfs.conf15:27
ograso if we should get arm before final release we can indeed make use of it :)15:28
=== superm1|away is now known as superm1
cr3does the live cd create anything at all on the installed system, perhaps a swap file for example?15:33
ograubiquity creates a swap partition15:33
cr3ogra: how can it find that space if the installed system takes all the space on the drive?15:34
ograwell, it will check if you have enough space and moan afaik15:34
ograif you don have the 3.5G you need for the install then adding a swapfile will still eat diskspace15:35
ograthe only option you would have here would be to go completely without swap15:35
cr3I meant: what if the filesystem, such as ntfs for example, takes up the whole drive? I suspect ubiquity doesn't do some resizing on the fly, does it?15:36
ograit does offer it15:36
ogranot sure about "on the fly" i dont have ntfs here anywhere so i could test15:36
cr3ogra: oh wait, you're talking about the installation process, I'm just talking about the live environment15:37
ograah15:37
cr3heh, that was confusing :)15:37
ograwell, for that we have compcache now15:37
ograwhich creates a virtual swapdisk in ram15:37
cr3so everything is in memory? that's what I thought but I suspected more space might be needed to run the live environment15:38
ograth elivenev needs 128-256M ... but if you have i.e. a graphics card using shared ram that will eat from your main ram ... which is why our requirements up to ow were 384M15:39
ogra*up to now15:39
ogracompcache creates a virtial swap device in ram where read and write operations get compressed15:39
ogra*virtual15:39
=== cjwatson_ is now known as cjwatson
ograso you can effectively have 256M plus 64M virtual swap15:40
ograwhich compensates the videoram or whatever takes away from the physical ram15:40
cr3ogra: cool! thanks for those extra details, much appreciated15:41
ograas i said above compcache is avaliable generally ... you can use it in other environments as well15:41
ogra(ltsp will use it for example)15:41
* cr3 puts compcache on his toread list15:42
ograjust set COMPCACHE_SIZE (see initramfs.conf for documentation) ... and send flowers to ion :)15:42
cr3we need telegram hugs15:44
kirklandslangasek: ping me when you come around....15:49
=== cjwatson_ is now known as cjwatson
* LaserJock wonders what jsilber would say if Canonical employees started sending hug-o-grams15:53
=== brandon|work` is now known as brandon|work
cjwatsonpersia: I think I've fixed up the powerpc and sparc CD builds, BTW, since you mentioned the ports_daily problems16:15
persiacjwatson: Cool.  We'll have more arches tomorrow then.  ia64 is still broken?16:17
cjwatsonpersia: ENOKERNEL16:17
cjwatsonhttps://edge.launchpad.net/ubuntu/+source/linux-ports/2.6.25-1.2/+build/62277516:18
persiaheh.  That would do it.16:18
cjwatsondoesn't actually look that complicated a failure, mind ...16:18
kirklandslangasek: Use of uninitialized value in numeric comparison (<=>) at /usr/sbin/pam-auth-update line 104.16:30
Riddellmvo: what creates /var/lib/update-notifier/dpkg-run-stamp ?16:31
cody-somervillecjwatson, You fixed PPC builds? :-]16:37
ogracody-somerville, compcache went in on alpha4 release day (some hours to late for alpha4 :( )16:38
sorenRiddell: /etc/apt/apt.conf.d/99update-notifier16:38
cody-somervilleogra, ah kay16:38
ogracody-somerville, casper uses 25% compcache by default and switches compcache off on systems with more than 512M16:39
Riddellsoren: thanks16:39
cjwatsoncody-somerville: not the one you care about, sorry16:39
cjwatsona separate problem16:39
cjwatsonsorry, I really do need to get to that but it's a pain16:39
cody-somervillecjwatson, :-(16:39
sorenRiddell: :)16:40
cody-somervillecjwatson, Did you ever get a chance to read over that e-mail I sent you?16:40
cjwatsone-mail is a dead loss for me this week; I'm away and my home VPN is down ...16:41
cjwatsonso I can't even check until Monday16:41
cjwatson(argh, etc.)16:41
ion_ogra: You spoke of moving the percentage etc. logic from the hook to a script. You began doing the change IIRC – did you finish it, and if not, is there a public branch i could pull from to do it, or perhaps something i could dget?16:41
ograion_, i found a more sane way and kept most of you stuff as is16:42
Keybukcjwatson: I assume you mean Tuesday? :)16:42
cjwatsonKeybuk: ooh, I forgot about the bank holiday16:42
ograion_, i didnt change much, just dropped the instane SKIP_COMPCACHE carp again, exported BOOT from init and checked for BOOT=casper and TotalMemory >512M16:43
ograjust look at initramfs-tools ... if your system is up to date you should have the recent code ... the way it works didnt change at all, its all as you know it16:44
ion_ogra: Alright16:45
ion_benc: Is there going to be a -386 kernel for intrepid in the near future, btw?16:49
BenCion_: There already is one, but I think it's in universe (which is wrong)16:50
=== Tonio__ is now known as Tonio_
ion_benc: Ah, there seems to be an 2.6.25-1-386 indeed. Hadn’t noticed it, since linux-image-386 depends on 2.6.24something and i also have hardy entries in sources.list. Will there be one in sync with the -generic kernel version?16:53
LaserJockasac: around?16:55
BenCion_: Not likely16:58
MacSlowDoes Xorg or dbus set $XDG_SESSION_COOKIE?17:01
ion_benc: But there will be one for the final release of 8.10, right?17:01
ion_/etc/X11/Xsession.d/90consolekit:if [ -z "$XDG_SESSION_COOKIE" ] && [ -x "$CK_LAUNCH_SESSION" ]; then17:02
loolion_: That's something else; it's CK integration17:02
loolMacSlow: I think it's gdm17:02
ion_Alright17:02
loolg_setenv ("XDG_SESSION_COOKIE", ck_session_cookie, TRUE);17:03
loolMacSlow: ^17:03
loolion_: That might set it if you are using startx though17:03
loolSo basically XDG_SESSION_COOKIE is set in consolekit sessions, either started by gdm or ck-launch-session as ion_ pointed out (startx/xinit)17:04
asacLaserJock: ?17:07
ogralool, (nitpick) or by sshd if you log in with -X or -Y17:08
ogra:)17:09
LaserJockasac: I ran into bug #255839 and found that a simple mkdir /etc/NetworkManager/system-connections fixed it17:10
ubottuLaunchpad bug 255839 in network-manager "0.7 N-M "system setting" does not work" [Undecided,Confirmed] https://launchpad.net/bugs/25583917:10
LaserJockasac: would that dir normally be created at install time?17:10
loologra: Oh really?  how is this done?17:11
ogralool, cjwatson patched sshd to use CK for X sessions17:11
loolI recall seeing that, but I can't find it in the changelog anymore17:12
asacLaserJock: ok thanks. fix committed17:13
asacLaserJock: attached branch to bug accordingly17:14
LaserJockasac: awesome, for the first time NM actually works for all my network connections :-)17:15
asacLaserJock: tell that to those voices that dont want me to make network-manager conflict with ifupdown ;)17:16
ogralool, openssh (1:4.7p1-4ubuntu1)17:16
asacLaserJock: what kind of connections did you have? do you still have your interfaces?17:16
asac(config file)17:17
LaserJockasac: I have a static IP eth0, a uni WPA-enterprise (which today killed NM) wifi, and a normal home wifi17:18
asacLaserJock: ok. did you have all configured in "interfaces"?17:18
LaserJockno, just the static IP17:18
LaserJockI was trying to let NM handle wifi and "interfaces" handle eth017:19
asacLaserJock: how did you configure your dns? dns-nameserver stanza + resolvconf?17:19
asac(for the static IP thing=17:19
LaserJockin Hardy I did everything via the Gnome Network tool17:19
LaserJockfor Intrepid I was manually editing /etc/resolv.conf on every reboot17:20
asacok ... that means that all was ifupdown aka interfaces17:20
LaserJockyeah17:20
asacLaserJock: do you still have the config you had in hardy?17:20
LaserJockhmm, yes I do actually17:20
LaserJockI  made a backup of /etc before I blew it away17:20
LaserJockhmm, /etc/network/interfaces is empty except for lo in my Hardy config17:22
asacstrange17:22
asacthen you used NM for everything?17:22
LaserJockoh, I bet I know why17:22
LaserJockI managed the wifi vs static IP by using the profiles in the Network tool17:22
asacoh. never heard of such a feature17:23
asacso where does that store the config ... snippets?17:23
LaserJockif that info was stored somewhere in /etc I could maybe dig it out17:23
LaserJockthat I don't know let me grep17:23
LaserJockhmm, doesn't seem to be in /etc17:24
asachmm. is that tool gone in intrepid now?17:24
asaccant find it in menu17:25
LaserJockyes, it was removed17:25
LaserJockbut you can install it17:25
LaserJockGNOME start menu applet17:25
LaserJockbah17:25
LaserJockgnome-main-menu is the package17:25
LaserJockman, bad morning17:26
LaserJockgnome-network-admin *is* the package17:26
asacwhats the binary name17:26
asaclet me look17:26
asaci dont have that on my system;)17:27
asacbut i have that thing here in hardy17:27
LaserJockyes17:27
asacok gnome-system-tools17:27
LaserJockright, it was taken out and put in its own package for Intrepid17:28
LaserJockas it's not installed by default17:28
asacok thats saved in user profile17:28
asac.gnome2/network-admin-locations/test123417:28
LaserJockawesome found it17:29
asacwell ... probably that generates the interfaces on the fly17:29
LaserJockthat'd be my guess17:29
LaserJockasac: why do you want the interfaces?17:29
=== mvo_ is now known as mvo
asaci want more real-life test cases for the NM 0.7 system-config backend that tries to parse interfaces ;)17:30
LaserJockso having NM be able to deal with interfaces people have hacked on?17:31
asacyes ... more or less17:32
LaserJockright now it seems to write a perfect interfaces, for me anyway17:33
asacthe idea is to ease transition for users that used other setups in the past17:33
LaserJockasac: well, I can make my own interfaces and see what NM does if you'd like :-)17:33
asacLaserJock: good. ill bring up the latest and let you know17:34
BenCogra: are you using tbird from intrepid?17:42
ograi'm using evo17:42
=== mkrufky is now known as mkrufky-lunch
superm1BenC, thunderbird in intrepid shouldn't be too different than hardy's (according to https://edge.launchpad.net/ubuntu/+source/thunderbird )17:55
mathiazslangasek: I'm trying to build the nssov overlay from openldap. But it seems there are issues with the includes - have you already tried to build one of the contrib modules for slapd ?17:58
BenCsuperm1: yeah, nm, I found my issue17:59
superm1BenC, if my memory serves me right, one of those extensions in that list i gave you had to be hand modified to work on the latest tbird.  just rev'ing the version number inside the jar was sufficient ,but the rest should be sane18:02
asacLaserJock: ok i uploaded new NM to ~network-manager PPA should be there in a few ... once that is done you can change /etc/NetworkManager/nm-system-settings.conf to --plugins=ifupdown,keyfile and sudo killall nm-system-settings18:07
asacLaserJock: to avoid confusion maybe remove "keyfile" for testing18:10
LaserJockasac: so before I kill nm-system-settings I'll want to have a "custom" interfaces in place or should I do that after?18:27
asacLaserJock: edit interfaces, then kill that settings thing18:28
asacLaserJock: maybe start with a simple config ;)18:28
asacauto eth0 dhcp ;)18:29
slangasekkirkland: pong; have you created a config that's missing a Priority: field?18:33
slangasekmathiaz: if you mean you're trying to build an out-of-tree overlay for openldap, no, I've never done that18:34
mathiazslangasek: well - it's the nssov overlay located in contrib/18:34
mathiazslangasek: but I've figured it out18:34
slangasekok18:35
LaserJockasac: well, auto eth0 dhcp won't get me far, I don't have a dhcp server around18:38
calcso how is intrepid on intel graphics now, still having issues?18:46
* calc is considering upgrading his machines, but might should wait until intrepid beta18:46
LaserJockcalc: what kind of issues was it having?18:47
=== mkrufky-lunch is now known as mkrufky
loolcalc: I'm having issues on intel graphics, but didn't investigate18:58
loolLike refresh / sync issues, it's not clear; windows are "out of date"18:58
slangasekkirkland: ah, seen your bug now; don't call pam-auth-update in the postrm18:59
slangasekkirkland: I'm working on adding a --remove option for use in prerm remove19:00
=== cody-somerville_ is now known as cody-somerville
emgentevening19:02
=== jtechidna is now known as JontheEchidna
calcLaserJock: not sure i've just read people were having lots of problems on intrepid a while back and was wondering what the current state is before attempting to upgrade19:13
LaserJockcalc: it's working quite good for me19:13
LaserJockcalc: only X problems I've had were some Xchat unminimizing weirdnesses I think19:14
calcok19:14
LaserJockcalc: I'm personally finding Intrepid mostly better than Hardy currently19:15
LaserJockI've had a couple hard freezes but that's mostly it19:16
=== herb_ is now known as herb
* LaserJock stops thinking of all the little bugs in Intrepid before he changes calc's mind19:19
bytor4232Hey guys19:21
bytor4232I did an upgrade of Intrepid Alpha 5 last night, and nothing could log in.19:22
bytor4232 "cannot make/remove an entry for the specified session"19:22
bytor4232Had to wipe and reinstall from the alpha5 disc.19:22
slangasekbytor4232: first bit in the /topic19:22
bytor4232ah19:22
bytor4232sweet.19:22
bytor4232Thanks slangasek, I'll hang tight on upgrading.19:23
slangasekbytor4232: it's already fixed, upgrading now is fine19:23
bytor4232slangasek: Cool.  I'll run an upgrade tonight or tomorrow.19:28
hwildeLaserJock, little bugs are tasty.  just get some chocolate on there :)19:30
* BenC finally has his email setup moved to tbird19:39
bytor4232BenC: I love tbird.  Its spam filtering is top notch once you start training it.19:41
persiacalc: Do be careful it you've an odd input mechanism.  xinput hotplug doesn't quite autodetect everything cleanly yet.19:43
hwildebytor4232, its a legit bayesian neural net :)19:44
BenCbytor4232: I never had any complaints about evo+bogofilter19:47
BenCas far as spam filtering at least19:47
* bytor4232 gets a lot of spam.19:50
bytor4232support@ableteam.com, admin@ableteam.com are pretty big magnets.19:50
JontheEchidnagmail catches most of my spam19:51
JontheEchidnabogofilter gets most of the rest19:51
=== Kopfgeldjaeger is now known as Kopfi|offline
okaratashello20:05
BenCis lrm-generic installed by default on live-cd's?20:18
geseris it normal that /etc/pam.d/common-{password,session} list pam_permit.so twice? wouldn't be using it once enough?20:20
slangasekgeser: it's a stack padding thing20:26
slangasekgeser: a more elegant solution is still percolating through my brain20:26
slangasek(the code that writes out the rest of the stack makes assumptions about how far to jump, you see)20:27
bazaarhi. is it possible to translate a single char with gettext?20:30
bazaari mean really a char, not a one character char-array / string.20:31
slangasekif you mean the gettext C functions, then no20:31
slangasekstring in, string out20:31
loolWhy not convert them to a string?20:31
bazaar(yeah i mean C) so how can i accomplish to translate user input like 'y' or 'n' on a question like "DO you want to (y/n) ?"20:32
bazaari mean at the point where comparison happens.20:32
slangasekwell, you can always walk a character array20:33
bazaarif tolower(input_char) == _('y') . . yadayda20:33
slangasekto compare20:33
persiabazaar: If you're not worried about performance, check that the first character of the string matches and that tha string length is 1.20:33
lool_('Are you sure (%s/%s)?') % (_('y'), _('n'))20:33
slangaseklool: "", not '' :)20:33
slangasekbazaar: also, you can't use tolower() here safely for all locales20:33
persiaslangasek: Won't it do an implicit cast in that case though?20:34
loolslangasek: Remember this is pseudo code, you didn't recognize any particular langage I hope  :-P20:34
slangasekbazaar: because a "character" won't necessarily fit in 8 bits20:34
slangasekpersia: you mean the "" vs ''?  not in C...20:34
loolOk, off to dinner and probably done for today; /me waves « "night »20:34
slangasekusing '' around something that's not a single char will get you a compiler error20:34
bazaarpersia: right tolower() won't work. i think i'll use first character + length test. thank you.20:34
loolpersia: '' is character20:35
loolin C20:35
persiaslangasek: Ah.  I must have looked at too much not-quite-C recently then.20:35
slangasekpersia, bazaar: a string length of 1 also fails in such cases; you basically need to convert to wchar_t first if you want to compare a single char in a charset-independent fashion20:35
slangasekpersia: yes, many not-C languages are nice to look at :)20:36
bazaardo i need to use all the "wide" functions (wprintf etc.) if i've localized my program? or will the printf() stuff work?20:37
geseraren't there also zero-length characters in unicode which are only used in combination with others?20:38
slangasekyou wouldn't need to use widechars for everything; mostly, only when you're trying to do single-char comparisons20:38
slangasek(as opposed to single-byte comparisons)20:38
slangasekgeser: <mumble>20:38
slangasekgeser: if you start worrying about that, you have to link in a Unicode library that can do normalization for you :P20:38
geserbazaar: better yes, if you do formatted output as 5 chars != strlen of 520:39
bazaarso if i want to print a message (w)printf("Hello everyone. This will be printed in your language!"); -- which one should i use?20:40
slangasekgeser: I was limiting myself to "here's how you make this work for CJK users", not "here's how you make it cope with Macs"20:40
bazaarsry: (w)printf(_("Yada Yada"));20:40
slangasekbazaar: the output of _() is going to be of type char*, not of type wchar_t*; so you would always use printf() instead of wprintf(), unless you have some other reason you need to convert it first20:41
bazaarah. i see. ok. thanks. guess i should do a little more manual reading again.20:42
persiaIsn't UTF-8 usually handled OK (terminal width aside) even from C strings?  "僕の本" is more than 3 bytes, but does one typically need to care for output purposes?20:42
persiaAh, question answered while being typed :)20:43
geserbazaar: in that case printf() should be ok, but don't try to use a multi-byte char string with printf("%80s", ...) to fit it in one terminal line20:43
slangasekpersia: for output - no.  But if you want to compare two chars, instead of two strings, you need a "char" type that can accomodate kanji :)20:43
persiaslangasek: Right, which is why string length of 1 byte is wrong (but string length of 1 character is right), which is why I should not look at any more loosely typed languages.20:44
=== Kopfi|offline is now known as Kopfgeldjaeger
keesasac: how do I mark myself "online" so things like firefox don't think I'm offline?20:46
geserpersia: your example is also good to show that 3 (wide) characters may need more space than 3 terminal "cells"20:46
persiageser: Indeed, although that's common for CJK.  "エメット" is preferred over "エメット" when writing my name, for example.20:47
persia(plus, not all characters have a half-width form)20:48
geserbut one to think about it when converting an app from char* to support multi-byte strings (UTF-8) and not simply replace strlen() with wcslen() when trying to compute how much space a string will need20:50
geserspace on the terminal20:51
=== superm1 is now known as superm1|away
poningruhey guys who should I talk to regarding the netboot initrd and the structure in it?21:22
poningruas in this guy: http://archive.ubuntu.com/ubuntu/dists/hardy/main/installer-i386/current/images/netboot/ubuntu-installer/i386/initrd.gz21:23
Mithrandirponingru: try #ubuntu-installer, probably.21:23
poningrudanke21:23
=== mkrufky is now known as Guest73656
=== mkrufk1 is now known as mkrufky
slangasekhmm, is prerm remove + removal of files from the filesystem always an atomic operation wrt dpkg?22:01
=== thegodfather is now known as fabbione
DktrKranzare packages in -proposed (once they've been built and published) available to other packages in proposed too or they become available only when moved to -updates?22:05
sbeattieDktrKranz: yes, packages in -proposed are built against -proposed as well (though it's a policy I disagree with)22:08
DktrKranzthanks22:09
slangaseksbeattie: well, I don't know how you would propose we stage kernel ABI changes without it :)22:10
=== fta_ is now known as fta
jcastroanyone know the component responsible for ejecting the CD at the end of the install?23:42
jcastroor should I just file a bug against ubiquity?23:42
slangasekeject-udeb23:42
jcastrothanks23:42
slangasekbut ubiquity is usually a good place to start anyway, for liveCD bugs23:42
jcastrowell, I wanted to file a feature request for the server install, is ubiquity still the right place?23:43
jcastrodealing with the eject stuff I mean23:44
slangasekoh, for server install, no - that's definitely eject-udeb23:44
jcastrook23:44

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