IRC logs for #baserock for Friday, 2017-02-03

*** locallycompact has quit IRC00:08
*** locallycompact has joined #baserock06:42
*** lachlan has joined #baserock07:49
pedroalvarezThat error message it's very clear to me08:01
*** franred has joined #baserock08:30
*** paulwaters_ has joined #baserock08:44
*** fay has joined #baserock09:00
*** fay is now known as Guest2737209:01
*** lachlan has quit IRC09:02
*** gtristan has joined #baserock09:13
*** jonathanmaw has joined #baserock09:20
*** jude_ has joined #baserock09:27
paulsherwoodjjardon: blame ybd? :-)09:44
jjardonNot this time! ;)09:44
paulsherwoodjjardon: are you going to FOSDEM?09:48
paulsherwoodawww :)09:51
paulsherwoodme neither09:51
*** ctbruce has joined #baserock10:04
*** ctbruce has quit IRC10:23
paulsherwoodjjardon: do you approve of ?10:24
paulsherwoodit does the manifest thing, but also bumps to 710:25
*** gtristan has quit IRC10:26
jjardonCan you separate the version 7 thing in another Mr, please?10:31
jjardonI will try that branch today10:32
jonathanmawcontinuing my conundrum on rpms, I am not sure what to do when converting a definition's system-integration commands into %post commands in an RPM. (WIP merge request at It looks like all system-integration commands only happen if the -misc products are included in the system that's being assembled.10:33
jonathanmawI am unsure whether RPMs should have all system-integration commands as %post commands in all products10:34
jonathanmawconsidering that RPMs are intended to be installed onto an extant system, rather than assembled once.10:36
*** gtristan has joined #baserock10:55
paulsherwoodjjardon: yup will do11:04
paulsherwoodjonathanmaw: bad day to ask this, i think, many folks en route to brussels11:05
paulsherwoodSotK: can you help?11:05
franredjonathanmaw, I see system-integration commands as a modification of the chroot/image you are going to deploy in your system. Not sure how you can mock up that with rpms, unless you launch these scripts first time the system boots as one off per application, i.e. systemd-unit which runs the operation once and never again11:08
jonathanmawfranred: rpms have a %post section which will execute those commands immediately after the rpm is installed.11:10
jonathanmawrpms tend to use it for running ldconfig11:10
jonathanmawI think I'll have them only in their corresponding product. while it's probably more sensible to have ldconfig only run for the bins and libs products, that's probably something for the definitions to define rather than an educated guess in rpm generation.11:13
jonathanmawplus, it's easier to have it implemented in one way and changed when that doesn't match up than philosophize about all the possibilities first.11:14
franredjonathanmaw, that makes sense to me11:16
* gtristan back... reading backlog... lets talk rpms a bit :)11:21
jonathanmawok, gtristan, what have I missed?11:21
gtristanSo, few problem off the top of my head for using system-integration commands for %post... one minor thing is we lack the ldconfig system-integration command (probably belongs with glibc)11:27
gtristanAnother is that various system integration commands are written with the intention of being run after depending components are installed11:28
gtristanSo for instance, we're gonna run things like fc-cache once when installing fontconfig, that's the natural way to do it with system-integration commands11:28
gtristanbut for an rpm, you want to do it with every font package you install/uninstall11:29
gtristanAnother problem is that we miss out %postun entirely11:29
gtristanIgnoring the %postun cases (which are probably quite important especially for services, for instance when you want to upgrade your system to use a new service which replaces a different one, your old uninstalled service may leave symlink traces in the init system11:31
gtristanIgnoring that... one might be able to safely compound all of the system-integration commands from chunks one depends on... and say that "Everything I depend on must run system integration commands when I'm installed"11:32
gtristanat the expense of some flash wear (redundant running of system integration commands)11:33
gtristanjonathanmaw, but most safe I think, is to port over %post/%postun commands from existing spec files and encode them as separate metadata as system integration commands11:34
gtristanwhile making a statement that system-integration commands are the minimum needed for a deployment of an atomically updating system (with reboots)11:34
*** squirrelking has joined #baserock11:39
jonathanmawgtristan: ok.11:39
*** squirrelking has left #baserock11:39
jonathanmawI'll summarise this conversation in the merge request and then I'm off for lunch11:39
*** jude_ has quit IRC12:11
*** jude_ has joined #baserock12:25
*** ctbruce has joined #baserock12:38
*** gtristan has quit IRC13:19
jonathanmawI guess I should have expected changing the definitions format to have changed all the cache keys (adding rpm-post-install and rpm-post-uninstall fields to chunk definitions). Oh well, time to write the bit that actually uses that information.14:17
jonathanmawhrm, looks like it wasn't a full rebuild. Don't know if I'm relieved or disappointed.14:47
paulsherwoodjonathanmaw: did you add these fields in *commands, or somewhere else?15:32
paulsherwoodcache-key is not psychic - it only includes commands specified in DEFAULTS iirc15:32
jonathanmawpaulsherwood: I added them in the morph-fields section, instead of build-steps15:33
* paulsherwood wonders what morph-fields is15:33
jonathanmawsince they're not just a list of commands, they also specify which product those commands apply to15:34
jonathanmawso they're more like the system-integration field.15:34
paulsherwoodack. i fear cache-key doesn't notice15:34
jonathanmawpaulsherwood: it looks that way15:34
jonathanmawpaulsherwood: chunks should be fine, and in this case the system artifact is fine, too (since it doesn't write the rpms inside the system artifact)15:55
jonathanmawI haven't looked, but perhaps it might be worth checking whether the system-integration commands are included in the system's cache key15:56
jonathanmawalso, \o/
jonathanmawpostinstall and postuninstall added to the rpms15:57
jonathanmawhrm, I'd like to make the rpm assembly fail early and gracefully if it doesn't have both `rpm` and `rpmbuild` in the target sysroot` Looking at sandbox.run_sandboxed(), I don't see how I can get it to inform me on whether `which rpm` failed16:07
jonathanmawit doesn't return anything, and looks like it swallows any exceptions that come from executing the command in the sandbox16:08
jonathanmawis there another command I should use?16:08
jonathanmawor would I be better off searching for the files in the chroot?16:08
* paulsherwood is thinking16:13
*** jjardon_ has joined #baserock16:39
*** ctbruce has quit IRC16:41
*** franred has quit IRC16:46
*** locallycompact has quit IRC17:11
*** Guest27372 has quit IRC17:21
*** jonathanmaw has quit IRC17:29
*** cyndis has quit IRC17:56
*** cyndis has joined #baserock17:56
*** tiagogomes has quit IRC18:36
*** gtristan has joined #baserock19:20
*** gtristan has quit IRC22:32

Generated by 2.15.3 by Marius Gedminas - find it at!