/srv/irclogs.ubuntu.com/2021/02/11/#ubuntu-devel.txt

cjdesnoif i've checked out package sources with apt-get source, how do i build a specific subpackage? in cases where the repo has multiple subpackages02:33
cjdesno(specifically looking at u-boot, but seems like something that probably has a general answer)02:33
sarnoldcjdesno: what do you mean by "specific subpackage"?02:35
sarnoldcjdesno: if you mean, the source package builds multiple binary packages, you can't pick and choose, they all build at once in one go..02:36
sarnoldcjdesno: if you meant something else, then it'll probably take more details..02:36
cjdesnoi want to build u-boot-rpi, but it looks like `debuild -i -us -uc -b` just builds u-boot-qemu02:38
sarnoldholy moly that's a complicated package :)02:43
sarnoldcjdesno: okay, so... here's my wild guess: set DEB_BUILD_PROFILES to include something like pkg.uboot.subarch.rpi_3_b_plus_defconfig  --- https://wiki.debian.org/BuildProfileSpec#The_DEB_BUILD_PROFILES_environment_variable  -- check out the debian/rules file, look for DEB_BUILD_PROFILES in there02:48
cjdesnoyeah... i just want to turn off serial prints from u-boot on my rpi4, but when i built from source directly i got stuck in a bootloop, so figured i'd check out building from the package to see if that goes better02:52
cjdesnothanks! trying that now02:52
cjdesnono dice, looks like it's something close to that, though. ah well.03:09
sarnolddang :(03:15
rbasakWe have a thunderbird, tinyjsd and jsunit versioning question. Both the tinyjsd and jsunit packages are gone in Groovy. Does the thunderbird package need a versioned Breaks against them in Groovy? We are doing that in Focal, because we're going to ship empty packages for them in an SRU in Focal, and the thunderbird SRU should push those up. And is a versioned Breaks sufficient? I'm not clear on how11:15
rbasakpackage removals interact with do-release-upgrade, autoremove, etc.11:15
seb128oSoMoN, ^11:27
seb128rbasak, I don't think anything is going to remove those if they are installed on the system, not that it would create any issue to still have them around on disk11:28
oSoMoNseb128, yes, that's a question rbasak and I have for ubuntu-devel, hopefully someone knows the answer11:28
seb128they are just useless11:28
seb128if you manually install something I don't think we try to clean those up on upgrade11:29
seb128it could be an old still work package you rely on, the safe choice is to let it11:29
seb128working*11:29
seb128but juliank or others probably know better the details11:30
juliankrbasak: what's the breaks for? breaks foo (<< x) is for upgrading foo to at least x11:31
juliankdon't you want like unversioned conflicts?11:32
juliankI'm missing a bunch of context - presumably the new thunderbird breaks those old extensions?11:33
juliankBut if there's nothing to upgrade to, Breaks are technically the wrong thing11:33
julianknot that it matters in practice but certain people get mad11:33
juliankThis will help removing them either way, but i think u-r-u also removes obsolete packages anyway11:35
juliankon a dist-upgrade11:35
rbasakjuliank: the breaks is for Focal really. In that case we do want to ensure that the package is upgraded as thunderbird is upgraded.11:41
rbasakSo normally we'd keep the versioned breaks until after the next LTS.11:41
juliankit's fine I guess11:41
rbasakHowever in this case we're doing it backwards by adding it in an SRU, so it's a bit odd that we're adding it to Focal only, and Groovy won't have it unless we add it.11:41
rbasakSo...do we need to add it? That's my question really.11:41
rbasakIn enigmail's case I think we do want it, because the enigmail package continues to exist.11:42
rbasakSo we'll be updating groovy anyway for that.11:42
rbasakThe diff then shows the breaks being removed for tinyjsd and jsunit, which made me wonder what the correct answer is for those.11:43
rbasakI don't understand the mechanism that causes removed packages to be removed on release upgrade11:43
rbasakIt's not autoremove, is it? How does do-release-upgrade do that?11:44
juliankSo assuming the user does not have updates pocket enabled, it's certainly useful to keep the breaks around11:44
juliankI think u-r-u tarball contains a list of packages that are gone in a new release and offers to uninstall them11:44
juliankbut that might be too late11:44
rbasakIn that scenario, will apt know to resolve by removing jsunit and tinyjsd and upgrading thunderbird, instead of removing thunderbird, to resolve the situation?11:45
julianknobody can say for sure11:45
rbasakWill it pick up on the fact that thunderbird continues to exist but jsunit and tinyjsd are no longer in the archive?11:45
juliankno idea if it uses such info11:46
rbasakI can test that I guess11:46
juliankunless something else depends on jsunit and tinyjsd, I'd expect things to go smooth11:46
juliankbecause you'll mark thunderbird for upgrade, and doing so will mark those two for removal11:47
rbasakOK thanks!11:47
rbasakoSoMoN: so let's copy the versioned breaks to groovy and hirsute?11:48
rbasakThen we can test an apt-only upgrade using the PPA11:48
rbasak(we discussed earlier that we don't think we need to support that, but it'll probably help ensure general correctness if it works11:49
rbasak)11:49
oSoMoNrbasak, ok, I'll do that11:56
juliank⚠ wiki.ubuntu.com will be offline shortly for brief hardware maintenance12:21
juliankWiki is back12:47
rbasakItzSwirlz: patch: **** malformed patch at line 51: diff -Nru cinnamon-4.6.7/debian/patches/series cinnamon-4.6.7/debian/patches/series14:20
rbasak:-/14:20
rbasakIt's not obvious to me what's wrong14:20
oSoMoNrbasak, I did a quick test: I unpacked the groovy package in ppa:ubuntu-mozilla-security/ppa, added the versioned breaks and repacked it, then made a local apt repository with it, and used it to upgrade a focal chroot (without focal-updates) to groovy, and this resulted in apt removing jsunit and tinyjsd, as we speculated it would14:26
rbasakoSoMoN: nice. Thanks!14:31
seb128rbalint, did you check that the systemd upload fixes the network manager issue? not starting udev is probably not going to be enough16:27
=== _lucasmoura is now known as lucasmoura
rbalintseb128, yes, i know and left a comment in the bug16:32
rbalintseb128, that's the most i can do on systemd's side16:32
seb128rbalint, I was not subscribed to the bug, I saw the comment now, thanks16:41
seb128stgraber, rbalint, it sucks a bit, I don't know what the right fix for network manager would be16:41
=== cpaelzer__ is now known as cpaelzer
rbalintseb128, detecting if udevd is really running should do it imo16:42
seb128upstream is going to argue that the container spec is clear and that /sys should be mounted ro though :/16:43
seb128rbalint, do you have any code example to check that udev is active?16:43
rbalintseb128, not at hand16:44
seb128k, thanks16:44
stgrabernot starting udevd in LXD containers is going to cause other regressions...16:45
stgraberLXD containers unlike nspawn/docker/whatever does have proper uevents and does send them when external devices are passed16:45
seb128stgraber, that's what just got uploaded to hirsute though :/16:46
stgrabermaking /sys read-only would break k8s, openstack, libvirt, ... pretty much anything that interacts with networking through /sys/class/net, so that's not going to happen. udevd is needed for USB device hotplug, network config, ... so disabling it will cause breakage. As I commented in https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1914062, we can help with specific udevd bugs,16:50
ubottuLaunchpad bug 1914062 in systemd (Ubuntu) "NetworkManager-wait-online.service in 1.28.0-2ubuntu1 fails to start in LXC" [High,Triaged]16:50
stgraberdisabling things all over the place isn't the right way to handle this. Neither is confronting systemd upstream about their view of what containers are.16:50
rbalintstgraber, nonprivileged containers should work ok with ro /sys16:51
stgraberrbalint: no they won't16:51
stgraberrbalint: /sys/class/net is absolutely writable in unprivileged containers16:51
seb128stgraber, https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1914062/comments/10 is a small testcase showing what broke in hirsute and makes network manager fail, unsure if that's to be fixed on the systemd or lxc side though...16:52
ubottuLaunchpad bug 1914062 in systemd (Ubuntu) "NetworkManager-wait-online.service in 1.28.0-2ubuntu1 fails to start in LXC" [High,Triaged]16:52
rbalintstgraber, please discuss it with system upstream16:52
stgraberrbalint: no we won't, we are very close to systemd upstream, close enough to know when we disagree, bringing it up over and over again just makes things worse.16:52
stgraberrbalint: however for actual bugs, we have a good track record of getting them fixed16:53
seb128stgraber, could we get someone from the lxc side looking at the issue? otherwise I fear we are going to be stucked in that situation for a while...17:00
stgraberrbalint: can you please revert your systemd change to not run udev in containers? I've got a debdiff ready to upload to undo the change, but I've never used git-ubuntu and suspect a direct dput may not be too welcome ;)17:08
stgraberseb128: hmm, so I created a hirsute container and installed network-manager into it (1.28.0-2ubuntu1) then rebooted the container and `systemctl --failed` is clean, what did I miss?17:10
rbalintstgraber, please file an MR against https://code.launchpad.net/~ubuntu-core-dev/ubuntu/+source/systemd/+git/systemd/+ref/ubuntu-hirsute17:11
rbalintand explain why you need udevd17:12
rbalintstgraber, i guess seb128 will then need a different fix for n-m then17:13
stgraberrbalint: as I've said, we'll look at getting udevd to behave, that's fine, regressing production use cases isn't17:14
rbalintstgraber, no tests failed in the archice with udevd disabled in LXC17:14
stgraberrbalint: presumably because adt tests can't exactly hot plug a usb stick or network device :)17:15
rbalintstgraber, i think there are ways of testing that17:15
seb128stgraber,what's the status of NetworkManager-wait-online.service ?17:23
seb128stgraber, a simpler version is to build the example from https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1914062/+attachment/5459445/+files/bug.c17:24
ubottuLaunchpad bug 1914062 in systemd (Ubuntu) "NetworkManager-wait-online.service in 1.28.0-2ubuntu1 fails to start in LXC" [High,Triaged]17:24
seb128stgraber, the enumerate is empty (but works in a focal instance or in hirsute if you comment udev_enumerate_add_match_is_initialized(enumerate);)17:25
stgraberroot@u1:~# systemctl -a | grep NetworkManager17:26
stgraber  NetworkManager-wait-online.service   loaded    inactive dead      Network Manager Wait Online17:26
stgraber  NetworkManager.service               loaded    active   running   Network Manager17:26
seb128stgraber, or comment #6 on that bug17:26
seb128stgraber, ls -al /run/udev/ also, do you get content there?17:28
stgraberseb128: just the control file17:28
seb128I think that's showing the issue as well17:28
stgraberseb128: manually starting the wait unit does hang and eventually fail17:29
seb128right that's because it waits for udev events which never arrive17:29
seb128that's basically what the testcase reproduce17:29
seb128the enumerate is empty17:29
stgraberseb128: ok, thanks, I'll have brauner sort it out17:36
seb128stgraber, thanks!17:37
ItzSwirlzrbasak: I'll look at it. I manually removed stuff from the patch because it contained unneccessary whitespace removals18:08
ItzSwirlzIs it just cinnamon having the issue?18:08
ItzSwirlzOh ok, you already fixed it. I have another debdiff if you need18:15
rbasakItzSwirlz: yeah - it was just the cinnamon groovy debdiff18:30
rbasakItzSwirlz: you can see what I uploaded at https://launchpad.net/ubuntu/focal/+queue?queue_state=1 and s/focal/groovy/ if you want18:31
=== mfo_ is now known as mfo
ItzSwirlzill test it as soon as it gets pushed to -propoesd18:42
=== mfo_ is now known as mfo
=== mfo_ is now known as mfo
=== mfo_ is now known as mfo
kyrofaSo dh-python isn't a dep of python3-all in focal. Is that still the recommended way to package python stuff?19:32
kyrofaBecause I've learned the hard way that adding it as an explicit build dep uses a completely different version of dh-python that behaves very differently19:33
smoserhey all... figure someone in this channel might know, and google is failing me badly.  I have a cisco cimc that I can get a serial console on over ssh.19:46
smoserit's "exit SOL" is 'ctrl-x'.19:46
smoserwhich is really bad...because i need to change grub cmdline and grub wants ctrl-x to save the edits.19:46
tyhickssmoser: I thought grub accepted ctrl-x or another key to save and boot. Searching indicates that it is F10.19:49
smoseri can't seem to get a F10 through either. :-(. i'm not sure if unity or gnome-terminal is grabbing that, but i've even tried sending it with xdotool19:49
tyhicksOh, right. You're connecting over ssh. I'm out of ideas.19:51
tyhickssmoser: maybe this works? https://unix.stackexchange.com/a/5358919:54
ddstreetsmoser does esc-shift-0 work for f10?20:04
ddstreetthat might just be hp bios, though20:04
cjwatsonkyrofa: You want to use the explicit build-dep version, yes20:14
cjwatsonkyrofa: I don't see why it ought to be a dep of python3-all - it isn't part of "all supported Python 3 runtime versions"20:14
kyrofacjwatson, fair point. The change made me wonder if there was a better way to be doing it these days, but I should just use the explicit version?20:15
smoserthanks for suggesting, trying that now.20:15
cjwatsonkyrofa: Yep20:16
kyrofacjwatson, thank you :)20:16
cjwatsonI vaguely remember some transition back in (from my POV) the mists of time20:16
kyrofacjwatson, yeah that implicit/explicit thing was really rough. My hair was coming out in handfuls20:16
smosertyhicks, ddstreet  thanks. ultimately F10 worked. gnome-terminal was eating the f10. "Enable the menu accelerator key (F10 by default)".20:25
smosernow that is not checked, and F10 works.20:25
smoserthanks20:25
=== mfo_ is now known as mfo
Eickmeyertseliot: You around? Noticing some discrepencies with nvidia-settings and nvidia-modprobe not updated to 460.22:08

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