IRC log of #maemo-meeting for Tuesday, 2012-05-22

*** Pali has quit IRC04:23
*** Pali has joined #maemo-meeting11:47
*** Pali has quit IRC12:35
*** Pali has joined #maemo-meeting13:20
*** Pali has quit IRC13:25
*** GeneralAntilles has quit IRC14:11
*** GeneralAntilles has joined #maemo-meeting14:53
*** Pali has joined #maemo-meeting16:06
*** javispedro has joined #maemo-meeting17:25
X-Fadelbt: ping :)17:59
lbtpong18:00
X-FadeAh, there he is.18:01
X-FadeAnyone else awake?18:01
* merlin1991 is18:01
X-Fadejavispedro: ?18:01
X-FadeHe'll probably show up soonish :)18:03
X-FadeOk then, well let's first start with the basics then.18:06
X-FadeThe reason I invited lbt is to talk about using the SB2 in OBS approach for building fremantle apps.18:06
javispedroI'm here already18:06
X-Fade:D18:06
lbt*nod*18:06
X-FadeTogether with Stskeeps, lbt has been working on using SB2 in OBS as a clean way to do cross compilation.18:07
X-FadeRight, so far lbt?18:07
lbtyes18:07
X-FadeWith the added benefit of being able to accelerate builds.18:08
X-FadeWhat I would like to discuss is what we would need to do an experiment with that.18:08
X-FadeAnd what kind of issues we would run in to.18:09
lbtfremantle ?18:10
javispedroe.g. what might be different from maemo sdk+18:10
javispedroand potentially diablo or even older :)18:10
X-FadeAnd harmattan too.18:10
lbtOK18:10
X-FadeBut we would start with fremantle as that would be the way to move to OBS instead of autobuilder based repos.18:11
X-FadeFremantle on SB used rootstraps, this is not so much the case in SB2, right?18:11
lbtcorrect18:12
javispedrowell, it is the case with maemo sdk+ afaik18:12
lbtI'm not familiar with sdk_18:12
lbt+18:12
lbtI used it >2yrs ago a couple of times18:13
lbtOBS is based around preparing a custom build root18:13
X-FadeWith minimal dependencies, based on the build requirements.18:14
lbttypically we make that minimal to ensure that builddeps are specified correctly - this ensures that rebuilds are done riht18:14
lbtg18:14
lbtit also makes it a tad quicker for smaller builds18:14
lbtso we need to ensure that we have the ability to make appropriate build environments18:15
lbtover and above the src they contain tools, libs and header files18:15
X-FadeBut it requires some minimal rootstrap like repository?18:16
lbtyeah, there's always a set of packages available to satisfy deps18:16
lbtcore, tools and -devel18:16
X-FadeAnd these come from a loaded repository for instance?18:17
lbtyep18:17
X-FadeSo we could prime that with the packages from the SDK repo.18:17
lbtyep18:17
lbtand fill in any blanks18:17
lbtand make substitutions18:17
lbteg busybox/gnu-utils18:18
lbtin certain situations18:18
X-FadeThat I have already done in the current setup.18:18
lbtso that gets you emulated builds18:18
lbttypically18:18
X-FadeBut you would replace some arm binaries with native versions?18:19
lbtmmm18:19
lbtreplace gives the wrong impression18:19
lbtthat's actually how I used to do it for Mer on maemo18:19
lbtsb2 does it a little differently18:20
javispedroiirc there's a "whitelist" of stuff that gets redirected?18:21
lbtessentially, yes18:21
X-FadeOne thing that happened in SB based SDK was for instance that in libqt4-dev for armel, there was a i386 based qmake in the package.18:21
X-FadeThis makes OBS unhappy atm :)18:22
lbt*nod*18:22
lbtI've not looked at that yet18:22
X-FadeOk, so how would you configure your SB2 target?18:23
lbt"A target is a rootfs that contains development files like headers, libraries and possibly programs. Notably it does *not* need to contain compilers, linkers etc."18:24
lbthttp://wiki.merproject.org/wiki/Platform_SDK_and_SB2#Target_Preparation18:24
X-FadeYeah, so that requires us to create some kind of rootfs?18:25
lbtso the rootstrap is where we put x86 things (like gcc-cross and all the cross tools, but also perl etc)18:25
lbtthen we create a minimal development rootfs18:25
X-FadeOk, there we take some parts from the i386 SDK. But we would need to create some cross compiler packages.18:27
lbtright now that approach uses a rootfs18:27
lbttoday stskeeps got that working with a package approach18:27
lbtand yes, we'd need cross-compilers18:28
X-FadeOk, so our first todo would be to create the cross compilers.18:28
lbtand they should be in the maemo SDK18:29
lbtI wonder if we can use the Mer SDK18:30
lbtand have a fremantle targetfs18:30
X-Fadecompiler version issues come to mind.18:30
lbtas a way to get going18:30
lbtyeah, don't install gcc18:30
lbtinstead, cpio2rpm the maemo gcc binutils etc binaries18:31
lbtthere may be too many .so issues18:31
merlin1991couldn't we reuse the cross compilers from the maemo sdk packages?18:32
javispedrowas thinking the maemosdk_+_ packages, the maemosdk toolchains have sb1 garbage18:32
X-FadeWe might be able to use those.18:34
lbtwell, what's the fremantle prjconf for a minimal build root18:34
X-Fadehttps://build.obs.maemo.org/project/prjconf?project=Maemo%3AFremantle%3A1.318:35
lbtcan you turn that into an SDK18:35
lbtand then add sb218:35
X-FadeWe could use the arm-2007q3 crosscompilers.18:38
lbtyes18:38
X-FadeI don't think we had newer ones?18:38
lbtwhich are passed directly to the sb2-init18:38
javispedroX-Fade: those are fremantle's, if that's what you asked18:39
X-Fadejavispedro: Yeah.18:39
X-FadeSo, we would need to figure out which packages we would need.18:40
X-FadeI guess we can document that in the wiki.18:40
X-FadeOnce we have this 'light' sdk, how to continue?18:41
lbtsb2 support for cross into OBS18:42
X-FadeYou mean adding it to the fremantle project?18:43
X-FadeOr updating the infra? :)18:43
lbtadding it to bs_worker and "build"18:43
X-FadeOk, so your patch set.18:43
lbtbut that's "just" replicating stskeeps work for rpm to the deb install side18:43
X-FadeThat is something for me then...18:43
X-FadeWho could help look into the SDK side of things?18:44
javispedrois there documentation regarding the different mappings I see there? sdk-build, sdk-install, when to use which one, where to place the tools..18:44
lbtthe build mappings are a subset of install18:45
lbtless rules == faster18:45
javispedroah18:45
lbtso just use install for now and it should be OK for build too - optimise later18:46
javispedroso what we need is crosscompiler(cs2009) + the minimal set of x86 tools required to start dpkg -ing things18:49
X-FadeAnd perl to run the build scripts, right?18:49
javispedroput those "somewhere" (need to read the mappings I guess?)18:49
lbtand "osc build" should do the majority of the work locally18:49
lbtthen "osc chroot"18:49
javispedroperl will be a nightmare18:50
lbtand sb2 is probably packaged for deb18:50
lbtjavispedro: perl isn't too bad until you get to devel-side .xs files18:50
javispedroand thinking that as last resort one could make the build and install mappings different, make build use native perl, install use x86 perl18:51
lbtyes18:51
lbtperl and things with binary extensions are hard18:52
X-FadeThe mappings can't be configured through the prjconf, right?18:52
lbtmmm18:52
lbtno ... but... maybe an idea18:52
lbtthe platform sb2 provides the rules18:53
lbtin Mer's case they're part of the SDK setup18:54
lbtI've not decided how to sync them to OBS yet18:54
*** Pali has quit IRC18:54
javispedrohttp://maemo.gitorious.org/scratchbox2/scratchbox2/trees/master/lua_scripts/pathmaps the stock ones18:55
javispedrolots of maemo specific stuff there, e.g. (/usr/lib/apt, ...)18:56
X-FadeYeah, but we are doing maemo ;)18:58
javispedroexactly18:58
javispedroso maybe the stock ones might even be more useful to us than mer's18:58
javispedro(but dunno at this point, really)18:58
X-FadeSo basically we need to build sb2 for fremantle?18:59
lbtyep18:59
lbthttp://maemo.gitorious.org/scratchbox2/scratchbox2/trees/master/debian19:00
X-FadeDoesn't need a whole lot, so that should be doable.19:00
X-FadeWho wants to package it? :)19:01
javispedrowait a moment... why? :P19:01
X-FadeYou need to install scratchbox in your buildroot too?19:02
X-FadeHere is Carsten's build log: http://releases.merproject.org/~carsten/sb2-b1-obs-victory.txt19:03
X-Fade[97/100] installing scratchbox2-2.3.52-1.119:04
javispedroah, the double chroot thing :(19:04
X-FadeWe have most of it available, just not the sb2 packages yet.19:05
javispedrodammit, I get it now19:05
javispedroso the VM is actually running Fremantle X86, so sb2 gets the tool from the _host_, no special path required as in maemosdk+19:05
javispedro*the tools19:06
javispedrook, starts to make sense :)19:06
X-FadeThat log got me puzzled this morning too though :)19:06
javispedroso we need to package both sb2 and cs2009 cross compiler for fremantle x8619:08
X-Fadejavispedro, merlin1991: Up for a bit of playing with that?19:08
X-FadeI can do the server side setup.19:08
X-Fadelbt: This can be tested with local builds too, right?19:09
lbtyes19:09
javispedroI don't have a remote/local OBS setup anywhere in any case, but I can boot a Fremantle x86 VM on my own19:09
lbtjavispedro: yes19:10
X-Fadejavispedro: And setting up a local build is as simple as 'osc co -A https://api.obs.maemo.org Extras:Testing13/debhelper' or something like that.19:10
X-FadeBut yeah, I guess part can be done in a fremantle X86 env too.19:11
javispedrook then, I can play with t hat19:12
X-FadeOk, let's try to document our progress and issues in the wiki.19:13
javispedrobtw19:13
X-FadeI'll try to get the OBS updated and configured..19:13
javispedrothe nosb2 builds, how did they go?19:14
X-Fadefairly well actually.19:14
X-FadeI can't show it atm as I triggered a rebuild this morning :)19:14
X-Fadehttps://build.obs.maemo.org/project/show?project=Extras%3ATesting1319:14
javispedroah19:14
javispedrowell lots of unresolvable19:15
X-FadeYeah, but that is because it uses 'useforbuild'19:15
javispedroah, temporary19:15
javispedroso we'll see.19:15
X-FadeSo it can't resolve until a package 'provides' certain things.19:15
javispedrohttps://build.obs.maemo.org/package/live_build_log?arch=armv7el&package=cpumem-applet&project=Extras%3ATesting13&repository=Maemo_Fremantle_1.3_standard19:16
javispedrofirst example of a package that assumes autoconf 1.7...19:16
X-FadeBig issue is that qt4 apps don't compile.19:16
javispedrothis is provided by host tools in sb1..19:16
X-FadeDue to that nice i386 binary in the armel qt4-dev packages.19:16
javispedroah19:16
javispedronice one too19:16
javispedrowhat was the problem with armel qmake? qemu crash?19:17
X-FadeSo I might try to build qmake for arm and replace it.19:17
X-FadeI guess they did that to speed things up?19:17
javispedroah! might be.19:17
javispedrougly19:18
javispedro(that's what the maemo devkit was for! ;P )19:18
X-FadeI filed a bug for it a long time ago :( https://bugs.maemo.org/show_bug.cgi?id=1144519:18
povbotBug 11445: Package libqt4-dev 4.7.0~git20100909-0maemo1+0m5_armel.deb contains Intel386 binaries19:18
X-FadeI might use that package from the bug and replace the maemo one..19:19
X-FadeBut anyway, almost 600 packages compiled without problems.19:20
X-FadeBut I expect that if I add armel qmake version that we get quite a few more.19:22
X-FadeAnything else we should discuss?19:24
* javispedro is updating wiki19:25
X-FadeOk, cool :)19:25
X-FadeI got to get me some dinner soonish..19:25
javispedronothing else I think19:26
javispedrolet's what we can make out of this19:26
X-FadeLet's at least meet again next week?19:26
javispedroyep19:26
lbtsure19:26
X-FadeOk, let's do that.19:27
X-Fadelbt: Thanks for your input.19:27
javispedroindeed19:27
lbtnp ... wish I had some spare time to get involved more19:27
X-FadeNow go out and enjoy the summer :)19:27
javispedromeh, everyone wishes that :)19:27
lbtyeah ... blue skies!19:28
lbto/19:28
X-Fade27C, nice! :)19:28
X-FadeOk, talk to you later. Thanks!19:29
javispedrocya19:29
javispedrojust tought about having to build sb2 for pre-diablo... brrrr...19:36
*** javispedro has quit IRC19:40
*** Pali has joined #maemo-meeting20:53
*** Pali has quit IRC20:54
*** cwoodward has joined #maemo-meeting23:22
*** Woody14619 has quit IRC23:24

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