-
Notifications
You must be signed in to change notification settings - Fork 340
DAOS-16501 build: Support of mercury with ASan #16917
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 5 commits
7fe6ec3
c50d4ba
e2b0d34
1f118db
5cb9bbe
83387ea
8eb204a
2a4c2fd
89f602f
967bc9f
153c2b3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
| index c5161c1..e4e7971 100644 | ||
| --- a/CMakeLists.txt | ||
| +++ b/CMakeLists.txt | ||
| @@ -170,6 +170,12 @@ else() | ||
| set(MERCURY_LIBTYPE STATIC) | ||
| endif() | ||
|
|
||
| +#------------------------------------------------------------------------------ | ||
| +# Set debug lib name as release. | ||
| +#------------------------------------------------------------------------------ | ||
| +option(MERCURY_LIB_DEBUG_NAME_IS_RELEASE "Set debug library name as release." OFF) | ||
| +mark_as_advanced(MERCURY_LIB_DEBUG_NAME_IS_RELEASE) | ||
| + | ||
| #------------------------------------------------------------------------------ | ||
| # Enable debug output. | ||
| #------------------------------------------------------------------------------ | ||
| @@ -237,16 +243,29 @@ function(mercury_set_lib_options libtarget libname libtype var_prefix) | ||
| endif() | ||
| endif() | ||
|
|
||
| - set_target_properties(${libtarget} | ||
| - PROPERTIES | ||
| - OUTPUT_NAME_DEBUG ${LIB_DEBUG_NAME} | ||
| - OUTPUT_NAME_RELEASE ${LIB_RELEASE_NAME} | ||
| - OUTPUT_NAME_MINSIZEREL ${LIB_RELEASE_NAME} | ||
| - OUTPUT_NAME_RELWITHDEBINFO ${LIB_RELEASE_NAME} | ||
| - OUTPUT_NAME_ASAN ${LIB_DEBUG_NAME} | ||
| - OUTPUT_NAME_TSAN ${LIB_DEBUG_NAME} | ||
| - OUTPUT_NAME_UBSAN ${LIB_DEBUG_NAME} | ||
| - ) | ||
| + if(NOT MERCURY_LIB_DEBUG_NAME_IS_RELEASE) | ||
| + set_target_properties(${libtarget} | ||
| + PROPERTIES | ||
| + OUTPUT_NAME_DEBUG ${LIB_DEBUG_NAME} | ||
| + OUTPUT_NAME_RELEASE ${LIB_RELEASE_NAME} | ||
| + OUTPUT_NAME_MINSIZEREL ${LIB_RELEASE_NAME} | ||
| + OUTPUT_NAME_RELWITHDEBINFO ${LIB_RELEASE_NAME} | ||
| + OUTPUT_NAME_ASAN ${LIB_DEBUG_NAME} | ||
| + OUTPUT_NAME_TSAN ${LIB_DEBUG_NAME} | ||
| + OUTPUT_NAME_UBSAN ${LIB_DEBUG_NAME} | ||
| + ) | ||
| + else() | ||
| + set_target_properties(${libtarget} | ||
| + PROPERTIES | ||
| + OUTPUT_NAME_DEBUG ${LIB_RELEASE_NAME} | ||
| + OUTPUT_NAME_RELEASE ${LIB_RELEASE_NAME} | ||
| + OUTPUT_NAME_MINSIZEREL ${LIB_RELEASE_NAME} | ||
| + OUTPUT_NAME_RELWITHDEBINFO ${LIB_RELEASE_NAME} | ||
| + OUTPUT_NAME_ASAN ${LIB_RELEASE_NAME} | ||
| + OUTPUT_NAME_TSAN ${LIB_RELEASE_NAME} | ||
| + OUTPUT_NAME_UBSAN ${LIB_RELEASE_NAME} | ||
| + ) | ||
| + endif() | ||
| if(${libtype} MATCHES "SHARED") | ||
| set_target_properties(${libtarget} | ||
| PROPERTIES |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,7 +25,7 @@ | |
|
|
||
| Name: daos | ||
| Version: 2.7.101 | ||
| Release: 16%{?relval}%{?dist} | ||
| Release: 17%{?relval}%{?dist} | ||
| Summary: DAOS Storage Engine | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jolivier23 it does not make sense to me, why would someone need to update the daos.spec file in this case? we're not changing the min required version of mercury etc.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because the daos changelog is now the only documentation we have that something changed. I'm open to other options though. Or maybe the gitlog on
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Fixed with commit 8eb204a
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jolivier23 is there not a way to include a changelog with fpm ? imo we want the changelog to be in the mercury rpm itself, not the DAOS one.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see in the doc they have
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ignore my last comment, looks like I can't read past 2 comments :D I see your comment now in #17063
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For the Mercury change log update, I will wait for #17063 to be merged.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
|
||
| License: BSD-2-Clause-Patent | ||
|
|
@@ -659,10 +659,13 @@ fi | |
| %endif | ||
|
|
||
| %changelog | ||
| * Mon Oct 27 2025 Cedric Koch-Hofer <cedric.koch-hofer@hpe.com> 2.7.101-17 | ||
| - Add support of the libasan to the mercury dependencies | ||
|
|
||
| * Thu Oct 16 2025 Jeff Olivier <jeffolivier@google.com> 2.7.101-16 | ||
| - Make daos-spdk conflict with spdk | ||
|
|
||
| * Thu Sep 12 2025 Jeff Olivier <jeffolivier@google.com> 2.7.101-15 | ||
| * Fri Sep 12 2025 Jeff Olivier <jeffolivier@google.com> 2.7.101-15 | ||
| - Fix leap package name | ||
|
|
||
| * Thu Sep 11 2025 Jeff Olivier <jeffolivier@google.com> 2.7.101-14 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The whole debian folder is no longer used since we produce .deb files using fpm. We shoudl just remove the folder rather than updating this file
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed with commit 8eb204a