-
Notifications
You must be signed in to change notification settings - Fork 207
Add new "Mille" package to externals, update Millepede-II and GBL #10310
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: IB/CMSSW_16_1_X/master
Are you sure you want to change the base?
Changes from 6 commits
296d1be
05aea2e
be5c3b7
215017c
a6f07c4
b7da2cc
a2e3f4b
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,25 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ### RPM external mille V01-00-00 | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ## INCLUDE cpp-standard | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
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. @goblirsc , if we do not want to override the c++ standard for
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. thanks, now passing the |
||||||||||||||||||||||||||||||||||||||||||||||||||
| Source: https://gitlab.desy.de/millepede/Mille/-/archive/%{realversion}/%{n}-%{realversion}.tar.gz | ||||||||||||||||||||||||||||||||||||||||||||||||||
| BuildRequires: cmake | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Requires: zlib | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Requires: root | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| %prep | ||||||||||||||||||||||||||||||||||||||||||||||||||
| %setup -n %{n}-%{realversion} | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| %build | ||||||||||||||||||||||||||||||||||||||||||||||||||
| rm -rf build | ||||||||||||||||||||||||||||||||||||||||||||||||||
| mkdir build | ||||||||||||||||||||||||||||||||||||||||||||||||||
| cd build | ||||||||||||||||||||||||||||||||||||||||||||||||||
| cmake \ | ||||||||||||||||||||||||||||||||||||||||||||||||||
| -DCMAKE_INSTALL_PREFIX=%{i} \ | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ../ | ||||||||||||||||||||||||||||||||||||||||||||||||||
| make | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| %install | ||||||||||||||||||||||||||||||||||||||||||||||||||
| cd build | ||||||||||||||||||||||||||||||||||||||||||||||||||
| make install PREFIX=%{i} | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| rm -rf build | |
| mkdir build | |
| cd build | |
| cmake \ | |
| -DCMAKE_INSTALL_PREFIX=%{i} \ | |
| ../ | |
| make | |
| %install | |
| cd build | |
| make install PREFIX=%{i} | |
| rm -rf ../build | |
| mkdir ../build | |
| cd ../build | |
| cmake \ | |
| DCMAKE_BUILD_TYPE=Release \ | |
| -DCMAKE_INSTALL_PREFIX=%{i} \ | |
| -DCMAKE_PREFIX_PATH="%{cmake_prefix_path}" | |
| ../%{n}-%{realversion} | |
| make %{makeprocesses} VERBOSE=1 | |
| %install | |
| cd ../build | |
| make install PREFIX=%{i} |
to avoid building in the source tree and also build in parallel & verbose modemake %{makeprocesses} VERBOSE=1
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.
thanks, done
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,26 @@ | ||
| ### RPM external millepede V04-16-00 | ||
| ### RPM external millepede V05-00-00 | ||
| ## INCLUDE cpp-standard | ||
| Source: https://gitlab.desy.de/millepede/millepede-ii/-/archive/%{realversion}/%{n}-ii-%{realversion}.tar.gz | ||
| Requires: zlib | ||
| BuildRequires: cmake | ||
| Requires: root | ||
| Requires: mille | ||
|
|
||
| %prep | ||
| %setup -n %{n}-ii-%{realversion} | ||
|
|
||
| %build | ||
| make \ | ||
| ZLIB_INCLUDES_DIR="${ZLIB_ROOT}/include" \ | ||
| ZLIB_LIBS_DIR="${ZLIB_ROOT}/lib" | ||
| rm -rf build | ||
| mkdir build | ||
| cd build | ||
| cmake \ | ||
| -DCMAKE_INSTALL_PREFIX=%{i} \ | ||
| -DLAPACK_OPENBLAS=off \ | ||
| ../ | ||
| make | ||
|
||
|
|
||
| %install | ||
| cd build | ||
| make install PREFIX=%{i} | ||
|
|
||
| %post | ||
| %{relocateConfig}cmake/millepedeIIConfig.cmake | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| <tool name="@TOOL@" version="@TOOL_VERSION@" revision="1"> | ||
| <info url="https://millepede.pages.desy.de/Mille/"/> | ||
| <client> | ||
| <environment name="@TOOL_BASE@" default="@TOOL_ROOT@"/> | ||
| <environment name="LIBDIR" default="$@TOOL_BASE@/lib"/> | ||
| <environment name="INCLUDE" default="$@TOOL_BASE@/include"/> | ||
| </client> | ||
| <runtime name="PATH" value="$@TOOL_BASE@/bin" type="path"/> | ||
| <lib name="Mille2"/> | ||
| <lib name="MilleC"/> | ||
| <use name="sockets"/> | ||
| <use name="pcre"/> | ||
| <use name="root"/> | ||
| <use name="zlib"/> | ||
| </tool> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,11 @@ | ||
| <tool name="@TOOL@" version="@TOOL_VERSION@" revision="2"> | ||
| <info url="http://www.wiki.terascale.de/index.php/Millepede_II"/> | ||
| <info url="https://millepede.pages.desy.de/millepede-ii/"/> | ||
| <client> | ||
| <environment name="@TOOL_BASE@" default="@TOOL_ROOT@"/> | ||
| </client> | ||
| <runtime name="PATH" value="$@TOOL_BASE@/bin" type="path"/> | ||
| <use name="sockets"/> | ||
| <use name="pcre"/> | ||
| <use name="zlib"/> | ||
| <use name="root"/> | ||
| <use name="mille"/> | ||
| </tool> |
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.
@goblirsc , please do not delete this line. It is there to make sure that the cpp standard substitution we are doing in the next line works. I see that new gbl has default standard 17 ( https://gitlab.desy.de/millepede/general-broken-lines/-/blob/V04-00-00/cpp/CMakeLists.txt?ref_type=tags#L47) , so please add this line back and update the expected standard i.e.
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.
added lines back and in both cased specified 17 as the standard to replace