[Bug 1214365] awk not installed by default
https://bugzilla.suse.com/show_bug.cgi?id=1214365 https://bugzilla.suse.com/show_bug.cgi?id=1214365#c5 Eric Blake <eblake@redhat.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(eblake@redhat.com | |) | --- Comment #5 from Eric Blake <eblake@redhat.com> --- (In reply to Dominique Leuenberger from comment #4)
sure - I can add gawk (or /usr/bin/awk, which can be gawek or busybox-awk) as a dep to patterns-devel-base-devel_basis
But as you build your own container: are you even installing this pattern already? I am pretty sure this basic pattern will prove to be 'too large' (as it targets interactive dev work, it also recommends subversion and git)
zypper info --requires --recommends patterns-devel-base-devel_basis
Looking more at the CI setup, here's what I see: https://gitlab.com/libvirt/libvirt-ci/-/blob/master/lcitool/facts/targets/op... says to start with: install: unattended_scheme: autoyast url: http://download.opensuse.org/tumbleweed/repo/oss containers: base: registry.opensuse.org/opensuse/tumbleweed:latest then it runs a project-specific script to pull in additional packages, such as: https://gitlab.com/nbdkit/libnbd/-/blob/master/ci/buildenv/opensuse-tumblewe... which runs: zypper dist-upgrade -y zypper install -y \ autoconf \ ... Right now, patterns-devel-base-devel_basis is not in the list, but I can easily tweak things to explicitly add either a pattern or awk to that list when building for Tumbleweed. In other words, I've already worked around the build failure, but it seems odd that the failure came up in the first place, as every other distro (including OpenSUSE Leap 15) has at least some form of awk installed from the get-go.
Information for package patterns-devel-base-devel_basis: -------------------------------------------------------- Repository : Main Repository (OSS) Name : patterns-devel-base-devel_basis Version : 20170319-11.2 Requires : [18] glibc-devel gcc make bison zlib-devel binutils ncurses-devel makeinfo libtool patch automake m4 autoconf flex gettext-tools cpp gdbm-devel pattern() = basesystem
The libnbd CI setup is using most of these packages, but not quite all of them (for example, not zlib-devel); it is indeed manually pulling in just the packages it needs (gcc, make, glibc-devel, ...) rather than installing a pattern. And I get your point that a CI system runs better when it is as lightweight as possible, which is different from a typical user that really will install a desktop environment setup with the right patterns to pull in the usual defaults. Still, it does not scale as well to make lots of CI projects start having to add explicit dependencies on awk when they have not been doing so in the past. Fortunately, the Autoconf/Automake configure scripts are happy with busybox awk, which is indeed lighter than gawk.
IMHO you're better off explicitly installing awk into your CI container (which seems to be derived from tumbleweed)
Yep, that's what I've done, regardless of the outcome of this bug. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com