/srv/irclogs.ubuntu.com/2014/02/10/#ubuntu-motu.txt

tewardare quilt patches allowed to modify items inside the debian/ folder or is that a nono01:27
Noskcajteward, Why would you?01:29
tewardNoskcaj: the fix for LP Bug #1264674 is to modify a third-party module inside the debian/ folder (nginx)01:30
ubottuLaunchpad bug 1264674 in nginx (Ubuntu Saucy) "nginx segfault when adding add_header in configuration" [Undecided,Confirmed] https://launchpad.net/bugs/126467401:30
tewardi 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 patch01:30
tewards/modify it/apply the patch/01:30
teward(it's rare I have to touch the third-party modules :/)01:31
NoskcajI'm guessing it's allowed to patch, debian-mentors is usually best for these questions though01:31
tewardwell, i'll see if debuild whines.01:31
tewardit occasionally does that01:31
* teward shrugs01:31
cjwatsonI 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:33
cjwatsonI would expect any sponsor who's paying attention to kick that back to you.01:34
tewardcjwatson: 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 debdiff01:35
tewardI have a feeling rbasak is keeping an eye on the bug, but I might be wrong.01:35
cjwatsonI would recommend just preparing the one with the files under debian/ changed directly and not in quilt, rather than wasting a sponsor's time01:36
tewardmeh, that's equally easy01:36
cjwatsonIt's the right thing to do.  Conceptually the quilt patch series should apply to the upstream tarball without debian/ even there.01:36
cjwatsonTools such as git-dpm would probably fail if that weren't the case.01:37
tewardyeah, makes sense.01:39
tewardin 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. ^.^01:39
dholbachgood morning08:14
rbasakteward: the debdiff in bug 1264674 looks fine. But before I test/sponsor, could you complete the SRU justification please?09:10
ubottubug 1264674 in nginx (Ubuntu Saucy) "nginx segfault when adding add_header in configuration" [Undecided,Triaged] https://launchpad.net/bugs/126467409:10
=== ikonia_ is now known as ikonia
fully_humanStupid 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:51
rbasakfully_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:53
fully_humanAn inkscape bug where a color swatch contains an incorrect color. Inkscape does not have a "test" folder already.15:54
fully_humanBut I suppose test folders can be per-branch and the package maintainer will just apply the patch without the test. :-|15:55
rbasakAh. I'm not sure about desktop bugs, sorry. Perhaps a test case that a human can follow will do.15:55
fully_humanSo a little note with the patch saying "See what you expect? This is what the patch returns!"15:55
rbasakAre you talking about a test case for an SRU?15:56
fully_humanSRU?15:57
=== barry` is now known as barry_
=== barry_ is now known as barry
fully_humanSorry, 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:41
Noskcajfully_human, The simplest way is just make a patch however you think and submit it to a launchpad bug20:43
fully_humanSo it's all about diffing...how I go about it is up to me.20:44
fully_humanMaybe I should write something about that in the docs so no one else is confused. :-\20:44
rbasakfully_human: personally I find a debdiff the easiest. Prepare the new source package you're proposing, and then attach the output of "debdiff <old_dsc> <new_dsc>".20:53
fully_humanThanks. :)20:53
fully_humanSo, 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:54
fully_humanAnd I assume debuild -S and pbuilder just make a debian I can test?20:55
jtaylorthe non vcs apparoch is: quilt add <files you want to edit>20:56
jtayloredit them20:56
jtaylorquilt refresh20:56
jtaylordch -i, write changelog20:56
jtaylordebuild -S; debdiff old-dsc new-dsc20:56
jtayloroh quilt new <patch-name> first20:56
fully_humanWhen I do debdiff, should I be one level up from the package directory?21:04
jtaylordoesn't matter it just needs two dsc21:04
jtaylorafter debuild they are usually in ../21:04
fully_humanAnd so debdiff will automatically try to find them?21:05
jtaylorno you need to tell it the path of the dsc21:05
jtaylorit will find the rest by itself21:05
fully_humanOh, yeah, I suppose since you said "old-dsc." :P21:05
jtaylordebuild will create a new dsc if you updated the version with dch -i21:06
jtaylorsee ls ../*dsc21:06
fully_humanOkay, 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:09
fully_humanAh, should I test the package before or after I run dch -i?21:15
fully_human(well, too late because I'm already writing the changelog. :P)21:15
jtayloryou should do it before you debuild, else you overwrite the old dsc21:16
jtaylorbut its not a big deal just download it again21:16
fully_humanAnd pbuilder will create the new deb file to install, right?21:17
jtayloryes21:17
fully_humanAha! I think I'm getting it!21:17
jtaylordebuild can also do it21:17
jtaylorwithout -S21:17
jtayloryou do that to get it right, then test with pbuilder because its slower21:17
fully_humanYes, I discovered this. o.O21:18
jtaylorthere are many tricks to speed up pbuilder21:19
jtaylorusing eatmydata, special buildplace mountoptions, using apt-cachers etc21:20
jtaylorworth looking into when you do more packaging work21:20
fully_humanHm...yelling at my computer (expletives included) didn't help...21:20
fully_humanYour suggestion will probably work better. :)21:20
fully_humanWhich makes sense, because installing modified binaries. Any way to reset the build?22:43
fully_humanSo 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 changed22:44
fully_humandpkg-source: error: add share/extensions/Barcode/__init__.pyc in debian/source/include-binaries if you want to store the modified binary in the debian tarball22:44
fully_humanWhich makes sense, because installing modified binaries. Any way to reset the build?22:44
jtaylorhm that means the clean target of rules does not do what it should22:44
jtaylorthat is an unfortunate annoyance22:44
jtaylorthe easiest way around this is to use version control to reset the build22:45
jtaylorwithout that you could extract a new copy and apply your debdiff on it22:47
jtayloror fix the clean rule for testing (and file a bug in debian)22:47
fully_humanEven 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
jtaylorbzr clean-tree22:53
jtaylormake sure your patch is commited first22:53
fully_humanWith 'bzr commit'?23:14
jtaylorbzr add <file>23:14
jtaylorbzr status will show you what willb e commited23:14
jtaylorit should only be stuff in debian23:14

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