[01:27] are quilt patches allowed to modify items inside the debian/ folder or is that a nono [01:29] teward, Why would you? [01:30] Noskcaj: the fix for LP Bug #1264674 is to modify a third-party module inside the debian/ folder (nginx) [01:30] Launchpad bug 1264674 in nginx (Ubuntu Saucy) "nginx segfault when adding add_header in configuration" [Undecided,Confirmed] https://launchpad.net/bugs/1264674 [01:30] i have an upstream diff (from Debian) that fixes this for the nginx-extras module, but the question is do I manually modify it or have it as a quilt patch [01:30] s/modify it/apply the patch/ [01:31] (it's rare I have to touch the third-party modules :/) [01:31] I'm guessing it's allowed to patch, debian-mentors is usually best for these questions though [01:31] well, i'll see if debuild whines. [01:31] it occasionally does that [01:31] * teward shrugs [01:33] I think you can probably modify files under debian/ in quilt patches in theory, at least with some source formats, but it's really really confusing and you shouldn't. [01:34] I would expect any sponsor who's paying attention to kick that back to you. [01:35] cjwatson: that's what i thought, but it's been a while since i messed with the third-party modules in nginx, I can prep a debdiff for either, then if the sponsor wants to kick back the "This modifies debian/..." thing at me there's an alternate debdiff [01:35] I have a feeling rbasak is keeping an eye on the bug, but I might be wrong. [01:36] I would recommend just preparing the one with the files under debian/ changed directly and not in quilt, rather than wasting a sponsor's time [01:36] meh, that's equally easy [01:36] It's the right thing to do. Conceptually the quilt patch series should apply to the upstream tarball without debian/ even there. [01:37] Tools such as git-dpm would probably fail if that weren't the case. [01:39] yeah, makes sense. [01:39] in other news, thank god I can have amd64 AND i386 builds within sbuild, it prevents me having to use the PPA builders to build-test things. ^.^ [08:14] good morning [09:10] teward: the debdiff in bug 1264674 looks fine. But before I test/sponsor, could you complete the SRU justification please? [09:10] bug 1264674 in nginx (Ubuntu Saucy) "nginx segfault when adding add_header in configuration" [Undecided,Triaged] https://launchpad.net/bugs/1264674 === ikonia_ is now known as ikonia [15:51] Stupid question time. When should I write a test case for a bug? What if I don't see a "test" folder for a package? [15:53] fully_human: when it would be useful. On a bug-by-bug basis, I'd say. Do you want to describe the bug to get a more helpful response? [15:54] An inkscape bug where a color swatch contains an incorrect color. Inkscape does not have a "test" folder already. [15:55] But I suppose test folders can be per-branch and the package maintainer will just apply the patch without the test. :-| [15:55] Ah. I'm not sure about desktop bugs, sorry. Perhaps a test case that a human can follow will do. [15:55] So a little note with the patch saying "See what you expect? This is what the patch returns!" [15:56] Are you talking about a test case for an SRU? [15:57] SRU? === barry` is now known as barry_ === barry_ is now known as barry [20:41] Sorry, I'm really confused here. I've seen three or four different tutorials on fixing a bug on Ubuntu/Launchpad and they all seem to say different things. For example http://packaging.ubuntu.com/html/fixing-a-bug-example.html has me create a new branch while http://packaging.ubuntu.com/html/fixing-a-bug.html just tells me to create a patch, edit it (should I do it before or after `patch`?) and export to a patch. [20:43] fully_human, The simplest way is just make a patch however you think and submit it to a launchpad bug [20:44] So it's all about diffing...how I go about it is up to me. [20:44] Maybe I should write something about that in the docs so no one else is confused. :-\ [20:53] fully_human: personally I find a debdiff the easiest. Prepare the new source package you're proposing, and then attach the output of "debdiff ". [20:53] Thanks. :) [20:54] So, basically I can do: 'cp -R foo foo-bug-1', edit some file in foo-bug-1, then do a 'debdiff foo foo-bug1' ? [20:55] And I assume debuild -S and pbuilder just make a debian I can test? [20:56] the non vcs apparoch is: quilt add [20:56] edit them [20:56] quilt refresh [20:56] dch -i, write changelog [20:56] debuild -S; debdiff old-dsc new-dsc [20:56] oh quilt new first [21:04] When I do debdiff, should I be one level up from the package directory? [21:04] doesn't matter it just needs two dsc [21:04] after debuild they are usually in ../ [21:05] And so debdiff will automatically try to find them? [21:05] no you need to tell it the path of the dsc [21:05] it will find the rest by itself [21:05] Oh, yeah, I suppose since you said "old-dsc." :P [21:06] debuild will create a new dsc if you updated the version with dch -i [21:06] see ls ../*dsc [21:09] Okay, I think I'll just see what happens here...I'm still a bit confused but I think I understand what's going on up until dch -i. [21:15] Ah, should I test the package before or after I run dch -i? [21:15] (well, too late because I'm already writing the changelog. :P) [21:16] you should do it before you debuild, else you overwrite the old dsc [21:16] but its not a big deal just download it again [21:17] And pbuilder will create the new deb file to install, right? [21:17] yes [21:17] Aha! I think I'm getting it! [21:17] debuild can also do it [21:17] without -S [21:17] you do that to get it right, then test with pbuilder because its slower [21:18] Yes, I discovered this. o.O [21:19] there are many tricks to speed up pbuilder [21:20] using eatmydata, special buildplace mountoptions, using apt-cachers etc [21:20] worth looking into when you do more packaging work [21:20] Hm...yelling at my computer (expletives included) didn't help... [21:20] Your suggestion will probably work better. :) [22:43] Which makes sense, because installing modified binaries. Any way to reset the build? [22:44] So I tested my patch. It tried doing `debuild -S` to generate dsc files, but I got a bunch of errors like this one: dpkg-source: error: cannot represent change to share/extensions/Barcode/__init__.pyc: binary file contents changed [22:44] dpkg-source: error: add share/extensions/Barcode/__init__.pyc in debian/source/include-binaries if you want to store the modified binary in the debian tarball [22:44] Which makes sense, because installing modified binaries. Any way to reset the build? [22:44] hm that means the clean target of rules does not do what it should [22:44] that is an unfortunate annoyance [22:45] the easiest way around this is to use version control to reset the build [22:47] without that you could extract a new copy and apply your debdiff on it [22:47] or fix the clean rule for testing (and file a bug in debian) [22:53] Even when I do a bzr revert I get the same debuild errors (or does bzr revert revert back to *my* patch?). I must be doing something wrong. [22:53] bzr clean-tree [22:53] make sure your patch is commited first [23:14] With 'bzr commit'? [23:14] bzr add [23:14] bzr status will show you what willb e commited [23:14] it should only be stuff in debian