Compiling www-apps/gitea-1.22.6 with dev-lang/go-1.24.1 leads to "fatal error: concurrent map read and map write" when starting gitea. Compiling with dev-lang/go-1.23.7 solves the error. A regular system update will pull in dev-lang/go-1.24.1, and rebuilding www-apps/gitea-1.22.6 will lead to an unusable installation. Reproducible: Always Steps to Reproduce: 1. Install dev-lang/go-1.24.1 or update to this version. 2. Install www-apps/gitea-1.22.6 or update to this version. 3. Try starting gitea. Actual Results: gitea start logs "fatal error: concurrent map read and map write" and process ends. Expected Results: Normal starting gitea process. Portage 3.0.67 (python 3.12.9-final-0, default/linux/amd64/23.0/no-multilib/hardened, gcc-14, glibc-2.40-r8, 6.6.52-gentoo x86_64) ================================================================= System uname: Linux-6.6.52-gentoo-x86_64-Intel-R-_Core-TM-_i7-9700K_CPU_@_3.60GHz-with-glibc2.40 KiB Mem: 16379476 total, 5772776 free KiB Swap: 4194300 total, 3358204 free Timestamp of repository gentoo: Wed, 19 Mar 2025 03:18:41 +0000 Head commit of repository gentoo: 62f2287b08e15aaa1b781d90a5fdb1e7151920a7 sh bash 5.2_p37 ld GNU ld (Gentoo 2.44 p1) 2.44.0 ccache version 4.10.2 [enabled] app-misc/pax-utils: 1.3.8::gentoo app-shells/bash: 5.2_p37::gentoo dev-build/autoconf: 2.72-r1::gentoo dev-build/automake: 1.17-r1::gentoo dev-build/cmake: 3.31.5::gentoo dev-build/libtool: 2.5.4::gentoo dev-build/make: 4.4.1-r100::gentoo dev-build/meson: 1.7.0::gentoo dev-java/java-config: 2.3.4::gentoo dev-lang/perl: 5.40.0-r1::gentoo dev-lang/python: 3.12.9::gentoo, 3.13.2::gentoo dev-lang/rust-bin: 1.84.1-r2::gentoo dev-util/ccache: 4.10.2-r1::gentoo llvm-core/clang: 19.1.7::gentoo llvm-core/llvm: 19.1.7::gentoo sys-apps/baselayout: 2.17::gentoo sys-apps/openrc: 0.56::gentoo sys-apps/sandbox: 2.39::gentoo sys-devel/binutils: 2.44::gentoo sys-devel/binutils-config: 5.5.2::gentoo sys-devel/gcc: 14.2.1_p20241221::gentoo sys-devel/gcc-config: 2.12.1::gentoo sys-kernel/linux-headers: 6.12::gentoo (virtual/os-headers) sys-libs/glibc: 2.40-r8::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo.git priority: 1000 volatile: False ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf /usr/share/maven-bin-3.9/conf /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.2/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -march=native" DISTDIR="/var/cache/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live ccache clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.mirror.web4u.cz/ http://gentoo.mirrors.ovh.net/gentoo-distfiles/" LANG="de_DE.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs" LEX="flex" LINGUAS="de en" MAKEOPTS="-j9" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" 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="3dnow 3dnowext acl amd64 avahi bash-completion btrfs bzip2 caps cet crypt cups dbus device-mapper dlz dvd emacs exif fontconfig gdbm hardened http2 iconv icu iproute2 ipv6 java jemalloc jpeg kerberos lcms ldap libtirpc lzma mng ncurses nls openldap openmp pam pcre pdf perl pic pie png pthreads python rdp readline samba sasl seccomp slang sqlite ssl ssp test-rust threads tiff truetype udev udisks unicode usb vhosts vim-syntax xattr xml xtpax zlib" ABI_X86="64" ADA_TARGET="gcc_14" ALSA_CARDS="darla20 darla24 echo3g emu10k1 emu10k1x gina20 gina24 hdsp hdspm ice1712 indigo indigoio layla20 layla24 mia mixart mona pcxhr rme32 rme96 sb16 sbawe sscape usb-usx2y vx222" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_core authn_dbm authn_file authz_core authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias auth_digest authn_dbd authz_dbd log_forensic proxy proxy_ajp proxy_ftp proxy_html proxy_http proxy_scgi version xml2enc" APACHE2_MPMS="event" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="aggregation apache bind capabilities cgroups check_uptime chrony connectivity cpu cpufreq cpusleep df disk dns email filecount load logfile memory mysql network ntpd openvpn ping postgresql snmp syslog unixsock uptime users vmem write_influxdb_udp" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext popcnt popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64 pc qemu" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de en" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PERL_FEATURES="ithreads" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
after checked with upstream, the latest gitea version 1.23.5 compile with go-1.23.7, which state from release log https://github.com/go-gitea/gitea/releases since current version 1.23.3 actually works with go-1.24.1, how about let's just move forward of the stable version? and eventually drop 1.22.x, I would prefer to leave a loose go version dependency as possible, what do you think?
(In reply to Yixun Lan from comment #1) > after checked with upstream, the latest gitea version 1.23.5 compile with > go-1.23.7, which state from release log > https://github.com/go-gitea/gitea/releases > > since current version 1.23.3 actually works with go-1.24.1, how about let's > just move forward of the stable version? and eventually drop 1.22.x, I would > prefer to leave a loose go version dependency as possible, what do you think? Unless there are reasons to stay on 1.22.6, its support could be dropped in favor of stabilizing 1.23.3. Otherwise, the correct dependency of go's version must be added to the rebuild. The changes from gitea 1.22.6 to 1.23 are pretty extensive. I don't know whether the users should be forced to do this particular update.
(In reply to Matthias from comment #2) > (In reply to Yixun Lan from comment #1) > > after checked with upstream, the latest gitea version 1.23.5 compile with > > go-1.23.7, which state from release log > > https://github.com/go-gitea/gitea/releases > > > > since current version 1.23.3 actually works with go-1.24.1, how about let's > > just move forward of the stable version? and eventually drop 1.22.x, I would > > prefer to leave a loose go version dependency as possible, what do you think? > > Unless there are reasons to stay on 1.22.6, its support could be dropped in > favor of stabilizing 1.23.3. Otherwise, the correct dependency of go's > version must be added to the rebuild. > ok, I will go ahead to add this restriction > The changes from gitea 1.22.6 to 1.23 are pretty extensive. I don't know > whether the users should be forced to do this particular update. to be conservative, let's keep it for now, also I will leave maintainer to judge.. ideally, people want stable/LTS version, probably need to switch to enterprise version, but that's another story.. https://docs.gitea.com/enterprise/features/release-cadence
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dafee54035d1497a6ac80a7187d82ad0cc4bc949 commit dafee54035d1497a6ac80a7187d82ad0cc4bc949 Author: Yixun Lan <dlan@gentoo.org> AuthorDate: 2025-03-25 02:16:10 +0000 Commit: Yixun Lan <dlan@gentoo.org> CommitDate: 2025-03-25 02:16:10 +0000 www-apps/gitea: add <go-1.24 restriction Compiling with go-1.24 lead to a run time err, so add a dependency restriction to fix it. Closes: https://bugs.gentoo.org/951624 Signed-off-by: Yixun Lan <dlan@gentoo.org> www-apps/gitea/{gitea-1.22.6.ebuild => gitea-1.22.6-r1.ebuild} | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)