/srv/irclogs.ubuntu.com/2015/06/08/#launchpad.txt

=== 5EXABD84D is now known as infinity
=== davmor2_hols is now known as davmor2
sidiI've just built an architecture-indepedent package on my PPA using Architecture: all, and LP only shows an amd64 build (https://code.launchpad.net/~ucl-cs-study-devs/+archive/ubuntu/multitasking-study/+packages, zeitgeist-chrome-datasource), does that mean that the i386 architecture will use the amd64 package or does that mean I did something wrong?13:21
dobeysidi: it only builds on a single architecture13:23
dobeysidi: the binary package will be installable on all13:23
dobeythere's no need to build it on all architectures since it is arch-indep13:24
sididobey, ah I see! So the amd64 indicates the arch of the build bot and not the target arch13:33
cjwatsonCorrect13:34
sidiThanks!13:37
dobeyyep13:38
sidiOk now I have a much weirder problem. I'm building my own glib2 package, directly forked from the vivid release one. My own code is mostly contained into gio and builds well. I get failures to build the package during dh_test. I get an error ("missing test plan") right after the test PASS: gdatetime 37 /GDateTime/to_utc in the build log (https://launchpadlibrarian.net/201883914/buildlog_ubuntu-vivid-amd64.glib2.0_2.44.0-1ppa1_BUILDING.txt.gz), except I d14:57
sidiid not touch gdatetime.c at all, or gdatetime's test case (bzr diff agrees with me on this one). So I'm running the exact same code and test as the Ubuntu glib package which builds without an error. I'm not sure if the question is for here or #glib, but what could be the cause of this? The error reliably occurs at that point on the PPA and my local build bot.14:57
sidi(I believe it's a GLib error, though)14:59
cjwatsonsidi: This isn't Launchpad-specific at all.  I expect you'd have a better change of getting a good answer somewhere that knows about the package you're building.15:03
cjwatsonI think the original error message is a little higher up:15:04
cjwatsonGLib:ERROR:/build/buildd/glib2.0-2.44.0/./glib/tests/gdatetime.c:674:test_GDateTime_now_utc: assertion failed (tm.tm_sec == g_date_time_get_second (dt)): (1 == 2)15:04
cjwatsonBut I'm not a GLib expert.15:04
sidicjwatson, I'm talking with them right now. I'm just curious why the Ubuntu package built because I get the error both on the PPA buildbot and locally, but I reckon that's most likely a glib issue15:05
cjwatsonPerhaps different version of a build-dependency, or perhaps some other skew you didn't notice in your source packages.  Run debdiff on both source packages, and diff the build logs.15:05
sidiAre all the build bots running the exact same configuration?15:06
cjwatsonAll the PPA builders are, but the Ubuntu builders are on an older kernel.15:06
cjwatson(for the moment)15:06
cjwatsonIt's possible that that's the cause, though you should first try building the actual Ubuntu source package locally to confirm.15:07
sidicjwatson, when I use the exact same package as the Ubuntu one I still get the error15:07
sidiI'm double checking by redownloading the source package from apt (though I was using the same on the same rev number as Ubuntu's source pkg in the test I just did)15:07
cjwatsonRight, so it could conceivably be to do with running on trusty's kernel, although in that case you'd normally expect it to fail on ppc64el even in Ubuntu.15:07
cjwatsonYou could try 2.45.1-2 from wily and see if it exhibits the same effect.15:08
sidiwill do that one next15:09
sidiit  takes about 20-30 mins per build so I'll be back later and let you know!15:09
sidiDo you know the exact kernel versions of both Ubuntu and PPA bots?15:10
sidiMight help to debug with upstream15:10
cjwatsonsidi: They're right there at the top of every build log.15:11
sidioh! Thanks15:11
cjwatsonDo check for other differences though.15:15
dobeysidi: generally, if the package builds fine without your patch, and fails with your patch, then your patch broke something. this is exactly what unit tests are for and why it's failing :)15:15
cjwatsondobey: Read harder15:16
cjwatsondobey: 16:07 <sidi> cjwatson, when I use the exact same package as the Ubuntu one I still get the error15:16
dobeyoh15:16
cjwatsonsidi: Kernel differences do occasionally account for bugs, but the facts that they didn't occur on the ppc64el build (also 3.13) and that gdatetime shouldn't be all that desperately kernel-sensitive both make me a bit sceptical15:17
cjwatsonBut diffing build logs is often a useful tool.15:17
cjwatsonOr it could be a racy test and you got unlucky in multiple configurations ...15:18
dobeyand glib is pretty well portable and generally robust at building, too.15:18
dobeysidi: btw, your versioning choice is not very friendly either. you'd want to use 2.44.0-1ubuntu3~ppa1 i think, otherwise the ubuntu version will be seen as newer than your ppa version15:22
cjwatsonStill will be unless you make that +ppa1 not ~ppa115:24
dobeyoh, right, should be 3.1~ppa115:24
cjwatson3+ppa1 is fine too15:24
cjwatsonAnd I would not use 3.1~ppa1 unless I were backporting something from 2.44.0-1ubuntu3.115:25
cjwatsonNot that it will normally matter but it's better to be in good habits IMO15:25
dobeyyeah, i guess. i'm just recommending what the launchpad ppa help page recommends, which is "next version with ~foo appended"15:25
dobeyanyway, time for me to get lunch. bbiab :)15:29
cjwatsonhttps://help.launchpad.net/Packaging/PPA/BuildingASourcePackage#Versioning does not say that.15:35
cjwatsonThere is a bit later about snapshots which says something along those lines, although with a rather dubious over-elaborate example.15:36
sididobey, cjwatson i wasn't aware of the need for +, thanks for the tip16:21
sidiThough I do intend to update the packages if there's a SRU for as long as I need the PPA16:21
cjwatsonwell, + isn't required as such, just a suggestion16:21
sidi(by the way, is there any service/method to receive emails when specific Ubuntu packages get updated?)16:21
cjwatsonanyway, whatever, could go round all day on versions16:22
cjwatsonsidi: we don't have per-package feeds, sorry - you could subscribe to wily-changes@lists.ubuntu.com etc. and filter the resulting mail firehose16:23
sidihm.. :D16:25
sidicjwatson, actually I'll maintain the PPA only for vivid. I'm doing a field study and the participants will be vivid users. I'm aiming to finish before October16:26
sidiis there a ML for SRUs per distro?16:26
sidivivid-changes@.. I premuse?16:26
sidiyup16:27
cjwatsonIndeed.16:40
cjwatsonwily was just an example.16:41
dobeysidi: fwiw, i built the stock glib2.0 source from vivid on a vivid pbuilder here just now, and it built fine.17:47
sididobey, I managed to get a local build of 2.0_2.44.0-1ubuntu3 from apt-source (the one that failed for me before was 2.44.0-1). I'm waiting for the PPA to build mine, got sidetracked by some grading... Will let you know, but thanks for checking too17:59
dobeyif you just built 2.44.0-1 before, that's the debian source, not the ubuntu one. glib2.0 has almost always had a patch or two carried on it in ubuntu18:04
sididobey, i think at that time you had the exact same source18:09
sidithis was a tiny bit before vivid's release, on the 30th of march. Looking at the current Ubuntu package's changelog, there was no ubuntu patch applied for 17 days after this package18:10
sidiand I seem to recall I had it in my updates before that date18:10
sidiI'd need to check with the maintainers to be 100% sure though18:10
dobeywell, i'm sure you can't have installed an update prior to the update existing18:13
dobey:)18:13
sididobey, what I mean was that I seem to recall my vivid (unstable) update manager proposed 2.44.0-118:14
sididobey, https://launchpad.net/ubuntu/+source/glib2.0/2.44.0-1/+build/7123078 i think it was built18:15
sidi2015-03-3118:15
sidiWell if the problem's fixed with more recent glibs it's probably not worth investigating18:16
dobeyoh, there's a newer version in vivid-proposed currently too18:20
sidiI saw that. I don't remember Ubuntu inner workings very well though, the proposed ones are only for users who enable proposed packages, aren't they?18:20
sidior will they be pushed to all users eventually?18:21
dobeyit's the staging ground before being pushed out to the updates pocket18:21
dobeyso once whatever testing necessary is done, and the wait period has passed, it will be an update18:21
sidiOk, so I should build that one too18:22
dobeyi'm surprised it hasn't been pushed out already though, since it looks like it was uploaded a few weeks ago18:22
dobeyoh well18:22
sidiactually, dobey can I use apt-get source to get packages from other distros?18:24
sidie.g. the proposed for vivid or the WW package?18:24
dobeyapt-get source will only pull from whatever deb-src lines you have in your sources.list files18:25
sidiright18:25
dobeybzr branch lp:ubuntu/vivid-proposed/glib2.0 should pull the vivid-proposed source (but you'll need to build the deb source package yourself)18:25
sidiso I should download the {orig,debian}.tar.xz and unpack them in a folder and I get the same thing, right?18:25
dobeyor you can use the pull-lp-source command as well18:25
dobeyyeah, you can download the source files directly off lp too18:26
sidi(i've actually had very weird interactions with bzr branch in the past, getting versions of some packages from ~2012, so I stopped using that)18:26
sidi(it seems not all maintainers keep their bzr branches up to date)18:26
sidiwill pull-lp-source use packages or bzr brancheS?18:26
cjwatsonThe former18:28
cjwatsonThe bzr branches are generally supposed to be auto-imported, but the importer is often broken18:28
cjwatsonIt's not the maintainers' fault in the general case18:28
sidiAh I see18:28
cjwatsonIt's going to be replaced by something git-based in the coming months, hopefully18:29
dobeyyeah, glib2.0 seems to be up to date, but sometimes the importer will fail to do an import for whatever reason18:29
cjwatsonBasically, don't bother with the auto-imported bzr branches, regardless of what some misguided documentation currently says18:29
sidiwow pull-lp-source is much more enjoyable :-)18:30
cjwatsonDon't get me wrong, revision control is good, just not good enough to overcome the huge roadblock of being broken a significant percentage of the time ...18:31
sidicjwatson, that's the thing I hate about doing ubuntu packaging. Debian packaging in itself is hard, and there are so many docs that it's hard to find one authoritative source of information that lists *all* the errors and mistakes I can make. Add in Launchpad/bzr  and PPA specifics and it's just hard. If I also had to package for Fedora/CentOS/Mint I would just go insane18:32
dobeycjwatson: will importing to git actually fix the problems that plague the importer?18:32
sidiI really wish there were git/bzr trees of the original branches, with an added debian folder, and I could navigate through the branch's tags to get the exact package I want18:32
sidithen I need to learn fewer tools18:32
cjwatsondobey: Yes18:33
cjwatsondobey: It's inherently much more reliable, basically due to not having file-ids18:33
cjwatson(And misc other things, but that accounts for a lot of it)18:33
cjwatsonBeing able to do reliable parallel imports makes so many things so much easier18:35
=== hggdh_ is now known as hggdh

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