* [Buildroot] [PATCH 1/1] package/opencv3: fix OPENCV3_CLEAN_INSTALL_{DOC, CMAKE}
@ 2020-11-01 11:12 Fabrice Fontaine
2020-11-03 22:44 ` Thomas Petazzoni
2020-11-09 9:21 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2020-11-01 11:12 UTC (permalink / raw)
To: buildroot
opencv3 does not install anything in $(TARGET_DIR)/usr/share/OpenCV/doc
so drop OPENCV3_CLEAN_INSTALL_DOC
However it installs its licence files in
$(TARGET_DIR)/usr/share/licenses/opencv3 so add
OPENCV3_CLEAN_INSTALL_LICENSE
Moreover, the cmake hook does not catch all cmake files and missed the
valgrind files so update OPENCV3_CLEAN_INSTALL_CMAKE and add
OPENCV3_CLEAN_INSTALL_VALGRIND to delete those files:
OpenCVConfig.cmake OpenCVConfig-version.cmake OpenCVModules.cmake OpenCVModules-release.cmake valgrind_3rdparty.supp valgrind.supp
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/opencv3/opencv3.mk | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/package/opencv3/opencv3.mk b/package/opencv3/opencv3.mk
index 8cd28cbf0c..3e3e5987a5 100644
--- a/package/opencv3/opencv3.mk
+++ b/package/opencv3/opencv3.mk
@@ -345,16 +345,21 @@ OPENCV3_CONF_OPTS += \
endif
# Installation hooks:
-define OPENCV3_CLEAN_INSTALL_DOC
- $(RM) -fr $(TARGET_DIR)/usr/share/OpenCV/doc
+define OPENCV3_CLEAN_INSTALL_LICENSE
+ $(RM) -fr $(TARGET_DIR)/usr/share/licenses/opencv3
endef
-OPENCV3_POST_INSTALL_TARGET_HOOKS += OPENCV3_CLEAN_INSTALL_DOC
+OPENCV3_POST_INSTALL_TARGET_HOOKS += OPENCV3_CLEAN_INSTALL_LICENSE
define OPENCV3_CLEAN_INSTALL_CMAKE
- $(RM) -f $(TARGET_DIR)/usr/share/OpenCV/OpenCVConfig*.cmake
+ $(RM) -f $(TARGET_DIR)/usr/share/OpenCV/OpenCV*.cmake
endef
OPENCV3_POST_INSTALL_TARGET_HOOKS += OPENCV3_CLEAN_INSTALL_CMAKE
+define OPENCV3_CLEAN_INSTALL_VALGRIND
+ $(RM) -f $(TARGET_DIR)/usr/share/OpenCV/valgrind*
+endef
+OPENCV3_POST_INSTALL_TARGET_HOOKS += OPENCV3_CLEAN_INSTALL_VALGRIND
+
ifneq ($(BR2_PACKAGE_OPENCV3_INSTALL_DATA),y)
define OPENCV3_CLEAN_INSTALL_DATA
$(RM) -fr $(TARGET_DIR)/usr/share/OpenCV/haarcascades \
--
2.28.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1] package/opencv3: fix OPENCV3_CLEAN_INSTALL_{DOC, CMAKE}
2020-11-01 11:12 [Buildroot] [PATCH 1/1] package/opencv3: fix OPENCV3_CLEAN_INSTALL_{DOC, CMAKE} Fabrice Fontaine
@ 2020-11-03 22:44 ` Thomas Petazzoni
2020-11-09 9:21 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2020-11-03 22:44 UTC (permalink / raw)
To: buildroot
On Sun, 1 Nov 2020 12:12:44 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> opencv3 does not install anything in $(TARGET_DIR)/usr/share/OpenCV/doc
> so drop OPENCV3_CLEAN_INSTALL_DOC
>
> However it installs its licence files in
> $(TARGET_DIR)/usr/share/licenses/opencv3 so add
> OPENCV3_CLEAN_INSTALL_LICENSE
>
> Moreover, the cmake hook does not catch all cmake files and missed the
> valgrind files so update OPENCV3_CLEAN_INSTALL_CMAKE and add
> OPENCV3_CLEAN_INSTALL_VALGRIND to delete those files:
> OpenCVConfig.cmake OpenCVConfig-version.cmake OpenCVModules.cmake OpenCVModules-release.cmake valgrind_3rdparty.supp valgrind.supp
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> package/opencv3/opencv3.mk | 13 +++++++++----
> 1 file changed, 9 insertions(+), 4 deletions(-)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1] package/opencv3: fix OPENCV3_CLEAN_INSTALL_{DOC, CMAKE}
2020-11-01 11:12 [Buildroot] [PATCH 1/1] package/opencv3: fix OPENCV3_CLEAN_INSTALL_{DOC, CMAKE} Fabrice Fontaine
2020-11-03 22:44 ` Thomas Petazzoni
@ 2020-11-09 9:21 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2020-11-09 9:21 UTC (permalink / raw)
To: buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> opencv3 does not install anything in $(TARGET_DIR)/usr/share/OpenCV/doc
> so drop OPENCV3_CLEAN_INSTALL_DOC
> However it installs its licence files in
> $(TARGET_DIR)/usr/share/licenses/opencv3 so add
> OPENCV3_CLEAN_INSTALL_LICENSE
> Moreover, the cmake hook does not catch all cmake files and missed the
> valgrind files so update OPENCV3_CLEAN_INSTALL_CMAKE and add
> OPENCV3_CLEAN_INSTALL_VALGRIND to delete those files:
> OpenCVConfig.cmake OpenCVConfig-version.cmake OpenCVModules.cmake OpenCVModules-release.cmake valgrind_3rdparty.supp valgrind.supp
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Committed to 2020.02.x and 2020.08.x, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-11-09 9:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-01 11:12 [Buildroot] [PATCH 1/1] package/opencv3: fix OPENCV3_CLEAN_INSTALL_{DOC, CMAKE} Fabrice Fontaine
2020-11-03 22:44 ` Thomas Petazzoni
2020-11-09 9:21 ` Peter Korsgaard
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.