media-plugins/alsa-plugins-1.2.2 USE="-arcam_av -debug ffmpeg -jack libsamplerate -mix -oss -pulseaudio speex -usb_stream" (notice -jack) build fails in install phase whereas
media-plugins/alsa-plugins-1.2.2 USE="-arcam_av -debug ffmpeg jack libsamplerate -mix -oss -pulseaudio speex -usb_stream" (notice +jack) builds successfully.
From the reading of the failing build log at line #304 :
ln: failed to create symbolic link '/libasound_module_rate_samplerate_best.so': No such file or directory
I understand that the path /var/tmp/portage/media-plugins/alsa-plugins-1.2.2/image/usr/lib64/alsa-lib does not point to an existing directory.
From the reading of the successful build log from line #310, I understand that, contrarily to what happens when making install in rate, make install in jack will take care to :
/bin/mkdir -p '/var/tmp/portage/media-plugins/alsa-plugins-1.2.2/image/usr/lib64/alsa-lib'
prior to installing.
Then, because making install in rate occurs after make install in jack, make install in rate linking will happily succeed.
BTW, I did not test other combinations of useflags, so their could probably be other combinations leading to failure or success.
Created attachment 767720 [details]
Created attachment 767721 [details]
Broken build log (USE=-jack)
Created attachment 767722 [details]
Successful build log (USE=+jack")
Created attachment 767734 [details, diff]
Instruct the rate plugin makefile to create the alsa-lib directory in case it does not exist already
Assuming that it won't harm anyway and that it is on the responsibility of the makefile to ensure the existence of the directory path prior to linking the plugins, this patch adds the creation of the alsa-lib directory, if it does not already exit, in the install-exec-hook section of the rate makefile.
I realize that patching upstream's makefile might not be gentoo-devs policy friendly.
Perhaps would it be better and more useflag combination independent to create the directory once and for all as part of the ebuild.
Also breaks for 1.2.6 (irrespective of build parallelization)
Attached patch still efficient for me.
The bug has been closed via the following commit(s):
Author: Sam James <firstname.lastname@example.org>
AuthorDate: 2022-05-09 23:21:12 +0000
Commit: Sam James <email@example.com>
CommitDate: 2022-05-09 23:21:42 +0000
media-plugins/alsa-plugins: avoid parallel install failure
Just create the dir it expects for now until upstream decide what
they want to do w/ the hooks.
Reported-by: Eric F. GARIOUD <firstname.lastname@example.org>
Signed-off-by: Sam James <email@example.com>
media-plugins/alsa-plugins/alsa-plugins-1.2.6.ebuild | 8 ++++++++
1 file changed, 8 insertions(+)