Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
2897da03
Commit
2897da03
authored
Dec 16, 2015
by
Alexander Smorkalov
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5763 from ilya-lavrenov:lintian
parents
0886f6fe
4fa14f75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
OpenCVPackaging.cmake
cmake/OpenCVPackaging.cmake
+31
-0
No files found.
cmake/OpenCVPackaging.cmake
View file @
2897da03
...
...
@@ -227,6 +227,32 @@ function(ocv_generate_lintian_overrides_file comp)
endif
()
endfunction
()
function
(
ocv_get_lintian_version version
)
find_program
(
LINTIAN_EXECUTABLE lintian
)
if
(
NOT LINTIAN_EXECUTABLE
)
return
()
endif
()
execute_process
(
COMMAND
${
LINTIAN_EXECUTABLE
}
--version
WORKING_DIRECTORY
${
CMAKE_BINARY_DIR
}
RESULT_VARIABLE LINTIAN_EXITCODE
OUTPUT_VARIABLE LINTIAN_VERSION
ERROR_QUIET
)
if
(
NOT LINTIAN_EXITCODE EQUAL 0
)
return
()
endif
()
if
(
LINTIAN_VERSION MATCHES
"([0-9]+
\\
.[0-9]+
\\
.[0-9]+)"
)
set
(
LINTIAN_VERSION
"
${
CMAKE_MATCH_1
}
"
CACHE INTERNAL
"Lintian version"
)
endif
()
set
(
"
${
version
}
"
"
${
LINTIAN_VERSION
}
"
PARENT_SCOPE
)
endfunction
()
ocv_get_lintian_version
(
LINTIAN_VERSION
)
set
(
LIBS_LINTIAN_OVERRIDES
"binary-or-shlib-defines-rpath"
# usr/lib/libopencv_core.so.2.4.12
"package-name-doesnt-match-sonames"
)
# libopencv-calib3d2.4 libopencv-contrib2.4
...
...
@@ -246,6 +272,11 @@ endif()
set
(
DEV_LINTIAN_OVERRIDES
"binary-or-shlib-defines-rpath"
# usr/bin/opencv_traincascade
"binary-without-manpage"
)
# usr/bin/opencv_traincascade
if
(
LINTIAN_VERSION VERSION_GREATER
"2.5.30"
OR
LINTIAN_VERSION VERSION_EQUAL
"2.5.30"
)
list
(
APPEND DEV_LINTIAN_OVERRIDES
"pkg-config-bad-directive"
)
# usr/lib/pkgconfig/opencv.pc -L/usr/local/cuda-7.0/lib64
endif
()
if
(
NOT INSTALL_C_EXAMPLES
)
set
(
SAMPLES_LINTIAN_OVERRIDES
"empty-binary-package"
)
# samples are not installed
endif
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment