After upgrading to app-admin/salt-3004.2 dev-python/pyzmq-23.2.0, all salt commands fail with: Unable to connect to the salt master publisher at /var/run/salt/master There is already an upstream bug about this at https://github.com/saltstack/salt/issues/62092 which says that Salt is incompatible with PyZMQ >= 23. Since bug 836462 Gentoo's package of Salt accepts any version of PyZMQ, but this is not correct. However, since all versions of PyZMQ < 23 have already been removed from Portage, just changing the dependency will not help. Upstream has accepted a patch to support PyZMQ >= 23 at https://github.com/saltstack/salt/pull/62119 but that is only queued for version 3005, not a backport. I placed the (very small) patch from that pull as /etc/portage/patches/app-admin/salt-3004.2/salt-3004.2-compat-pyzmq-23-github-62092.patch and rebuilt and restarted my Salt master and minions, and after that everything works again. Reproducible: Always Portage 3.0.32 (python 3.10.5-final-0, default/linux/amd64/17.1/hardened, gcc-12.1.1, glibc-2.35-r8, 5.18.12-gentoo-x86_64 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.18.12-gentoo-x86_64-x86_64-Intel-R-_Core-TM-_i7-6700K_CPU_@_4.00GHz-with-glibc2.35 KiB Mem: 65738004 total, 626136 free KiB Swap: 67042300 total, 53928188 free Timestamp of repository gentoo: Tue, 19 Jul 2022 21:30:01 +0000 Head commit of repository gentoo: 10d9f5bd4763e9f68a703828fd5383ea2e5d0b0f sh bash 5.1_p16 ld GNU ld (Gentoo 2.38 p4) 2.38 app-misc/pax-utils: 1.3.4::gentoo app-shells/bash: 5.1_p16::gentoo dev-lang/perl: 5.36.0::gentoo dev-lang/python: 3.10.5::gentoo, 3.11.0_beta4-r1::gentoo dev-util/cmake: 3.23.2::gentoo sys-apps/baselayout: 2.8-r1::gentoo sys-apps/openrc: 0.45.2::gentoo sys-apps/sandbox: 2.29::gentoo sys-devel/autoconf: 2.71-r1::gentoo sys-devel/automake: 1.16.5::gentoo sys-devel/binutils: 2.38-r2::gentoo sys-devel/binutils-config: 5.4.1::gentoo sys-devel/gcc: 12.1.1_p20220625::gentoo sys-devel/gcc-config: 2.5-r1::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.18-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.35-r8::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-extra-opts: --timeout=10 --ipv6 sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes sync-rsync-verify-jobs: 1 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -ggdb" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/ossec/etc /var/ossec/etc/" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /var/ossec/etc/shared/" CXXFLAGS="-march=native -O2 -pipe -ggdb" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--alphabetical --keep-going --quiet-build=y --backtrack=30 --verbose-conflicts --usepkg --binpkg-respect-use=y --binpkg-changed-deps=y" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://mirror.mdfnet.se/gentoo" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j6" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--timeout=10 --ipv6" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" SHELL="/bin/bash" USE="acl amd64 bzip2 crypt hardened iconv idn ipv6 libglvnd libtirpc multilib ncurses nls nptl openmp pam pcre pie readline seccomp split-usr ssl ssp unicode xattr xtpax zlib" ABI_X86="64" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US en-GB sv" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LANG, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS ================================================================= Package Settings ================================================================= dev-python/pyzmq-23.2.0::gentoo was built with the following: USE="(-doc) draft -test" ABI_X86="(64)" PYTHON_TARGETS="python3_10 -python3_11 -python3_8 -python3_9" FEATURES="strict usersandbox usersync userpriv parallel-fetch buildpkg ipc-sandbox binpkg-logs multilib-strict news distlocks binpkg-docompress binpkg-dostrip assume-digests sfperms config-protect-if-modified pid-sandbox network-sandbox binpkg-multi-instance userfetch ebuild-locks merge-sync unknown-features-warn xattr qa-unresolved-soname-deps fixlafiles compressdebug protect-owned buildpkg-live unmerge-orphans preserve-libs unmerge-logs sandbox" app-admin/salt-3004.2::gentoo was built with the following: USE="-cheetah -cherrypy -genshi -gnupg -keyring -ldap -libcloud -libvirt -mako -mongodb -neutron -nova -openssl portage -profile -raet -redis (-selinux) -test -vim-syntax zeromq" ABI_X86="(64)" PYTHON_TARGETS="python3_10 -python3_8 -python3_9" FEATURES="binpkg-dostrip unknown-features-warn unmerge-logs assume-digests usersync fixlafiles pid-sandbox sandbox splitdebug multilib-strict distlocks xattr config-protect-if-modified parallel-fetch ipc-sandbox sfperms qa-unresolved-soname-deps userpriv ebuild-locks compressdebug merge-sync buildpkg usersandbox userfetch network-sandbox news strict binpkg-docompress preserve-libs protect-owned binpkg-multi-instance unmerge-orphans buildpkg-live binpkg-logs"
Created attachment 792521 [details, diff] Patch from upstream to support PyZMQ 23
The same thing happened with the version of app-admin/salt-3004.1-r4
The patch has already been approved in the official salt repository https://github.com/saltstack/salt/pull/62119 https://github.com/saltstack/salt/pull/62302
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa8cee6ca7bcc4363e548575a27c6fe548afe9e5 commit aa8cee6ca7bcc4363e548575a27c6fe548afe9e5 Author: Patrick McLean <chutzpah@gentoo.org> AuthorDate: 2022-07-25 18:45:26 +0000 Commit: Patrick McLean <chutzpah@gentoo.org> CommitDate: 2022-07-25 18:52:33 +0000 app-admin/salt: Revbumps, fix for pyzmq-23 (bug #859505) Closes: https://bugs.gentoo.org/859505 Signed-off-by: Patrick McLean <chutzpah@gentoo.org> app-admin/salt/files/salt-3004.2-pyzmq-23.patch | 35 ++++++++++++++++++++++ .../{salt-3003.5.ebuild => salt-3003.5-r1.ebuild} | 1 + .../{salt-3004.2.ebuild => salt-3004.2-r1.ebuild} | 1 + 3 files changed, 37 insertions(+)