/srv/irclogs.ubuntu.com/2005/06/23/#ubuntu-java.txt

=== warthylog [~warthylog@port49.ds1-van.adsl.cybercity.dk] has joined #ubuntu-java
=== Topic for #ubuntu-java: Java status in Ubuntu: gij-4.0 now works across all arch's. See http://wiki.ubuntu.com/JavaPackagingProgress for next steps, JavaIntegration for goals. | 3.1M7 has pretty much everything we expected. Performance improvements are surprising, however. For example, launching a workspace containing all Eclipse SDK sources used to take close to 2 minutes in 3.1 M6. It now takes under 10 seconds. Good job, guys.
=== Topic (#ubuntu-java): set by jbailey at Mon May 16 03:32:39 2005
fabbioneok.. logs will be available from now on... they will start appearing on the server in not less than one hour12:25
fabbioneenjoy :)12:25
=== fabbione [~fabbione@port49.ds1-van.adsl.cybercity.dk] has left #ubuntu-java []
=== jbailey [~jbailey@CPE00501836c657-CM014260028338.cpe.net.cable.rogers.com] has joined #ubuntu-java
=== doko [~doko___@dsl-084-059-062-132.arcor-ip.net] has joined #ubuntu-java
=== wasabi_ [~wasabi@207.55.180.100] has joined #ubuntu-java
wasabi_So, 3.1 really isn't that much better.05:30
wasabi_Basically they just moved stuff around and introduced a whole new set of packging problems.05:30
wasabi_Hey. Should .db files be put into share or lib by packages?05:35
wasabi_I'm about to actually start using this stuff for real packages.05:36
jbaileyLemme check FHS05:47
jbaileyHold on, the db files?05:47
jbaileyNot the .so files?05:48
jbailey.so files should be in /usr/lib/...05:48
jbaileydb files are generated at install time, right?05:48
wasabi_Nope.05:55
wasabi_The .db files will be distributed in each package and put into a central dir.05:56
wasabi_And the postinst will regenerage the main db file in /var/lib05:56
wasabi_regenerate05:56
wasabi_/usr/share/gcj-4.0/classmaps.d/packagename.db or something05:56
wasabi_I am uncertain if that should be in /usr/share or /usr/lib though, as it refers directly to .so files.05:56
jbaileyThe best thing is to generate one on two different arch's and see if they're exactly the same.06:00
wasabi_Check #gcj on OFTC.06:06
wasabi_Interesting point.06:06
wasabi_How do we deal with multiarch?06:06
=== estragon [~estragon@ANice-252-1-81-253.w83-201.abo.wanadoo.fr] has joined #ubuntu-java
wasabi_jbailey, converting Eclipse to cdbs. Need some assistance.09:42
wasabi_I have a fairly elaborate "configure" step. 09:43
wasabi_configure:: prepare-stamp should make cdbs call my prepare-stamp target right?09:43
wasabi_Just using debhelper.mk....09:43
wasabi_Oh I guess that should be pre-build?09:44
jbaileypre-build is probably the best choice if you can.09:50
jbaileyI need to know more about what you're doing to guess properly, though.09:50
wasabi_extracting the source, applying patches.09:50
jbaileyThere's a target apply-patches:: you can use. =)09:52
wasabi_Is that part of debhelper.mk?09:52
wasabi_I can't use a built in patch system.09:53
jbaileyNope, it's part of buildcore09:53
wasabi_Since I have a custom one that works per eclipse plugin09:53
wasabi_okay cooll09:53
wasabi_Does this thing manage stamp files?09:53
jbaileyNo. =(09:53
wasabi_Eclipse takes so freaking long.09:53
jbaileyThat's a major deficiancy in cdbs atm.09:53
wasabi_I have it split into a bunch of pieces just to make debugging easier09:54
wasabi_I think I'll just hang my current stuff off of it then.09:54
jbaileyProbably best.09:54
wasabi_Heh this is odd.10:06
wasabi_I have these packages:10:06
wasabi_eclipse-sdk and eclipse-platform and a bunch more.10:07
wasabi_eclipse-sdk is Arch: all.10:07
wasabi_eclipse-platform is arch: any10:07
wasabi_Hmmm. I need the build process to happen before either are installed.10:07
wasabi_Right now it looks like it's trying to do arch indep stuff first, before it goes down my build process.10:07
wasabi_I would have expected build/eclipse:: to happen before any package, arch dep or indep.10:08
wasabi_Maybe I'm not using build/eclipse right.10:08
wasabi_How do I add a build target that is required for ALL packages?10:09
jbaileyYou're crawling into the cobweb ridden corners of cdbs here, and alot of the motivation for cdbs2. =(10:14
wasabi_hehe.10:15
jbailey(And stuff tha tI have to look up to get right, justasec)10:15
jbaileycommon-build-arch:: might be a good choice.10:15
wasabi_Ah.10:16
jbaileyHonestly, I avoid the PASS/PACKAGE stuff as much as I can.10:16
wasabi_-indep stuff too?10:16
jbaileyIt was a neat idea implemented poorly.10:16
jbaileyYup, it's there.10:16
jbaileyAlthough in practice -arch is fine.10:16
wasabi_I like it. If nothing else it lets you seperate code easier.10:16
jbaileyIt's always called.10:16
jbaileyRight, except that people don't build their packages cleanly along the lines of their packages.10:16
wasabi_and provides a bit of self documentation10:17
jbaileycdbs2 introduces build passes that you can name explicitely.10:17
jbaileyAnd packaging passes that are based on the package names.10:17
wasabi_Still didn't work.10:17
wasabi_common-build-arch:: build-eclipse-compile-stamp build-eclipse-install-stamp10:17
wasabi_common-build-arch-indep:: build-eclipse-compile-stamp build-eclipse-install-stamp10:17
wasabi_But neither of those were called before debhelper started running for eclipse-sdk10:17
jbaileycommon-build-indep10:17
wasabi_There we go.10:18
wasabi_This does help. It makes the code easier to follow.10:18
wasabi_How about a recommendation on how to "install" eclipse. Which steps go where? Right now I have the build targets building the eclipse.tar.gz file10:19
wasabi_That's how the eclipse upstream build system works. It ends up with a tar.gz10:19
wasabi_Then, in the install portion I "install" the .tar.gz to debian/tmp.10:19
wasabi_Basically just extracting it.10:19
wasabi_But then I have to move lots of pieces between different packages... and take debian/extras, shell scripts and stuff, and put them in the right place.10:20
wasabi_Should I be installing the extras into debian/tmp and then relying on dh_install to move them to the right package?10:20
jbaileyWell, dh_install can reach into the debian/extras directory directly.10:20
jbaileySo there's no need to move them to debian/tmp first.10:20
wasabi_But then I have some which require preprocessing10:21
wasabi_like debian/extras/eclipse.png.uu10:21
jbaileyRight.  Can you do those in the build phase somewhere?10:21
wasabi_Is that what's proper?10:21
jbaileyMove those into tmp.10:21
jbaileyI like to do all munging and such in the build phase.10:21
jbaileyIt means that if I stamp that off, I'm done. I don't have to waste time doing any munging again.10:22
wasabi_sounds good10:23
wasabi_So build the .pong in build, but don't copy it to debian/tmp until install (where it's handled by dh_install)10:24
jbaileyRight.  That means that you can always blow away debian/tmp and just redo the build from install.10:28
jbaileyProbably nice in the case of eclipse.10:28
wasabi_oh yes.10:28
wasabi_heh.10:28
wasabi_it's a 30 minute compile.10:28
jbaileyOuch. =)10:28
wasabi_It uses about 900MB of space.10:28
wasabi_During build.10:29
jbaileyWe use tricks like that for the glibc build.10:29
jbaileyWhen working on packaging, you *Really* don't want to have to rebuild it.10:29
jbaileyHow much of eclipse is C/C++ code?10:29
wasabi_Very little actually.10:29
jbaileyAh, too bad.10:30
jbaileyOtherwise ccache might have sped the build up somewhat.10:30
wasabi_yeah. =(10:31
wasabi_can dh_install move files?10:39
wasabi_Like, I want usr/share/eclipse/eclipse to be moved to usr/lib/eclipse/eclipse10:39
wasabi_and then use dh_link to link it back10:39
wasabi_Dislike managing that stuff manually.10:40
jbaileyUmm.10:45
jbaileyI don't think it can.10:45
wasabi_make confuses me11:50
wasabi_common-install-arch:: install-eclipse-stamp11:50
wasabi_yet when I run debian/rules common-install-arch, it repeats it.11:51
wasabi_even though install-eclipse-stamp exists11:51

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