diff options
| -rw-r--r-- | meta-oe/recipes-support/fltk/fltk.bb | 2 | ||||
| -rw-r--r-- | meta-oe/recipes-support/fltk/fltk/0003-fluid-CMakeLists.txt-Do-not-export-fluid-target.patch | 42 | 
2 files changed, 44 insertions, 0 deletions
| diff --git a/meta-oe/recipes-support/fltk/fltk.bb b/meta-oe/recipes-support/fltk/fltk.bb index ca2b517d72..3c9ee5ee3f 100644 --- a/meta-oe/recipes-support/fltk/fltk.bb +++ b/meta-oe/recipes-support/fltk/fltk.bb | |||
| @@ -5,6 +5,8 @@ DEPENDS = "alsa-lib zlib jpeg libpng libxext libxft" | |||
| 5 | inherit features_check binconfig lib_package gtk-icon-cache mime mime-xdg | 5 | inherit features_check binconfig lib_package gtk-icon-cache mime mime-xdg | 
| 6 | REQUIRED_DISTRO_FEATURES = "x11" | 6 | REQUIRED_DISTRO_FEATURES = "x11" | 
| 7 | 7 | ||
| 8 | SRC_URI += "file://0003-fluid-CMakeLists.txt-Do-not-export-fluid-target.patch" | ||
| 9 | |||
| 8 | EXTRA_OECMAKE = " \ | 10 | EXTRA_OECMAKE = " \ | 
| 9 | -DOPTION_BUILD_SHARED_LIBS=ON \ | 11 | -DOPTION_BUILD_SHARED_LIBS=ON \ | 
| 10 | -DOPTION_USE_THREADS=ON \ | 12 | -DOPTION_USE_THREADS=ON \ | 
| diff --git a/meta-oe/recipes-support/fltk/fltk/0003-fluid-CMakeLists.txt-Do-not-export-fluid-target.patch b/meta-oe/recipes-support/fltk/fltk/0003-fluid-CMakeLists.txt-Do-not-export-fluid-target.patch new file mode 100644 index 0000000000..72bb48a32c --- /dev/null +++ b/meta-oe/recipes-support/fltk/fltk/0003-fluid-CMakeLists.txt-Do-not-export-fluid-target.patch | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | From b6985abcb03fb09685da4044963e8f085035b208 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com> | ||
| 3 | Date: Thu, 19 Aug 2021 08:06:45 +0200 | ||
| 4 | Subject: [PATCH] fluid/CMakeLists.txt: Do not export fluid target | ||
| 5 | MIME-Version: 1.0 | ||
| 6 | Content-Type: text/plain; charset=UTF-8 | ||
| 7 | Content-Transfer-Encoding: 8bit | ||
| 8 | |||
| 9 | It does not work for us: The executable 'fluid' is not installed in | ||
| 10 | receipe-sysroot. So fltk cmake config contains an invalid reference. | ||
| 11 | Consumers of fltk using cmake will fail during configure for this invalid | ||
| 12 | reference with something like: | ||
| 13 | |||
| 14 | | CMake Error at <...>/recipe-sysroot/usr/share/fltk/FLTK-Targets.cmake:129 (message): | ||
| 15 | | The imported target "fluid" references the file | ||
| 16 | | | ||
| 17 | | "<...>/recipe-sysroot/usr/bin/fluid" | ||
| 18 | | | ||
| 19 | | but this file does not exist. | ||
| 20 | |||
| 21 | Upstream-Status: Inappropriate [OE specific] | ||
| 22 | |||
| 23 | Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> | ||
| 24 | --- | ||
| 25 | fluid/CMakeLists.txt | 1 - | ||
| 26 | 1 file changed, 1 deletion(-) | ||
| 27 | |||
| 28 | diff --git a/fluid/CMakeLists.txt b/fluid/CMakeLists.txt | ||
| 29 | index 472c84c..f971121 100644 | ||
| 30 | --- a/fluid/CMakeLists.txt | ||
| 31 | +++ b/fluid/CMakeLists.txt | ||
| 32 | @@ -86,7 +86,6 @@ if (APPLE AND (NOT OPTION_APPLE_X11)) | ||
| 33 | install (TARGETS fluid DESTINATION ${FLTK_BINDIR}) | ||
| 34 | else() | ||
| 35 | install (TARGETS fluid | ||
| 36 | - EXPORT FLTK-Targets | ||
| 37 | RUNTIME DESTINATION ${FLTK_BINDIR} | ||
| 38 | LIBRARY DESTINATION ${FLTK_LIBDIR} | ||
| 39 | ARCHIVE DESTINATION ${FLTK_LIBDIR} | ||
| 40 | -- | ||
| 41 | 2.31.1 | ||
| 42 | |||
