Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937157 - sys-apps/gentoo-functions-1.6-r1: fails tests
Summary: sys-apps/gentoo-functions-1.6-r1: fails tests
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: William Hubbs
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2024-08-02 21:01 UTC by Sam James
Modified: 2024-08-05 02:05 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (file_937157.txt,19.51 KB, text/plain)
2024-08-02 21:01 UTC, Sam James
Details
testlog.txt (file_937157.txt,28.24 KB, text/plain)
2024-08-02 21:03 UTC, Sam James
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-08-02 21:01:58 UTC
Created attachment 898822 [details]
build.log

▶ 1/1 - ( exit 2 ); die (test 2 -eq 2) OK            /170 subtests passed
▶ 1/1 - ( exit 126 ); die (test 126 -eq 126) OK            ubtests passed
▶ 1/1 - ( exit 255 ); die (test 255 -eq 255) OK            ubtests passed
▶ 1/1 - edo false (test 1 -eq 1) OK               172/173 subtests passed
▶ 1/1 - edo true (test 0 -eq 0) OK            s   173/174 subtests passed
1/1 test-functions        ERROR           0.59s   exit status 1tests passed
 ✀  
stderr:
./functions.sh: line 48: cd: grandchild: No such file or directory
./functions.sh: line 48: cd: var: No such file or directory
./functions.sh: line 48: cd: null directory
test-functions: is_older_than: too few arguments (got 0, expected at least 1)
test-functions: esyslog: too few arguments (got 0, expected at least 2)
test-functions: esyslog: too few arguments (got 1, expected at least 2)
test-functions: yesno: invalid argument: 'not-a-valid-nameref'
test-functions: yesno: invalid argument: '_"; set -- yes # code injection'
test-functions: Failed to execute command: 'false'

(test program exited with status code 1)



Summary of Failures:

1/1 test-functions ERROR           0.59s   exit status 1

Ok:                 0   
Expected Fail:      0   
Fail:               1   
Unexpected Pass:    0   
Skipped:            0   
Timeout:            0   

Full log written to /var/tmp/portage/sys-apps/gentoo-functions-1.6-r1/work/gentoo-functions-1.6-build/meson-logs/testlog.txt
 * ERROR: sys-apps/gentoo-functions-1.6-r1::gentoo failed (test phase):
 *   tests failed

----

# emerge --info
Portage 3.0.65-15+gf99eb9122-dirty (python 3.13.0-candidate-1, default/linux/amd64/23.0/hardened, gcc-14, glibc-2.40, 6.6.43-adry x86_64)
=================================================================
System uname: Linux-6.6.43-adry-x86_64-11th_Gen_Intel-R-_Core-TM-_i7-11800H_@_2.30GHz-with-glibc2.40
KiB Mem:    32585740 total,  22750808 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Fri, 02 Aug 2024 18:49:06 +0000
Head commit of repository gentoo: 4adf8aed271a3abb290156c8b4acd7b721ae8328

Timestamp of repository emacs: Mon, 15 Jul 2024 07:34:30 +0000
Head commit of repository emacs: 3c9f7627b2d174a3c0c789b241a5b3c8fa01ac62

Timestamp of repository kde: Thu, 01 Aug 2024 17:18:59 +0000
Head commit of repository kde: 595d5333004936ffbfdbf977250f37bc44f7799d

Timestamp of repository qt: Fri, 12 Jul 2024 15:33:40 +0000
Head commit of repository qt: b1a94224bf1a3c60409d9d0edc8a5a66809ab58c

sh bash 5.3_alpha_p20240730
ld GNU ld (Gentoo 9999 p1) 2.43.50.20240802
ccache version 4.10.1 [disabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.3_alpha_p20240730::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.17-r1::gentoo
dev-build/cmake:           3.30.1::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.5.1::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.0::gentoo
dev-lang/python:           2.7.18_p16-r2::gentoo, 3.10.14_p1-r1::gentoo, 3.11.9-r1::gentoo, 3.12.4_p2::gentoo, 3.13.0_rc1::gentoo
dev-lang/rust:             1.79.0::gentoo
dev-util/ccache:           4.10.1::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/openrc:           0.54.2::gentoo
sys-apps/sandbox:          2.39::gentoo
sys-devel/binutils:        2.42-r2::gentoo, 9999::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/clang:           17.0.6::gentoo, 18.1.8::gentoo
sys-devel/gcc:             11.5.0::gentoo, 12.4.1_p20240801::gentoo, 13.3.1_p20240726::gentoo, 14.2.0::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             17.0.6::gentoo, 18.1.8::gentoo
sys-devel/llvm:            17.0.6-r2::gentoo, 18.1.8-r2::gentoo
sys-kernel/linux-headers:  6.9::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    volatile: False
    sync-git-clone-extra-opts: -b stable -c gc.reflogExpire=0 -c gc.reflogExpireUnreachable=0 -c gc.rerereresolved=0 -c gc.rerereunresolved=0 -c gc.pruneExpire=now
    sync-git-verify-commit-signature: yes

emacs
    location: /var/db/repos/emacs
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/emacs.git
    masters: gentoo
    volatile: False

kde
    location: /var/db/repos/kde
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/kde.git
    masters: gentoo
    volatile: False

local
    location: /var/db/repos/local
    masters: gentoo
    volatile: False

qt
    location: /var/db/repos/qt
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/qt.git
    masters: gentoo
    volatile: False

sam_c
    location: /home/sjames/git/overlay
    masters: gentoo
    volatile: True

Installed sets: @sam-emacs, @sam-fonts, @sam-fortune
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -ggdb3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /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"
CXXFLAGS="-O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -ggdb3"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going=y --complete-graph --deep --changed-deps-report=y --usepkg=y --usepkg-exclude nvidia-drivers --usepkg-exclude gentoo-kernel --implicit-system-deps=n"
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 -march=native -fdiagnostics-color=always -frecord-gcc-switches"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg clean-logs compressdebug config-protect-if-modified dedupdebug distlocks downgrade-backup ebuild-locks fixlafiles installsources ipc-sandbox merge-wait mount-sandbox multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-elog split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches"
GENTOO_MIRRORS="https://www.mirrorservice.org/sites/distfiles.gentoo.org/ https://mirror.bytemark.co.uk/gentoo/ https://mirrors.soeasyto.com/distfiles.gentoo.org/"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs"
LEX="flex"
LINGUAS="en en_GB en_US"
MAKEOPTS="-j16"
PKGDIR="/var/cache/binpkgs"
PORTAGE_COMPRESS="xz"
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"
RUSTFLAGS="-C target-cpu=native -C link-arg=-Wl,-z,pack-relative-relocs"
SHELL="/bin/bash"
USE="PIC X a52 aac acl acpi activities aes alsa amd64 avx avx2 avx512bw avx512cd avx512dq avx512f avx512vbmi avx512vl bash-completion bluetooth branding bzip2 cairo caps cdda cdr cet clang crypt dbus declarative dist-kernel dri dts dvd dvdr elogind emacs encode exif f16c flac fma3 fortran gdbm gif gles2 gmp gpm graphite gtk gui hardened hunspell iconv icu ipv6 iwd jit jpeg kde kf6compat kwallet lcms libnotify libtirpc lto mad mmx mmxext mng modules-compress mp3 mp4 mpeg multilib ncurses networkmanager ogg opengl openmp pam pango pclmul pcre pdf pgo pic pie pipewire plasma png policykit popcnt ppds pulseaudio qml qt5 rdrand readline screencast sdl seccomp semantic-desktop sha smartcard sound spell split-usr sse sse2 sse3 sse4_1 sse4_2 ssl ssp ssse3 startup-notification svg syslog system-av1 system-binutils system-boost system-bootstrap system-cairo system-clang system-digest system-ffmpeg system-harfbuzz system-heimdal system-icu system-jpeg system-jsoncpp system-leveldb system-libevent system-libs system-libvpx system-libyaml system-llvm system-lz4 system-mitkrb5 system-sqlite system-ssl system-tbb system-uulib system-webp system-zlib test-rust tiff truetype udev udisks unicode upower usb vaapi verify-sig vorbis vulkan wayland widgets x264 xattr xcb xft xml xtpax xv xvid zlib zsh-completion zstd" ABI_X86="32 64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file 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 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 avx512f avx512dq avx512cd avx512bw avx512vl avx512vbmi f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-GB en-US" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_SLOT="18" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12 python3_10 python3_11 python3_13" RUBY_TARGETS="ruby31 ruby32 ruby33" VIDEO_CARDS="intel i965 iris nvidia" 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, 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_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-08-02 21:03:12 UTC
Created attachment 898823 [details]
testlog.txt
Comment 2 Larry the Git Cow gentoo-dev 2024-08-02 23:14:10 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/gentoo-functions.git/commit/?id=61045c5ff6a5939f81bc64190c0d3d137f40f8c2

commit 61045c5ff6a5939f81bc64190c0d3d137f40f8c2
Author:     Kerin Millar <kfm@plushkava.net>
AuthorDate: 2024-08-02 22:50:54 +0000
Commit:     Kerin Millar <kfm@plushkava.net>
CommitDate: 2024-08-02 23:08:57 +0000

    Have chdir() enforce POSIX interpretation 1047
    
    POSIX-1.2024 (Issue 8) requires for the cd builtin to raise an error
    where given an empty directory operand. However, various implementations
    have yet to catch up. Given that it is a sensible change, let's have the
    chdir() function behave accordingly. Further, since doing so renders the
    test_chdir_noop test useless, get rid of it. The purpose that the test
    served is now subsumed by test_chdir.
    
    Closes: https://bugs.gentoo.org/937157
    Signed-off-by: Kerin Millar <kfm@plushkava.net>

 functions.sh   | 13 ++++++++++---
 test-functions | 17 +----------------
 2 files changed, 11 insertions(+), 19 deletions(-)
Comment 3 Larry the Git Cow gentoo-dev 2024-08-05 02:05:46 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1db0713fb5448663cb371e7c22281ad86a76dc49

commit 1db0713fb5448663cb371e7c22281ad86a76dc49
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-08-05 02:04:55 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-08-05 02:04:55 +0000

    sys-apps/gentoo-functions: add 1.7
    
    Bug: https://bugs.gentoo.org/937157
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-apps/gentoo-functions/Manifest                 |  1 +
 .../gentoo-functions/gentoo-functions-1.7.ebuild   | 36 ++++++++++++++++++++++
 2 files changed, 37 insertions(+)