[rtmpdump] Race condition in the librtmp make install.

orbea orbea-ml at riseup.net
Fri Feb 19 18:41:52 EET 2021


Hi,

When building rtmpdump sometimes 'make install' will fail.

This is because the install_so rule depends on the $(SODIR) directory,
but this directory is created in the install_base rule instead. With
parallel make the file may be copied before the directory exists which
obviously will not work. Please see the attached rtmpdump-build.log.

This can be easily solved by making sure the $(SODIR) directory is
created in the install_so rule instead and I have attached a patch
which does this.

Can this please be merged to the rtmpdump git?

https://git.ffmpeg.org/rtmpdump.git

Some distros will create the directory before invoking 'make install'
as a workaround.

Thanks!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rtmpdump-build.log
Type: text/x-log
Size: 5254 bytes
Desc: not available
URL: <https://lists.mplayerhq.hu/pipermail/rtmpdump/attachments/20210219/ae38d5e9/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: librtmp-make.patch
Type: text/x-patch
Size: 723 bytes
Desc: not available
URL: <https://lists.mplayerhq.hu/pipermail/rtmpdump/attachments/20210219/ae38d5e9/attachment-0001.bin>


More information about the rtmpdump mailing list