Re: [PATCH] cifs-utils: fix probabilistic compiling error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Merged. Thanks!
--
Best regards,
Pavel Shilovsky

пн, 25 мая 2020 г. в 20:54, <lizhe67@xxxxxxxxxx>:
>
> From: lizhe <lizhe67@xxxxxxxxxx>
>
> When we compile cifs-utils, we may probabilistic
> encounter install error like:
> cd ***/sbin && ln -sf mount.cifs mount.smb3
> ***/sbin: No such file or directory
>
> The reason of this problem is that if we compile
> cifs-utils using multithreading, target
> 'install-sbinPROGRAMS' may be built after
> target 'install-exec-hook' of the main Makefile.
> Target 'install-sbinPROGRAMS' will copy the
> executable file 'mount.cifs' to the $(ROOTSBINDIR),
> which target 'install-exec-hook' will do the
> 'ln' command on.
>
> This patch add the dependency of target
> 'install-exec-hook' to ensure the correct order
> of the compiling.
>
> Signed-off-by: lizhe <lizhe67@xxxxxxxxxx>
> ---
>  Makefile.am | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Makefile.am b/Makefile.am
> index fe9cd34..f0a69e9 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -118,7 +118,7 @@ endif
>
>  SUBDIRS = contrib
>
> -install-exec-hook:
> +install-exec-hook: install-sbinPROGRAMS
>         (cd $(ROOTSBINDIR) && ln -sf mount.cifs mount.smb3)
>
>  install-data-hook:
> --
> 2.12.3
>
>




[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux