I get this error: unning build_scripts creating /var/tmp/portage/dev-util/pkgdev-9999/work/pkgdev-9999-python3_10/build/.generated_scripts creating /var/tmp/portage/dev-util/pkgdev-9999/work/pkgdev-9999-python3_10/build/scripts copying and adjusting /var/tmp/portage/dev-util/pkgdev-9999/work/pkgdev-9999-python3_10/build/.generated_scripts/pkgdev -> /var/tmp/portage/dev-util/pkgdev-9999/work/pkgdev-9999-python3_10/build/scripts changing mode of /var/tmp/portage/dev-util/pkgdev-9999/work/pkgdev-9999-python3_10/build/scripts/pkgdev from 644 to 755 running build_ext * Checking whether python3_11 is suitable ... * >=dev-lang/python-3.11.0_beta4:3.11 ... [ !! ] * Checking whether python3_10 is suitable ... * >=dev-lang/python-3.10.4:3.10 ... [ ok ] * python_check_deps ... * >=dev-python/sphinx-4.5.0-r1[python_targets_python3_10(-)] ... [ ok ] * Using python3.10 in global scope * python3_10: running distutils-r1_run_phase python_compile_all make -j9 -C doc man make: Entering directory '/var/tmp/portage/dev-util/pkgdev-9999/work/pkgdev-9999-python3_10/doc' python -m snakeoil.dist.generate_docs --man .. ../src pkgdev sphinx-build -b man -d _build/doctrees . _build/man Running Sphinx v5.1.1 Configuration error: There is a programmable error in your configuration file: Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/sphinx/config.py", line 347, in eval_config_file exec(code, namespace) File "/var/tmp/portage/dev-util/pkgdev-9999/work/pkgdev-9999-python3_10/doc/conf.py", line 73, in <module> version = pkgdist.module_version() File "/usr/lib/python3.10/site-packages/snakeoil/dist/distutils_extensions.py", line 145, in module_version date = datetime.strptime(git_version['date'], '%a, %d %b %Y %H:%M:%S %z') File "/usr/lib/python3.10/_strptime.py", line 568, in _strptime_datetime tt, fraction, gmtoff_fraction = _strptime(data_string, format) File "/usr/lib/python3.10/_strptime.py", line 349, in _strptime raise ValueError("time data %r does not match format %r" % ValueError: time data 'Sat, 10 Sep 2022 21:25:29 +0300' does not match format '%a, %d %b %Y %H:%M:%S %z' make: *** [Makefile:141: man] Error 2 make: Leaving directory '/var/tmp/portage/dev-util/pkgdev-9999/work/pkgdev-9999-python3_10/doc' * ERROR: dev-util/pkgdev-9999::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=dev-util/pkgdev-9999::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-util/pkgdev-9999::gentoo'`. * The complete build log is located at '/var/log/portage/build/dev-util/pkgdev-9999:20220912-160139.log.gz'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-util/pkgdev-9999/temp/build.log.gz'. * The ebuild environment file is located at '/var/tmp/portage/dev-util/pkgdev-9999/temp/environment'. * Working directory: '/var/tmp/portage/dev-util/pkgdev-9999/work/pkgdev-9999-python3_10' * S: '/var/tmp/portage/dev-util/pkgdev-9999/work/pkgdev-9999' Thanks
Portage 3.0.36 (python 3.10.6-final-0, default/linux/amd64/17.1/desktop/gnome/systemd, gcc-11.3.0, glibc-2.35-r8, 5.15.64-gentoo x86_64) ================================================================= System uname: Linux-5.15.64-gentoo-x86_64-Intel-R-_Core-TM-_i7-7700HQ_CPU_@_2.80GHz-with-glibc2.35 KiB Mem: 16035140 total, 6492744 free KiB Swap: 5240828 total, 5240828 free Timestamp of repository gentoo: Sat, 10 Sep 2022 07:30:01 +0000 Head commit of repository gentoo: a2c7fd7c6609182f30246295586ae36fd4aac212 sh bash 5.1_p16-r1 ld GNU ld (Gentoo 2.38 p4) 2.38 ccache version 4.6.3 [enabled] app-misc/pax-utils: 1.3.5::gentoo app-shells/bash: 5.1_p16-r1::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.34.1-r3::gentoo dev-lang/python: 2.7.18_p15::gentoo, 3.9.14::gentoo, 3.10.6_p2::gentoo dev-lang/rust-bin: 1.62.1::gentoo dev-util/ccache: 4.6.3::gentoo dev-util/cmake: 3.23.3::gentoo dev-util/meson: 0.62.2::gentoo sys-apps/baselayout: 2.8::gentoo sys-apps/openrc: 0.44.10::gentoo sys-apps/sandbox: 2.29::gentoo sys-apps/systemd: 251.3::gentoo sys-devel/autoconf: 2.13-r2::gentoo, 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/clang: 14.0.6-r1::gentoo sys-devel/gcc: 11.3.0::gentoo sys-devel/gcc-config: 2.5-r1::gentoo sys-devel/libtool: 2.4.7::gentoo sys-devel/llvm: 14.0.6-r2::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.15-r3::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: sync-rsync-verify-metamanifest: no sync-rsync-verify-max-age: 24 sync-rsync-verify-jobs: 1 x-portage location: /usr/local/portage masters: gentoo priority: 0 guru location: /hdd/portage/local/layman/guru masters: gentoo priority: 50 science location: /hdd/portage/local/layman/science masters: gentoo priority: 50 torbrowser location: /hdd/portage/local/layman/torbrowser masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native -fno-stack-protector" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/cxoffice/etc/cxoffice.conf /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -march=native -fno-stack-protector" DISTDIR="/hdd/distfiles" EMERGE_DEFAULT_OPTS="--quiet-build=n --autounmask-write --keep-going --autounmask=y --with-test-deps --autounmask-keep-masks" 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 -march=native -fno-stack-protector" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live ccache cgroup compress-build-logs 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 sign split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe -march=native -fno-stack-protector" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="es_ES.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu" LINGUAS="es es_ES en en_US fr fr_FR" MAKEOPTS="-j9" PKGDIR="/hdd/packages" 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="7z 7zip X a52 aac acl acpi alsa amd64 appindicator applet aptx archive aribsub avahi avx avx256 ayatana bash-completion bluetooth bluray branding btrfs bzip2 cairo ccache cdda cddb cdr chm chrome chromecast chromium cli colord context crypt cuda cups cvs dbus dell djvu dot dri dts dvd dvdr dvi ebook eds emoji enchant encode epspdf epub equalizer ethernet evince evo excel exif fat ffmpeg firefox flac flash fortran fuse games gdbm gdk-pixbuf gdm gedit gif gimp git gnome gnome-keyring gnome-online-accounts gnome-shell gnumeric google googledrive gphoto2 gpm grammar gromacs gstreamer gtk gtk3 gtkstyle gui heif hfs html http hwaccel ico icons iconv icu indicator inkscape inotify introspection ios ipod ipv6 irc iso jabber jpeg jumbo-build kate kpathsea latex lcms libass libdrm libglvnd libindicate libnotify librtmp libsecret libtirpc libv4l libvisual lm_sensors loudness luatex lyx lz4 lzma lzo mad math matroska media mediaplayer metric microdns mms mmx mmxext mng mobi monolithic-build mp3 mp4 mpeg ms mtp multilib music musicbrainz nautilus ncurses network network-cron networkmanager nls nptl ntfs ntp numa nvdec nvenc nvidia nvme oauth offensive ogg opengl openmp openvpn optimized-qmake opus pam pango pdf pdfannotextractor pdfimport pipelight png policykit postscript ppapi ppds pptx projectm proprietary-codecs pstricks publishers pulseaudio qt5 rar raw rdp readline reiserfs rtf rtmp scanner screencast sdl seccomp sendto sftp skins slideshow smp sna snmp sox spell split-usr squashfs sse sse2 sse3 sse4 sse4_1 ssh ssl ssse3 startup-notification subtitles svg sysprof systemd t1lib tcpd theora thesaurus threads tiff tkip totem tracker truetype udev udisks uefi unicode update_drivedb upnp upnp-av upower usb user-session v4l vaapi vala vcd vdpau vector-icons vimeo visio vlc vnc vorbis vpx wayland webp wep wifi wma wmf wpg wxwidgets x264 x265 xattr xcb xephyr xetex xfs xft xml xmp xmpp xpm xps xv xvid xz youtube zeroconf zfs zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2020" ALSA_CARDS="hda-intel" 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 f16c fma3 mmx mmxext pclmul popcnt rdrand 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 wacom" KERNEL="linux" L10N="es es-ES en en-US fr fr-FR" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python2_7 python3_9 python3_10" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="fbdev vesa intel i965 nouveau nvidia" 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, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
So let's start from basic. On my main machine I'm using all live versions, so I can guess it is some difference between our two machines Do you have some locale set by any chance? Can you try to disable locale for the ebuild phases? Also, just to make sure, all 4 packages (snakeoil, pkgcore, pkgcheck, and failing pkgdev) are on the latest master? Also, which version of git is installed? Can you share the global git config? I'm searching for configs that might affect output of `git log` or `git describe`... Finally, can you try to prepare the ebuild WORKDIR, and run those commands inside WORKDIR and show the output? LC_CTYPE="C" git log --format="%H\n%aD" "HEAD^..HEAD" LC_CTYPE="C" git describe --tags --abbrev=0 FYI, I see this as quite high priority bug, as it shows issues in build system, and I don't care if this is a live version, I'm very concerned by this failure, so I would be very thankful for your help in triaging it :)
(In reply to Arthur Zamarin from comment #2) > So let's start from basic. On my main machine I'm using all live versions, > so I can guess it is some difference between our two machines > > Do you have some locale set by any chance? Can you try to disable locale for > the ebuild phases? Yes, I have spanish UTF8 locale and it compiles fine with LC_ALL=C.UTF-8! Do you still need all the other information or it will be enough changing the ebuild to use C.UTF-8 locale? (maybe one day that will be the default when building packages to avoid issues like that :/)
(In reply to Pacho Ramos from comment #3) > Yes, I have spanish UTF8 locale and it compiles fine with LC_ALL=C.UTF-8! Oh, nice. I will modify the ebuild, but also try to fix the issue itself in the build system, so this won't be reproduced to others! For now I will edit only the live version, but I plan to make a new pkgdev release soon. > Do you still need all the other information or it will be enough changing > the ebuild to use C.UTF-8 locale? (maybe one day that will be the default > when building packages to avoid issues like that :/) No need, this gives me enough to understand how to overcome the issue. Thanks you.
fine, thanks As a side note, I forgot to comment that pkgdev-9999 also needs to use C locale as ,otherwise, it fails with: make -j9 -C doc man make: Entering directory '/var/tmp/portage/dev-util/pkgdev-9999/work/pkgdev-9999-python3_10/doc' python -m snakeoil.dist.generate_docs --man .. ../src pkgdev sphinx-build -b man -d _build/doctrees . _build/man Running Sphinx v5.1.1 Configuration error: There is a programmable error in your configuration file: Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/sphinx/config.py", line 347, in eval_config_file exec(code, namespace) File "/var/tmp/portage/dev-util/pkgdev-9999/work/pkgdev-9999-python3_10/doc/conf.py", line 73, in <module> version = pkgdist.module_version() File "/usr/lib/python3.10/site-packages/snakeoil/dist/distutils_extensions.py", line 145, in module_version date = datetime.strptime(git_version['date'], '%a, %d %b %Y %H:%M:%S %z') File "/usr/lib/python3.10/_strptime.py", line 568, in _strptime_datetime tt, fraction, gmtoff_fraction = _strptime(data_string, format) File "/usr/lib/python3.10/_strptime.py", line 349, in _strptime raise ValueError("time data %r does not match format %r" % ValueError: time data 'Fri, 16 Sep 2022 21:05:11 +0300' does not match format '%a, %d %b %Y %H:%M:%S %z' make: *** [Makefile:141: man] Error 2 make: Leaving directory '/var/tmp/portage/dev-util/pkgdev-9999/work/pkgdev-9999-python3_10/doc'
Fixed with snakeoil 0.10.0 release