/srv/irclogs.ubuntu.com/2019/02/28/#launchpad.txt

lagIs there any way to set the Git 'HEAD branch' in LP?09:13
wgrantlag: The git protocol doesn't provide a way to do it, so you have to do it through the web UI09:17
wgrantThere's a "Default branch" field on the "Change details" page of the repository09:17
wgrante.g. https://launchpad.net/~canonical-launchpad-branches/launchpad/+git/launchpad/+edit09:17
lagwgrant: "The information on this page is private."09:18
wgrantlag: Funnily enough you can't edit Launchpad's own repository. It was an example URL09:19
lagwgrant: Right.  I trigged on that after - I'm trying to edit it to suit my project/repo09:20
lagwgrant: Am I meant to see a link to be able to do it?  Or is the +edit the only way to get to the edit page?09:20
wgrantYou can also just navigate to the repo in the web UI and hit the "Change details" link09:20
wgrantMake sure you're not on git.launchpad.net, though09:20
wgrantcode.launchpad.net or just launchpad.net is the right place09:21
lagwgrant: Ah, in LP - I was trying to navigate via the Git UI09:22
lagwgrant: Thanks09:22
lag..09:29
lagI have another question - been working on this for 4 days, so I figured 2 isn't too bad09:29
laghttps://i.imgur.com/Le9D3vS.png09:29
wgrantlag: That usually means you've had two different builds that produced a package with the same version, which isn't allowed.09:30
lagCan anyone tell me why only Bionic succeeded?  Do the other releases require their own unique changelog entries?09:30
lagwgrant: I wish to create exactly the same package for each of the 3 releases09:30
wgrantlag: Does it need to be rebuilt between series?09:30
lagwgrant: Absolutely not - it's exactly the same09:31
wgrantlag: Not even any soname changes in dependencies?09:31
lag?09:32
wgrantIf not, build in the earliest series and then use the "Copy packages" link to copy it to newer ones, making sure you select to copy binaries.09:32
wgrantIf a library changed versions significantly between bionic and disco, it might need a rebuild to be installable on disco09:32
wgrantIf you do need to build it separately for each series, you'll need a separate changelog entry for each. It's common to append e.g. ~ubuntu18.04.109:32
lagwgrant: It's the Linux kernel - it doesn't use libs09:32
wgrantlag: Fair enough then :)09:33
wgrantYou are probably good with a binary copy.09:33
lagwgrant: Using 'Copy packages' sounds like a very manual process - is there any way to automate what I'm trying to achieve?09:34
wgrantThe thing to remember is that a binary package within an archive must be unique by (name, version, architecture). You can't build the same thing twice, but you can copy them between architectures.09:34
wgrantlag: There's the copyPackages API which can be used for automation, but you'd need to run that script yourself.09:34
wgrantUnless you can use a source package recipe, but for something like the kernel that's rarely a good option.09:35
lagwgrant: I am using a source package recipe (I think)09:35
lag# git-build-recipe format 0.4 deb-version {debupstream}-laptops.{time}09:35
laglp:~aarch64-laptops/+git/linux-kernel laptops09:35
lagmerge kernel-packaging lp:~aarch64-laptops/+git/ubuntu-kernel-packaging master09:35
lag..09:35
lagIs that wrong?09:36
wgrantlag: Oh, fair enough. That's a very weird version for an Ubuntu-derived kernel though.09:38
wgrantI'm not sure I've ever seen anyone try a recipe for a kernel due to ABI etc.09:38
wgrantlag: So, now you've mentioned the branch I can actually see what's going on :)09:39
lagwgrant: https://code.launchpad.net/~wip-kernel/+recipe/generic-lowlatency-build09:39
wgrantINFO File linux_5.0.0-rc5.tar.gz already exists in Linux Kernel, but uploaded version has different contents. See more information about this error in https://help.launchpad.net/Packaging/UploadErrors.09:39
wgrantIn this case you're producing an orig tarball from the branch, but it's apparently different from the one that was generated or uploaded in the past.09:40
lagwgrant: Right, which would have been fine - but Bionic built fine?09:40
lagwgrant: ... which threw me09:40
wgrantOh it's not even an orig tarball.09:41
wgrantIt's a native with a weird version09:41
wgrantSo, the kernel debian/rules is very weird09:41
lagwgrant: Which one?09:41
wgrantAnd it's probably clobbering debian/changelog after git-build-recipe adds its entry to it09:41
lagwgrant: The current one is the packaging the Kernel Team use09:41
wgrantOr your version template was bad09:41
wgrantSure09:42
wgrantThe one the kernel team uses is very weird :)09:42
wgrantIt works for them, but it likely makes it incompatible with recipes09:42
lagwgrant: :D09:42
wgrante.g. IIRC it overwrites debian/changelog with debian.master/changelog at the start of the build09:42
lagwgrant: Right, which I edit09:42
lagwgrant: The current change-log entry is mine (2 secs)09:42
wgrantWhich is why the bionic build produced a version of "5.0-rc5" which clearly doesn't match your template of "{debupstream}-0~{revtime}"09:42
wgrantgit-build-recipe assumes that debian/changelog won't be overwritten by the build, which is AFAIK a correct assumption for literally everything except linux09:43
lagwgrant: https://git.launchpad.net/~aarch64-laptops/+git/ubuntu-kernel-packaging/commit/?id=d5b6f0ea6f4810a29b1fca2a382eae1c2bb6794209:44
wgrantlag: Hm, have you done kernel packaging before?09:44
wgrantThat's not a correct Debian version string, and it's particularly unlikely to be the right thing for a kernel09:45
lagwgrant: That's a very embarrassing question - I guess the best answer is, not for over a decade and even then only briefly09:45
wgrantlag: 5.0.0-rc5 technically means upstream version 5.0.0, Debian version rc509:45
wgrantlag: What's this packaging based on?09:45
wgrantAnd do you need a recipe?09:46
lagwgrant: It's a mash-up of this: https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0-rc7/09:46
wgrantThe kernel packaging is very, very strange and probably going to be difficult to turn into something that works, due to the ABI being included in package names etc.09:46
lagwgrant: And the project I sent you a link to a few lines back09:46
lagwgrant: I was told to use recipes by the person who owns the aforementioned project09:47
wgrantlag: Probably worth talking to them09:47
wgrantI'm not quite sure how they've done it09:48
wgrantBut it seems to mostly work09:48
lagwgrant: I just want to build a kernel and push it into a PPA (easiest, simplest way possible)09:48
lagwgrant: The kernel has it's own built-in method of making packages, but that doesn't work will with LP either09:49
wgrantlag: There's nothing simple about building a sensible custom kernel package in a recipe. Recipes make some assumptions about how packages will behave, and the kernel has reasonable reasons for violating convention in many different ways09:49
wgrantCorrect.09:49
wgrantIt's not a common use case.09:49
wgrantIf you have found someone who has done it, your best bet is to work with them.09:49
wgrantBonus points if that approach gets documented :)09:49
wgrantIt's easy enough (but not easy) to build a custom source package locally and upload it.09:50
lagwgrant: Maybe a changelog per-release wouldn't be such a bad thing after all ;)09:50
wgrantBut having LP build it from a recipe is another matter entirely.09:50
lagSo this is a new one - on upload of some source packages LP is telling me: "No changelog file found."13:45
lag.. then, in the same mail, it provides a copy of the changelog file - what gives?13:45
laghttps://paste.ubuntu.com/p/Y7N2xVnqN5/13:46
lagSomething wrong with the formatting?  Surely that would be a different error?13:46
rbasaklag: remember that parts of debian/changelog are duplicated into the changes file before upload. If the message is coming from the changes file, it's not necessarily a contradiction.13:54
rbasak(I'm speculating somewhat but hopefully you see my point)13:55
wgrantlag: As rbasak says, that part of the email comes from the .changes file that you uploaded, which includes a variant of the most recent changelog entry14:07
lagwgrant: I did suspect that it was complaining about the changelog not being changed since the last attempted upload - so I bumped the version14:09
lagwgrant: Same problem14:09
lagrbasak: -^14:09
wgrantlag: What's the same problem?14:13
wgrantHave you confirmed that debian/changelog exists in the tarball?14:13
lagwgrant: Hmm... it does not14:14
wgrantSee, LP produces accurate error messages that you should trust :)14:14
lagwgrant: Is this because I symlinked the packaging from another file?14:14
lagwgrant: Ha ha - maybe this time ;)14:14
lags/file/repo/14:15
wgrantlag: I don't know, you'll need to work out where the file went.14:15
lagwgrant: I need to find another way of doing that14:15
lagwgrant: I think it's added the symlinks to debian and debian.master, but not followed them - damn!14:15
lagwgrant: Thanks for your help - I owe you a beer14:15
lagwgrant: How does this look to you?  linux (5.0.0-rc5-generic-next-20190206-050000rc5) bionic; urgency=medium14:40
lagwgrant: Is the Debian version taken after the last or the first '-'?14:41
rbasakIIRC it's the last '-'14:43
rbasakThat allows upstream versions to contain '-'14:43
rbasakProbably best to avoid doing that though14:44
rbasakIt just leads to confusion.14:44
rbasakFor example 5.0.0-rc5 will sort after 5.0.0 which is wrong.14:44
lagrbasak: Right, so in my example the version can be "5.0.0-rc5-generic-next-20190206" which is correct15:18
lagrbasak: Then Debian can use -050000rc5 which I don't really care about15:19
EickmeyerLooks like the build farm might be stuck again.18:13
EickmeyerYep, definitely stuck.18:41
cjwatsonEickmeyer: should be returning to life, thanks18:47
Eickmeyercjwatson: Thanks!18:47
QwertyChouskieThis series cannot be deleted because it has translations.20:09
QwertyChouskieHow do I fix this?20:09
wgrantQwertyChouskie: You might be able to move the translation templates to another series, or just mark the series as obsolete and leave it harmlessly behind23:24
QwertyChouskiewgrant: Can I just remove all translation stuff?  The projects has used Transifex for years so any translation stuff is just clutter at this point23:56
QwertyChouskieThe project: https://launchpad.net/stk23:56

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