* [PATCH] cifs-utils: fix probabilistic compiling error
@ 2020-05-26 3:54 lizhe67
2020-08-29 0:22 ` Pavel Shilovsky
0 siblings, 1 reply; 2+ messages in thread
From: lizhe67 @ 2020-05-26 3:54 UTC (permalink / raw)
To: linux-cifs
From: lizhe <lizhe67@huawei.com>
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@huawei.com>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] cifs-utils: fix probabilistic compiling error
2020-05-26 3:54 [PATCH] cifs-utils: fix probabilistic compiling error lizhe67
@ 2020-08-29 0:22 ` Pavel Shilovsky
0 siblings, 0 replies; 2+ messages in thread
From: Pavel Shilovsky @ 2020-08-29 0:22 UTC (permalink / raw)
To: lizhe67; +Cc: linux-cifs
Merged. Thanks!
--
Best regards,
Pavel Shilovsky
пн, 25 мая 2020 г. в 20:54, <lizhe67@huawei.com>:
>
> From: lizhe <lizhe67@huawei.com>
>
> 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@huawei.com>
> ---
> 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
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-08-29 0:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-26 3:54 [PATCH] cifs-utils: fix probabilistic compiling error lizhe67
2020-08-29 0:22 ` Pavel Shilovsky
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.