/srv/irclogs.ubuntu.com/2019/06/04/#ubuntu-devel.txt

xnoxslashd:  when uploading d-i please commit to vcs lp:~ubuntu-core-dev/debian-installer/ubuntu and there are branches for stable series too.10:30
=== cpaelzer__ is now known as cpaelzer
cpaelzerhi, I'm trying to use a launchpad build recipe but I need to "fuse" d/p/series and various ways I tried failed me so I wanted to ask for best practise10:49
cpaelzerI tried a d/p/ dir with custom patches and a commit that extend d/p/series - but that fails on git auto-merge (even thou it is trivial)10:49
cpaelzernext I provided a d/p/myseries, and in the recipe ran like "run cat d/p/myseries >> d/p/series"10:50
cpaelzerthat seemed to work, but after applying all patches the package already brings, the extra patches fail to apply10:50
cpaelzerbut not with a actual "failed to patch"10:51
cpaelzerI get gitbuildrecipe.deb_util.NoSuchTag10:51
cpaelzerI also tried to patch things myself with run commands that do like "run patch ..." those worked, but since buildpackage later on cleans and applies things fell apart10:52
cpaelzerhence I'm looking for best practise or examples of lp recipies "fusing" a full debian package (content + debian dir) with another repo that has "more" patches to add on top10:52
cpaelzerany hint welcome10:52
cpaelzerthe no such tag is the code path for non-native packages (trying to get a tarball)10:54
cpaelzerfrom there it falls back to consider building from the local tree, and there quilt bails out (to the NoSuchTag is a red herring)10:55
cpaelzerif only quilt would have any error message, it applies things (withotu error) until it ends and then complains "Command '['quilt', 'push', '-a', '-v']' returned non-zero exit status 1."10:56
cjwatsonI think the right answer is a commit that extends debian/patches/series, and so I would suggest trying git-build-recipe locally and seeing if you can work out why git is failing to do the trivial merge11:01
cpaelzerI already try it locally with git-build-recipe11:03
cjwatsonAnd you may find that things work better if you arrange for either pristine-tar to work or for one of the repositories involved to have an upstream/<version> or upstream-<version> tag11:03
cpaelzerit just isn't very verbose to tell me what fails11:03
cjwatsonSure, but I have now told you what I think the right option to pursue is11:03
cjwatsonSo that may narrow things down11:03
cjwatsonThe "run" option is useless because LP won't honour that11:03
cpaelzerthe patch I'm currently on already extends d/p/series which works, just the quilt push later fails atm11:04
cpaelzerI might adapt the git-build-recipe code to be more verbose at those places, maybe I find what breaks it atm11:04
cjwatsonThe quilt push bit only happens if you don't have a way for it to get an upstream tarball11:04
cjwatsonFix that and you will avoid that problem11:04
cjwatsoni.e.11:05
cjwatson12:03 <cjwatson> And you may find that things work better if you arrange for either pristine-tar to work or for one of the repositories involved to have an upstream/<version> or upstream-<version> tag11:05
cpaelzerinteresting11:05
cjwatsonSo NoSuchTag is NOT a red herring11:05
cpaelzerthe remote I clone from has another branch with pristine-tar content (git-ubuntu) but since there are two such branches I need to make that known11:06
cjwatsonI mean maybe git-build-recipe should do better on that path, but you want to avoid being on that path11:06
cpaelzerthat might need to fetch ubuntu/pristine-tar and then set it as the local pristine-tar branch11:06
cpaelzerThanks for the hint cjwatson, I'll try to make it somehow recognize the pristine tar that I have11:08
cjwatsonI'm not sure why anyone would expect a branch called ubuntu/pristine-tar to work, given that pristine-tar doesn't consider such a branch name11:08
cjwatsonAnd in any case the upstream tarball is not logically connected to a distribution11:09
cjwatsonI would just rename ubuntu/pristine-tar to pristine-tar11:09
cpaelzerwell I don't expect it to work until I have created a local branch with the right non prefixed name11:09
cjwatsonpristine-tar fetches remote branches11:09
cpaelzerthat is the structure of git-ubuntu creating those branch names11:10
cpaelzerwhich I'm not going to change atm :-)11:10
cjwatsonSo weird11:10
cjwatsonBut you could always have the repository that you're layering on top just have a pristine-tar branch11:10
cpaelzervery true, thank you11:11
cpaelzerthat might be a way out11:11
cjwatsonOr a suitable tag11:11
cpaelzeractually I just got it working to recognize the pristine-tar11:11
cpaelzerthat comes from git-ubuntu11:11
cpaelzerno more NoSuchTag11:12
cjwatson(I guess I can see why git-ubuntu does that: the tarballs might disagree and then what would it do?  But it's hard to see how that cooperates well with actual pristine-tar)11:12
cpaelzerbut still failing to apply quilt push -a11:12
cpaelzerah no here is my NoSuchTag, ok I'm considering adding it to the repo that I'm layering on top11:12
cjwatsonI am absolutely certain that quilt push -a is not called unless you get a NoSuchTag11:13
akikwhat's ubuntu's policy on using NOPASSWD in sudoers? i'm asking because cloud-init is still doing it for the default user and cloud-init is originally a ubuntu project11:13
cjwatsonAh, now I see https://bugs.debian.org/895377 which I guess is basically for this11:14
ubottuDebian bug 895377 in pristine-tar "/usr/bin/pristine-tar: add support for specifing branch name to pristine-tar cli" [Normal,Open]11:14
cpaelzercjwatson: agreed as  i said "... here is my NoSuchTag" - it was just hidden in all the output11:14
cjwatsonSorry, you were writing so many lines on IRC so quickly that I was having some difficulty keeping up :)11:15
=== ricab is now known as ricab|lunch
ddstreettdaitx i notice the openjdk-8 (and other versions) autopkgtests have been failing for, well, ever...have you looked at the failure logs and/or are you working on fixing the tests?12:42
=== ricab|lunch is now known as ricab
tdaitxddstreet: yeah, it is a known issue, the testsuite has thousands of tests, some of those are unstable tests, anyhow any of them need to be either ignored (by adding them to a blacklist in the testsuite itself) or fixed, there's a long term plan to get all of them fixed13:06
ddstreettdaitx ok cool - since they aren't useful now (I assume?) could you maybe disable them?  I would suggest hinting britney to ignore them, but it seems like you update them often enough that just hinting the latest version would still result in some annoying failures after each update...13:22
ddstreetplus that will save time and energy re-running them when we know they aren't going to pass :)13:23
=== cpaelzer__ is now known as cpaelzer
cpaelzercjwatson: I got a pristine-tar set up and have it working through the git-build-recipe steps14:35
cpaelzerthanks for the hint14:35
cpaelzeryet now I wonder about launchpad permission management. I'd expect that I can select owner/target-ppa for a group that I'm admin in14:35
cpaelzerthe group is private, maybe that makes it not present it to me on the UI of "new-recipe"14:36
cjwatsoncpaelzer: Recipes cannot use private components; the builder doesn't have permissions to fetch them14:36
cpaelzerok, good to know14:37
cjwatsoncpaelzer: (this is in theory fixable but would be a fair chunk of work)14:37
xnoxsmoser:  commented on the list-boots bug. it's funny!14:44
smoserwow. yeah.14:46
smoserit really sucks though for using the journal14:46
xnoxsmoser:  What can I say, your welcome! =)14:46
xnoxsmoser:  i wonder, if journal should be assking for app specific bootid, under containers.14:47
smoseri'll just reboot my host every time14:47
xnoxbut then one would get a new bootid on every journald restart14:47
xnoxi guess we could stash it into /run/systemd/journal or something14:48
xnoxi would prefer lxd to fake boot_id though14:48
xnoxas it should be managing the container lifecycle14:48
smoseryeah. it does do that with uptime14:49
xnoxsmoser:  please open a bug at https://github.com/lxc/lxd/issues ?14:50
smoseri think it'd be https://github.com/lxc/lxcfs14:52
smoserand looks like it'd be pretty straight forward to put a random number14:52
* smoser learns something today14:53
xnoxsmoser:  i'm not sure if there is any other way. cause at the moment containers know if the host has been rebooted or not.14:54
xnoxsmoser:  and i'm not sure if journald has logs from containers... for a particular host... queried from the host.14:54
xnoxsmoser:  maybe check if any other container solutions handle this at all or not14:54
smoserhere i'd been using the 'uuidd' service to get myself uuids.  but i could have just read from /proc/sys/kernel/random/uuid all along.14:55
smoserbut that would not have been as cool as using a dbus service.14:56
smoser:)14:56
xnoxsmoser:  https://github.com/systemd/systemd/blob/master/src/nspawn/nspawn.c#L184114:56
xnoxsmoser:  so at least nspawn does things14:56
xnoxyou can read /proc/sys/kernel/random/boot_id ;-)14:56
xnoxah, wait that's the static one14:56
xnoxsmoser:  please open a bug against lxcfs if that's where the code is, and do use the pointer to the nspawn's setup_boot_id code14:58
smoserhttps://github.com/lxc/lxcfs/issues/28515:01
smoserthank you xnox. i'll watch for your lxcfs pull request later today.15:02
xnoxhahahaha15:43
xnoxsmoser:  you were already told now =)15:43
xnoxsmoser:  and meh, i don't code in github.com/lxc* =)15:43
* xnox diehard C coder only15:43
smoserxnox: that is C15:55
smoserexcuses--15:55
TJ-is there some voodoo to understanding where to find the actual, meaningful, git commit logs for package git repos? All I see to find is "Import patches-unapplied ..."16:35
Odd_BlokeTJ-: For the git-ubuntu repos, you mean?  AIUI, the uploader has to go through a specific process for their git history (if there is any!) to be included in those imports.16:38
Odd_BlokeBut rbasak could probably tell you more.16:39
TJ-Odd_Bloke: specifically I'm looking at the grub2 git repo, but I've hit this several times with other packages and given up!16:39
ahasenackTJ-: the import commits will really just record the change as a big chunk, like a debdiff. To preserve git history, an upload tag must be pushed to the repo together with the dput upload. Then, when the importer sees the new package to import, if its contents match the tree associated with that upload tag, the git rich history will be preserved16:55
ahasenackso far only the server-owned packages have been following that, and when a member of the server team does the upload (because he can push said tag)16:56
TJ-ahasenack: hmmm, so there's no way to easily see the real project history unless the developer takes care of it?17:02
ahasenackit really depends what tooling the developer used, we need to remain compatible with people who prefer debdiffs and plain dputs17:03
TJ-right. hmmmph! makes it really challenging to discover where a regression lives17:04
TJ-right now seems like 19.04 grub2 has regressed and broken GRUB_ENABLE_CRYPTODISK so was hoping to quickly parse the recent commits in search of candidates17:05
TJ-cyphermox: maybe you could cast your eye over Bug #181312617:06
ubottubug 1813126 in grub2 (Ubuntu) "[19.04] GRUB_ENABLE_CRYPTODISK=y ignored" [Undecided,Confirmed] https://launchpad.net/bugs/181312617:06
cyphermoxTJ-: right now I don't have time to look at that; but I suspect it will have something to do with the change in LUKS format17:21
cyphermoxyou might want to have a look at what 'sudo grub-probe --device /dev/mapper/<your crypto device> --target=abstraction' reports, but I think it won't be a regression so much as something that has never been supported yet17:22
cyphermox(though I am, admittedly, just guessing)17:22
cyphermoxTJ-: if you want to have a look on your own before I can get to this though; you'll want to look at https://git.launchpad.net/~ubuntu-core-dev/grub/+git/ubuntu/log/?h=ubuntu17:22
cyphermoxit's a git-dpm tree, that means it's a fairly straightforward tree where one can relatively easily do bisection against the package or against the patched (or unpatched) tree ('git-dpm checkout-patched' will get you a patched tree, and if you rebase you can get to just before any patches are applied)17:25
TJ-cyphermox: thanks, that's perfect17:35
TJ-cyphermox: you nailed it; LUKS2 in my test case, despite I used "cryptsetup luksFormat --type luks ..." hmmph17:37
TJ-cyphermox: aha, cryptsetup semantics have changed since 18.04, 19.04 --type=luks == luks2, need to use --type=luks117:42
=== gusnan_ is now known as gusnan
vorloninfinity, stgraber, kees, mdeslaur: TB in 7?18:53
mdeslaurack18:54
xnoxvorlon:  kenvandine: rcj: https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/183167523:34
ubottuLaunchpad bug 1831675 in livecd-rootfs (Ubuntu Bionic) "core18 snap missing from bionic desktop, snaps fail to seed offline" [Undecided,New]23:34
vorlonxnox: is this a daily desktop image you're talking about?23:52

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