[00:04] Rcart: hmm, i think i actually disagree with that bug report. if i was maintaining that package, i would tell the user to configure the package to not start automatically (using policy-rc.d - see http://manpages.ubuntu.com/manpages/precise/en/man8/invoke-rc.d.8.html#contenttoc6), which would keep the postinst from trying to start the daemon [00:04] but i can't actually find anything in the debian policy manual to back me up on that [00:11] Rcart: ok, just uploaded mpd [00:15] broder: I think that the second comment is right, it would be easier for the user to just receive a warning and not a critical error that stops the update/install procedure [00:16] Rcart: that would be different behavior than almost every other postinst script i've seen [00:16] the standard postinst snippet for starting an initscript exits with an error if the start fails [00:18] I see. He said that will fix it (on 5 Jul 2008) and seems like he didn't X: [00:18] should I add a bug watcher linking that (debian) bug report? [00:19] to what? [00:19] the LP bug report [00:19] which bug report? [00:19] (that you mentioned) [00:20] #778571} [00:20] ah. no - the one i mentioned is a different bug from the one described [00:20] Ah, ok [00:21] I'll add a bug watcher to the bug you reviewed [00:21] huh? [00:22] xD [00:22] no, i don't think there's any bug in lp right now that matches the debian bug you linked to [00:22] you should only link bugs if it's the same bug being reported in two places [00:23] the bug I was working on you uploaded it, I'll report it to debian and link it to LP [00:23] ah, yes. that would be excellent :) [00:23] sorry for the confusion [00:23] :D [00:24] Think I need to read carefully the scripts post-pre-etc and try to work on bugs like that [00:34] Thanks for your help broder, I'm leaving. o/ [00:35] Rcart: no problem! thanks for stopping by and contributing! [00:36] (: [01:45] Thanks jtaylor for your help [01:46] hi broder [01:46] akrogames: hey, what's up? [01:47] I live in France and I'm tired and you ? [01:47] I learned to fix bugs [01:57] good night, so later [04:23] jtaylor: I found out the fix for live-manual, it's not pulling a new version. I'm still trying to figure out the right way to actually make the change. Ping me when you're around and I'll explain [04:42] jtaylor: strike that, I have the debdiff ready to go, just need to know where to put it so that a MOTU can take it from there [05:26] !sponsorship| mfisch [05:26] mfisch: You can find out about the package sponsorship process here http://wiki.ubuntu.com/SponsorshipProcess - For !UDS sponsorship see http://uds.ubuntu.com/participate/sponsorship/ [05:45] tumbleweed: thanks, I'll take a look in the morning [08:12] Changed-By: Ubuntu Merge-o-Matic [08:12] ^ we should have a noisy lintian check for that [08:13] heh [08:33] It is possible to sync a Ubuntu package to Debian? [08:34] vibhav: there's no automated proces for it [08:34] it generally works better to maintain the packgae in Debian and sync to Ubuntu [08:35] I prefer to upload it to Ubuntu first, since I am not experienced in the Debian process [08:36] all the tools (and people) assume that Debian is the upstream [08:36] and I think Debian is a better place to maintain packages (the stronger maintainership makes sense for packages you care about) [08:38] I still can upload it to Ubuntu first? [08:38] nothing stops you from doing that [08:40] tumbleweed: Assuming he has upload privileges or gets a package sponsored [08:40] did something change in apport? There's hardly any information in bug 940800 [08:40] Launchpad bug 940800 in python-wadllib (Ubuntu) "pyclean crashed with Exception in from_package(): cannot get content of python-wadllib" [Undecided,New] https://launchpad.net/bugs/940800 [08:45] tumbleweed: bug 944078 [08:46] Launchpad bug 944078 in apport (Ubuntu) "bugs reported by apport missing essential information" [Undecided,Incomplete] https://launchpad.net/bugs/944078 [08:47] hrm, probably it [10:00] what is the process of fixing these http://qa.ubuntuwire.com/bugs/rcbugs/ [10:00] Is there a document about this? [10:02] I mean I can download the debian source, get the relevant patch etc, then where and how do I submit the result? [10:03] pkt: either request a sync if appropriate or submit a patch for sponsorship either through a bug or bzr branch [10:04] how do I request a sync? [10:04] ok I found, sorry for that question [10:04] pkt: use requestsync from ubuntu-dev-tools (use the -e flag if the new version has new features since we're past feature freeze) [10:04] http://qa.ubuntuwire.com/bugs/rcbugs/ [10:05] ok, thanks :) [11:31] I tried requestsync -e radare but it doesn't work since it says the versions are the same (in reality they aren't) [11:33] pkt: if it's only in unstable you'll need -d unstable [11:33] pkt: -d unstable [11:34] thanks :) [11:34] (and sorry for the newbie questions) [11:34] np, that's an issue that only comes up with LTS releases where we sync from testing by default [11:38] this is confusing http://developer.ubuntu.com/packaging/html/packaging-new-software.html [11:39] Pikkachu: what are you finding confusing? let's fix it [11:41] it's entirely confusing, but gtg now [11:45] I think I succeeded (https://bugs.launchpad.net/ubuntu/+source/radare/+bug/946269) [11:45] Launchpad bug 946269 in radare (Ubuntu) "FFe: Sync radare 1:1.5.2-4.1 (universe) from Debian unstable (main)" [Undecided,New] [11:46] Is this correct? [11:46] pkt: that doesn't need an FFe, it's only a bug fix [11:46] uff, I understood wrong then [11:47] should I close the bug? [11:47] if the upstream part (before the dash) of the version hasn't changed, it is unlikely to need the FFe [11:47] It shouldn't need [11:47] it is a trivial bug fix [11:47] no, lets leave it as a sync request, it just doesn't need an FFe [11:47] so, what did I do wrong? [11:47] there, done [11:48] it didn't need -e [11:48] ah, ok :) [11:48] Thanks :) [11:53] So the correct command would have been requestsync -s radare -d unstable [11:53] I will learn slowly slowly :) [11:53] yes [11:54] if you have a recent requestsync (using LP API) you don't need -s either, it'll wor that out itself [11:54] I 'm using latest precise so I guess it is recent enough [11:54] yes [11:55] great, continuing to the next package :) === Quintasan_ is now known as Quintasan [16:43] I have source code for which compilation is like $apt-get install build-dep other; $apt-get source other; cp here/patched other/foo/bar; cd other; ./configure; cd foo/bar; make patched.so [16:44] how would I make a bin deb and how to put this on a recipe? [16:45] first of all instead of cp here/patched other/foo/bar you should have a proper patch [16:45] in the form of a unified diff [16:46] if the package you are patching has source format 3.0 (quilt) then it is very easy to add a patch [16:47] https://wiki.ubuntu.com/PackagingGuide/Complete [16:48] "first of all instead of... " -- you don't really understand what's that [16:49] I will explain what it is [16:49] please do :) [16:49] sorry for calling it patch, it's a new plugin for pidgin called ircaway [16:50] From the process you described it looks as if you want to patch pidgin to include it [16:50] it's a single ircaway.c for which I need to create the .so, instructions in pidgin website suggested me to put the source under pidgin-source/pidgin/plugins and run $make ircaway.so [16:51] Does pidgin provide a way to build plugins out of tree? [16:52] If it doesn't you need to convince them to add it, or add the source file as a patch [16:52] so I use pidgin's build infrastructure which is able to build arbitrary plugins if they're under that folder, I did this because it just works and I don't want to waste time trying to figure out how to build it alone [16:52] sure [16:53] but this can't work for packaging I think [16:53] either it needs a way to be built standalone [16:53] please this has nothing to do with patches unless they decided to add the plugin to upstream [16:53] from the pidgin docs, the plugin author would provide the way the plugin needs to be built [16:54] fair enough [16:54] but I'm reading the docs themselves for that [16:54] but pidgin should provide a way to build plugins against it [16:54] which don't explain how to build them alone [16:54] i.e., libraries etc [16:55] are there any pidgin plugins distributed as standalone packages? [16:55] I suppose because it's a plugin it somehow would require most or much of the original infrastructure to build pidgin itself [16:55] https://wiki.ubuntu.com/PackagingGuide/Complete -- is totally confusing [16:56] sorry I mean the new guide [16:56] I just know of purple plugin pack, a set of plugins, distributed as a separate package [16:59] apt-cache search pidgin shows a few extra packages [16:59] you can check if any of them are small enough to be used as examples [17:00] Pikkachu: does libpurple-dev or pidgin [17:00] -dev have wha tyou need? [17:01] I would propose pidgin-extprefs [17:01] it is also a single .c file from what it seems [17:01] so maybe you can reuse its build infrastructure [17:01] tumbleweed: does what? [17:02] He asks if it provides the needed libraries etc [17:02] but I think the problem is to figure out the build system [17:02] pkt: sorry I'm not in Ubuntu right now, but does extprefs stand itself as a pidgin plugin? [17:02] yes it seems so [17:03] pkt: yeah it's a problem -dev x build-dep [17:03] first of all I don't get why can't one put the build deps as deps of the -dev packages [17:04] anyway, libpurple-dev and pidgin-dev contain just headers iirc [17:04] and build-dep for pidgin is really big [17:04] Pikkachu: again, I think you can try extprefs plugin as a template to build from [17:04] pkt: ok will try to take a look at extprefs [17:05] if you are not on ubuntu you can get the source package from the web [17:05] It has some extra stuff for installing on win32 and such, you can just ditch those [17:06] and just copy the linux-related infrastructure [17:09] ok [17:10] great :) [17:10] Pikkachu: if it's a single c file, it can't be that hard to build, right? [17:10] not true [17:11] a kernel module is also a single file [17:11] s/is/can be/ [17:11] and they are fairly straight forward to build [17:11] not without the kernel's build infrastructure [17:11] yeah [17:11] you can't just call gcc on it by hand and expect a working module [17:12] Pikkachu's issue is that he is trying to figure out the corresponding build system for pidgin plugins [17:12] I just don't get why build-dep is not reversible like normal deps with autoremove [17:12] I'm saying that that may be more effort than it's worth [17:13] Pikkachu: use mk-build-deps, then they are easy to remove [17:13] I think you don't really understand the problem, tumbleweed [17:13] I have no idea how would I "use mk-build-deps" [17:14] Pikkachu: of course I don't, I haven't seen the source[6~ [17:14] it has a manpage [17:14] but basically, mk-build-deps -ir inside an extracted source package [17:14] are you trying to sound cool? it's not working [17:15] Pikkachu: I'm trying to be helpful [17:15] Pikkachu: yes [17:15] and you don't appear to want help, so I'm not entirely sure why I'm bothering [17:15] I think there is a misunderstanding [17:15] tumbleweed's advice is useful [17:15] of course, those standard responses, please I disregard your help, right now, ignore me PLEASE [17:16] Pikkachu: mk-build-deps solves the problem of being able to unistall the stuff apt-get build-dep brought in [17:16] Pikkachu: sorry, I tend to not give complete hand-holding instructions, but rather point you in useful directions, and expect you to do some research yourself [17:17] tumbleweed: sorry I stopped at 'sorry'. I'm not really interested in your help, sorry [17:17] np [17:18] pkt: well but it will just output the package names, which is mostly the same as saving build-dep's output :( [17:18] Pikkachu: not just that [17:18] it will also make a binary package that depends on them [17:19] so you can install this package to install the build-deps [17:19] and then remove it and they will become removable through autoremove [17:19] of course I don't know how useful this is now (if you have already installed them by build-dep) [17:20] but for future reference [17:21] I'd have to do it for every package I want the build deps, I'm just saying there should be something like 'autoremove --build-deps' [17:21] It is the same number of commands [17:22] I.e., instead of "apt-get build-dep " you do "mk-build-deps -ir" [17:22] and this way the build deps are instantly autoremovable [17:22] I didn't know about this script myself to be honest, I had hacked my own solution for this problem :P === Pikkachu is now known as Pikkachu^Away === yofel_ is now known as yofel [17:53] hi all [17:56] I'm making a change on a package that has no branches in launchpad, can I just attach a debdiff to the bug and leave it at that? Or, should I make an initial branch and then commit on top of that to show the diffs? [17:57] debdiffs are fine. Nobody requires you to use bzr [17:57] however, why does i tnot have any branches in LP? [17:58] tumbleweed: because, I think, until now it was just, uh, pure debian, no ubuntu changes [17:58] mfisch: no, it should still have branches [17:58] what package is it? [17:58] let me confirm that assumption [17:58] okay nevermind :( [17:58] :) [17:58] I just wasn't looking in the right place [18:00] still the information that bazaar is not really needed is useful [18:01] I still find it easier to not use bzr, but bzr is certainly becoming more appealing [18:01] I prefer bzr myself [18:02] As someone who has only done a small amount of packaging I found modifying a package with bzr very straightforward. [18:04] when I do the merge proposal don't i need to add ubuntu-sponsors as a reviewed? [18:04] reviewer i mean [18:04] orrect [18:04] err, you don't need to [18:04] mind if i add that to the wiki? [18:04] hmm ok [18:05] tumbleweed: how will it end up in sponsor queue? [18:06] the sponsorship queue includes all merge proposals against ubuntu pcakages [18:06] alright, I'll see if this shows in the queue in a bit [18:07] hey guys... Would anyone be able to assist me? I'm having really bad troubles with Precise. It fails to build our software in the most silly way... [18:08] ESphynx: this isn't really a support channel, but those kind of thinsg we can probably help with. Also, don't ask to ask, just ask :) [18:08] tumbleweed: thanks for the ifno, I attached a debdiff and did a merge-prop [18:09] It builds fine on Oneiric, which is GCC 4.6.1 . I was trying to install the 'standard' GCC 4.6.2 on Precise to see if it would build fine (Seeing that GCC/MinGW 4.6.2 on Windows works fine), but then my Precise VM died on me =( [18:09] mfisch: so it'll show up twice :) [18:09] tumbleweed: you the man. [18:10] ESphynx: can you pastebin the error? [18:10] I don't know what happened to my VM.. last night I went to sleep after the GCC build was going on... this morning the Vbox interface is just jammed, even cloning the machine jams taking 0% CPU [18:10] tumbleweed: the errors won't really help you, it's my compiler doing really silly stuff that it normally doesn't [18:11] ESphynx: do you have a hardware problem or something? [18:11] The only thing I can't think up is a messed up GCC [18:11] ESphynx: you sure your hard drive isn't going? check dmesg... [18:11] or zero free disk space? [18:11] tumbleweed: eh, should I nuke my merge proposal then? [18:11] pkt: no hardware problem, this is on Launchpad PPA building machines as well [18:11] tumbleweed: not sure if I can remove the attachment from the bug [18:11] pkt: no, dynamic vdi drives with plenty of space [18:11] mfisch: I can unsubscribe sponsors from the bug [18:11] tumbleweed: bug #831392 [18:11] Launchpad bug 831392 in live-manual (Ubuntu Oneiric) "live-manual version 1:3.0~a6-1 failed to build in oneiric" [High,Confirmed] https://launchpad.net/bugs/831392 [18:12] tumbleweed: https://launchpadlibrarian.net/95143170/buildlog_ubuntu-precise-i386.ecere_201203031148-0~446~precise1_FAILEDTOBUILD.txt.gz -- the build log, but like I said it won't help much [18:12] my bug-day contrib, 48 hours late ;) [18:12] mfisch: thanks [18:12] tumbleweed: It is virtual machines, and PPA building machines! no HW issue. [18:12] I was suspecting a bug in the Ubuntu GCC 4.6.2 patches. [18:12] mfisch: is it 48-hours late? hehe I thought the Jam was during the weekend as well [18:13] pkt: oh well I'm good then! [18:13] I still haven't finished my contribution :S [18:13] pkt: you're running out of time there in Greece! [18:13] ESphynx: the ppa build failed for a very clear reason [18:14] tumbleweed: Which reason is that? [18:14] mfisch: true, just a few hours more :P [18:14] error: unresolved identifier publicAccess; expected ecere::com::Module [18:14] but can't I say that my personal clock is in pacific timezone :P [18:14] tumbleweed: that is not supposed to happen. [18:15] tumbleweed: also consider "warning: incompatible expression "ecere::sys::FileAttribs FileExists(char * fileName)" (byte *); expected pe" [18:15] there's no such thing as "pe" anywhere in our software... [18:15] the compiler (the bootstrap eC compiler) is all messed up [18:16] none of this happen on any other Ubuntu versions... [18:16] tumbleweed: how often is the sponsor queue updated? hourly or so? [18:17] My Precise VM is dead :| will have to reinstall everything... So much for trying to build my own GCC 4.6.2 :| [18:17] mfisch: I think every 10 mins or so. Maybe 30. depends how big it is (the script that produces it takes forever to run) [18:17] ESphynx: sorry, I thought you were saying tha tthe build had killed your VM [18:17] tumbleweed: building GCC killed my VM. [18:18] ESphynx: how much RAM did you give to your VM? [18:18] ah the hw errors, is what you were talkign about :) hehe, on a Windows host though [18:18] pkt: 2gb [18:18] sorry I thought you guys were blaming the failed build on hw hehe [18:18] And still it died [18:18] hehe [18:18] yes :( [18:18] Interesting [18:19] you guys have other flavors of Gcc installed on Precise? [18:19] we could give that a try? [18:19] I have a VM here with precise (kvm) [18:19] if you want I can install a version of gcc [18:19] pkt: I would greatly appreciate taht. [18:20] But know that I can't build gcc on this VM [18:20] it has just 256MB ram [18:20] pkt: I gave up on building GCC :P [18:20] pkt: but I couldn't figure out out to try 4.6.1, for example, without building it [18:20] if you do know how ;) [18:20] I can try to find out [18:20] just a sec [18:20] ESphynx: w still have a gcc-3.5 package in precise [18:20] err 4.5 [18:21] i decided to try building 4.6.2 , since it built our software fine on Windows [18:21] tumbleweed: ah yes... I guess we could try that. but that's quite far from 4.6.2 :| [18:21] but it would help narrow down the problem [18:21] I see 4.6.3 as default here [18:21] yeah [18:21] See, our first open source release on Ecere was 0.44 draft 1, on Dec 25, 2008.... and this coming Wednesday is finally the official 0.44 ;) [18:22] And I would like to build on Precise, at least when it comes out :) [18:22] 4.4, 4.5, 4.6 are all available [18:22] pkt: 4.6.3 now ? is it a newer VM? [18:22] which one do you want? [18:22] It has latest precise on it [18:22] pkt: maybe i'm out of date hehe... [18:22] pkt: care to try 4.6.3 first ? [18:22] sure why not [18:23] guess i'll link you to the source package? [18:23] but if lp failed probably it was with 4.6.3 [18:23] sure [18:23] do you have it on a ppa? [18:23] yes [18:23] https://code.launchpad.net/~jerstlouis/+recipe/ecere-daily-multiarch [18:24] gcc-4.6 i386 4.6.3-1ubuntu2 [7576 kB] [18:24] right, lp failed on 4.6.3 as well :( [18:25] so the easy thing would be to try 4.4 ? to establish whether GCC is to blame or not? [18:25] since 4.5 is dev right, so latest dev might have the bug as well? [18:25] I think 4.5 should be release as well, not dev [18:26] ah right osrry [18:26] it's the middle number [18:26] hmm. [18:26] my only worry... when installing side by side... our build system just invokes 'gcc' [18:27] I think gcc is selected using alternatives [18:27] so you can try 4.5 [18:27] please =) [18:28] sure but you will need to wait a few mins [18:28] np [18:30] I gues another thing to try would be to disable -O2 ... [18:30] that you can also try yourself [18:30] guess I could try that on a new Precise machine [18:30] yes. i'll brb, logging out to kill stalled VBox === Pikkachu^Away is now known as Pikkachu [18:33] hi pkt, not much help http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/oneiric/pidgin-extprefs/oneiric/view/head:/debian/control [18:34] * Pikkachu rebooting to ubuntu [18:40] Pikkachu: fwiw I didn't understand what you meant [18:40] Pikkachu: There are lots of pidgin plugins in ubuntu, have you had a look at how they accomplish the build? [18:40] what was the problem with pidgin-extprefs? [18:46] Ampelbein: and this is what you call "a lot"? http://i.imgur.com/Q5hAT.png [18:46] Hi all! [18:46] Pikkachu: try from the command-line [18:46] there are several [18:46] apt-cache search pidgin [18:46] That .vdi was so locked down, even "Restart" wouldn't work... i had to press the Reset button :| [18:47] Pikkachu: but still what was the problem with extprefs, I chose it for you because it is also a single .c file [18:48] pkt: I have no idea whether its Build-Depepndencies field matches? [18:48] pkt: can we start from the beginning? [18:48] sure [18:49] for starters, where is ircaway.c ? [18:49] Pikkachu: I count 24 plugins, that is a lot. [18:49] well the good news is I miraculously kept that .vdi (because it was locked! i had done "delete all files"), and it works [18:50] nice :) [18:50] so now I can try taking out -O2 :P [18:50] Ampelbein: ignore me from now on, and I'm serious [18:50] hi ESphynx, how's eC going :) [18:50] pkt: well, I will stand it in a simple way then [18:51] sure, simple always helps [18:52] I have a Bazaar branch for a new plugin for pidgin, I want Launchpad building the deb and putting it available, that simple. I tried and read docs about recipes, ppa, packaging, and they're just confusing, so I wanted to start from this simple point with human help [18:53] can you give the link to that branch? [18:54] fwiw I can generate the .so by ./configuring the pidgin host and $making plugin.so from within pidgin-source/pidgin/plugins (that is, this build thing I used is from pidgin) [18:54] Pikkachu: sure, but this won't help you produce a package [18:55] pkt: https://code.launchpad.net/~renatosilva/pidgin/ircaway [18:55] Pikkachu: great [18:56] pkt: yeah I just mentioned that because I'm not sure how to build the plugin at all except by reusing pidgin infrastructure, which is sort of overkill for a small plugin I think [18:56] it is not just overkill [18:56] it is also not going to be accepted [18:57] so, you need to figure out how to build it standalone [18:57] this doesn't just mean the debian/ part [18:57] it also means the makefile etc [18:58] In fact, the first thing you need to figure out is what to put to the makefile [18:58] you can start simple, assuming that you don't ever want to build for other platforms, so you don't need the autoconf stuff [18:59] do I really need a makefile? because I think that even that is overkill, no? [18:59] no [18:59] why not, just to understand [18:59] Because you need to ensure you are building against the proper headers / libraries [19:00] you could also write a bash script but a Makefile is the standard way to do it (TM) [19:00] so at the very minimum you need the .c file and a Makefile [19:01] and most likely a README [19:01] once you have those, you can also make the debian/ folder with the right contents [19:03] +1 to Ampelbein's suggestino of looking at other plugins, and yes, writing a simple Makefile is probably the easiest way to get a working package [19:09] pkt: ok so let's leave the deb thing for a separate stage. I'm new to make, I've just used it, how would I figure out the dependency tree for the source file compiling? [19:09] tumbleweed: I'm looking right now, will take a look at their makefile [19:11] Pikkachu: typically you use pkg-config [19:11] Pikkachu: here is my suggestion [19:11] go to the extprefs plugin [19:11] do the mk-build-deps -ir thing [19:12] and now do a debuild -uc -us 2>&1 | tee -a ../build.log [19:12] this will show you which commands the makefile of this plugin called [19:12] it is much easier than trying to analyse its source [19:12] because the source is obfuscated a lot by the automake infrastructure that you don't need [19:13] I'm trying to process what you said [19:13] btw, I hope this advice is ok and not considered as spamming the channel [19:14] sure, nothing else going on right now. (weekends are quiet) [19:14] Pikkachu: no tee reqd, debuild writes a log to ../$pkg.build [19:14] even better [19:15] err pkt [19:15] I'm really annoyed by all this word salad I've been through in the docs, I'm really lost [19:16] :O why have I been using tee all the time?! [19:16] I'm looking in pidgin-facebookchat now [19:16] This is why trying to help on IRC is helpful [19:16] most time you learn new stuff yourself [19:17] Pikkachu: sure, pick the simplest you can find [19:18] Pikkachu: the solution to that is to improve the docs, so it helps if you can tell us where you are getting stuck / confused [19:19] facebookchat looks much more complicated [19:19] pkt: I'm having to install devscripts for mk-build-deps, I hope I don't need any more word-salad packages since it has already a salad of dependencies itself :( [19:19] devscripts is certainly something you want. Any sane packaging documentation should have told you that pretty early on [19:19] I'd also recommend ubuntu-dev-tools [19:22] tumbleweed: the docs are confusing to the point you don't know where it's confusing, but I'd say write something to someone like "I have source code to give people, I want Launchpad to build and publish the .debs for me". Something straighforward to follow for that kind of developer like me [19:23] Pikkachu: the thing is that you need to know the basics of open source development before you start caring about packaging [19:23] Pikkachu: I'm afraid there's a bit of stuff you need to learn along the way, debian packaging has quite a lot going on in it [19:23] pkt: I don't like these standard unclear responses, please [19:24] pkt: any sane developer would hate the whole toolset, to begin with [19:24] I 'm trying to make it specific (searching for a link to a howto) [19:25] Pikkachu: please don't insult our build systems, that doesn't motivate people to help you [19:25] I've read the docs pkt, they're confusing [19:25] tumbleweed: please ignore me, right now, and I'm serious [19:26] pkt: I think the core problem is [19:26] Pikkachu: if you can't have a civil conversation in this channel, could you please move it elsewhere [19:26] pkt: how to know what packages are needed to build the source code [19:27] Pikkachu: what tumbleweed says is true (it is not nice to insult people that try to help you) [19:27] about the build dependencies [19:27] just pick a random plugin (facebookchat) [19:27] and do mk-build-deps -ir in its directory [19:27] tumbleweed: I said kindly to ignore me, and I was serious, I'm not offending you so if you're willing to do something without any reason, I don't really care at all except you're in my way to publish software to people [19:28] pkt: yeah I will concentrate in that point now [19:28] or apt-get build-dep pidgin-facebookchat [19:28] * tumbleweed wanders off [19:28] pkt: if I get anything relevant and I'm still here I'll let you know [19:28] ok [19:29] pkt: oh that's even better I can see the packages before confirming, a second... [19:29] sorry guys, I was cooking my breakfast ;) [19:29] Pikkachu: quite good! if we can only get it working on Precise :) we're releasing the official 0.44 this wednesday [19:29] Hehe, you are lucky it is already night here ... [19:30] pkt: debhelper gir1.2-json-1.0 html2text libdbus-1-dev libdbus-glib-1-dev libglib2.0-dev libjson-glib-dev libpurple-dev po-debconf zlib1g-dev [19:30] pkt: so your idea is eliminating from above what seems unnecessary? [19:30] I would also install pidgin-dev just to be on the safe side [19:31] my idea is to manage to build your plugin out of tree first [19:31] then you can care about removing stuff [19:31] your first objective should be to build the .so successfully from outside pidgin's directory [19:32] by installing the build-deps from another plugin at least you know that the headers/libs you need are available to begin with [19:32] now you need to write your Makefile correctly === JackyAlcine_ is now known as jalcine [19:35] ESphynx: glad to know you got your way on PPas [19:36] Pikkachu: almost there, hehehe [19:36] Pikkachu: just Precise failing to build :( === jalcine is now known as JackyAlcine_ === JackyAlcine_ is now known as jalcine [19:39] pkt: well, taking out -O2 doesn't seem to help!! === jalcine is now known as JackyAlcine_ === JackyAlcine_ is now known as jalcine [19:42] pkt: the makefile from that plugin is 137 lines long, should I read it and amke mine based on that? [19:43] Would anyone know how different the Ubuntu patches for GCC are, and how likely they are to cause memory corruption issues? :| [19:44] The short answer is that nothing is impossible with gcc ... [19:44] hehehe [19:45] what is the problem? [19:45] now that i've ruled out the -O2... i'm pretty sure it's a bug in either 4.6.2 on linux, or the ubuntu patches... [19:46] jtaylor: My compiled bootstrap eC compiler is going nuts. [19:46] jtaylor: it works fine on oneiric and all previous Ubuntus. [19:47] ESphynx: https://code.launchpad.net/~ecere-team/+archive/ppa/+files/ecere_201203031148-0~446~precise1.dsc [19:47] should I try this with gcc-4.5? [19:47] does valgrind help? [19:47] pkt: yes, please :) [19:48] Ah, btw, I just remembered one of the nuances of gcc 4.6 [19:48] jtaylor: it could. I usually use my own memory protection tool called 'memoryguard', but since the thing doesn't build yet :P [19:48] (the ubuntu version) [19:48] pkt: Ah? (Note it works fine in Oneiric, 4.6.1 ...) [19:49] the $CFLAGS should be in the end of gcc command [19:49] e.g., gcc $FLAGS -c foo.c -o bar.o won't link [19:49] gcc -c foo.c -o bar.o $CFLAGS will work [19:49] it won't ? :S [19:50] the reason is a bit esoteric [19:50] and it will work in previous versions AFAIK [19:50] love how this word keeps popping up lately. [19:50] pkt: Nothing to do with CFLAGS. [19:50] -c does not linking [19:50] yes sorry [19:50] it is actually the linker flags [19:50] ok, i'm all confused here... but here it's not something that won't link [19:51] every gcc command compiles and links [19:51] it just produes horrible results. [19:51] The problem in many packages was that libraries were added in LDFLAGS, which is the wrong place to put them. They belong in either LDADD or LIBADD. [19:51] exactly [19:51] and because ubuntu has a patch to make the linker stricter [19:52] pkt: Ubuntu uses --as-needed by default. [19:52] yep [19:52] gcc-as-needed.diff [19:52] I put them in $(LIBS): $(TARGET): $(SOURCES) $(RESOURCES) $(SYMBOLS) $(OBJECTS) | objdir [19:52] $(CC) $(OFLAGS) $(OBJECTS) $(LIBS) -o $(TARGET) $(INSTALLNAME) [19:52] A friend of mine got burned by this but his source was technically broken anyway [19:53] http://lists.debian.org/debian-devel-announce/2011/02/msg00011.html [19:53] Ampelbein: Could this particular difference have any impact on memory corruption? [19:54] ESphynx: Unlikely. [19:54] downloading Valgrind. [19:54] it's just a matter of linking with -lvalgrind , is it? [19:54] no [19:55] running your application under valgrind [19:55] No linking necessary? [19:55] no [19:55] Guess I can try that. [19:55] it used to be just linking with it right? :) [19:56] no [19:56] In the early days? [19:56] it was always running it under valgrind [19:56] there were other projects that required linking [19:56] e.g. electricfence etc [19:56] ah. electric fence is the one I was thinking of. [19:56] valgrind works in a different way [19:57] k. [19:57] viva la valgrind. [19:57] your program sees valgrind "as the cpu" sort of [19:57] eC's memoryguard works by using another version of libecere.so :) [19:57] k [19:57] it's surely nowhere as good as valgrind, but usually works great :P Can you run Valgrind on MinGW/Windows? [19:58] ok guys. What is wrong with bash's tab completion??? [19:58] works here [19:59] It's trying to be too intelligent, and won't let me complete files! [19:59] e.g. doing make obj/ doesn't autocompelte... it will only give me 'rules', but what if I want to specify an object target? [20:04] you can use shopt -u progcomp I think [20:04] this will disable programmable completion [20:04] prog-and-args -- how does that work? I did 'valgrind obj/ecc myargs here' but my app doesn't seem to be getting any args? [20:04] then you can enable it again [20:05] hehe k, thanks! [20:06] sorry, I had a space where I shouldn't have. works now [20:07] ok, under Valgrind, it seems to compile fine! [20:07] I get a bunch of 'Source and destination overlap in strcpy(0xbea45aeb, 0xbea45aeb)' [20:09] Hehe great, how I always manage to get more than I sign up for :P [20:09] I started with the simplest RC bug, it seemed to be "just a resync request" [20:09] now it seems that the package actually needs surgery [20:10] pkt: Which package is that? :P [20:10] radare [20:10] I picked it from the list of rc bugs [20:10] hehe [20:10] since it was among the few that I knew about :P [20:11] So these strcpy things... I'm not really worried about :| [20:11] ESphynx: the friend that had the problem with linking because of as-needed [20:12] he also had a memory corruption [20:12] because he had a double free bug in his code [20:12] i.e., he free'd a var without making it NULL and then he free'd again [20:12] but his double free bug was unrelated to the as-needed, right? [20:12] yes [20:12] yeah, no such thing as double free in my code ;P === jalcine is now known as JackyAlcine_ [20:12] and it works fine in Valgrind! [20:12] I only mention because this problem also only showed in gcc 4.6 [20:13] maybe I should replace calls to ecc in the package by 'valgrind ecc' for Precise :P [20:13] *with [20:13] It seems you are dealing with a "heisenbug" [20:13] hehhe [20:13] is than an uncertainty principle? [20:14] It is a term used for a bug that doesn't want to reproduce under debugging infrastructure [20:14] like gdb or valgrind [20:14] hehe. let me try simple gdb. [20:15] So, about radare. I got the package from debian, but it wouldn't build [20:15] then I discovered that the version in precise shouldn't build either [20:15] (it has the same bug) [20:15] great, under gdb, it goes nuts. [20:16] and now that this is fixed as well, lintian decides to reject it [20:16] because of the decision in debian to reject waf binaries :P [20:17] well, at least yo uare half way there [20:18] I hope more than half hehe [20:18] But this could probably be characterised a "hydra bug" [20:19] every subbug I fix 2 others are revealed :P [20:19] The new minc in Unstable looks like we might want it, if someone has time to investigate... [20:20] jtaylor: Any idea why something would work on Valgrind (without seeing any error), but behaves nuts on GDB? [20:20] valgrind runs under a very different environment [20:20] which is often more resistant to issues [20:20] did it output any errors? [20:20] jtaylor: only those strcpy overlap errors (strcpy(string, string)) [20:21] thats your issue [20:21] libc has changed [20:21] this will now crash [20:21] jtaylor: you sure? [20:21] yes [20:21] memcpy's are now done backwards [20:21] that breaks overlaps [20:21] i.e. you're positive something changed between oneiric and precise ? [20:21] but is faster [20:21] ugg. on x86? [20:21] its something that changed recently [20:22] I can understand on some exotic platform [20:22] but on x86? [20:22] use memmove for overlaps [20:22] on x86 [20:22] it's not even 'overlap' is the same string :| [20:22] hi jtaylor [20:22] well. if you say so!! I'll go and hunt those down. [20:22] thanks for clarifying this [20:22] not sure how that will work [20:22] but its 100% an issue that must be fixed [20:22] jtaylor: you mean the same string? [20:23] there should be a flag for libc hhat disables the feature [20:23] read the README [20:23] jtaylor: i'd love to try out that flag... [20:23] to be sure before I invest the time to fix this [20:23] let me check [20:23] thanks [20:23] (So it would be libc rather than gcc?) [20:24] yes [20:25] LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libc/memcpy-preload.so /path/to/binary [20:26] though that change should already be in oneiric [20:26] ESphynx: regardless of whether it fixes *the* problem you're trying to track down, strcpy(string, string) is definitely *a* problem and you should not be doing it [20:27] I understand and respected that for memcpy... [20:27] But to me strcpy(string, string) should just work :P [20:27] no it should not [20:27] and never should have [20:27] Why not :) [20:27] the manpage clearly says the memory regions *must* not overlap [20:28] ok it only says may not :O [20:28] too bad Dennis isn't among us anymore to discuss it :P [20:28] that should be fixed [20:33] why do you do that copy in the first place? [20:34] jtaylor: i use it e.g. for left trimming purposes [20:34] strcpy(string, string + x) , where x sometimes is 0 [20:35] From Valgrind's output, it seems to happen in 3 spots: LoadTranslatedStrings, ChangeExtension, and TrimLSpaces [20:35] ESphynx: it would be better to strcpy(string + x) and then free(string) [20:35] assuming you're using a heap buffer [20:36] err, sorry, strdup [20:36] right. [20:36] I have my own memory manager though... so I have CopyString() [20:36] but I generally try to avoid heap allocs... [20:38] thanks guys. since I only have 3 spots should be easy to try it out [20:38] did the wrapper work? [20:39] jtaylor: LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libc/memcpy-preload.so /path/to/binary --> this is to revert to the previous way? [20:39] yes [20:39] let me try that [20:39] there is also a version that dumps to syslog [20:39] LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libc/memcpy-syslog-preload.so /path/to/binary [20:40] hmm x86 here, not 64 bit [20:40] hm the change is only in amd64 [20:41] yeah I don't seem to have this memcpy-preload.so [20:43] nor a /i386-linux-gnu/libc directory :| === almaisan-away is now known as al-maisan === JackyAlcine is now known as jalcine === al-maisan is now known as almaisan-away [21:18] Hmm, ok now the package builds, so the problem becomes how to push the fixes [21:19] It isn't just a sync request anymore since there is an extra patch [21:20] And I think maybe it would be good to push to debian as well [21:24] pkt: is this for radare? [21:24] yes micahg [21:24] can I see the diff? [21:25] the package looks in bad shape [21:25] lots of uncaught errors in the logs [21:25] as needed issues [21:25] requires py2.5 [21:25] and we have radare2 already [21:26] can we just remove radare then? [21:26] no reverse dependencies, we could remove it [21:26] I 'm fine with removing it as well [21:26] my fix is just for the FTBFS [21:27] I looked at it too, fixing one issue just uncvered another issue later ... [21:27] etc etc [21:27] hehe exactly [21:27] I'm for nuking it [21:27] well, the explicit python2.5 dep isn't expressed in the packaging [21:27] this is what I fixed [21:28] and for lua as well [21:28] the build deps are implicit in the Makefile [21:28] ruby is needed too [21:28] it seems to build without it here [21:29] can you pastebin your diff [21:29] sure [21:29] jtaylor: I'll be damned. [21:29] jtaylor: The build is working now. Thank you!!! [21:30] http://pastebin.ubuntu.com/868973/ [21:30] you didn't fix the as needed issue? [21:30] no [21:31] I didn't see that one [21:31] my not working "fix": http://paste.ubuntu.com/868975/ [21:31] src/rsc/gtk/Makefile needs fixing [21:31] that worked pre oneiric [21:32] when you say not working what do you mean? [21:32] FTBFS? [21:32] or not working result? [21:32] Now I have a question guys regarding the multiarch stuff... Adding ia32-libs-multiarch fixed the build on oneiric, but on Precise it doesn't. [21:32] I realize that people can just install the i386 build on their Precise amd64 install... But what about people wanting to build from source on amd64? [21:32] it does not link, but the error is noon fatal [21:32] but its an regression [21:33] I see [21:33] I can look at it [21:33] unless the package is to be dropped of course [21:34] I don't really now the difference between the two [21:36] Alt-F "Search" shortcut ? how can I disable that? :| [21:38] ah no, it's just 'alt / released' :| how annoying!! [21:51] the hud :| disabled that... [21:51] E: Package 'ia32-libs-multiarch' has no installation candidate --> where should I ask about this? [21:52] * Pikkachu tired [21:52] when tired, sleep :) [21:53] "This may mean that the package is missing, has been obsoleted, or is only available from another source" [21:56] micahg fwiw I think I fixed the as-needed issue as well [21:56] Sorry for taking so long but compiles take long time here [21:58] tumbleweed: you remember this amd64 issue I had? =) [22:08] http://pastebin.ubuntu.com/869020/ [22:08] these are my changes [22:08] pkt: Any idea about multiarch? :| where should I ask about this? :\ [22:09] sorry, not much experience with this [22:09] I basically want to know how one is meant to build a 32 bit app on a 64 bit machine :| [22:09] ah ia32-libs-multiarch [22:09] it reminds me of something [22:09] multiarch allows you to install i386 packages on an amd64 system [22:10] wine was broken a little time ago because of this I think [22:10] adding this fixed the build on Oneiric (i.e. just ia32-libs, which works on Natty, wasn't enough) [22:10] there was a change for precise IIRC [22:10] so no more need for ia32-lib* [22:10] JanC: I understand that. but what about 'building' on a 64 bit machine [22:10] (in theory) [22:10] a 32 bit app? [22:11] well, I guess you would need the right 32-bit compiler & -dev packages [22:11] JanC: which are all specified in my package dependencies... So I would wish my package builds on a 64 bit machine as well [22:12] But I get this error: Package ia32-libs-multiarch is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source. E: Package 'ia32-libs-multiarch' has no installation candidate [22:12] ESphynx: one option is to use a chroot or similar [22:12] pbuilder can do that... [22:12] JanC: On Oneiric, which also uses multiarch, it 'just works' [22:13] (My makefiles all have -m32 to build in 32 bit) [22:13] BTW: you probablmy don't need/want any ia32-lib* packages anymore [22:14] as a dependency [22:14] JanC: but I do need the 32 bit dev packages to be installed! how can I let the package manager know about that? [22:14] for the build to work... [22:14] btw I think the package is now ia32-libs-multiarch:386 [22:15] pkt: that might work :) [22:15] maybe specify dependencies as libfoo-dev:i386 ? [22:15] JanC: I got all those coverd (well not with :i386... I just learned about that :P) [22:15] i'm downloading Precise 64 so I will give that a try [22:16] what I mean is: don't use the ia32-* stuff anymore ;) [22:17] JanC: right. use :i386 instead ? [22:17] I think so [22:17] that's basically my question :P hehe, what should I do :P [22:18] I think you should build them on a 32-bit system/chroot and then install using :i386 on the amd64 system ;) [22:18] JanC: that's not easy for people downloading my software as source :P [22:18] at least, I think that's how it's done officially [22:18] I want them to just do 'make' and it works [22:18] PPA? [22:18] JanC's way seems the right way to go [22:19] ESphynx: i mean, right from a git clone... I want them to just do 'make' even if they are on amd64 [22:19] pkt: :i386 ? [22:19] I mean to build in 386 chroot [22:19] pkt: that's a pain for users. [22:19] ESphynx: why would you need to build 32-bit only anyway? [22:19] :i386 seems to be for depending on i386 libraries [22:20] JanC: 'cuz my software doesn't support 64 bit yet :P (i hope it will later this year...) [22:20] not for dev tools, at least if I understand correctly [22:21] pkt: those ia32-libs / ia32-libs-multiarch did get things building on oneiric though :P [22:21] ESphynx: make a daily build PPA on Launchpad for those who want the latest version, but really, you should fix your software first instead of trying to set up weird build systems :P [22:22] amazing, I installed libglib2.0 and it succeeded to install, but now thinks removing it is too dangerous??? [22:22] JanC: yes, but I still think it should be possible to build in 32 bit on a 64 bit system. [22:22] Unfortunately I have to leave now [22:22] I mean, it was easy before [22:22] thanks for all your help pkt. good night and take care :) [22:23] I will put radare in my ppa and look into how to merge it tomorrow [22:23] It *is* possible to build 32bit binaries on a 64bit system, but it's non-trivial. [22:23] thanks ESphynx: I hope you will solve the build problems [22:23] JanC: and it's not weird :P [22:23] ESphynx: it is possible, but the recommended way is to use a chroot or a VM ;) [22:23] RAOF: Any advice? [22:23] pkt: I solved the i386 one! [22:23] cheers, goodnight everyone :) [22:23] pkt: it was the stricter libc regarding strcpy overlap... [22:23] ah, that makes sense yes :) [22:24] ESphynx: Multiarch gets you *most* of the way there, but -dev packages aren't multiarched yet. [22:24] as jtaylor pointed out ;P [22:24] building binaries is one thing, building packages complicates it somewhat more [22:24] if I didn't recover the additional files the system would be compromised: libglib2.0-0-dbg libglib2.0-0-refdbg libglib2.0-cil-dev libglib2.0-doc [22:24] RAOF: it was working on oneiric ... with ia32-libs and ia32-libs-multiarch [22:24] RAOF: but on precise now I get this weird E: Package 'ia32-libs-multiarch' has no installation candidate [22:24] RAOF: https://launchpadlibrarian.net/95113396/buildlog_ubuntu-precise-amd64.ecere_201203031148-0~446~precise1_MANUALDEPWAIT.txt.gz [22:24] anyone using pidgin help me testing a thing? [22:25] Pikkachu: What's your pidgin plugin do? [22:25] ESphynx: Oh! That's very simple - don't build an amd64 package :) [22:26] ESphynx: Your i386 package will show up on amd64 packages, and the multiarch support will pull in the relevant dependencies. [22:26] RAOF: I understand that. but I'm worrying about people ON a 64 bit machine, wanting to build my source. [22:27] I want 'make' to work for them. [22:27] ESphynx: changes nick when you are away (can't be tested within this channel :(, but you could use some other network ) [22:28] Pikkachu: hehe sorry I don't use pidgin, I use Ecere Communicator and mIRC :P was just curious [22:28] ESphynx: Ah. That's no longer possible without some manual work on their side (creating dev symlinks). It only accidentally worked with ia32-libs, too :) [22:31] * Pikkachu brb [22:32] RAOF: I wish it would accidentally work again. [22:32] is CDBS still supported/used? [22:32] for packaging [22:32] oh nevermind [22:32] RAOF: it worked till Oneiric ... [22:32] but perhaps a MOTU could discuss with me how this could be improved: https://wiki.ubuntu.com/PackagingGuide/Basic#rules [22:32] erm [22:33] ESphynx: Well, it can *kinda* work now; you'd need to instruct the user to install libfoo-dev:i386. That'll work, as long as they don't have libfoo-dev:amd64 installed. [22:33] ermhttps://wiki.ubuntu.com/PackagingGuide/Basic [22:33] BLEH [22:33] https://wiki.ubuntu.com/PackagingGuide/Basic <-- this even [22:33] RAOF: ugg!!! [22:33] RAOF: aren't many -dev packages coinstallable? [22:33] RAOF: but it does 'skipping incompatible' , doesn't it? [22:33] RAOF: the linker ignores wrong architecture... [22:33] MOTUs: https://wiki.ubuntu.com/PackagingGuide/Basic <-- doesnt this ignore the 'install' file, which defines "Where to put built files"? [22:34] RAOF: really it's only an apt-get being stubborn here that's the problem [22:34] ESphynx: you have to pass -m32 of course [22:34] ESphynx: Right. But the *correct* architecture is available. As long as you pass -m32. [22:34] i.e. it works in oneiric, with both pacakges installed [22:34] jtaylor: I do (always) [22:35] RAOF, jtaylor: So should I just try chanigng the ia32-libs dependencies for libbla-dev:i386 ? might that work ? [22:35] I don't think that works yet [22:35] ESphynx: Yes, that will probably work. [22:35] no, that won't work on the buildds [22:35] Oh, that's right. [22:35] or it will ^^ [22:35] love it ;) [22:35] You can't have a package dependency on :i386. [22:36] You can *tell* people to install :i386, but there's no syntax for doing that in debian/control. [22:36] But will it work for the user [22:36] to do apt-get install with :i386 ? [22:37] and I'll just disable the PPA build for amd64 on Precise. [22:37] micahg: jtaylor: can i get your input on the packaging guide? [22:37] it appears to be missing things [22:37] (the basic guide) [22:37] Yes. It should work for the user (assuming they don't have :amd64 installed) [22:37] RAOF: Even if they do, I think? (hope) [22:37] hi, I'm willing to have launchpad compiling and building a plugin I wrote to pidgin onto a PPA, I have created the Makefile based on another plugin, does it look good? http://pastie.org/3521901. I wanted to remove the unnecessary flags tough. [22:37] RAOF: most -dev packages should be coinstallable? [22:38] I tried it once with one of mine [22:38] worked flawlessly [22:38] jtaylor yes I would think so. [22:38] jtaylor: I'm pretty sure it's a policy violation to have -dev coinstallable. [22:38] EvilResistance: install file not needed for basic packaging (i.e. one binary) [22:38] really? [22:38] I have seen a couple of -dev pacakge declaring MA: same [22:38] * ESphynx beats the policy [22:38] why would it violate policy? [22:39] well, coinstallable dev packages isn't required by multiarch policy yet [22:39] yes, why? :O [22:39] I vote it should be _o/ [22:39] when the checksums match it works fine [22:39] thanks for all the help guys. appreciate it. [22:39] but I recall the huge discussion on that on d-d [22:40] got to run for now ;) cheers. [22:40] is there a result of that yet? I haven'T read everything [22:40] jtaylor: http://wiki.debian.org/Multiarch/Implementation#What_does_the_end_result_look_like.3F [22:40] Hm, actually, on closer inspection... no. [22:40] RAOF: multich same -dev package conform to that [22:41] That doesn't prohibit multiarch -dev packages. [22:41] successful i386 PPA build on Precise =) https://code.launchpad.net/~jerstlouis/+recipe/ecere-daily-multiarch [22:50] * Pikkachu brb [23:05] ESphynx: my recommendation was to not bother building on amd64, in the multi-arch world [23:18] tumbleweed: right, I think i'll go that way, I was just worried about people 'building' on an amd64 system... [23:18] but as RAOF and jtaylor pointed out, they can probably install the :i386 packages [23:18] (which unfortunately we cannot do from the package system)