Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 956347 - media-libs/libinsane: tests can be wired up by hiding Valgrind
Summary: media-libs/libinsane: tests can be wired up by hiding Valgrind
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-20 14:19 UTC by Sam James
Modified: 2025-05-20 14:19 UTC (History)
0 users

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


Attachments

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 2025-05-20 14:19:32 UTC
Going over random RESTRICT=test and noticed this.

libinsane-1.0.10 has:
# Tests require an operational valgrind
# https://wiki.gentoo.org/wiki/Debugging
RESTRICT="test"

Looking at https://gitlab.gnome.org/World/OpenPaperwork/libinsane/-/blob/master/subprojects/libinsane/tests/meson.build, it should be possible to workaround this by doing something like we do in app-arch/zstd:

```
local native_file="${T}"/meson.${CHOST}.${ABI}.ini.local

cat >> ${native_file} <<-EOF || die
[binaries]
valgrind='valgrind-falseified'
EOF

local emesonargs=(
	--native-file "${native_file}"
)
meson_src_configure
```

(You can drop the ${ABI} bit for non-multilib ofc.)