Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 921952 - sci-mathematics/wxmaxima-23.10.0: fails tests (line 2430: ./test_CellPtr: No such file or directory)
Summary: sci-mathematics/wxmaxima-23.10.0: fails tests (line 2430: ./test_CellPtr: No ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andrey Grozin
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2024-01-12 18:07 UTC by Sam James
Modified: 2024-03-15 11:47 UTC (History)
3 users (show)

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


Attachments
build.log (file_921952.txt,174.44 KB, text/plain)
2024-01-12 18:07 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-01-12 18:07:30 UTC
Created attachment 882124 [details]
build.log

>>> Source compiled.
>>> Test phase: sci-mathematics/wxmaxima-23.10.0
===============================================================================
All tests passed (150 assertions in 7 test cases)

/var/tmp/portage/sci-mathematics/wxmaxima-23.10.0/temp/environment: line 2430: ./test_CellPtr: No such file or directory
 * ERROR: sci-mathematics/wxmaxima-23.10.0::gentoo failed (test phase):
 *   Unit test CellPtr failed!
 *
 * Call stack:
 *     ebuild.sh, line 136:  Called src_test
 *   environment, line 2430:  Called die
 * The specific snippet of code:
 *           ./test_${test} || die "Unit test ${test} failed!";
 *

----

# emerge --info
Portage 3.0.59 (python 3.11.7-final-0, default/linux/amd64/17.1/systemd, gcc-13, glibc-2.38-r9, 6.6.11 x86_64)
=================================================================
System uname: Linux-6.6.11-x86_64-AMD_Ryzen_9_3950X_16-Core_Processor-with-glibc2.38
KiB Mem:    65758036 total,   1441508 free
KiB Swap:   16662520 total,    475896 free
Timestamp of repository gentoo: Fri, 12 Jan 2024 17:20:16 +0000
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p2) 2.41.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-java/java-config:      2.3.3-r1::gentoo
dev-lang/perl:             5.38.2-r1::gentoo
dev-lang/python:           3.11.7::gentoo, 3.12.1::gentoo
dev-lang/rust-bin:         1.74.1::gentoo
dev-util/cmake:            3.27.9::gentoo
dev-util/meson:            1.3.0-r2::gentoo
sys-apps/baselayout:       2.14-r1::gentoo
sys-apps/sandbox:          2.37::gentoo
sys-apps/systemd:          254.7::gentoo
sys-devel/autoconf:        2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.41-r2::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             13.2.1_p20230826::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/llvm:            16.0.6::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r9::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 3
    sync-rsync-extra-opts: 

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --complete-graph --usepkg=y"
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 binpkg-multi-instance buildpkg buildpkg-live clean-logs config-protect-if-modified distlocks fixlafiles ipc-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 strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://mirrors.gethosted.online/gentoo/ https://www.mirrorservice.org/sites/distfiles.gentoo.org/ https://mirror.bytemark.co.uk/gentoo/ https://mirrors.soeasyto.com/distfiles.gentoo.org/"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j4 -l4"
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"
SHELL="/bin/bash"
USE="acl amd64 bzip2 cli crypt dri fortran gdbm iconv ipv6 libtirpc multilib ncurses nls openmp pam pcre readline seccomp split-usr ssl systemd test-rust udev unicode xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2021" 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="mmx mmxext sse sse2" 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" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy" 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, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-12 18:09:14 UTC
grozin, are you running test suites when you bump packages (FEATURES=test and/or 'ebuild ... clean test')?

This test was removed in https://github.com/wxMaxima-developers/wxmaxima/commit/4120bc52f0ee0c568761b1d993e7d30c2fda1005 (disabled for now) so it couldn't have passed for you I think?
Comment 2 Andrey Grozin gentoo-dev 2024-01-14 08:14:48 UTC
(In reply to Sam James from comment #1)
> grozin, are you running test suites when you bump packages (FEATURES=test
> and/or 'ebuild ... clean test')?

I don't believe in automatic testing GUI programs. We cannot emulate sending sequences of keyboard and mouse events to the program. Even if we could, we cannot check that they produce the expected graphical effects in the program's window. Even if we could, this graphical effect depends on the fonts installed, the window manager used (which can intercept some key combinations), etc., etc.

For example, if I emerge wxmaxima with USE=-webkit, it starts an external browser to show html help files. wxwidgets has some method for it. This method completely ignores xdg-mime settings, and uses its own weird logic. In my case, it wants to use emacs an an html viewer (why??), and calls

emacs file:///somewhere/something.html

emacs, naturally, balks. The hels system does not work at all. Even funnier: in the past I had fbreader installed on my notebook. wxmaxima used fbreader (in place of emacs) for help. It kind of worked: fbreader understands urls, and can display html, but using fbreader as an html viewer is weird. Later I removed fbreader (switched to coolreader, and later to crqt-ng). This wx logic does not fancy coolreader (or crqt), and started to use emacs (in vain). This is why I always emerge wxmaxima with USE=webkit. Then wxmaxima displays html help internally, in its own window. The help system works.

What kind of testsuite could discower all these weird things?

After installing each new version of wxmaxima, I start it and try some simple things (do some calculation, request help, draw a plot, ...). In this way, after installing 23.11.0, I saw that wxmaxima formats questions posed by maxima in some weird way. No testsuite could discover this regression. I informed the upstream, and in 23.12.0 this problem has been fixed. After that, I was glad to immediately remove 23.11.0 from the tree (before anybody wanted to stabilize it).

Command-line programs is another thing. I always run the maxima testsuite after installing each new version of maxima.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-13 04:47:23 UTC
(In reply to Andrey Grozin from comment #2)
> (In reply to Sam James from comment #1)
> > grozin, are you running test suites when you bump packages (FEATURES=test
> > and/or 'ebuild ... clean test')?
> 
> I don't believe in automatic testing GUI programs. We cannot emulate sending
> sequences of keyboard and mouse events to the program. Even if we could, we
> cannot check that they produce the expected graphical effects in the
> program's window. Even if we could, this graphical effect depends on the
> fonts installed, the window manager used (which can intercept some key
> combinations), etc., etc.

The test suite may test non-graphical elements of the software.

You should run the test suite if it exists. If it's useless, then you should restrict it with a note in the ebuild saying why. Or skip some tests if htere's a useful subset.

> 
> For example, if I emerge wxmaxima with USE=-webkit, it starts an external
> browser to show html help files. wxwidgets has some method for it. This
> method completely ignores xdg-mime settings, and uses its own weird logic.
> In my case, it wants to use emacs an an html viewer (why??), and calls
> 
> emacs file:///somewhere/something.html
> 
> emacs, naturally, balks. The hels system does not work at all. Even funnier:
> in the past I had fbreader installed on my notebook. wxmaxima used fbreader
> (in place of emacs) for help. It kind of worked: fbreader understands urls,
> and can display html, but using fbreader as an html viewer is weird. Later I
> removed fbreader (switched to coolreader, and later to crqt-ng). This wx
> logic does not fancy coolreader (or crqt), and started to use emacs (in
> vain). This is why I always emerge wxmaxima with USE=webkit. Then wxmaxima
> displays html help internally, in its own window. The help system works.
> 
> What kind of testsuite could discower all these weird things?

I didn't say it's instead of testing otherwise...

> 
> After installing each new version of wxmaxima, I start it and try some
> simple things (do some calculation, request help, draw a plot, ...). In this
> way, after installing 23.11.0, I saw that wxmaxima formats questions posed
> by maxima in some weird way. No testsuite could discover this regression. I
> informed the upstream, and in 23.12.0 this problem has been fixed. After
> that, I was glad to immediately remove 23.11.0 from the tree (before anybody
> wanted to stabilize it).
> 
> Command-line programs is another thing. I always run the maxima testsuite
> after installing each new version of maxima.
Comment 4 Andrey Grozin gentoo-dev 2024-03-13 05:03:35 UTC
These versions are no longer in the tree

commit 884b2eef89384b494355e4dc19fdcdd502c11b4b (HEAD -> master, origin/master, origin/HEAD)
Author: Andrey Grozin <grozin@gentoo.org>
Date:   Wed Mar 13 12:00:40 2024 +0700

    sci-mathematics/wxmaxima: remove old versions
    
    Signed-off-by: Andrey Grozin <grozin@gentoo.org>
Comment 5 Eli Schwartz 2024-03-14 06:06:45 UTC
Still present in wxmaxima-23.07.0.ebuild
Comment 6 Larry the Git Cow gentoo-dev 2024-03-15 11:47:46 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90c6bf3f0b833e25788cbe937d9d383de324c6d8

commit 90c6bf3f0b833e25788cbe937d9d383de324c6d8
Author:     Andrey Grozin <grozin@gentoo.org>
AuthorDate: 2024-03-15 11:47:24 +0000
Commit:     Andrey Grozin <grozin@gentoo.org>
CommitDate: 2024-03-15 11:47:24 +0000

    sci-mathematics/wxmaxima: remove old version
    
    Closes: https://bugs.gentoo.org/921952
    Signed-off-by: Andrey Grozin <grozin@gentoo.org>

 sci-mathematics/wxmaxima/Manifest                |  1 -
 sci-mathematics/wxmaxima/wxmaxima-23.07.0.ebuild | 80 ------------------------
 2 files changed, 81 deletions(-)