diff options
Diffstat (limited to 'meta-oe/recipes-support/multipath-tools/files/0014-libdmmp-Makefile-Add-target-docs-man-dmmp_strerror.3.patch')
-rw-r--r-- | meta-oe/recipes-support/multipath-tools/files/0014-libdmmp-Makefile-Add-target-docs-man-dmmp_strerror.3.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/multipath-tools/files/0014-libdmmp-Makefile-Add-target-docs-man-dmmp_strerror.3.patch b/meta-oe/recipes-support/multipath-tools/files/0014-libdmmp-Makefile-Add-target-docs-man-dmmp_strerror.3.patch new file mode 100644 index 0000000000..aad46c229b --- /dev/null +++ b/meta-oe/recipes-support/multipath-tools/files/0014-libdmmp-Makefile-Add-target-docs-man-dmmp_strerror.3.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | From 6e231d887c20b2139db75e6dc6c20107273aaacd Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?K=C3=A9l=C3=A9fa=20San=C3=A9?= <kelefa.sane@smile.fr> | ||
3 | Date: Thu, 3 Apr 2025 10:25:30 +0200 | ||
4 | Subject: [PATCH] libdmmp/Makefile: Add target docs/man/dmmp_strerror.3 to | ||
5 | .PHONY list | ||
6 | |||
7 | When cloning git repos, depending on the order of written to the disk, target | ||
8 | docs/man/dmmp_strerror.3 is more recent that the prerequisite | ||
9 | libdmmp/libdmmp.h this leads to a non reproducible behavior: | ||
10 | Sometimes, the timestamps are updated in the man pages, sometimes not. | ||
11 | |||
12 | Upstream-Status: Denied | ||
13 | |||
14 | https://lore.kernel.org/dm-devel/72355f1d0984647e91f8c50f1c2295071af49e33.camel@suse.com/ | ||
15 | The patch has been rejected by upstream, who will update the timestamps of the | ||
16 | manpages with a new commit. | ||
17 | In order to be reproducible without having a random result, forcing the target | ||
18 | rebuild by adding it to .PHONY is the more acceptable solution, the alternative | ||
19 | would have been to use the make -B option which consider all target has | ||
20 | obsolete and rebuild them all, which is less efficient. | ||
21 | |||
22 | Signed-off-by: Yoann Congal <yoann.congal@smile.fr> | ||
23 | Signed-off-by: Sofiane HAMAM <sofiane.hamam@smile.fr> | ||
24 | Signed-off-by: Kelefa Sane <kelefa.sane@smile.fr> | ||
25 | --- | ||
26 | libdmmp/Makefile | 2 +- | ||
27 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
28 | |||
29 | diff --git a/libdmmp/Makefile b/libdmmp/Makefile | ||
30 | index 7e0e2509..187bcb8c 100644 | ||
31 | --- a/libdmmp/Makefile | ||
32 | +++ b/libdmmp/Makefile | ||
33 | @@ -20,7 +20,7 @@ CFLAGS += $(LIB_CFLAGS) -fvisibility=hidden | ||
34 | LIBDEPS += $(shell $(PKG_CONFIG) --libs json-c) -L$(mpathcmddir) -lmpathcmd -lpthread | ||
35 | |||
36 | all: $(LIBS) doc | ||
37 | -.PHONY: doc clean install uninstall check speed_test dep_clean | ||
38 | +.PHONY: doc clean install uninstall check speed_test dep_clean docs/man/dmmp_strerror.3 | ||
39 | |||
40 | $(LIBS): $(OBJS) | ||
41 | $(Q)$(CC) $(LDFLAGS) $(SHARED_FLAGS) -Wl,-soname=$@ -o $@ $(OBJS) $(LIBDEPS) | ||