Skip to content

CI is totally broken - it wants to install sid's chrony, which requires adduser to support --comment #125

Closed
@nyetwurk

Description

@nyetwurk

To build this plugin, we need an experimental version of protobuf-compiler.

We do this by importing it from debian sid

https://github.com/Blockdaemon/solana-accountsdb-plugin-kafka/actions/runs/5837642721/job/15833479875#step:4:1233

Note that chrony is being overwritten by sid's chrony

The following packages will be upgraded:
  binutils binutils-common binutils-x86-64-linux-gnu chrony fontconfig-config
  gcc-13-base gir1.2-gdkpixbuf-2.0 gir1.2-secret-1 imagemagick-6-common
  libbinutils libbrotli1 libc-bin libc-dev-bin libc6 libc6-dev libc6-i386
  libcairo-gobject2 libcairo-script-interpreter2 libcairo2 libctf-nobfd0
  libctf0 libdjvulibre-dev libdjvulibre-text libdjvulibre21 libfftw3-double3
  libfontconfig1 libfreetype6 libgcrypt20 libgdk-pixbuf2.0-0
  libgdk-pixbuf2.0-bin libgdk-pixbuf2.0-common libgfortran5 libglib2.0-0
  libglib2.0-bin libglib2.0-dev-bin libgmp-dev libgmp10 libgmpxx4ldbl
  libgnutls30 libgpg-error0 libharfbuzz0b libjansson4 libltdl-dev libltdl7
  libmagickcore-6-arch-config libmagickcore-6-headers libmagickcore-6.q16-6
  libmagickcore-6.q16-6-extra libmagickwand-6-headers libmagickwand-6.q16-6
  libmount1 libp11-kit0 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0
  libsecret-1-0 libselinux1 libstdc++6 libwebpmux3 libwmf0.2-7 libxft2
  libzstd-dev libzstd1 locales p11-kit-modules tzdata
Preparing to unpack .../chrony_4.4-1_amd64.deb ...
Failed to stop chrony-wait.service: Unit chrony-wait.service not loaded.
Failed to stop chronyd-restricted.service: Unit chronyd-restricted.service not loaded.
Unpacking chrony (4.4-1) over (3.5-6ubuntu6.2) ...

During --configure something is calling adduser .. --comment but --comment is not supported in ubuntu's addduser

Setting up chrony (4.4-1) ...
Installing new version of config file /etc/apparmor.d/usr.sbin.chronyd ...
Installing new version of config file /etc/default/chrony ...
Installing new version of config file /etc/dhcp/dhclient-exit-hooks.d/chrony ...
Installing new version of config file /etc/init.d/chrony ...
Installing new version of config file /etc/network/if-post-down.d/chrony ...
Installing new version of config file /etc/network/if-up.d/chrony ...
Installing new version of config file /etc/ppp/ip-down.d/chrony ...
Installing new version of config file /etc/ppp/ip-up.d/chrony ...
Unknown option: comment
adduser [--home DIR] [--shell SHELL] [--no-create-home] [--uid ID]
[--firstuid ID] [--lastuid ID] [--gecos GECOS] [--ingroup GROUP | --gid ID]
[--disabled-password] [--disabled-login] [--add_extra_groups]
[--encrypt-home] USER
   Add a normal user

adduser --system [--home DIR] [--shell SHELL] [--no-create-home] [--uid ID]
[--gecos GECOS] [--group | --ingroup GROUP | --gid ID] [--disabled-password]
[--disabled-login] [--add_extra_groups] USER
   Add a system user

adduser --group [--gid ID] GROUP
addgroup [--gid ID] GROUP
   Add a user group

addgroup --system [--gid ID] GROUP
   Add a system group

adduser USER GROUP
   Add an existing user to an existing group

general options:
  --quiet | -q      don't give process information to stdout
  --force-badname   allow usernames which do not match the
                    NAME_REGEX[_SYSTEM] configuration variable
  --extrausers      uses extra users as the database
  --help | -h       usage message
  --version | -v    version number and copyright
  --conf | -c FILE  use FILE as configuration file

dpkg: error processing package chrony (--configure):
 installed chrony package post-installation script subprocess returned error exit status 1

On debian, adduser looks like this

$ /usr/sbin/adduser --help
adduser [--uid id] [--firstuid id] [--lastuid id]
        [--gid id] [--firstgid id] [--lastgid id] [--ingroup group]
        [--add-extra-groups] [--shell shell]
        [--comment comment] [--home dir] [--no-create-home]
        [--allow-all-names] [--allow-bad-names]
        [--disabled-password] [--disabled-login]
        [--conf file] [--quiet] [--verbose] [--debug]
        user
    Add a normal user

adduser --system
        [--uid id] [--group] [--ingroup group] [--gid id]
        [--shell shell] [--comment comment] [--home dir] [--no-create-home]
        [--conf file] [--quiet] [--verbose] [--debug]
        user
   Add a system user

adduser --group
        [--gid ID] [--firstgid id] [--lastgid id]
        [--conf file] [--quiet] [--verbose] [--debug]
        group
addgroup
        [--gid ID] [--firstgid id] [--lastgid id]
        [--conf file] [--quiet] [--verbose] [--debug]
        group
   Add a user group

addgroup --system
        [--gid id]
        [--conf file] [--quiet] [--verbose] [--debug]
        group
   Add a system group

adduser USER GROUP
   Add an existing user to an existing group

Attempting to install debian's adduser just causes a bunch of other problems.

Using ntp instead of chrony might work.

One solution might be to abandon ubuntu entirely, but it is unclear how portable the resulting binaries will be. Either way, due to the dependency on sid in the first place, I don't see that using ubuntu in CI makes sense anyway.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions