/srv/irclogs.ubuntu.com/2011/12/08/#ubuntu-installer.txt

infinitycjwatson: Oh, hrm.  I suppose I could fix this in base-files-udeb instead.00:31
cjwatsonPlease tell me there isn't a base-files-udeb.00:31
cjwatsonDo you mean rootskel?00:31
infinityOh, or, whatever has the base filesystem. :P00:31
cjwatsonDoesn't seem like the ideal place to work around PI things, though.00:32
infinityI hadn't looked.00:32
infinityWell, that's how amd64 works around it.00:32
infinityBy shipping the lib64 -> lib symlink.00:32
infinityIf I fix this in mklibs (which doesn't look too painful), that could go away.00:32
cjwatsonTrue.00:32
cjwatsonSo you mean a /lib/armhfouyqwourtuwtriqur -> /lib symlink?00:33
infinityBut it would be just as easy to ship.. .Yeah.00:33
infinityIt's one or the other.  Symlink the directory, or have mklibs install ldlib to its full path.00:33
cjwatsonI guess that wouldn't be totally awful, although a proper fix would be better00:33
infinityThe latter feels more correct, but the other hack already exists for amd64.00:33
cjwatsonNo upgrade problems, at least.00:33
cjwatsonSo we can switch later.00:34
infinityWhat, you mean you don't regularly install apt in your d-i initrds and upgrade them?00:34
infinity:P00:34
infinitySo, yeah, what's responsible for that lib64 symlink?  You reckon rootskel?00:35
infinitySadly, the d-i build log was unhelpful.00:35
cjwatsonrootskel, yes.00:35
cjwatson./debian/rootskel.links.amd64:1:lib lib6400:35
cjwatsonlp:~ubuntu-core-dev/rootskel/ubuntu00:36
cjwatsonYeah, let's go with that00:36
infinityYeah.  It feels more correct to fix it in mklibs, but I'm also not sure what fallout that might cause when it tries to install amd64's PI to /lib6400:37
infinity(which is correct, but I have no idea what order these things happen in)00:37
cjwatsonWe'd have to fix mklibs then upload eglibc and rootskel at around the same time, yes.00:38
infinityeglibc wouldn't need an upload.00:38
infinityIt gets ldlib path from readelf.00:39
cjwatsonOh, yeah, duh00:39
infinityWhere it lives in the udeb is irrelevant.00:39
infinityAs I discoverde. :P00:39
infinitydiscovered, too.00:39
cjwatsonThe d-i build system unpacks all the base udebs (probably in roughly alpha order) and then runs mklibs.00:39
cjwatsonSo if it has a symlink there it might even work OK.00:39
infinityBut yeah, I could remove the link from rootskel and fix mklibs.  It's tempting.00:40
infinityOr, true, if the link's already in place, it would probably DTRT, since it's not absolute.00:40
cjwatsonright00:40
infinityYeah, maybe I'll fix this the way that seems more elegant, even if it's more work.00:40
infinityCause adding a new symlink for any new arch with a m-a PI seems broken.00:41
cjwatsonAt run-time, udpkg basically just extracts stuff by calling tar00:41
cjwatsonIt wants libc6-udeb when it gets to the point of retrieving further installer components beyond its base system, since only the base system gets reduced so it needs a full libc at that point00:41
cjwatsonStill a bit odd that it worked before that point for Tobin.00:42
infinityI'm moderately unsure as to what Tobin's breakage is right now.  I'll need to play.00:43
cjwatsonI can't quite think why specifically unpacking a new libc6-udeb would have hosed things if the problem was that the PI was in the wrong place.00:43
infinityWell, he moved his PI to the right place manually and repacked the initrd.00:43
infinityOtherwise, he would have never gotten that far.00:44
infinityDoes udpkg freak out about overwriting unowned files?00:44
infinityI suppose it couldn't possibly, or this reduction business would fail horribly.00:45
* infinity blinks and wonders where qemu-system-arm went.00:46
infinityOh, in universe, in qemu-system.  I must have napped through that package split.00:48
infinityErr, wait.00:52
infinityI can't test this with qemu.00:52
infinityNo vexpress images.00:52
cjwatsonudpkg doesn't give a shit about file ownership.00:55
cjwatsonIn fact it doesn't track it.00:55
cjwatsonqemu doesn't have other arm targets yet?  Boo.00:55
infinityS'ok.  I can test the mklibs stuff locally.  I just wanted to see if I could reproduce Tobin's thing.  Which will have to wait for my Panda or QuickStart to be idle.00:57
infinitySilly bootstrapping.00:57
infinityErr, just my Panda.00:57
infinityNo QS images either. :P00:57
cjwatsonFair enough.  I'll leave you to reproduce with Tobin. :-P00:57
cjwatson(I'm sure you needed that image)00:57
infinityDot dot dot.00:58
infinityI hate you SO MUCH right now.00:58
cjwatsonYou know, I don't think I know anyone else who spells out ellipses.00:58
infinitySometimes, you need to.00:58
infinityFor maximum effect.00:58
infinitycjwatson: Would appreciate comments and/or laughter on http://lucifer.0c3.net/~adconrad/mklibs.patch04:38
infinitycjwatson: (Presented as an upload to sid rather than precise, as Debian/armhf needs the fix just as badly)04:38
infinitycjwatson: As called by d-i, both mklibs and mklibs-copy appear to DTRT with my patchs for armhf, amd64, and i386.04:41
infinitycjwatson: Can't think of any corner cases that might blow up, but I also didn't feel the overwhelming desire to actually read all of mklibs.04:41
cjwatsoninfinity: ld_path_name == "/lib/" will never be true, as dirname doesn't return something with a trailing slash07:31
cjwatson(not foo == bar  =>  foo != bar)07:33
cjwatsoninfinity: I know it was partly pre-existing, but testing os.access(dest_path + "/" + ld_file_name, os.F_OK) seems bizarre - why would the PI *basename* exist in dest_path?  Should that be s/ld_file_name/ld_full_path/?07:36
cjwatson(OTOH maybe I'm missing something odd that mklibs does)07:36
cjwatsoninfinity: seems basically plausible though07:37
=== jibel_ is now known as jibel
infinitycjwatson: No, dest_path is lib/  Which seemed effin' wrong to me too, but that's how the code it written.10:56
infinitys/it/is/10:57
infinitycjwatson: And point taken on ld_path_name not containing a trailing slash.  Oops.10:58
infinitycjwatson: (dest_path being lib instead of root is why I then install to ../ld_full_path)11:00
infinitycjwatson: The whole this is just plain weird.11:00
infinitycjwatson: patch updated.11:01
CIA-16ubiquity: adconrad * r5108 trunk/ (3 files in 2 dirs): Fix the armhf symlinks to point to actual files11:24
ogra_hmpf, seems my cia setup is broken, i just released ubiquity 2.9.712:38
ogra_sigh and i'm missing 100MB of build deps ...12:42
ogra_fun12:42
* ogra_ twiddles thumbs waiting for them to install12:43
infinityogra_: Are you testbuilding before you upload, after chastising me for wanting to do the same? :P13:13
ogra_infinity, nope ...13:14
infinitySo... You uploaded?13:14
ogra_but i would appreciate if someone else could upload i dont get my chroot right here and dont want to waste another hour13:14
infinityOh.  I was just going to do an -nc upload.  No refresh.13:14
infinityCause I'm a filthy cheater.13:14
ogra_it needs bout 100MB build deps to even roll a source package :/13:15
cjwatsonhow about I just upload it, guys :)13:15
ogra_and somehow thats still not working ... its so long ago that i built ubiquity that i have to check the docs ... grmbl13:15
ogra_cjwatson, please do13:15
cjwatsonalso just changing the name in the changelog and not adding [ Colin Watson ] (e.g. as dch -r does) is a bit rude :)13:16
ogra_ah, i was missing a debian/rules update13:16
cjwatsonnot that I vastly care13:16
ogra_oops, sorry ... i didnt see a reference to infinity either (though he explained that above)13:16
cjwatsonup to people to put themselves in the changelog if they want13:17
ogra_right, it was just confusing13:17
cjwatsonuploading now13:19
ogra_bah, and now my chroot works :P13:20
ogra_well, at least i have it ready for next time13:20
ogra_and i know that armhf chroots work for building source packages :)13:20
cjwatsonyou don't need most of the build-deps to build the source package anyway13:20
ogra_well, it complains and stops if i dont have some of the python bits13:21
cjwatson-d13:21
ogra_(pyflakes etc)13:21
cjwatsonoh, yeah, sure, but that's small13:21
cjwatsonpoint is you don't need everything13:21
ogra_i didnt feel brave enough to -d ... (i noticed the note indeed)13:21
ogra_well, i have a proper chroot for next time ... so thats already good :)13:21
cjwatsonyou don't have to be brave; you can try it and then check that the debdiff looks right.13:22
infinity^13:22
cjwatsonI think you should just need debhelper, dh-di, and pyflakes, maybe one or two other bits.  certainly not most of the libraries.13:23
infinityLike I said, I was just going to do an -nc upload.  But not if everyone else was falling over themselves to upload. :P13:23
cjwatson-nc is fine if you've done 'debian/rules update' and there were no Python changes, yes.13:24
cjwatsonIt's worth running 'make -C d-i check' though.13:24
ogra_hmm, but xz is really bad on arm13:28
ogra_even ctrl-c'in the xz creation took 5 mins until it got through ...13:29
ogra_depressing13:30
infinityOn which machine?13:33
ogra_ac100 indeed13:33
infinityThe ac100's 512M of RAM doesn't really make it shine.13:33
ogra_in an armhf chroot13:33
infinityMy phone has more. :/13:34
ogra_intrestingly compressing inside the hf chroot seems to be lots and lots heavier than unpacking under armel in the host rootfs13:34
cjwatsonxz compression is a lot slower than decompression anyway13:35
ogra_apparently13:35
cjwatsonFairly well-known.13:36
cjwatson(But, for a source package, I'd still rather take a couple of minutes longer and save the space.)13:36
ogra_but i was hoping that hf improves it a bit13:36
ogra_vs el13:36
cjwatsonI would be surprised if it did any significant floating-point work.13:36
ogra_yes, apparently it doesnt13:36
cjwatsonCompression algorithms rarely do, although there's the odd exception.13:36
bdmurrayIn bug 901502 I see the following in syslog:15:51
ubot2Launchpad bug 901502 in ubiquity "I booted into Lubuntu Installation rather than running installation from the live desktop. After inputting my user info and proceeding, the installer encountered an error." [Undecided,New] https://launchpad.net/bugs/90150215:51
bdmurrayDec  7 20:19:58 ubuntu kernel: [   28.072013] loop1: rw=0, want=13608534816, limit=104857615:51
bdmurrayDec  7 20:19:58 ubuntu kernel: [   28.072021] EXT2-fs (loop1): error: ext2_free_branches: Read failure, inode=98360, block=170106685115:52
bdmurrayDec  7 20:19:58 ubuntu kernel: [   28.072023] attempt to access beyond end of device15:52
bdmurrayIs that indicative of media or memory issues?15:52
infinitycjwatson: I'm uploading my mangled mklibs as an ubuntu1 revision for now, so we can test it.  Feel free to give it an eyeball or two and upload to Debian and sync over my changes.18:44
infinityDamn.  I guess I should have tested my new mklibs with a full d-i build.21:41
infinityOh, FFS.22:42
infinity*headdesk*22:42
infinitylrwxrwxrwx  1 adconrad adconrad    4 Oct 17 15:01 lib64 -> /lib22:42
infinityThanks, whatever udeb unpacked that symlink.22:42
stgraber:)22:46
infinityApparently the concept of relative symlinks is a lost art.22:46
* infinity fixes.22:46
infinityAnd, it's debhelper's fault?22:47
infinitydebian/rootskel.links.amd64:lib lib6422:47
infinity^-- That's creating absolute links?  Ick.22:47
infinityYou know, I'm tempted to just take the links out of rootskel.  I don't really need them anymore.22:51
* infinity does so, and feels pretty good about the whole affair.22:57

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