/srv/irclogs.ubuntu.com/2009/02/16/#ubuntu-installer.txt

shtylmanso I never got an answer the first time to I will ask again00:39
shtylmanwhen you guys are developing on the installer how do you test changes you make while developing? I undetstand I can debuild but that takes forever...currently I run locally using python but the problem I have with that is some of the paths are hardcoded so I have to change them and then change back before I commit...is there a better solution? what is the common practice? thanks00:39
cjwatsonshtylman: you had left when I was last around, so I didn't get to answer ;-)01:05
cjwatsonshtylman: keyboard_names.py is autogenerated; see debian/rules01:05
shtylmancjwatson: understandable :)01:06
cjwatsonshtylman: I often extract the diff with bzr diff, copy that to the test system, and apply it on the fly with patch01:06
cjwatson(patch isn't installed on the live CD by default, but that's easy to rectify)01:06
cjwatsonthis is fine for anything except C code or modifications to imported code in d-i/, but I need to test either of those types of changes comparatively rarely and can cope with debuild for that01:07
shtylmanand if you cahnge images or other items not code related you just copy them over manually?01:07
cjwatsonaye01:07
cjwatsonit's a bit tedious but perfectly doable01:08
shtylmangotcha01:08
shtylmanright now, I have been running with just setting the paths in the files...basically it allows me to test it faster01:08
cjwatsonI would echo evand's advice not to run ubiquity on a normal system that you care about01:09
cjwatsonI wrote a lot of it and I don't do that :)01:09
shtylmanis there a way to rebuild the deb without cleaning everything first? ... haha...I believe you there :)01:09
cjwatsondebuild -nc01:09
shtylmancause every new build takes forever and seems to generate the same things over and over... ooooo01:09
cjwatson(noclean)01:09
cjwatsonthe make dependencies might not be perfect, you might need to remove the odd stamp file or something01:10
shtylmangotcha01:10
shtylmanmuch appreciated...01:10
cjwatsonno problem01:11
shtylmanalso, while making the kde guis I have found some fixes for the way things where done (city placement is a big one)01:11
cjwatsonI'll let you work with Evan on that, I'm quite out of date on the timezone map implementation01:11
shtylmanwho whould I suggest the fixes to? or should I just do them myself and say where to find the changes?01:12
shtylmangotcha01:12
cjwatsonideally, do them yourself and point evand to a branch01:12
cjwatsonthen he can review and merge01:12
cjwatsonbonus points if the branch changes only those things so that it can be merged easily01:12
shtylmanand the final thing...if you don't mind...the usability docs talk about a password strength bar..which is good and all, but I notice that labels often have translations that go with them..what do I do about that if I have to create a new label and want to generate the translations? do I make a note of that somewhere?01:13
cjwatsonwe haven't implemented the backend for that yet01:13
shtylman(fix for the map: I will make the changes...they are pretty local...and tell evand)01:13
shtylmanahh ok, no prob01:14
cjwatsonbut I suppose if you're doing something that updates on the fly then a backend isn't necessary01:14
cjwatsontranslated strings either go in debian/ubiquity.templates, or come from backend code in d-i/source/*/debian/*templates*01:14
cjwatsonwhere possible we try to use strings in d-i to reduce translator workload, but ubiquity does have a decent collection of its own strings too01:15
shtylmanright..I was able to finally track those down...what is the best way for adding a new translation? cause clearly I don't know the other languages...01:15
cjwatsondon't add translations yourself01:19
cjwatson(generally)01:19
cjwatsonadd the English text to the appropriate templates file and then we'll pull in translations en masse from Launchpad01:20
cjwatsonit isn't a good idea to try to shortcut that, generally01:20
shtylmanthat makes since...is there a good way to specify that the template file has been updated or particular text needs translating? or is that just checked manually later with diff?01:20
cjwatsonthat is taken care of for you01:21
cjwatsonwe run debconf-updatepo upon changing templates, and that deals with it01:21
shtylmangotcha01:21
cjwatsonthere is a huge pile of complex software behind that that you may or may not want to look into :-)01:22
cjwatsonit's a bit more clever than just diff01:22
shtylmanheh...figured01:24
shtylmanlearning about the installer as I go...one giant piece of software...01:24
shtylman(did the -nc flag...and sorting templates still takes forever...I think I will stick with the copying over to a test system as suggested)01:27
shtylmanthanks for the help01:28
=== Daviey_ is now known as Daviey
shtylmanevand: I made some changes to the gtk city location code and the zone offset code, they are in my branch lp:~shtylman/ubiquity/kdeui03:17
TheMusocjwatson: FYI I've just pushed/uploaded d-i to move ports to 2.6.28 kernels. Seed change also done.07:21
TheMusoargh package breakage! :S07:29
TheMusomy local mirror i.e on my LAN must be out of date, although I thought it mirrored this morning.07:34
TheMusoas it built fine here...07:34
cjwatsonTheMuso: oh :-( I was going to wait until I'd done cdebconf and cdebconf-terminal, since I was going to need to upload d-i right afterwards08:00
cjwatsonTheMuso: thanks anyway08:00
cjwatsonthough glad to see it all built at last, obviously :)08:16
TheMusocjwatson: On another note, I was playing with dmraid+ubiquity today. As previously discussed, ubiquity shows dmraid member disks, but doesn't if /var/lib/disk-detect/activate_dmraid is present. Would it be unreasonable to possibly touch that file in casper if dmraid happens to activate any arrays on live CD boot?10:08
TheMusoI also experienced a few failures trying to create ext3 filesystems on a standard disk partition with ubiquity today with latest dailies, however the livefs appears to be somewhat out of date, so far as I saw with some packages at least.10:09
cjwatsonsounds tolerable10:09
TheMusoFrom the ubiquity code I've read so far, I am not sure how it would be possible to mangle UI code to not show member disks, without doing it to all frontend code. I may not have found all parts of that codd yet, so there still may be an option there.10:12
CIA-3console-setup: cjwatson * r94 ubuntu/debian/ (changelog config.proto):10:19
CIA-3console-setup: Don't escape '(' and ')' when decoding/encoding the codeset, as the10:19
CIA-3console-setup: pattern is passed to grep and this causes parentheses to be interpreted10:19
CIA-3console-setup: as regular expression groups (thanks to Dmitry Agafonov for pointing out10:19
CIA-3console-setup: the problem).10:19
cjwatsonTheMuso: is it necessary to mangle the UI code in ubiquity, if partman is already not showing the member disks? (partman does exclude them, doesn't it?)10:26
TheMusoYes. When it sets things up, it checks if a disk is a dmraid member, and if /var/lib/disk-detect/activate_dmraid is present, it excludes them.10:27
cjwatsonso maybe there's nothing to do in ubiquity after all?10:28
TheMusoNo, there isn't, if we can create /var/lib/disk-detect/activate_dmraid elsewhere, which was why I was thinking casper, dpeending on array activation.10:32
TheMusoBut again, I am thinking we need to ask the user whether they want their arrays activated.10:32
TheMusosimilar to what we do in d-i.10:32
cjwatsonHmm. Tricky. I suppose you could do it using a usplash prompt though interaction there is a bit unpleasant10:35
TheMusoWhether that be in ubiquity, or when the user gets to the desktop, I am not sure. The latter is much easier to implement, but may not be as UI friendly, unless we pop up a notification with an icon/button. Usplash feels ugly as you mention, but may be the cleanest.10:35
cjwatsonand you might want to use your disks from the live CD other than via ubiquity10:36
cjwatsonfor instance recovery purposes10:36
cjwatsonnotifications with actions seem to be being deprecated by the desktop experience folks10:36
evandshtylman: I'm having a look at your timezone map changes now.10:36
cjwatsonhmm. cdebconf-terminal failed to build, but worked on my system10:37
* cjwatson upgrades10:37
TheMusocjwatson: rIGHT.10:38
cjwatsonwell, the missing debian-installer.h is a straightforward missing build-dep, but I can't actually reproduce the implicit declaration errors - although they're clearly bugs in the source, missing #includes10:38
cjwatsonI'd like to be able to reproduce before uploading though ...10:38
TheMusocjwatson: I think they will simply be activated by default, and if users complain, we can then consider the best course of action. D-i was unfortunately easy to ask a simple question like that. :)10:39
cjwatsonit was more effort to ask the question in d-i than just to do it by default10:41
cjwatsonI'm sure there was a reason?10:41
TheMusoYeah someone asked for a question to be asked, because they didn't necessarily want to use dmraid arrays. I meant it was easier in terms of the UIII AND WHERE T WAS ASKED< AND CODED.10:42
TheMusoWth the live disks, you have several place and forms in which the question can be asked.10:43
TheMusoas far as I see things anyway.10:43
cjwatsonI'm just worried that if we bring it up by default we might cause data corruption on some systems10:44
cjwatsonI don't much care if it's a preference thing, but I very much care if it's a data integrity thing10:44
cjwatsonI'll ask Frans10:44
TheMusoOk.10:44
TheMusoI understand where you're coming from.10:45
evandshtylman: The positioning code seems to be more accurate, though still misses the correct locations of some points by a sizable distance (Sao Paulo, Brazil, for example)10:59
* evand continues to dig10:59
cjwatson11:24 <fjp> cjwatson: 1) Because bootloader support is still flakey.11:42
cjwatson11:24 <fjp> 2) Yes, it can break systems. See #433579.11:42
cjwatsonTheMuso: ^-11:42
TheMusoright11:42
cjwatson11:26 <fjp> 3) Because IMO it is something we'd prefer users not to use and asking the Q means we save the memory used by the dmraid udeb.11:42
cjwatsonwhich I argued about because I don't think that's our choice11:43
TheMusoYeah agreed. I know d-i in debian is all about "if you want this support, explicitly enable it on the kernel command-line etc"11:43
cjwatsonwell, not really, not for most things11:48
TheMusoRight.11:48
TheMusoI know dmraid is like that however, but I don't think we can expect users of Ubuntu to do that.11:48
cjwatsonapparently there's a thread on debian-boot about dmraid at the moment, haven't read it yet11:51
TheMusohrm ok. Might check it out in a bit.11:53
TheMusohrm so maybe usplash is possibly the best option for now, but I'm still unsure about this11:58
TheMusothat thread covers what I know re dmraid already.12:02
Kanohi, how to enable the root pw question in the u installer?12:50
superm1cjwatson, what exactly is cdebconf? i've seen references to it in ~ubuntu-installer bug mail and uploads,14:17
shtylmanquick google search says its an implementation of the debian configuration management system using C14:20
superm1yeah that's what i had though about it, but is it eventually intended to replace debconf then in the installer? is it supposed to be faster?14:21
shtylmanthat I have no idea about...it may be easier to tap into or might provide better api or something...maybe they just wanted to update the old system14:22
evandIt's a different implementation of the same underlying protocol, as I understand it.  cdebconf supports things that debconf does not (the way it handles translations, plugins), but I don't think there's an intention to replace perl debconf on the live CD with it (though it is an option to ubiquity).14:24
evandOf course just my $0.02, cjwatson would have a much more authoritative answer14:24
davmor2evand: would 2ยข of been quicker :)14:29
superm1ah okay.  that explains a bit evand14:29
shtylman... no 'cent' key ...14:30
cjwatsonsuperm1: in Debian, we do have a long-term plan to replace debconf with cdebconf, but emphasis on the "long"14:34
davmor2shtylman: Nor do I just press AltGR+c :)14:35
cjwatsonsuperm1: the reimplementation was in order to avoid having to include perl in the stripped-down d-i environment, but it probably is a bit faster as a result; I've benchmarked it with ubiquity in the past and there wasn't a stunning difference though14:35
superm1cjwatson, so assumingly at some point after that happens there would be an evaluation to consider a similar thing in ubuntu14:36
cjwatsonI co-maintain both debconf and cdebconf in Debian; if we switched in Debian then I would Just Do It in Ubuntu :-)14:36
superm1:)14:36
cjwatsonthere's a bit of a long tail of stuff to include in cdebconf first though14:36
cjwatsonproper initialisation; weird backends that a small number of people use; that kind of thing14:37
superm1ah okay.  i understand a lot better now, thanks!14:38
cjwatsonfor the meantime, it does an excellent job of handling things for the installer14:39
shtylmanwhat is emap?14:42
shtylmanthe gtk version requires it but a google search on it is useless14:42
davmor2shtylman: try e-map14:42
cjwatsonit's a map widget extracted originally from Evolution14:44
cjwatsonit's in the ubiquity source tree; don't know why you're googling for it given that :)14:44
cjwatsonin src/14:44
shtylmanahh ok...I was just curious...is it actually used currently?14:45
cjwatsonubiquity/frontend/gtk_ui.py:2712:        self.tzmap = ubiquity.emap.EMap()14:46
cjwatsonoh, only if you pass --old-tzmap14:46
shtylmangotcha, yea...I was deffinately under the impression the new map was used, but didn't realize you could opt for the old one14:48
cjwatsonwe should probably get rid of the old one before jaunty; it bloats the package, introduces an architecture-specific requirement, etc.14:52
cjwatsonIIRC ubiquity-frontend-gtk could be architecture: all if not for that14:52
shtylmanyea...unless someone is really attached it it, I think the new one is far better14:56
cjwatsonno attachment here, I'd rather only support one. I think it's just a fallback measure in case the new one has serious problems14:57
evandindeed, I'm fine with removing it.15:00
shtylmananother question: I have noticed that some user interface stuff for the gtk side lives in the main ubiquity folder (like segmented bar and timezone map) was there a reason for putting that there instead of in the frontend folder in a gtk section?15:04
evandJust a lack of organization on my part.  I suppose it should live in a frontend-titled directory if you're using the same names for python modules.15:12
evandThat or we should start prepending gtk on things that are specific to that frontend.15:13
shtylmanheh15:14
davmor2cjwatson: I've just checked the online logs and I can't see why but today's alt cd is crashing out I'm just grabbing the logs off the install15:17
davmor2cjwatson: http://www.davmor2.co.uk/install the syslog says package conflicts lots of lib*-cil stuff.  Now for a change do I have the info correct?15:39
cjwatsondavmor2: you have it correct, but it's not an installer problem :-) if packages are installable, the installer is just the messenger15:40
cjwatsonso don't shoot it15:40
cjwatsondavmor2: this sort of thing with daily builds normally clears itself up15:40
* davmor2 uncocks gun15:40
cjwatsonand we have reports for it, like http://people.ubuntu.com/~ubuntu-archive/testing/jaunty_probs.html15:41
davmor2cool no probs At least I got the info right15:41
davmor2cjwatson: isn't that the reports that build on the daily iso page?15:42
cjwatsonnot sure I understand you?15:42
davmor2ah no different location15:42
davmor2I was thinking of this http://cdimages.ubuntu.com/daily/current/report.html which is empty15:43
cjwatsonthat's generated based on the CD contents15:43
cjwatsonsame basic report though; ~ubuntu-archive/testing/ is for the whole of main+restricted15:43
cjwatsonand the one on cdimage.u.c is empty because apparently the CD build broke15:43
davmor2cjwatson: Cool15:43
davmor2:)15:44
davmor2hence the broken cd15:44
cjwatsonno15:44
cjwatsonthe broken CD you're using is from yesterday or earlier15:45
cjwatsonthe CD build broke in such a way as to generate no CD at all15:45
davmor2MEH15:45
cjwatsonMissing debootstrap-required belocs-locales-bin15:46
cjwatsonI've fixed the archive override that was causing that15:46
davmor2oh well I'll try again tomorrow :)15:46
shtylmanwhy doesn't python have a '+=' ?? ... I mean ... really?16:47
shtylmansorry just had to complain16:47
evandshtylman: it does, but do consider the warning: http://zephyrfalcon.org/labs/python_pitfalls.html16:51
cjwatsonindeed. the thing that python lacks in that department is ++, not +=16:52
shtylmanyea...that too16:52
shtylmanactually... cjwatson, I think ++ is my biggest complaint over +=16:53
cjwatsonas evand points out, python *does* have +=, so I'm not even sure why you have a complaint about the latter16:53
cjwatsonI don't have a problem with the lack of ++ in practice given nice idioms like for i in range(10):16:54
shtylman(I think I tried it ... and my python complained)16:54
shtylmanbut that could have been a while back and I never tried it since16:54
CIA-3debian-installer: cjwatson * r1043 ubuntu/ (9 files in 9 dirs):19:30
CIA-3debian-installer: Add cdebconf-newt-terminal to most images that include19:30
CIA-3debian-installer: cdebconf-newt-udeb (although not floppies).19:30

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