Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 911843 - app-editors/vim-core-9.0.1677 installs less files with higher MAKEOPTS value
Summary: app-editors/vim-core-9.0.1677 installs less files with higher MAKEOPTS value
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Oskari Pirhonen
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: parallel-make
  Show dependency tree
 
Reported: 2023-08-07 09:15 UTC by Agostino Sarubbo
Modified: 2024-03-20 16:18 UTC (History)
3 users (show)

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 Agostino Sarubbo gentoo-dev 2023-08-07 09:15:28 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-editors/vim-core-<unset> installs more files with FEATURES=test.
Discovered on: amd64 (internal ref: ci)

NOTE:
To reproduce this issue:
1) Install the package with FEATURES=test
2) Put the list of the installed files into a file ( qlist -e PACKAGE:SLOT | sort | uniq > /tmp/qlist_test )
3) Install the package without FEATURES=test
4) Put the list of the installed files into a file ( qlist -e PACKAGE:SLOT | sort | uniq > /tmp/qlist_notest )
5) See the diff between the two files ( diff -ru /tmp/qlist_test /tmp/qlist_notest )

On this machine:
- the installed files with FEATURES=test are 2153
- the installed files without FEATURES=test are 2149

This type of report comes from a check that is a bit outside of the tinderbox, that's the reason because build.log was not provided (however in cases like these the build.log doesn't help much) but if you need further help to diagnose this issue feel free to ask.

In any case I'm providing a diff.
Comment 1 Agostino Sarubbo gentoo-dev 2023-08-07 09:16:08 UTC
DIFF:
--- /dev/fd/63  2023-08-07 07:56:00.141974138 +0200
+++ /dev/fd/62  2023-08-07 07:56:00.141974138 +0200
@@ -103,6 +103,10 @@
 /usr/share/man/ja/man1/vimtutor.1.bz2
 /usr/share/man/ja/man1/xxd.1.bz2
 /usr/share/man/man1/evim.1.bz2
+/usr/share/man/man1/ex.1.bz2
+/usr/share/man/man1/rview.1.bz2
+/usr/share/man/man1/rvim.1.bz2
+/usr/share/man/man1/view.1.bz2
 /usr/share/man/man1/vim.1.bz2
 /usr/share/man/man1/vimdiff.1.bz2
 /usr/share/man/man1/vimtutor.1.bz2
Comment 2 Ionen Wolkens gentoo-dev 2023-08-07 09:45:34 UTC
That sounds rather odd considering there's no USE=test and:

    src_test() { :; }

aka FEATURES=test should be a no-op, I can't reproduce anyway.
Comment 3 Agostino Sarubbo gentoo-dev 2023-08-07 10:04:40 UTC
(In reply to Ionen Wolkens from comment #2)
> That sounds rather odd considering there's no USE=test and:
> 
>     src_test() { :; }
> 
> aka FEATURES=test should be a no-op, I can't reproduce anyway.

I looked deeply into it and, atm, I got always 2149 file installed with and without FEATURES="test"

In any case, when I launched a build with FEATURES="test" (while test is completely unrelated), 'ci' collected 2153 files and compared it with the subsequently build (that registered 2149 files) there was a difference.

Since there are no test, I suppose that

+/usr/share/man/man1/ex.1.bz2
+/usr/share/man/man1/rview.1.bz2
+/usr/share/man/man1/rvim.1.bz2
+/usr/share/man/man1/view.1.bz2

are installed randomly?
Comment 4 Agostino Sarubbo gentoo-dev 2023-08-07 10:14:00 UTC
found the trick!

with MAKEOPTS="-j1" the files installed are 2153, so with higher -j value there is a race condition that do not install the manpages reported in the diff.
Comment 5 Oskari Pirhonen 2023-08-08 02:53:42 UTC
(In reply to Agostino Sarubbo from comment #3)
> Since there are no test, I suppose that
> 
> +/usr/share/man/man1/ex.1.bz2
> +/usr/share/man/man1/rview.1.bz2
> +/usr/share/man/man1/rvim.1.bz2
> +/usr/share/man/man1/view.1.bz2
> 
> are installed randomly?

Possibly noteworthy is that these are all symlinks to (the non-translated) vim.1.bz2.

(In reply to Agostino Sarubbo from comment #4)
> found the trick!
> 
> with MAKEOPTS="-j1" the files installed are 2153, so with higher -j value
> there is a race condition that do not install the manpages reported in the
> diff.

I can repro it when running `ebuild ... clean install` and comparing listings with `find /var/tmp/.../image -type f -o -type l | sed -e 's|^/var/.*-9.0.1677/image||'` with/without MAKEOPTS='j1' prepended to it. What's even more interesting is that I most definitely have those symlinks in my root, yet they don't show up in `qlist -e vim-core`.