package/bullet: bump to version 2.85.1
[buildroot-gz.git] / package / openpowerlink / 0001-install-the-stack-libraries-to-lib-subdirectory.patch
blob1f5eb89de57e8dff5cd4397b7570765275f26ada
1 From 4e8aa3a9e1696e5e02ff0a3ae5a72f034ee60c2f Mon Sep 17 00:00:00 2001
2 From: Romain Naour <romain.naour@gmail.com>
3 Date: Wed, 25 May 2016 15:57:10 +0200
4 Subject: [PATCH] install the stack libraries to "lib" subdirectory
6 Using '.' to install the stack libraries is not correct since
7 it will install them to /usr/.
9 ls /usr/liboplkmnapp-kernelintf.so
11 Fix this by using 'lib' instead of '.'
13 The problem with the openpowerlink build system is that it expect
14 the stack directory to be a "local staging" directory which
15 contains headers and libraries. So the libraries build by the
16 stack project are installed in stack/lib by default.
18 This is wrong to do that because it becomes difficult to package
19 openpowerlink for normal Linux systems.
21 Buildroot like others build system expect from a packaged software
22 to install libraries and headers build/provided in a staging
23 directory.
25 It seems that CMAKE_INSTALL_PREFIX is misused by the default value
26 "${CMAKE_CURRENT_SOURCE_DIR}/lib/${SYSTEM_NAME_DIR}/${SYSTEM_PROCESSOR_DIR}"
27 since it already contains the lib directory and therefore the
28 entire build system is messed up.
30 It seems that the openpowerlink's build system doesn't allow/support
31 CMAKE_INSTALL_PREFIX to be set externally
32 (which is the standard approach).
34 The issue has been reported [1] upstream and a build system
35 refactoring is needed to fix this properly.
37 [1] http://sourceforge.net/p/openpowerlink/discussion/newbie/thread/3f13af65/#8f80/a50a/4649/f07c
39 [rebase on v2.5.0]
40 Signed-off-by: Romain Naour <romain.naour@gmail.com>
41 ---
42 stack/proj/linux/liboplkcn-sim/CMakeLists.txt | 2 +-
43 stack/proj/linux/liboplkcn/CMakeLists.txt | 2 +-
44 stack/proj/linux/liboplkcnapp-kernelintf/CMakeLists.txt | 2 +-
45 stack/proj/linux/liboplkcnapp-userintf/CMakeLists.txt | 2 +-
46 stack/proj/linux/liboplkcndrv-pcap/CMakeLists.txt | 2 +-
47 stack/proj/linux/liboplkmn-sim/CMakeLists.txt | 2 +-
48 stack/proj/linux/liboplkmn/CMakeLists.txt | 2 +-
49 stack/proj/linux/liboplkmnapp-kernelintf/CMakeLists.txt | 2 +-
50 stack/proj/linux/liboplkmnapp-kernelpcp/CMakeLists.txt | 2 +-
51 stack/proj/linux/liboplkmnapp-userintf/CMakeLists.txt | 2 +-
52 stack/proj/linux/liboplkmndrv-pcap/CMakeLists.txt | 2 +-
53 11 files changed, 11 insertions(+), 11 deletions(-)
55 diff --git a/stack/proj/linux/liboplkcn-sim/CMakeLists.txt b/stack/proj/linux/liboplkcn-sim/CMakeLists.txt
56 index 73b641d..b8b5c9d 100644
57 --- a/stack/proj/linux/liboplkcn-sim/CMakeLists.txt
58 +++ b/stack/proj/linux/liboplkcn-sim/CMakeLists.txt
59 @@ -96,4 +96,4 @@ ADD_LIBRARY(${LIB_NAME} ${LIB_TYPE} ${LIB_SOURCES})
60 TARGET_LINK_LIBRARIES(${LIB_NAME} ${ARCH_LIBRARIES})
61 SET_PROPERTY(TARGET ${LIB_NAME} PROPERTY COMPILE_DEFINITIONS_DEBUG DEBUG;DEF_DEBUG_LVL=${CFG_DEBUG_LVL})
62 SET_PROPERTY(TARGET ${LIB_NAME} PROPERTY DEBUG_POSTFIX "_d")
63 -INSTALL(TARGETS ${LIB_NAME} ARCHIVE DESTINATION . LIBRARY DESTINATION .)
64 +INSTALL(TARGETS ${LIB_NAME} ARCHIVE DESTINATION lib LIBRARY DESTINATION lib)
65 diff --git a/stack/proj/linux/liboplkcn/CMakeLists.txt b/stack/proj/linux/liboplkcn/CMakeLists.txt
66 index 323eafc..459124a 100644
67 --- a/stack/proj/linux/liboplkcn/CMakeLists.txt
68 +++ b/stack/proj/linux/liboplkcn/CMakeLists.txt
69 @@ -90,4 +90,4 @@ ADD_LIBRARY(${LIB_NAME} ${LIB_TYPE} ${LIB_SOURCES})
70 TARGET_LINK_LIBRARIES(${LIB_NAME} ${ARCH_LIBRARIES})
71 SET_PROPERTY(TARGET ${LIB_NAME} PROPERTY COMPILE_DEFINITIONS_DEBUG DEBUG;DEF_DEBUG_LVL=${CFG_DEBUG_LVL})
72 SET_PROPERTY(TARGET ${LIB_NAME} PROPERTY DEBUG_POSTFIX "_d")
73 -INSTALL(TARGETS ${LIB_NAME} ARCHIVE DESTINATION . LIBRARY DESTINATION .)
74 +INSTALL(TARGETS ${LIB_NAME} ARCHIVE DESTINATION lib LIBRARY DESTINATION lib)
75 diff --git a/stack/proj/linux/liboplkcnapp-kernelintf/CMakeLists.txt b/stack/proj/linux/liboplkcnapp-kernelintf/CMakeLists.txt
76 index f8b1850..c16194a 100644
77 --- a/stack/proj/linux/liboplkcnapp-kernelintf/CMakeLists.txt
78 +++ b/stack/proj/linux/liboplkcnapp-kernelintf/CMakeLists.txt
79 @@ -83,4 +83,4 @@ ADD_LIBRARY(${LIB_NAME} ${LIB_TYPE} ${LIB_SOURCES})
80 TARGET_LINK_LIBRARIES(${LIB_NAME} ${ARCH_LIBRARIES})
81 SET_PROPERTY(TARGET ${LIB_NAME} PROPERTY COMPILE_DEFINITIONS_DEBUG DEBUG;DEF_DEBUG_LVL=${CFG_DEBUG_LVL})
82 SET_PROPERTY(TARGET ${LIB_NAME} PROPERTY DEBUG_POSTFIX "_d")
83 -INSTALL(TARGETS ${LIB_NAME} ARCHIVE DESTINATION . LIBRARY DESTINATION .)
84 +INSTALL(TARGETS ${LIB_NAME} ARCHIVE DESTINATION lib LIBRARY DESTINATION lib)
85 diff --git a/stack/proj/linux/liboplkcnapp-userintf/CMakeLists.txt b/stack/proj/linux/liboplkcnapp-userintf/CMakeLists.txt
86 index 0f07e63..0074616 100644
87 --- a/stack/proj/linux/liboplkcnapp-userintf/CMakeLists.txt
88 +++ b/stack/proj/linux/liboplkcnapp-userintf/CMakeLists.txt
89 @@ -83,4 +83,4 @@ ADD_LIBRARY(${LIB_NAME} ${LIB_TYPE} ${LIB_SOURCES})
90 TARGET_LINK_LIBRARIES(${LIB_NAME} ${ARCH_LIBRARIES})
91 SET_PROPERTY(TARGET ${LIB_NAME} PROPERTY COMPILE_DEFINITIONS_DEBUG DEBUG;DEF_DEBUG_LVL=${CFG_DEBUG_LVL})
92 SET_PROPERTY(TARGET ${LIB_NAME} PROPERTY DEBUG_POSTFIX "_d")
93 -INSTALL(TARGETS ${LIB_NAME} ARCHIVE DESTINATION . LIBRARY DESTINATION .)
94 +INSTALL(TARGETS ${LIB_NAME} ARCHIVE DESTINATION lib LIBRARY DESTINATION lib)
95 diff --git a/stack/proj/linux/liboplkcndrv-pcap/CMakeLists.txt b/stack/proj/linux/liboplkcndrv-pcap/CMakeLists.txt
96 index d0dad78..ee0fdec 100644
97 --- a/stack/proj/linux/liboplkcndrv-pcap/CMakeLists.txt
98 +++ b/stack/proj/linux/liboplkcndrv-pcap/CMakeLists.txt
99 @@ -76,4 +76,4 @@ ADD_LIBRARY(${LIB_NAME} ${LIB_TYPE} ${LIB_SOURCES})
100 TARGET_LINK_LIBRARIES(${LIB_NAME} ${ARCH_LIBRARIES})
101 SET_PROPERTY(TARGET ${LIB_NAME} PROPERTY COMPILE_DEFINITIONS_DEBUG DEBUG;DEF_DEBUG_LVL=${CFG_DEBUG_LVL})
102 SET_PROPERTY(TARGET ${LIB_NAME} PROPERTY DEBUG_POSTFIX "_d")
103 -INSTALL(TARGETS ${LIB_NAME} ARCHIVE DESTINATION . LIBRARY DESTINATION .)
104 +INSTALL(TARGETS ${LIB_NAME} ARCHIVE DESTINATION lib LIBRARY DESTINATION lib)
105 diff --git a/stack/proj/linux/liboplkmn-sim/CMakeLists.txt b/stack/proj/linux/liboplkmn-sim/CMakeLists.txt
106 index eb6396a..5beaa07 100644
107 --- a/stack/proj/linux/liboplkmn-sim/CMakeLists.txt
108 +++ b/stack/proj/linux/liboplkmn-sim/CMakeLists.txt
109 @@ -91,4 +91,4 @@ ADD_LIBRARY(${LIB_NAME} ${LIB_TYPE} ${LIB_SOURCES})
110 TARGET_LINK_LIBRARIES(${LIB_NAME} ${ARCH_LIBRARIES})
111 SET_PROPERTY(TARGET ${LIB_NAME} PROPERTY COMPILE_DEFINITIONS_DEBUG DEBUG;DEF_DEBUG_LVL=${CFG_DEBUG_LVL})
112 SET_PROPERTY(TARGET ${LIB_NAME} PROPERTY DEBUG_POSTFIX "_d")
113 -INSTALL(TARGETS ${LIB_NAME} ARCHIVE DESTINATION . LIBRARY DESTINATION .)
114 +INSTALL(TARGETS ${LIB_NAME} ARCHIVE DESTINATION lib LIBRARY DESTINATION lib)
115 diff --git a/stack/proj/linux/liboplkmn/CMakeLists.txt b/stack/proj/linux/liboplkmn/CMakeLists.txt
116 index cf7927f..6b19557 100644
117 --- a/stack/proj/linux/liboplkmn/CMakeLists.txt
118 +++ b/stack/proj/linux/liboplkmn/CMakeLists.txt
119 @@ -89,4 +89,4 @@ ADD_LIBRARY(${LIB_NAME} ${LIB_TYPE} ${LIB_SOURCES})
120 TARGET_LINK_LIBRARIES(${LIB_NAME} ${ARCH_LIBRARIES})
121 SET_PROPERTY(TARGET ${LIB_NAME} PROPERTY COMPILE_DEFINITIONS_DEBUG DEBUG;DEF_DEBUG_LVL=${CFG_DEBUG_LVL})
122 SET_PROPERTY(TARGET ${LIB_NAME} PROPERTY DEBUG_POSTFIX "_d")
123 -INSTALL(TARGETS ${LIB_NAME} ARCHIVE DESTINATION . LIBRARY DESTINATION .)
124 +INSTALL(TARGETS ${LIB_NAME} ARCHIVE DESTINATION lib LIBRARY DESTINATION lib)
125 diff --git a/stack/proj/linux/liboplkmnapp-kernelintf/CMakeLists.txt b/stack/proj/linux/liboplkmnapp-kernelintf/CMakeLists.txt
126 index 9daa2df..bfccb25 100644
127 --- a/stack/proj/linux/liboplkmnapp-kernelintf/CMakeLists.txt
128 +++ b/stack/proj/linux/liboplkmnapp-kernelintf/CMakeLists.txt
129 @@ -82,4 +82,4 @@ ADD_LIBRARY(${LIB_NAME} ${LIB_TYPE} ${LIB_SOURCES})
130 TARGET_LINK_LIBRARIES(${LIB_NAME} ${ARCH_LIBRARIES})
131 SET_PROPERTY(TARGET ${LIB_NAME} PROPERTY COMPILE_DEFINITIONS_DEBUG DEBUG;DEF_DEBUG_LVL=${CFG_DEBUG_LVL})
132 SET_PROPERTY(TARGET ${LIB_NAME} PROPERTY DEBUG_POSTFIX "_d")
133 -INSTALL(TARGETS ${LIB_NAME} ARCHIVE DESTINATION . LIBRARY DESTINATION .)
134 +INSTALL(TARGETS ${LIB_NAME} ARCHIVE DESTINATION lib LIBRARY DESTINATION lib)
135 diff --git a/stack/proj/linux/liboplkmnapp-kernelpcp/CMakeLists.txt b/stack/proj/linux/liboplkmnapp-kernelpcp/CMakeLists.txt
136 index 0135f46..83128eb 100644
137 --- a/stack/proj/linux/liboplkmnapp-kernelpcp/CMakeLists.txt
138 +++ b/stack/proj/linux/liboplkmnapp-kernelpcp/CMakeLists.txt
139 @@ -91,4 +91,4 @@ ADD_LIBRARY(${LIB_NAME} ${LIB_TYPE} ${LIB_SOURCES})
140 TARGET_LINK_LIBRARIES(${LIB_NAME} ${ARCH_LIBRARIES})
141 SET_PROPERTY(TARGET ${LIB_NAME} PROPERTY COMPILE_DEFINITIONS_DEBUG DEBUG;DEF_DEBUG_LVL=${CFG_DEBUG_LVL})
142 SET_PROPERTY(TARGET ${LIB_NAME} PROPERTY DEBUG_POSTFIX "_d")
143 -INSTALL(TARGETS ${LIB_NAME} ARCHIVE DESTINATION . LIBRARY DESTINATION .)
144 +INSTALL(TARGETS ${LIB_NAME} ARCHIVE DESTINATION lib LIBRARY DESTINATION lib)
145 diff --git a/stack/proj/linux/liboplkmnapp-userintf/CMakeLists.txt b/stack/proj/linux/liboplkmnapp-userintf/CMakeLists.txt
146 index cd97882..aaaa526 100644
147 --- a/stack/proj/linux/liboplkmnapp-userintf/CMakeLists.txt
148 +++ b/stack/proj/linux/liboplkmnapp-userintf/CMakeLists.txt
149 @@ -82,4 +82,4 @@ ADD_LIBRARY(${LIB_NAME} ${LIB_TYPE} ${LIB_SOURCES})
150 TARGET_LINK_LIBRARIES(${LIB_NAME} ${ARCH_LIBRARIES})
151 SET_PROPERTY(TARGET ${LIB_NAME} PROPERTY COMPILE_DEFINITIONS_DEBUG DEBUG;DEF_DEBUG_LVL=${CFG_DEBUG_LVL})
152 SET_PROPERTY(TARGET ${LIB_NAME} PROPERTY DEBUG_POSTFIX "_d")
153 -INSTALL(TARGETS ${LIB_NAME} ARCHIVE DESTINATION . LIBRARY DESTINATION .)
154 +INSTALL(TARGETS ${LIB_NAME} ARCHIVE DESTINATION lib LIBRARY DESTINATION lib)
155 diff --git a/stack/proj/linux/liboplkmndrv-pcap/CMakeLists.txt b/stack/proj/linux/liboplkmndrv-pcap/CMakeLists.txt
156 index 7e1a820..82205c2 100644
157 --- a/stack/proj/linux/liboplkmndrv-pcap/CMakeLists.txt
158 +++ b/stack/proj/linux/liboplkmndrv-pcap/CMakeLists.txt
159 @@ -79,4 +79,4 @@ ADD_LIBRARY(${LIB_NAME} ${LIB_TYPE} ${LIB_SOURCES})
160 TARGET_LINK_LIBRARIES(${LIB_NAME} ${ARCH_LIBRARIES})
161 SET_PROPERTY(TARGET ${LIB_NAME} PROPERTY COMPILE_DEFINITIONS_DEBUG DEBUG;DEF_DEBUG_LVL=${CFG_DEBUG_LVL})
162 SET_PROPERTY(TARGET ${LIB_NAME} PROPERTY DEBUG_POSTFIX "_d")
163 -INSTALL(TARGETS ${LIB_NAME} ARCHIVE DESTINATION . LIBRARY DESTINATION .)
164 +INSTALL(TARGETS ${LIB_NAME} ARCHIVE DESTINATION lib LIBRARY DESTINATION lib)
166 2.8.1