/srv/irclogs.ubuntu.com/2020/01/21/#snappy.txt

mupPR # closed: core-build#11, core-build#22, core-build#26, core-build#37, core-build#51, core-build#5803:37
mupPR # opened: core-build#11, core-build#22, core-build#26, core-build#37, core-build#51, core-build#5803:38
mborzeckimorning06:38
zygagood morning07:53
mborzeckizyga: hey07:57
zygahey07:59
zygareading notes from the sprint07:59
pstolowskimorning08:02
mborzeckipstolowski: hey08:03
mborzeckipstolowski: did you have you morning coffee already? :)08:03
mborzeckiwe need to talk08:03
zygagood morning08:03
zygamborzecki: I didn't but I can listen :)08:03
zygaI went outside, the air is foul :/08:03
pstolowskimborzecki: hey, i'm having 2nd cup right now ;), would like to have a chat about the panic?08:08
mborzeckipstolowski: yup, standup HO?08:09
pstolowskimborzecki: sure, coming08:09
mborzeckizyga: ^^08:09
zygaup08:09
mupPR snapd#8026 opened: data/selinux: workaround incorrect fonts cache labeling on RHEL7 <Simple πŸ˜ƒ> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/8026>08:41
mborzeckipstolowski: ^^08:41
sdhd-saschahi,08:43
sdhd-saschadoes anybody has experience with `build-snap` and `pkgconf` inside of the build-snap ?08:43
sdhd-saschaIn the build- & prime-stage of the snap with the *.pc there is : `prefix=/root/stage/usr`08:43
sdhd-saschaIn the build stage, where the `build-snap` is used. There is this inside of *.pc: `prefix=/build/wlroots/stage/usr`08:43
sdhd-saschaInside of the multipass VM - there is no directory "/build/wlroots".08:43
sdhd-saschaNow, of course, `meson snapbuild` has trouble to resolve.08:43
zygasdhd-sascha: sorry, doesn't ring a bell08:46
zygawhat is pkgconf and build-snap08:46
sdhd-saschazyga: pkg-config command - the new spelling08:46
zygaaha08:46
sdhd-saschazyga: build-snap: i mean a snap which includes only library and headers08:47
sdhd-saschaI know, that snapcraft replaces the prefix inside of *.pc (pkg-config files)08:47
sdhd-saschaThen i have a second snap, which want to use the library-snap.08:47
sdhd-saschaIn the second snap is `prefix=/build/wlroots/stage/usr``08:48
sdhd-saschazyga: It's okay, i can figure it out by myself.08:48
zygasdhd-sascha: good luck, sorry I'm not of much help - I rarely use snapcraft myself08:49
sdhd-saschazyga: thank you :-)08:50
mborzeckizyga: a replacement for pkg-config08:50
* sdhd-sascha i wonder, if it's worth the time. And i should search some other task to fix...08:50
mborzeckiafaik there should be a symlink as pkg-config too08:51
zygamborzecki: btw, do you know more08:51
zygawhy is a replacement called nearly the same08:51
zygais the upstream the same?08:51
mborzeckizyga: didn't investigate much other than what was discussed on arch dev mailing lists https://lists.archlinux.org/pipermail/arch-dev-public/2018-May/029252.html08:52
mborzeckizyga: but it's supposed to be maintained (not necessarily true for pkg-config though)08:52
mborzeckizyga: btw. seems like fedora may have more info https://fedoraproject.org/wiki/Changes/pkgconf_as_system_pkg-config_implementation08:53
zygathanks, that's interesting08:54
mborzeckizyga: haha and our friend Eighth_Doctor was involved :P maybe you could poke him08:54
sdhd-saschahey, is the snap installation directory fixed ? Should it be always /snap/<snapname>/  ? Also for build-snaps ? Or is this not a must08:55
zygasdhd-sascha: snaps should not have to know about where they might be installed, that's the theory08:55
zygasdhd-sascha: a snap can find its assets and data using $SNAP and $SNAP_DATA environment variables08:55
Eighth_Doctormborzecki: most pkgconfig files in Debian/Ubuntu are broken08:56
zygasdhd-sascha: many snaps assume they are installed in /snap/$SNAP_NAME/current/ and use that as quasi-prefix08:56
sdhd-saschazyga: well, that means, that on installation snapd has to give the snap some ENV to the *.pc files08:56
Eighth_Doctorthe --prefix capability isn't going to work because a lot of pkgconfig files are not correctly written for prefixes to work correctly08:56
mborzeckiEighth_Doctor: hah, that's reassuring08:56
zygasdhd-sascha: why?08:56
zygasdhd-sascha: are you shipping .pc files in snaps?08:57
Eighth_Doctorand because Debian/Ubuntu don't actually use pkgconfig for dependencies or any reasonable validation, they never catch that08:57
* zyga doesn't follow08:57
sdhd-saschaEighth_Doctor: you mean, that i should ignored the prefix ? And look a `meson` why the path isn't resolved ?08:57
Eighth_Doctormborzecki: when we switched from deb/fdo pkg-config to pkgconf, we caught *a lot* of broken pkgconfig files08:57
zygaEighth_Doctor: to be fair, pkgconfig has limited usefulness if everything is in the usual locations and you need only -lfoo to link to foo (and nothing else)08:57
zygaso I don't blame anyone for not using something when the advantage is non-existent most of the time08:57
Eighth_Doctorzyga: ironically, the reason why that is largely rests at pkg-config's own broken implementation of --prefix08:58
zygaEighth_Doctor: it only shows that .pc files need a better validator/linter08:58
zygaEighth_Doctor: or need to be discouraged unless required08:58
Eighth_Doctorit doesn't support it correctly, and iirc, bug reports for it have gone unanswered for a while08:58
sdhd-saschaEighth_Doctor: i have fun with `wayland-scanner` here: `protocols/meson.build:51: WARNING: Custom target input '//root/parts/sway/install/root/parts/sway/install/build/wlroots/stage/usr/share/wayland-protocols/unstable/xdg-output/xdg-output-unstable-v1.xml' can't be conv08:58
sdhd-saschaerted to File object(s).`08:58
Eighth_Doctorsdhd-sascha: I dunno, is that path valid?08:59
sdhd-saschaEighth_Doctor: no, of course08:59
Eighth_DoctorI don't work with snapcraft either, I know it rewrites pc files sometimes, I don't know how good it is at it09:00
Eighth_Doctorzyga: pkgconf has a pc validator internally09:00
Eighth_Doctorbut for political reasons, Debian refuses to switch default implementations09:00
sdhd-saschaEighth_Doctor: i will debug my case. And can report later what was the failing point ;-)09:01
Eighth_Doctor(the creator of pkgconf used to be a Debian Developer who tried to replace dpkg with a better package manager, and went on to create Alpine's apk after their prototype was rejected by Debian)09:01
Eighth_Doctorthis is a story that would be near and dear to Gustavo's heart, as he tried to get Debian and Ubuntu to replace apt with smart nearly 15 years ago09:02
Eighth_Doctormborzecki, zyga: ^09:02
zygathat's interesting09:03
zygaI guess FOSS is never about merit09:03
Eighth_Doctorwell, anything involving people isn't about merit09:03
Eighth_Doctorit's always about people09:03
zygamore about soft skills, knowing people and just sticking to it09:03
zygayeay09:03
zygayeah09:03
Eighth_Doctorat this point, I think the only reason pkgconfig is maintained is because Debian uses it09:04
Eighth_DoctorI switched Fedora, Mageia, and openSUSE09:04
Eighth_DoctorArch, OpenMandriva, Yocto, and Buildroot have followed09:04
sdhd-saschaEighth_Doctor: I know pkg-config mostly from gnome sources09:05
Eighth_DoctorOpenWrt recently changed too09:05
Eighth_Doctorsdhd-sascha: fdo pkg-config originally came from GNOME09:05
sdhd-sascha:-)09:05
* zyga notices kubuntu focus laptop09:06
zygahow can anyone want a 1080p 16" screen?09:06
zygamy 15" CRT had better pixel density09:06
Eighth_Doctorzyga: the greatest irony is that pkg-config was invented by a Debian Developer to make it easier to create dev dependencies across libraries, but the debian package manager people refuse to use the data for dependency generation for dev packages09:06
* sdhd-sascha just remembering `gnome 1` 09:09
* Eighth_Doctor remembers when gnome used to have as large of a sprawl of libraries as KDE does today09:10
sdhd-sascha:-D09:11
pstolowskion a side note, coincidentally, the author of the original pkg-config is active on this channel ;)09:13
zygaoh, who is it?09:13
pstolowskizyga: jamesh09:13
zygaha, such a small planet09:13
zyga(shame it's going up in smokes)09:13
pstolowskitep09:14
pstolowskiyep09:14
jameshmy original version was in shell though09:14
Eighth_Doctoryep, iirc, dan nicholson rewrote it into C09:15
zygajamesh: I think it's fair to say everything starts as shell :)09:15
jameshthe one that got popular was a C rewrite by Havoc Pennington09:15
Eighth_Doctoroh Havoc did it09:15
Eighth_Doctorhey!! it's someone I know! :D09:15
Eighth_Doctorand I can even guess why he did it!09:15
Eighth_Doctorprobably to reduce the number of ugly shell things that rpm depended on when the pkgconfig dependency generator was added to rpm09:16
Eighth_Doctor(for those who don't know, Havoc was a base system developer on Red Hat Linux, and was involved in the early days of developing Fedora with Fedora Core)09:17
jameshthere was a similar general purpose script called "gnome-config", which could take a list of packages and produce appropriate cflags and libs09:17
jameshit worked by combining the output of the relevant "*-config" scripts for those libraries09:18
Eighth_Doctoralso... Havoc created freedesktop.org :D09:18
jameshwhat pkg-config brought to the table was having a single script driven by data files09:18
Eighth_Doctoryes09:18
* sdhd-sascha i like the idea of pkg-config :-)09:20
Eighth_Doctormost people do :D09:21
jameshHere's that ancient script: https://gitlab.gnome.org/Archive/gnome-libs/blob/master/gnome-config.in -- it looks like it can be extended via data files, but it primarily had special handling for most modules09:23
sdhd-saschajamesh: :-)09:26
Eighth_Doctorhuh, TIL that Erik Troan was the one who first rewrote alternatives from Perl to C09:26
Eighth_Doctorbut of course, that version never propagated to Debian, who in turn took a Perl implementation of chkconfig from SUSE instead of the C one from Red Hat and stuffed it into Debian09:27
Eighth_Doctor(interestingly, the sources for alternatives in RH-ish systems is bundled with chkconfig because it's essentially a single freestanding C file)09:28
Eighth_DoctorI think a decade or so later, Debian rewrote their own alternatives implementation from Perl to C09:29
Eighth_Doctorbut it still retains its dependency on dpkg09:29
sdhd-saschaThis: `wl_protocol_dir = wayland_protos.get_pkgconfig_variable('pkgdatadir')`09:30
sdhd-saschaAnd this goes wrong:09:30
sdhd-sascha```09:30
sdhd-saschaprefix=/build/wlroots/stage/usr09:30
sdhd-saschadatarootdir=${prefix}/share09:30
sdhd-saschapkgdatadir=${pc_sysrootdir}${datarootdir}/wayland-protocols09:30
sdhd-sascha```09:30
* __chip__ waves09:31
zygahey __chip__09:36
__chip__zyga: sup09:37
zyga__chip__: mosly ok, some issues to be discussed more next week09:37
zygahow's the sprint?09:37
__chip__zyga: awesome09:38
__chip__zyga: ffantastic09:38
__chip__zyga: beeeoootiful09:38
* __chip__ stops09:38
zygaI see the wine was good :D09:38
mborzecki__chip__: got some notes regarding the segfault09:40
mborzecki__chip__: i'll push a proposed fix, please bring it up with samuele09:40
__chip__mborzecki: i commented on that pr09:40
mborzecki__chip__: just seen that, cool09:41
mupPR snapd#8026 closed: data/selinux: workaround incorrect fonts cache labeling on RHEL7 <Simple πŸ˜ƒ> <Created by bboozzoo> <Merged by zyga> <https://github.com/snapcore/snapd/pull/8026>09:43
__chip__mborzecki: basically all those AddTask in Update* are suspect09:46
__chip__mborzecki: but we need to look09:46
__chip__it's some gnarly code :)09:46
mborzecki__chip__: updated the standup doc with more context09:51
__chip__mborzecki: tks09:51
zygamborzecki: is https://github.com/snapcore/snapd/pull/7614 is green, do you think it is something you could review this week?10:27
mupPR #7614: cmd/snap-confine: implement snap-device-helper internally <Created by zyga> <https://github.com/snapcore/snapd/pull/7614>10:27
mborzeckizyga: yes, want to push a proposal for the aliases thing, and then look at ian's boot pr first10:28
zygaok10:28
zygabrb, need coffee11:04
zyga(real not decaf)11:04
zygamaking small progress on older PRs11:04
zygashould have all green week :)11:04
zygabrb11:51
mupPR snapd#8023 closed:  devicestate: encryption regardless of grade <Created by mvo5> <Closed by mvo5> <https://github.com/snapcore/snapd/pull/8023>11:55
mupPR snapd#8027 opened: snap: disable auto-import in uc20 install-mode <UC20> <Created by mvo5> <https://github.com/snapcore/snapd/pull/8027>11:56
threshhello, is it a known issue that telegram-desktop snap cant open URLs when linked?12:29
threshI've got 'user-open error: cannot open supplied URL' in ~/.xsession-errors whenever I click on one12:29
=== ricab is now known as ricab|lunch
zygathresh: I don't believe so12:54
zygabut perhaps mborzecki knows more, he was patching it recently12:54
mborzeckihmm hmm?12:55
zygamborzecki: telegram-desktop and xdg-open12:55
mborzeckiijohnson: meh, can't push to #800112:55
mupPR #8001: boot: enable UC20 kernel extraction and bootState20 handling <UC20> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/8001>12:55
ijohnsonmborzecki: sorry the box wasn't ticked12:57
ijohnsontry again, I just checked the box12:57
mborzeckiijohnson: cool :)12:57
mborzeckiijohnson: and pushed12:58
mborzeckizyga: thresh: that's a message from userd, looks like it actually ran xdg-open on the host, but that exited with an error12:58
mborzeckithresh: can copy the url, and then in a separate shell try to run `xdg-open <URL>` (that's what snap userd did)?12:59
zygasmall break13:01
sdhd-saschahmm, just remembering about gentoo. And wondering, if snap supports gentoo's build system ? can a gentoo package be build with snapcraft ?13:03
mborzeckisdhd-sascha: snap or snapcraft?13:03
zygathat is a snapcraft question13:03
zygaprobably no13:03
mborzeckisdhd-sascha: for snapd on gentoo, iirc zyga had an overlay13:03
zygabecause of little general interest in gentoo13:04
sdhd-saschazyga: right ;-) i'm just asking to start to think about it. (do not mention)13:04
sdhd-saschazyga: sorry - we previously bootstrap winXp machines with a custom gentoo13:05
sdhd-saschai like the concept to use compiler-options to go through all sources (e.g. snaps)13:06
threshmborzecki, huh, I feel embarassed a bit since I didnt have xdg-utils installed on this laptpo.13:07
threshit worked right after apt install'ing it.  thanks a lot!13:08
sdhd-saschamborzecki: was just an idea, to use `snapcraft` to build a gentoo package13:08
sdhd-sascha;-)13:09
mborzeckithresh: that explains why it didn't work ;)13:10
zygathresh: interesting, missing dependency or a weak dependency?13:10
threshdoesnt look like snapd package depends/suggests/recommends it13:12
thresh(i'm on debian)13:12
zygahmm, not godo13:12
zyga*good13:12
threshhttps://packages.debian.org/bullseye/snapd <- I'm on testing13:13
Trevinhozyga: hi, I was looking a way to run a snap in gdb as user, I saw https://github.com/snapcore/snapd/pull/6825 (and previous), but is there anything going on for that, or how can i do that?13:32
mupPR #6825: cmd: rework `snap run --gdb` to work as user <β›” Blocked> <Created by mvo5> <Closed by pedronis> <https://github.com/snapcore/snapd/pull/6825>13:32
zygaTrevinho: I'm afraid I don't know13:32
zygaI think it died because of ENOTIME13:32
Trevinhozyga: ok, thanks anyways13:33
zygamborzecki: I'm going for a walk with Bit because kids don't want to13:52
zygaI'll join from my phone13:52
=== ondra_ is now known as ondra
sdhd-saschahey, Is there a way to only install packages, which would by: "--no-install-recommends".14:03
sdhd-saschaOr can i blacklist apt-packages inside `build-packages` ?14:03
=== ricab|lunch is now known as ricab
mborzeckizyga: looks mostly ok, but we probably need a wrapper for dprintf() https://github.com/snapcore/snapd/pull/7614#pullrequestreview-34591313714:23
mupPR #7614: cmd/snap-confine: implement snap-device-helper internally <Created by zyga> <https://github.com/snapcore/snapd/pull/7614>14:23
=== heather1 is now known as hellsworth
sdhd-saschaI have to write down a decision table. Classic-mode has no gnome-extension. Strict-Mode is lesser Yaml with it...14:37
ijohnsonpstolowski: I'm looking at a uc20 spread failure and it seems the upower snap is not found, is that expected? is the upower snap supposed to be in the store? I can't seem to find that snap anywhere15:41
ijohnsonpstolowski: I only ask you because I seem to remember you used that snap in one of your recent hook permissions spread tests15:41
pstolowskiijohnson: that's very weird, https://github.com/snapcore/snapd/pull/7871 passed15:46
mupPR #7871: tests: add spread test for hook permissions <Created by stolowski> <Merged by stolowski> <https://github.com/snapcore/snapd/pull/7871>15:46
pstolowskiijohnson: fwtw interfaces-upower-observe test needs it as well15:46
ijohnsonpstolowski: yes that test failed too15:47
pstolowskiijohnson: huh15:47
ijohnsonmaybe I should ask in the store if there's some sort of outage happening or something15:47
pstolowskiijohnson: maybe something has changed. i cannot find this snap anymore as you said15:47
ijohnsonyeah it's very odd15:48
ijohnsonpstolowski: I asked in the store team's channel15:48
ijohnsonpstolowski: it seems the snap has been unpublished as per https://forum.snapcraft.io/t/upower-snap-deprecation/1477215:51
pstolowskiijohnson: :(15:51
ijohnsonpstolowski: since this will now break master I will push up a "test-snapd-upower" snap and convert all the tests to use that snap15:51
pstolowskiijohnson: oh that's super nice, thank you15:52
pstolowskiijohnson: i was already crushed about that hook-permissions test becoming useless15:52
ijohnsonyeah :-(15:52
cjp256if I have environment.PATH = $SNAP/somepath:$PATH, does snapd expand that before invoking command?16:30
ijohnsoncjp256: it should16:37
cjp256I have a classic snap  that directly invokes a python script  (#!/usr/bin/env python3), and PATH seems to just take on the default path.  If it uses a shell script (#!/bin/sh), $PATH applies as expected.  I'm not sure the cause of the change of behavior.16:42
sdhd-saschacjp256: i'm just not on keyboard. but send me the snap. maybe i look tomorrow or later ?16:50
sdhd-saschadid you mean `subprocess.run` ? And the env is not as excepted ? Did you use some `extension` or other preloads ?16:51
ijohnsoncjp256: hmm strange, does it work if you don't use env and execute python3 directly instead?16:51
cjp256i have been playing around with the various options, though i gotta jet for a bit.  I'll come back later with a small example :) thanks!16:53
* sdhd-sascha since zyga says, that snapcraft & snapd should handle every preload stuff. I'm too unsure if i should be worried if the env is unexpected16:56
zygamborzecki: thank you, will do16:56
mupPR snapd#8028 opened: tests: use test-snapd-upower instead of upower <Test Robustness> <⚠ Critical> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/8028>17:27
zygaijohnson: nice18:08
ijohnsonzyga: thanks18:08
ijohnsonzyga: I still want to have a separate "test-snapd-snaps" repo with all these test snaps that are complicated enough to not build locally from the test that just rebuilds the snaps every so often but mostly so it's easier to keep track of these snaps we use in the tests18:10
zygayeah, I think it would be good to get out of the manual pipeline18:10
zyganot sure how to structure it18:10
zygaperhaps a repo is the way to goi18:10
ijohnsonI think a repo with all the snaps is more scalable than a repo per snap, since we have many of these snaps I think18:10
zygayeah, I agree18:11
zygait would be a problem if they were asymmetric in compile cost18:11
zygabut it's mostly lots of the same18:11
ijohnsonyes most of these are pretty similar18:12
sdhd-saschazyga: if you have some task, which i could help. Just ask ;-)18:24
zygasdhd-sascha: hmmm18:25
ijohnsonuggghh stupid upower snap needs new dependencies18:26
ijohnsonI see why tony deprecated this snap :-(18:26
zygasdhd-sascha: do you prefer coding or review?18:27
sdhd-saschazyga: i'm from starting more coder... but at my current level, review, would also be okay ;-)18:28
sdhd-saschazyga: i'm fix things by review, you know ;-)18:29
zygasdhd-sascha: I don't know how you could help right now18:42
zygasdhd-sascha: drive what you want to drive, learn, work with us for reviews/advice and have fun :)18:43
zygaI guess that's how most FOSS works18:43
sdhd-saschazyga: its okay. I didn't go. I love linux and debian. So i love ubuntu too ;-) I know i can help, if i'm expert in som language. But not if i can many language ;-)18:47
zygasdhd-sascha: are you a debian developer or maintainer?18:47
zygasdhd-sascha: we could use help with debian maintenance (always)18:47
sdhd-saschahmm, zyga: i could - but i'm don't - why? In debian, it's very difficult to be diplomatic ;-)18:49
zygaI asked mainly to check if you have commit access to various places18:49
sdhd-saschazyga: i'm with you - about the social-skills, what you say today ;-) +118:50
sdhd-saschazyga: yesterday, i wonder about, how to write a cover-letter for canonical ... but tomorrow, or some time - ... i will try again ;-)18:51
sdhd-saschahey, didn't anybody see `mvo` these days ?18:54
ijohnsonsdhd-sascha: mvo is in south africa this week at a company sprint and is generally unavailable this week18:54
ijohnsonsdhd-sascha: mvo will be back next week tuesday or wednesday (not sure how much time he's taking off after the sprint)18:55
sdhd-saschaijohnson: cool :-) wish him all the best. could him only help by one task, yet18:55
sdhd-saschaWhat is the sprint ? i talk about juju and kubernetes. And that these things are bundeled with snap ;-)18:56
ijohnsonsdhd-sascha: it's a company wide sprint, discussing business planning things for canonical18:57
ijohnsonjuju and kubernetes are sometimes bundled as snaps; have you used them as snaps before?18:57
sdhd-saschaijohnson: ok. (Today, i talk with alisson about my old company. But couldn't go in detail. I'm sure you all could help ;-) )18:58
sdhd-saschaijohnson: yes. i tried conjure-up, to a time, where canonicals-kubernetes has problems with apparmor ... sorry. But it's great to use this `python` ncurses widget ...18:59
sdhd-saschaI love the idea... But then, in my last company, i fixed rancher, that the zfs utils are included19:00
sdhd-saschaSoon, i will use manual-juju-machines or maas.. i will see19:01
sdhd-saschaijohnson: i found it... it was again, just a silly thing: https://github.com/sd-hd/hyperkube/commit/5a7acceeedccf41d45210004daa7eb557ebc77b719:03
sdhd-saschazyga: sorry - it's late... but could you tomorrow look at `clean-install` from this repo ?19:04
zygasdhd-sascha: can you tell me more?19:05
zygaI'm not a docker person19:05
sdhd-saschazyga: it's just a wrapper around `apt-get install --no-recommends` ... it would make sense for snap ?19:05
zygasdhd-sascha: I honestly don't know19:10
zygaperhaps tomorrow with fresh head19:10
jdstrandsdhd-sascha: if canonical kubernetes has trouble with apparmor, I suggest filing a bug. perhaps joedborg could provide the link19:11
sdhd-saschazyga: i'm too ;-) ( hope i'm not so disturbing )19:12
sdhd-saschajdstrand: yes, you are right. but this was a time, where i didn't talk so much with you ;-) sorry19:12
pokkIs there anything special I should know about timers for systemd on ubuntu core? I'm really not getting it to work. my service runs once and then no more even with a OnCalendar=:19:12
joedborgjdstrand: to the snap repo?19:12
jdstrandjoedborg: I have no context. sdhd-sascha may have lost the context but can comment19:13
sdhd-saschai will try it soon. jdstrand: i figured out, that it was the zfs-drivers again. Like in rancher ;-)19:13
* ijohnson is back from lunch19:17
ijohnsonsdhd-sascha: re: clean-install do you mean when building snaps you want snapcraft to not include recommended debian packages?19:19
ograijohnson, oh, arent you in CPT ?19:23
ijohnsonogra: nah19:23
zygaogra: are you?19:23
ogranext week19:24
ograsales planning etc ...19:24
sdhd-saschaijohnson: no, no - `clean-install` is really just a wrapper from google for `apt-get` with least possible packages...19:25
ijohnsonsdhd-sascha: sure, but how does that apply to snaps?19:26
sdhd-saschaif, some snap needs libXYZ ... then i don't want ...19:26
ograsdhd-sascha, you could add an override-pull that mangles the hosts apt config19:27
ijohnsonsdhd-sascha: snaps are meant to be self-contained so they don't have dependencies the same way that a debian package does. if a snap application needs libXYZ, then libXYZ will be bundled inside the snap (except for a few exceptions)19:27
ogralike you'd do when addint a ppa19:28
ogra*adding19:28
ograijohnson, well, recommands are typically optional dependencies ... not necessarily needed to actually *run* the app (but likely needed if you want the full feature set)19:29
ogra*recommends19:29
sdhd-saschaijohnson: are you sure, that when i install `lxterm` inside a snap. That only packages needed, are installed ? I'm not sure. I'm don't know19:29
ijohnsonsdhd-sascha: I don't know about the lxterm snap, but yes that is how snaps are supposed to be designed is that all of their dependencies are included inside the snap19:30
sdhd-sascha:-)19:30
ogra(IIRC lubuntu and xubuntu are both setting "APT::Install-Recommends "false";" and  "APT::Install-Suggests "false"; " in their apt.conf by default ... apps work, install is smaller but to get all features from all apps you'd have to install additional packages19:32
ogra)19:32
sdhd-saschaogra: cool :)19:32
bluesabreI don’t think we’re doing that in Xubuntu19:33
bluesabreHence the 1.7gb image these days :(19:33
ograso if size is really a concern it is surely possible to mangle the apt config by droping someting into the /etc/apt.conf.d/ dir, run apt update and only get the essential deps19:33
ograbluesabre, oh, then i remember that wrongly, i thought you did19:33
ograi doubt the benefit inside a snap is really big anyway ... given the squashfs is compressed and all ...19:34
ograbut if your app pulls in all LaTex packages (which is probably in the area of 100+ MB) just for some exotic feature it probably makes sense19:36
diddledanogra, doesn't snapcraft do deb dependency tree generation internally - i.e. not using apt/apt-get/dpkg so that config option probably has little effect?19:46
ogradoes it ? i thought it calls out to apt19:52
ograi know it doesnt run maintainer scripts of the packages .... but i thought dependency resolution still comes from apt19:52
sdhd-saschadiddledan: really?19:53
sdhd-saschadiddledan: you mean: dpkg -i ?19:53
diddledanmaybe I'm mistaken :-)19:53
diddledanI figured it was doing it all internally to not run those maintainer scripts and such19:54
sdhd-saschai don't know ... but this way - would be too much code, or ?19:54
sdhd-saschahmm19:54
* sdhd-sascha just talked to my old bosses - to use ubuntu for everything (sometimes i'm so stupid... - but i love to see, that a laboritory company use linux ! )20:00
sdhd-saschazyga: i've just seen some logs from my mobile-phone... could you send me your irc-logs ?20:04
mupPR snapd#8029 opened: tests: use test-snapd-upower instead of upower <Test Robustness> <⚠ Critical> <Created by anonymouse64> <https://github.com/snapcore/snapd/pull/8029>21:23
cjp256ijohnson: wrt the PATH being odd, i have a small test case: https://github.com/cjp256/pedrolino with a script to reproduce quickly enough: https://github.com/cjp256/pedrolino/blob/master/reproducer.sh21:38
ijohnsoncjp256: nice I'll take a look21:38
cjp256the simplest case, printpath is just a C binary that prints the path.  it does not see the expanded $PATH.  However, the wrapper (shell script) and shell script example both do have expanded paths...21:39
cjp256https://github.com/cjp256/pedrolino/blob/master/snap.yaml is the corresponding snap.yaml21:40
ijohnsoncjp256: hmm yeah so I can reproduce your bug21:47
ijohnsonto be clear the issue is that the printpath app's $PATH doesn't include $SNAP/other-path correct ?21:47
cjp256sorry I left that bit in there from another test and removed it.  PATH: $SNAP/usr/bin:$PATH21:48
cjp256(i was just testing per-app environment vs per-snap environment)21:48
ijohnsoncjp256: to be clear, this is basically what you see as well: https://pastebin.ubuntu.com/p/r3qzGh92K3/ right?21:49
ijohnsonI built the snap you linked to and used the resulting snap21:49
cjp256ijohnson: yeah21:50
cjp256i'd expect all the PATHs to be the same?21:50
ijohnsoncjp256: yes I would expect them all to be the same as well21:50
ijohnsonit's possible that classic confinement has something to do with this21:50
ijohnsondid you try just changing confinement for the same snap to be strict and see what happens?21:51
cjp256strict looks fine fwict21:51
ijohnsonwell congratulations I think you found a real bug! (until someone comes along and says that this is intended behavior from some random decision 8 years ago :-) )21:53
mupPR snapd#8030 opened: tests: add a command-chain service test <Simple πŸ˜ƒ> <Created by chipaca> <https://github.com/snapcore/snapd/pull/8030>21:55
cjp256ijohnson: lol, ok well I'll just punt this LP bug in snapd's general direction ;D22:02
ijohnsonsounds good to me!22:02
sdhd-saschahey, guys - only work this much - if it works for you ;-)22:15
sdhd-saschazyga: i don't know how.. but you listen, and then you was the first who answer (i know that many people write ;-) )22:41
zygasdhd-sascha: I try to, though I am a flawed human as all of us :)22:41
* zyga tries to put lucy to bed22:42
sdhd-sascha:)22:42
* sdhd-sascha hope you understand - i like you, as you are ;-)22:42
sdhd-saschahey, ijohnson: could i learn something from you? i know i'm different. And sometimes slow ... But i want still help -- hey, give me a chance ;-)22:49
sdhd-saschawell... okay .. i have to lean `golang`...22:50
sdhd-saschar22:51
sdhd-saschaijohnson: did you think i have a chance to work for canonical ? or what did i wrong ?23:03
ijohnsonsdhd-sascha: we're really happy to have you contributing to the project, it's just we're all a bit busy at the moment and it's difficult sometimes to find things that are easy for new folks to work on. This week is also unfortunate timing because our main manager and architect are at a company sprint so they are largely unavailable this week. I'm sure that next week when Michael is back that he will have some more23:04
ijohnsonthings you could work on.23:04
sdhd-saschahey, then give me a half time job ;-) i love it23:05
ijohnsonsdhd-sascha: regarding whether you have a chance to work at Canonical or not, unfortunately that is not a question for me to answer as I am not a manager here, but I strongly encourage you to talk with Michael, and IMHO I think you're already demonstrating a willingness and ability to work on things so that can only work to your benefit.23:07
sdhd-saschaijohnson: thank you :-)23:07
ijohnsonsdhd-sascha: but also it's important to understand that the company is not always hiring on every team, I'm not sure if we have openings on the snapd team or not right now23:07
ijohnsonMichael really is the best person to talk about that and I'm sure he'd be happy to set up a meeting for you next week23:08
sdhd-saschaijohnson: that's ok. snapd was the basic ;-023:08
sdhd-sascha;-)23:08
ijohnsonAlso, yes learning more about coding in Go is a great idea considering snapd is mostly a Go project23:08
sdhd-saschai told mvo that without "secomp" (which told zyga) and without apparmor... there was no conjure-up `juju`23:09
sdhd-saschaijohnson: to learn some `common` language is ok... to learn brainfuck ... is not okay !!!23:10
sdhd-saschaijohnson: without `zyga` i was some days behind here !!! really !!23:11
sdhd-saschaijohnson: for me the language doesn't matter. (i will talk about the language... ) but make the best of the existing ;-)23:13
sdhd-saschaijohnson: and you can trink some beer with me ;-)23:14
ijohnsonsdhd-sascha: one other thing I just wanted to mention is that most of the Snapd team is EU based and so it gets quite late for them around this time and they won't be around on IRC (even if they are logged in). I'm based in the US so I'm around at this hour but not many of the others are around at this hour (and if they are they probably shouldn't be :-) )23:14
sdhd-saschaijohnson: i inspect them ;-) it's cool to know the time .. and told my wife... where i have to work...23:15
sdhd-saschai read the jobs from MAAS too.. They are often in American23:16
sdhd-saschaSo i didn't work on MAAS23:17
sdhd-saschaI'm stopped work on23:17
sdhd-saschahey. ijohnson: sorry, that sometimes i'm so a dumpnut23:18
sdhd-saschaijohnson: what time is at yours ?23:22
sdhd-saschahey, in the last weeks. I have watched where you come from23:37
sdhd-saschawhen is your evening ? ijohnson23:37
sdhd-sascha`this can't be true, to download a kernel...` *maybe the calced bitcoins* ... ?23:41
sdhd-saschaijohnson: ogr... sleeps ;-) And your english is perfect ;-)23:43
ijohnsonsdhd-sascha: I'm in Central US TZ, so it's basically EOD for me right now23:44
sdhd-saschaWHAT ? EOD ? You mean NY23:45
sdhd-saschaOr, i'm wrong again23:46
sdhd-saschadidn't know anything again;-) ijohnson23:46
sdhd-saschamy, ex - with my son - :-( - was in florida...23:47
ijohnsonEOD -> End of the Day23:47
sdhd-saschaoh, thank you... i understand23:47
sdhd-saschagood night23:48
sdhd-saschaijohnson: and again... sometimes i write on weekend (i day after i regret)23:56
ijohnsonsdhd-sascha: it's okay, just wanted to let you know so you didn't think folks were ignoring you, just that they're not around (even if they're still logged into IRC)23:58
ijohnsonHave a good night23:59

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