/srv/irclogs.ubuntu.com/2024/01/19/#ubuntu-devel.txt

=== mnepton is now known as mneptok
=== ted_ is now known as ted
adrienis it possible to create a git-ubuntu-style commit from the beginning? I can't track the history-rewrite that git-ubuntu merge does and most often only need to author a single commit10:25
schopinadrien: I think you'd be better off explaining what your end-goal is and what are the issues you're seeing with "tracking the history-rewrite"? Because as it is I can't make sense of your question :/10:33
schopinIf only need to to author a single commit, why are you talking about merges? You should just commit on top of ubuntu/devel and post that as a MP (I believe that'd be `git ubuntu submit`)10:34
adrienright; context is https://code.launchpad.net/~adrien-n/ubuntu/+source/gnutls28/+git/gnutls28/+merge/45809210:35
adrienhow should one do: "Also, I didn't sponsor this in git-ubuntu style, as the commit(s) do not match that structure (d/changelog and logical changes as part of the same commit). You could consider splitting it for git-ubuntu in the future."10:35
adrienpurely by hand?10:35
sudipadrien: I think the problem was that you only had one commit. you should have done the change as a separate commit and d/changelog as separate commit10:38
schopinWell we're not expecting you to craft the blob, tree and commit object files by hand, but e.g. `git add debian/conf/config; git commit; git add debian/changelog; git commit -m "changelog"`. It does indeed make merging easier.10:38
adrienI'm almost fine doing that by hand due to typos and that's also quite obvious but it's really not mentioned anywhere I think and coupled with the fact that git-ubuntu is sometimes quite opaque, it became something I never tried10:41
adrienI'll try it next, thanks (well, I'll script on top of g-u I guess)10:42
philrocheAre there any core devs able to review https://code.launchpad.net/~toabctl/livecd-rootfs/+git/livecd-rootfs-1/+merge/459010  ?. This fixes a regression in livecd-rootfs and all new Jammy cloud images - bug defined @ https://bugs.launchpad.net/cloud-images/+bug/2049860. I have upload rights but a condition is that I get a core dev approval before uploading12:30
-ubottu:#ubuntu-devel- Launchpad bug 2049860 in cloud-images "cloud-init cloud-config for ssh broken in jammy" [High, In Progress]12:30
philrocherequest cancelled :) utkarsh has uploaded12:40
philrochetjaalton vorlon As SRU vanguards today. Can you help accept `2.765.36` Jammy in to -proposed ? To address https://bugs.launchpad.net/cloud-images/+bug/204986012:45
-ubottu:#ubuntu-devel- Launchpad bug 2049860 in cloud-images "cloud-init cloud-config for ssh broken in jammy" [High, In Progress]12:45
philrocheAh sorry I need to move this request to #ubuntu-release12:46
=== caribou_ is now known as caribou
adrienis "git ubuntu style" defined somewhere? or alternatively, how can I check that what I produce is correct?14:18
rbasakadrien: there isn't a style as such. What are you trying to avoid? MP comments telling you to change style? Or rich history not being adopted or something else?15:17
rbasakadrien: one thing that comes to mind is that we try to keep changes to debian/changelog and that kind of thing in separate commits, but that's not mandatory - that's only to make cherry-picking easier.15:17
rbasakAlthough, having said that, if you're doing a "package merge", then people who use the workflow are much more specific about the method used and the steps presented. Not because it's strictly technically necessary, but because it's not practical to review someone else's merge without completely redoing it _unless_ our method is used.15:19
rbasakThat method is defined at15:19
rbasakhttps://github.com/canonical/ubuntu-maintainers-handbook/blob/main/PackageMerging.md15:19
=== bdmurray_ is now known as bdmurray
adrienthanks; I was never on the reviewer side so I didn't know that15:24
adrienas for style, I'd like to follow good practice but git ubuntu merge is pretty heavy and it seems there's far fewer stuff needed when history is already rich but that's where I'm looking for details15:25
adrienfor instance, what are rules for the commit message for the logical commits?15:26
schopinPretty much the same contents as what you'd want to see in the changelog, that way you can use stuff like gbp dch.15:34
rbasakphilroche: in bug 1968873, perhaps verification-failed-focal is more appropriate if you are confident the current focal-proposed package is bad and must not land?15:41
-ubottu:#ubuntu-devel- Bug 1968873 in livecd-rootfs "Regression: images ship with modified configuration file" [High, In Progress] https://launchpad.net/bugs/196887315:42
rbasakThat will highlight red in the pending-sru report15:42
adrienso the commit message would be a chunk of d/changelog, with whitespace kept?15:50
rbasakYes - if you ignore normal git commit formatting convention and make it exactly the lines of the changelog that will be inserted, then the git-ubuntu.reconstruct-changelog tool will build your changelog for you from those commits, which you then add as another commit. That's the current convention, though we might eventually have something better.15:54
rbasakSo keep the leading whitespace, bullet point marker, wrap like you'd want the changelog to wrap, none of the usual summary line and blank line or that kind of thing.15:55
adrienand I keep d/changelog _out_ of the commit?15:56
rbasakCorrect.15:57
rbasakDo not touch debian/changelog normally at all.15:57
rbasakOnce you have all your commits in this fashion, run git-ubuntu.merge-changelogs with the correct parameters and commit the debian/changelog changes it produces as a single commit, *OR* run "git ubuntu merge finish" which does that for you.15:58
rbasakThen run git-ubuntu.reconstruct-changelog and commit the debian/changelog changes it produces as a second commit.15:59
adrienso, let's say I git ubuntu clone a repo with rich history, and I want to add a patch, I would: add the patch in d/patches, edit d/patches/series, git add d/patches/foo.diff d/patches/series, git commit -m "  * add foo.diff patch", git-ubuntu.reconstruct.changelog, git commit -m changelog d/changelog16:00
adrien?16:00
rbasakYeah if you want to do it like that.16:00
ahasenackgit-ubuntu.reconstruct-changelog takes a commit as a parameter, so you need to give it, say, pkg/ubuntu/devel16:00
philrocherbasak: I have updated https://bugs.launchpad.net/livecd-rootfs/+bug/1968873 to use verification-failed-focal as suggested16:01
-ubottu:#ubuntu-devel- Launchpad bug 1968873 in livecd-rootfs "Regression: images ship with modified configuration file" [High, In Progress]16:01
rbasakThanks!16:01
adrienahasenack: ok, thanks16:01
adrienrbasak: I see, thanks! are there other alternative ways besides git ubuntu merge?16:02
rbasakadrien: only really that you can do what git ubuntu merge does directly instead16:03
adrienok, thanks again; I'll have a go in the coming working hours (so maybe monday, because I'm trying to use canonistack in parallel)16:04
rbasakNote that git-ubuntu itself doesn't require or expect much itself. It's just expectations of others, and future automation that's impacted. So for example if you want to prepare debian/changelog yourself, then it doesn't matter what you put in commit messages.16:07
adrienI see, that's something that was bothering me too (and overall, understand what I get back after a round trip through review and merge by uploader)16:10
rbasakBut then if you choose to use git-ubuntu.reconstruct-changelog then it'll make a mess, and the next person to do the package merge won't be able to either without fixing up their rebased commit messages first.16:10
rbasakHowever, you can always just create a commit (or multiple) that fixes up debian/changelog as you want it.16:10
adrienbut the result of reconstruct-changelog has the same constraints any edit of d/changelog, right?16:11
rbasakIt's so small it's probably easier to show you it :-)16:14
rbasakhttps://git.launchpad.net/git-ubuntu/tree/bin/git-reconstruct-changelog16:14
rbasakAll it's doing is the equivalent of calling "dch" for each commit.16:14
adrienit's tiny indeed :)16:37
rbasakthe equivalent of calling "dch" for each commit> but without any change to formatting16:41
rbasak:)16:41
ahasenack@pilot in17:16
=== ChanServ changed the topic of #ubuntu-devel to: Archive: open | Devel of Ubuntu (not support) | Build failures: http://qa.ubuntuwire.com/ftbfs/ | #ubuntu for support and discussion of Focal-Mantic | Patch Pilots: ahasenack
tsimonq2@pilot in17:19
=== ChanServ changed the topic of #ubuntu-devel to: Archive: open | Devel of Ubuntu (not support) | Build failures: http://qa.ubuntuwire.com/ftbfs/ | #ubuntu for support and discussion of Focal-Mantic | Patch Pilots: tsimonq2, ahasenack
tsimonq2ahasenack: Light flight planned today, bug 785051 bug 2049188 are the only ones on my radar.17:19
-ubottu:#ubuntu-devel- Bug 785051 in libnss-extrausers (Ubuntu) "groupsfile is ignored when any entry has id < 500" [Undecided, Confirmed] https://launchpad.net/bugs/78505117:19
-ubottu:#ubuntu-devel- Bug 2049188 in hiredis (Ubuntu) "hiredis FTBFS on ppc64el" [Undecided, New] https://launchpad.net/bugs/204918817:19
tsimonq2(And it'll be my last patch pilot session for the week.)17:19
ahasenackfirst one I picked was https://bugs.launchpad.net/ubuntu/+source/backport-iwlwifi-dkms/+bug/204687117:29
-ubottu:#ubuntu-devel- Launchpad bug 2046871 in backport-iwlwifi-dkms (Ubuntu) "migrate to upstream release/coreNN branch" [High, In Progress]17:29
ahasenackepoch version seems to be the topic17:29
ahasenackit's the oldest from http://sponsoring-reports.ubuntu.com/17:29
tsimonq2Good call/agree with reasoning :)17:33
tsimonq2xorg still needs a tjaalton or similar ping: https://code.launchpad.net/~jeff250/ubuntu/+source/xorg-server/+git/xorg-server/+merge/45778117:33
tsimonq2I raised https://launchpad.net/bugs/2039873 yesterday - apparently Server is looking into it, not touching :)17:33
-ubottu:#ubuntu-devel- Launchpad bug 2039873 in lxc (Ubuntu) "liblxc-dev was built with LXC_DEVEL=1 in Ubuntu 22.04 and later releases" [Undecided, Confirmed]17:33
tsimonq2TIL about the +ucd suffix17:35
tsimonq2hiredis is in noble-proposed, libnss-extrausers is waiting for an email ... sometime in the next hour or two ... telling me it was accepted to Debian.18:08
tsimonq2@pilot out18:08
=== ChanServ changed the topic of #ubuntu-devel to: Archive: open | Devel of Ubuntu (not support) | Build failures: http://qa.ubuntuwire.com/ftbfs/ | #ubuntu for support and discussion of Focal-Mantic | Patch Pilots: ahasenack
ahasenacktjaalton: :w18:08
ahasenack:q18:08
ahasenackhm, n/m18:08
tsimonq2:wq18:08
arraybolt3:q!18:10
mhickfordIs anyone familiar with uploading packages from Debian to Ubuntu PPA without editing debian/changelog? I tried to follow https://help.launchpad.net/Packaging/PPA/Uploading#Using_packages_from_other_distributions , my package uploads okay but the PPA remains empty. Any ideas?20:04
mhickfordIn dput.cf I'm using `incoming                = ~hickford/ubuntu/git-credential-oauth/mantic` which looks right to me https://launchpad.net/~hickford/+archive/ubuntu/git-credential-oauth unless I'm missing something20:08
jbichamhickford: my dput.cf just has a section [ppa] with method = sftp and login = jbicha20:10
ahasenackmhickford: I always put the ubuntu release name in there20:10
ahasenacki.e., I use dch -R20:10
ahasenackand edit20:10
jbichaI also use backportpackage from ubuntu-dev-tools to make it easier to upload from Debian to my ppa20:10
jbichaassuming the package is already in Debian, but I might have misunderstood you20:11
mhickfordYes the package is already in Debian. According to https://help.launchpad.net/Packaging/PPA/Uploading#Using_packages_from_other_distributions  "You can upload a source from any Debian-compatible distribution straight to your PPA with no changes required and it will be built and published in the targeted Ubuntu suite. The suite you specify [in20:12
mhickforddput.cf] will override the suite named in the upload changelog when you upload it"20:12
enr0nmhickford: I usually do something like `copy-package --from=debian --from-suite=sid --to-suite=noble --to=~enr0n/ubuntu/<my ppa> <source package name>`, without any special edits to dput config20:17
mhickfordThat sounds sensible. In which package is `copy-package`?20:21
tsimonq2mhickford: It's actually in a Git repository, sec.20:25
enr0nmhickford: argh, I just realized that it's in a git repo (https://git.launchpad.net/ubuntu-archive-tools), apparently not published in a package20:26
tsimonq2^^ that :)20:26
enr0nBut it's a useful script nonetheless20:26
enr0nProbably could/should be in ubuntu-dev-tools20:26
mhickfordThanks I'll try it20:26
tsimonq2enr0n: I'm glad I'm not the only one who was thinking that!20:26
enr0ntsimonq2: yeah I think that would make the most sense20:28
tsimonq2I really do think we also need a move-package command... one that copies the package over, ensures the copy was successful, then deletes it from the source.20:31
tsimonq2I remember from my time writing britney-ppa that the archive literally uses a combination of copy-package and remove-package...20:32
tsimonq2(To my recollection, of course.)20:32
=== ChanServ changed the topic of #ubuntu-devel to: Archive: open | Devel of Ubuntu (not support) | Build failures: http://qa.ubuntuwire.com/ftbfs/ | #ubuntu for support and discussion of Focal-Mantic | Patch Pilots: N/A
ahasenack@pilot out21:00

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