Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
694f4364
Commit
694f4364
authored
Aug 04, 2020
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CPackRPM support for Recommends:
this breaks support for Suggests: but we don't use it anyway
parent
2b856ecd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
cmake/Internal/CPack/CPackRPM.cmake
cmake/Internal/CPack/CPackRPM.cmake
+19
-0
No files found.
cmake/Internal/CPack/CPackRPM.cmake
View file @
694f4364
...
...
@@ -2,6 +2,11 @@
# Wrapper for CPackRPM.cmake
#
IF
(
NOT DEFINED RPM_RECOMMENDS
)
EXECUTE_PROCESS
(
COMMAND rpm --recommends ERROR_QUIET RESULT_VARIABLE RPM_RECOMMENDS
)
MESSAGE
(
"CPackRPM:Debug: Testing rpm --recommends:
${
RPM_RECOMMENDS
}
"
)
ENDIF
()
#
# Support for per-component LICENSE and VENDOR
#
...
...
@@ -47,6 +52,20 @@ if (acc)
file
(
WRITE
${${
base_var
}}
"
${
acc
}
"
)
endif
()
#
# Support for the Recommends: tag.
# We don't use Suggests: so here he hijack Suggests: variable
# to implement Recommends:
#
IF
(
CPACK_RPM_
${
CPACK_RPM_PACKAGE_COMPONENT
}
_PACKAGE_RECOMMENDS
)
IF
(
RPM_RECOMMENDS EQUAL 0
)
# exit code 0 means ok
SET
(
TMP_RPM_SUGGESTS
"Recommends:
${
CPACK_RPM_
${
CPACK_RPM_PACKAGE_COMPONENT
}
_PACKAGE_RECOMMENDS
}
"
)
ELSE
()
# rpm is too old to recommend
SET
(
CPACK_RPM_
${
CPACK_RPM_PACKAGE_COMPONENT
}
_PACKAGE_REQUIRES
"
${
CPACK_RPM_
${
CPACK_RPM_PACKAGE_COMPONENT
}
_PACKAGE_REQUIRES
}
${
CPACK_RPM_
${
CPACK_RPM_PACKAGE_COMPONENT
}
_PACKAGE_RECOMMENDS
}
"
)
ENDIF
()
ENDIF
()
# load the original CPackRPM.cmake
set
(
orig_CMAKE_MODULE_PATH
${
CMAKE_MODULE_PATH
}
)
unset
(
CMAKE_MODULE_PATH
)
...
...
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