/srv/irclogs.ubuntu.com/2021/03/11/#launchpad.txt

=== ilasc changed the topic of #launchpad to: Help contact: @ilasc (06:00-15:00 UTC Mon-Fri) | Launchpad is an open source project: https://dev.launchpad.net/ | This channel is logged: http://irclogs.ubuntu.com/ | User Guide: https://help.launchpad.net/ | Support and spam reporting: https://answers.launchpad.net/launchpad
=== apw_ is now known as apw
realtime-neilsbuild --source --source-only-changes produces a `*_source.changes` that launchpad rejects, saying "Mismatch in binaryfulness. (arch) False != (files) True". What am I doing wrong with my sbuild? How do I tell sbuild to make an acceptable `*_source.changes`?16:21
cjwatsonCan I see your .changes?16:25
cjwatsonYou might be running into https://bugs.launchpad.net/launchpad/+bug/169976316:25
ubot5Ubuntu bug 1699763 in Launchpad itself "source uploading with a .buildinfo containing hashes for binary is rejected" [Undecided,Confirmed]16:25
realtime-neilWhoops, I might have missed this: https://wiki.debian.org/SourceOnlyUpload#git-buildpackage_support16:26
realtime-neilcjwatson: generating that file now...16:27
cjwatsonI tend to just use "debuild -S -nc" (dropping the -nc if the source tree might not be clean and if I know I have the build-deps)16:28
cjwatsonI think you could add --debbuildopt=--buildinfo-option=-O though16:29
cjwatson(to sbuild)16:29
realtime-neilcjwatson: https://paste.ubuntu.com/p/SJWnmYvkjR/16:34
cjwatsonrealtime-neil: Right, try adding --debbuildopt=--buildinfo-option=-O16:34
realtime-neilcjwatson: will do16:35
cjwatsonFailing that in extremis you can delete all the .buildinfo lines and re-sign, but that's generally best avoided16:35
realtime-neilcjwatson: same error https://paste.ubuntu.com/p/zPd6vxVG9D/16:48
cjwatsonrealtime-neil: now that shouldn't produce the same error - it looks right16:49
cjwatsonrealtime-neil: are you certain that's what you reuploaded?16:50
realtime-neilvery; I can try with a new launchpad repo16:50
cjwatsonrealtime-neil: That would be a waste of time16:51
cjwatsonrealtime-neil: Your last upload got a completely different error, according to our logs16:51
cjwatsonrealtime-neil: (I mean, it was one of the errors present in your earlier rejection, but the most recent rejection did *not* include the "Mismatch in binaryfulness" error)16:52
realtime-neilHere's more error message: https://paste.ubuntu.com/p/sgs7pf49Mj/16:53
cjwatsonThat's not the most recent rejection16:54
realtime-neilcorrect16:54
cjwatsonThe most recent one just has the last two lines of that16:54
cjwatson"Unable to find arenasdk_0.1.38.orig.tar.xz in upload or distribution" should be fixable by adding --force-orig-source16:54
realtime-neilretrying16:55
realtime-neilcjwatson: same16:58
cjwatsonCan I see the new .changes?16:59
cjwatsonI agree that this time it is in fact the same error16:59
realtime-neilhttps://paste.ubuntu.com/p/58TnH3xtQf/17:00
cjwatsonsbuild's source building is some of those things that I think is conceptually a good idea but seems to have a ropey implementation :-/17:00
cjwatsonSo sbuild hasn't put the .orig in there.  Could I maybe see the full output of your sbuild command?17:00
cjwatsonNot sure what to do if you told it to force and it ignored you, but let's see17:01
realtime-neildoing it like this: `gbp buildpackage --source --source-only-changes --force-orig-source --debbuildopt=--buildinfo-option=-O`17:01
cjwatsonYou changed tools without telling me? :-(17:01
cjwatson--force-orig-source is an option to sbuild17:01
realtime-neilbecause I have a gbp.conf telling buildpackage.builder = sbuild17:02
cjwatsonYeah but you specifically said you were using "sbuild --source --source-only-changes" so I assumed you were still using sbuild directly17:02
cjwatsonBasically you need to get the -sa option passed through to dpkg-buildpackage17:02
cjwatsonDo that in whatever way is appropriate to the tool you're using17:02
realtime-neilshucks; so this is a case of gbp injecting options into the sbuild invocation that are incompatible with launchpad?17:03
cjwatsonOr maybe it's failing to inject options that are necessary17:03
cjwatsonFundamentally Launchpad needs a copy of your .orig.tar.xz if you expect it to be able to build anything17:04
cjwatsonThat would be true of any upload target.  gbp may be leaving dpkg-buildpackage to guess from the version number that the .orig isn't required17:04
cjwatsondpkg-buildpackage's -sa option exists to override that behaviour17:04
cjwatsonSo I'm afraid I'm not a "gbp buildpackage" user so I don't know exactly how to pass it through, but hopefully with that information you can work it out?17:05
realtime-neilstill digesting ... reading man pages17:05
realtime-neilmaybe another --debbuildopt is in order17:06
realtime-neilnamely --debbuildopt=-sa17:06
cjwatsonWorth a try17:10
realtime-neilcjwatson: Is this something that can be diagnosed via the *.changes file? Is there something in there I can use to know if launchpad will reject it?17:29
cjwatsonrealtime-neil: If the .orig isn't in the target archive already, then it needs to be mentioned in the .changes17:30
cjwatsonrealtime-neil: It's not diagnosable solely from the state of the .changes because it also depends on the state of the target archive (though always including the .orig is OK, just wasteful of bandwidth)17:30
realtime-neilOkay, got it. All of the valid  *.changes I've created mention the *.orig.tar*, so that's a good indicator for me.17:33
realtime-neilWelp that was exhausting. Here's what gbp with a `buildpackage.builder=sbuild` needs to create a `*_source.changes` WITH an origtar and WITHOUT buildinfo:   `gbp buildpackage --no-arch-any --no-arch-all --source --debbuildopt=-sa --debbuildopt=--buildinfo-option=-O`18:38
realtime-neilWhich launchpad has just accepted.18:38
=== theloudspeaker_ is now known as The_LoudSpeaker
=== commandoline_ is now known as commandoline
cjwatsonrealtime-neil: Glad it worked in the end.  I do wonder what all the extra layers of abstraction actually add and if just using debuild -S -sa (maybe with -nc) would've been easier ...20:27
realtime-neilcjwatson: concur --- just about the only work gbp is saving me is the generation and placement of the origtar20:28
cjwatson(I do appreciate that if building your source package involves non-trivial use of build-dependencies then it can be convenient to do that in a chroot.  I normally try to just avoid my source packages needing that property, but sometimes there's no reasonable alternative)20:29
juliankHas anyone suggested adding attachments to merge proposals yet?22:44
juliankI was just reviewing one and wanted to attach data, and ended up going with a github gist22:45

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