=== xivulon_ is now known as xivulon [12:30] user-setup: cjwatson * r154 ubuntu/debian/changelog: releasing version 1.23ubuntu11 [12:44] tasksel: cjwatson * r1392 ubuntu/ (9 files in 4 dirs): [12:44] tasksel: Offer manual package selection via aptitude if the cdebconf terminal [12:44] tasksel: plugin is available (LP: #21570). [14:21] ubiquity: evand * r3032 ubiquity/ (4 files in 3 dirs): Move the resize functionality into the segmented bar widget. [14:41] ubiquity: evand * r3033 ubiquity/ubiquity/segmented_bar.py: [14:41] ubiquity: Unround the corners of the segmented bars on the automatic partitioning page. [14:41] ubiquity: Show the size of each partition when resizing. [14:48] tasksel: cjwatson * r1393 ubuntu/tasksel.pl: fix manual package selection: use --schedule-only to mark packages, then plain aptitude (without "--visual-preview install") to display the UI [15:04] ubiquity: evand * r3034 ubiquity/ (debian/changelog scripts/install.py): [15:04] ubiquity: Copy the Distribution Channel Descriptor (DCD) file into the target [15:04] ubiquity: filesystem if it exists in /cdrom/.disk/. [15:21] when building packages...shouldn't template sorting happen only if template files change? or are the sorts not stored? [15:26] mpt: Ignoring the poorly drawn resize handle (I'll fix that in a bit), do you have any comments on this cut of the resize widget integration: http://people.ubuntu.com/~evand/tmp/ubiquity-new-resize.png . We can now make those options below say whatever we want, by the way. [15:28] cjwatson: I'm equally keen to hear any comments you may have as well. [15:28] evand, yay for square corners! [15:28] :) [15:29] evand: I pulled your latest changes and the installer failed to draw the after bar for me [15:29] I was going to ask "what type of FS does the black section represent", then I realized that's the resize handle... [15:29] shtylman: interesting. I'll poke at it and see if I can reproduce the bug. [15:30] yeah, I need to actually draw something resembling one there, but I wanted to get the fundamentals down first. [15:30] evand, currently the text for the first chart's legend is closer to the second chart than it is to the first chart [15:30] evand: gtk_ui:3019, assertion width >= -1 failed self.new_os.set_siz_request(pixels, -1) [15:31] evand, why does the "100%" not have an accompanying size, while the other percentages do? [15:32] mpt: I'd need to add code to calculate it, whereas we get it for free with the partitions that are being resized. But I can do that quite easily. [15:32] * evand makes a note [15:32] shtylman: bzr pull again? [15:33] It would be nice if "Before:" and "After:" were centered with the actual bars, ignoring their legends, but that's probably really difficult [15:33] evand: on mpt's note, I wanted more fine grained partition info in the before bar, so what I did for the kde side (currently) was to regain priv and ask parted server for a disk list, store that and drop privs...all in the set_autoparti... [15:34] mpt: centering with the bars is a problem for small partitions [15:34] shtylman: indeed, that's effectively what I just made a note to do. [15:34] mpt: indeed, but I can take a shot at it [15:34] shtylman, in what way? [15:35] (I mean the "Before:" and "After:" labels vertically centered, not the legend bits horizontally centered) [15:35] ops...sorry completely read that wrong [15:35] ( [15:35] whoops [15:35] *oops [15:35] yea...by bad [15:35] (I've also made a note to better space between the two widgets) [15:36] are we thinking that square ends are better than rounded? [15:37] shtylman, mainly because it's more accurate when the first/last partition is small, and partly because it makes it look less like iTunes [15:37] hahaha [15:37] (the texture is still a pixel-precise iTunes ripoff, but one step at a time) [15:38] :) [15:38] (sulks...as he changes the kde one back to square) [15:38] (and so is the reflection) [15:38] (and so is the legend) [15:39] but it cools cool :) [15:39] and thats what counts! [15:40] "How do you want to partition the disk?" is still a moderately loaded question [15:40] mpt: What would you suggest? [15:41] and on that, does "Use entire disk" and "Resize a partition above and use the freed space" sound ok? [15:41] evand, probably nothing you'd have time to implement before feature freeze [15:41] I think a good intro line would be of the form [15:41] evand: I have spmehow messed up my branch regarding the debian/changelog...how do I just tell bzr to use the one from the main branch? [15:42] and throw away mine? [15:42] The disk [SCSI1 (4.3 GB ATA) :^] is empty. [15:42] The disk [SCSI1 (4.3 GB ATA) :^] has Windows XP on it. [15:42] The disk [SCSI1 (4.3 GB ATA) :^] has two operating systems on it. [15:42] etc [15:42] shtylman: assuming it's complaining about a conflict, I would copy the main branch copy over top and say bzr resolve. [15:43] mpt: is that a drop down box? [15:43] evand: ok, also, you said 'pull' earlier, but I looked at the main branch and I have the latest...do you have a separate branch? [15:43] evand, yes if there are multiple eligible disks for installation, otherwise just plain text [15:44] (or even just "This computer", if there's only one eligible disk) [15:45] This computer has Windows Vista on it. [15:46] [ Windows Vista (120 GB) ] [15:46] evand: ok, I ran it again (and on my local version it seemed to work..but one problem I found was that it doesn't actually limit itself to that partition [15:46] mpt: perhaps we should pass back and forth pieces of paper :) [15:46] I have a disk I am using to test the bars and it has a small ext3 (8bg) at the head [15:46] about 40gb free space [15:47] and 2gb swap at end [15:47] shtylman: indeed, I noticed that a few minutes ago and will need to fix it. [15:47] and when I click the resize above option, it makes a slider over the whole disk [15:47] (k) [15:47] also...another note...I think something usefull would be to have the 'use largest free space' option actually show which free space will be used [15:48] versus being 100% for the whole bar [15:48] and on a final note: for the manual option...I hide the after bar altogether [15:48] shtylman: That's a bug [15:48] evand, katkin might demand to read each of them first [15:48] or rather, could be considered one [15:49] gotcha [15:49] evand, I'm disappointed I didn't get time to spend on this a couple of weeks ago [15:49] mpt: No worries, I am well aware of how busy you are with other things [15:50] evand, does "Use entire disk" disable the resize handles? [15:51] yes, and adds a "this will permanently delete Windows XP" message to the side with a warning icon [15:52] evand, I think the "After:" chart would therefore make more sense below the radio buttons than above. [15:52] mpt: ah, good call [16:01] I need to figure out what I am going to do to decouple the labels from the bars (the descriptions of each partition, Ubuntu Jaunty 9.04 (development release) for example, can often make the bar extend beyond the allocated space for it. I was going to leave just the colored boxes and sizes and move matching colored boxes and labels into a chart to the right of the options, but that would make things quite crowded and all over the place [16:02] by all over the place I mean you'd be looking at sources of information to the top, bottom, right, and center. [16:02] why do you want to decouple them? [16:02] seems like they go nicely under that bar...? [16:02] they force the size of the partition bars to grow beyond the allocated space [16:03] forcing us to stuff the partition bar in a scroll window when that happens [16:03] when you get more labels? or more text? [16:03] which can be quite ugly [16:03] ahh [16:03] well, both [16:03] but more often more text [16:03] though some people do have systems with an infinitely large number of partitions. Damn extended partitions. [16:04] Why would anyone need more than four? :) [16:04] I overflowed with as few as four, iirc [16:05] http://launchpadlibrarian.net/18799517/screenshot.png [16:05] indeed :) [16:06] wow [16:06] Looking at that again, I see half my problem was tiny scraps of free space between the partitions [16:07] what about hover labels? [16:07] when you hover over the partition? [16:08] or labels inside the sections that are drawn fully if there is room, or completed on hover if there isn't room [16:08] like in Netscape 4 Mail for Mac! (no, really) [16:08] hrm, like the resize widget used to be? [16:09] yea...something like that [16:09] mpt: do you have a screenshot of this by any chance? [16:10] evand, no, but I'll sketch it for you now [16:10] mpt: much appreciated [16:20] * mpt hands over the sketch and sadly returns to notification bubbles :-) [16:20] haha [17:06] tasksel: cjwatson * r1394 ubuntu/disconnect: pass some environment variables through to disconnected aptitude [17:09] tasksel: cjwatson * r1395 ubuntu/debian/changelog: releasing version 2.73ubuntu14 [17:32] ubiquity: evand * r3035 ubiquity/ (3 files in 3 dirs): [17:32] ubiquity: Disable the encrypted home option. This cannot be considered secure [17:32] ubiquity: without encrypted swap. The option can still be enabled by preseeding [17:32] ubiquity: it. [17:33] partman-auto-lvm: cjwatson * r211 ubuntu/debian/ (65 files in 2 dirs): Remove "Please try again" from templates, per Christian Perrier. [17:37] installation-guide: cjwatson * r447 ubuntu/ (debian/changelog en/appendix/preseed.xml): Document partman-auto-lvm/guided_size. [19:06] is it known that the current image has dependency problems: libart2.24-cil: Conflicts: libart2.0-cil but 2.20.1-1ubuntu1 is to be installed [19:28] it's been mentioned, but it isn't a topic for this channel [22:11] how exactly should the 'resize partition above and use freed space' option work? [22:11] lets say I have 60gb drive [22:11] first 8gb are ext3 [22:11] then 50gb of free space [22:11] and then swap [22:12] if the user picks resize...does that mean it will allow them to scale down the ext3 partition and use whatever is there plus the free space partition since that one immediately follows it? [22:33] if you have 50gb of free space, it won't bother offering the resize option in the first place [22:33] but let's say the amount of free space is smaller [22:34] in that case it would resize down the ext3 partition, and then there would be a single big block of free space after it, which it would use for guided partitioning [22:35] there's no such thing as two contiguous blocks of free space - free space is just the absence of a partition, and doesn't have a real existence itself in the partition table [22:35] i.e. no such thing as a "free space partition", really, even though partman presents free space in the same kind of way as it presents partitions for the sake of UI convenience [22:35] shtylman: ^- [22:46] cjwatson: it occurred to me ... [22:47] cjwatson: while highly inadvisable, it's trivially easy to lock yourself out of a system where you use encrypted-home with 'sudo apt-get remove ecryptfs-utils' [22:47] cjwatson: what do we do with other shoot-yourself-in-the-foot packages like this? [22:47] I have a hard time getting worried about that. There are lots of such cases [22:47] cjwatson: okay, cool :-) [22:47] cjwatson: good enough for me [22:47] can they be marked 'essential'? [22:47] absolutely not. [22:48] superm1: well, it's only essential if you want encrypted home [22:48] ecryptfs-utils ain't essential [22:48] which is not everyway [22:48] *everywhere* [22:48] i dont think i conveyed that right. if they're installed can they be reported as essential, but not installed by default of course [22:48] 'sudo apt-get remove gdm' breaks the system as far as a user who has no idea how to use the console is concerned, but we don't prevent people from doing that [22:48] superm1: no, there is no mechanism for that at the moment [22:49] ah okay [22:49] if we wanted to do this, then yes that's the sort of way one would need to fix it [22:49] but there is no existing infrastructure [22:49] the closest we have is that apt has a special-case hack to complain if you try to remove apt [22:49] * I cannot self-terminate. Closes: #74928 [22:50] cjwatson: :-) fair enough. seems i'm not the only package in this situation [22:50] kirkland: actually, there might be one ugly way to prevent it, although it might leave apt rather dazed nd confused [22:50] and [22:51] kirkland: make 'prerm remove' check whether ecryptfs is actually in use, and if so bail out with an error message [22:51] I vaguely recall that there's some precedent for that [22:52] cjwatson: i think i might just wait until the first moron does this crazy thing :-) [22:52] ah yes [22:52] sudo.prerm [22:53] I think it would be a reasonable check for ecryptfs-utils.prerm, although you might want to make sure that apt ends up in a sane state afterwards (i.e. ecryptfs-utils still installed) [22:53] and have a look at sudo.prerm which has an override switch in case you really know what you're doing [22:54] maybe we should write that trick down somewhere :) [22:54] I remember discussing it with pitti at the time, but it was years ago and took a while to page back in from backing store as it were [22:55] * TheMuso can't help but think this *COULD* be useful for dmraid. [22:55] I think exit 1 in the prerm will make dpkg throw up it's tentacles and go "Well *fine*!" [22:55] but then again, there are many other packages that are similar [22:55] as has already been stated. [22:55] the Debian Policy Manual says that if prerm remove fails then dpkg will leave the package in either failed-config or installed state [22:56] it is somewhat confusingly worded and I might try to get it made more definite [22:56] I was thinking it was more likely the former [22:56] (since I appear to be a Debian policy editor now) [22:56] installed would make more sense to me personally, but this is why I was recommending checking :) [22:57] how about we just test this [22:57] Right. Define in policy an exit code for the prerm that makes dpkg say "Oh, okay, I have just undone everything" [22:58] huh? no [22:58] dpkg doesn't in general distinguish exit codes from maintainer scripts, and I don't think it should [22:58] Ah [22:58] oh, blast, test-removing sudo takes out a bunch of other stuff [22:59] The only issue with changing policy to require "Installed" rather than "Failed Config" is that all the prerms out there need to recover gracefully from failure (in that if they partially removed things those ought be restored), [22:59] that and then it leaves its status as "deinstall ok installed" [23:00] ah, I think I've interpreted what policy is saying [23:00] persia: that's true anyway. [23:00] policy says that if 'prerm remove' fails, then 'postinst abort-remove' is called. If 'postinst abort-remove' fails, then the package is left in failed-config. Otherwise the package remains installed. [23:00] cjwatson, In the sense that they are supposed to restore all the arrangements (e.g. put back alternatives, etc.)? [23:00] persia: yes. postinst abort-remove MUST do that. [23:01] OK. This makes sense. [23:01] superm1: the first field is desired state, so that's fine [23:02] Ian admitted to me once that it was a mistake to have that in /var/lib/dpkg/status along with the actual state - it was basically there for dselect [23:02] kirkland: so, to summarise, exiting in 'prerm remove' is the right answer and you should do it. [23:02] cjwatson: :-) okay, i'll take care of it [23:03] kirkland: you should do it as early as possible in 'prerm remove' before cleaning up anything else (if applicable). If you do it after something else, make sure that 'postinst abort-remove' undoes it. [23:03] k [23:04] Ian said something relatively recently that I hadn't realised: the maintainer script calls are generally arranged so that you often don't need to check the first argument [23:05] i.e. the transition from "prerm remove failed, rollback" to "installed" should involve basically the same code as the transition from "unpacked" to "installed" [23:05] persia: just to be clear, I wasn't suggesting a change in dpkg behaviour, only clearer documentation of it [23:07] Right. I missed understanding of postinst abort-remove, and thought that the apparent indecision was due to the possibility of failure in prerm remove, rather than the possibility of failure when restoring things in postinst abort-remove. [23:07] Clarification to indicate that the selection of "Installed" or "Failed-Config" depends on the return of postinst-abort-remove would probably be of benefit. [23:08] on a second reading the language is precise, but it does take at least two readings :-)