/srv/irclogs.ubuntu.com/2009/07/17/#ubuntu-mobile.txt

=== asac_ is now known as asac
=== lbt is now known as _
=== _ is now known as lbt
lbthi ... more Mer packaging/building stuff :)    I need to build glibc - how do I limit the architectures it builds for to just i586 ?12:57
lbtdoes just trimming /debian/rules.d/control.mk   debian/control.in/libc6:   -e 's%@archs@%amd64 arm armeb armel i386 lpia m32r m68k mips mipsel powerpc ppc64 sparc s390 hppa sh3 sh4 sh3eb sh4eb%g' < $< > $@  work12:59
loollbt: Hmm why do you need to limit that?13:23
lbtI'm building it to do a cross-build in OBS13:24
loolIs it a problem if OBS builds it on other arches?13:24
lbtnah, I just want to speed it up and avoid all the build-deps etc13:24
lbtthe plain build-dep doesn't specify libc6-dev13:25
loolIt sounds like your change is specific to OBS, not really to your source package, so probably you want an OBS config to only build on certain arches or a wrapper which takes a source package and strips all arches except the one you want?13:25
lbtwell, OBS is driven by the dsc13:25
lbtit just runs dpkg-buildpkg13:25
lbtinside a chroot13:25
lbtbut it pre-installs based on the build-depends13:26
loolYes, but it is worth it to maintain extra delta in all your .dscs just to speed up OBS builds?13:26
lbtthis is a specific task :)13:26
loolInstead, you could change the control file before OBS builds13:26
lbtyes13:26
lbtthis is just for one build - it's to do with cross-building13:26
loolCan you use a modified dpkg-dev for instance13:26
lbtphone13:27
loolOh ok; then I guess you can just edit control13:27
* ogra wonders what you gain from OBS over a PPA13:27
ograwhich builds x86/amd64 only anyway13:28
lbtsec13:29
lbtlong call :)14:03
lbtlool - yes, I removed the none x86 looking things from control.mk. .... this gives me a glibc_2.9-4ubuntu6obs114:04
lbtogra: OBS builds armel14:04
ograright, you asked for "building only on x86" though ;)14:05
lbtyes - I want to build glibc i58614:05
lbtand then package  it in an armel .deb 14:05
lbt<grin>14:05
ograerr14:05
lbthttp://en.opensuse.org/Build_Service/Cross_Build14:05
lbt"scratchbox done right"14:06
ograwell14:06
ograhttps://wiki.ubuntu.com/ARM/BuildEABIChroot14:06
lbttongue-in-cheek14:06
Stskeepsogra: yeah, that's part of the solution, now drop in x86 bash, gzip and cross compiler gcc :P14:07
ograpfft, just build your stuff with native tools14:07
lbtwe do14:07
lbtQt takes 40 hrs14:07
ograin the chroot i mean14:07
lbtwe do14:07
lbtthat's how OBS works14:07
lbtAFAIK the OBS guys helped write the patches to qemu mentioned on that page14:08
lbtnow OBS also lets us run the chroot easily on the desktop14:09
lbtso these native binaries will help make the desktop devel/debug cycle quicker and avoid my users bitching at me :)14:09
ograright, i just dont get what you do with the x86 binaries14:09
lbtwe install them into eg  /lib-x86/bin/bash14:10
Stskeepswe accelerate the builds with native tools basically :)14:10
lbtthen we install a set of .so into  /lib-x86/lib14:10
ograwell, mesa compiles in the eabi chroot in 2h here ... 14:10
lbtand modify ldlinux.so and glibc/rt to look in /lib-x8614:10
ogranot sure i understand what you speed up with using the x86 tools14:11
lbtand then replace /bin/bash with symlink to /lib-x86/bin/...14:11
ogramesa x86 compiles in pbuilder on the same machine in the same time14:11
Stskeepsogra: your method would use gcc built for ARM, right? :P14:11
ograindeed14:11
lbtand qemu/armel gcc is 10x slower than 586 gcc 14:12
ograthe gcc 4.4.0 we use in karmic14:12
ograit isnt14:12
ografeel free to try it out14:12
lbtwe do14:12
lbtthe entire Mer distro is built just like that14:12
ograin OBS14:12
lbtqemu/armel gcc14:12
lbtyes, or locally14:13
Stskeepsogra: you're telling me x86 cross-compiler targetting armel is just as fast as qemu-arm (user level) emulated gcc? :P14:13
ograi just did two builds of mesa today, there is no speed difference at all between the builds on the same HW here 14:13
ograwell, probably a few minutes but not noticeable at all14:14
lbtI think you must be using a cross-compiler14:14
Stskeepswhen doing big builds it makes a difference - and if you can cut off a minute per build in your queue, that's a lot :P14:14
ograqemu-system-arm is definately slow, fully agreed14:14
lbtyes14:14
lbtthat's what we (have to) use14:14
lbtanyhow... this is all mainly 'interesting' 14:15
Stskeepslbt: it's not qemu-system-arm in use though :P14:15
ogrado you have an ubuntu desktop machine around ? 14:15
ograjust try it :)14:15
lbtOBS is a GPL solution to do multi-distro builds14:15
ogratakes 10 mins to set up a chroot ... another 2 to install build-essential in the chroot ... 14:16
Stskeepsogra: we did try over several packages to do gcc built on armel for armel - it's dog slow and can be accelerated 50-60% with simple tricks :P14:16
lbtah, qemu-system-arm ... OK, misunderstood. We're using binfmt-misc14:17
lbtanyhow, as I said, it's A.N.Other tool that we use :)14:17
ogra(that whole conversation should be in #ubuntu-arm btw)14:17
lbtand I appreciate the help getting glibc to build14:17
lbtvery true...14:18
lbtI just pop in here to see how Ubuntu-MID is coming along14:18
lbtwe haven't seen any of you guys for a while14:18
ograMID moved to mer and to being built by the community, not sure who is in the new MID team14:19
ograpersia has some insight in that afaik14:19
lbthas he been around much14:20
ograi think he is massively busy 14:21
lbtOK,  say hello from Mer if you see him :)14:21
ograwill do :)14:22
ograwill you guys be at the maemo summit ? 14:22
lbtoh yes14:22
ograwell, then we might meet14:22
Stskeepsyeah, i'll be doing a presentation and lbt got a free trip at the developer weekend ;)14:22
=== amitk_ is now known as amitk

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