RPM Build script && Use host glibmm#96
Conversation
ac7d337 to
1521f2c
Compare
|
|
I'm merging this into |
|
|
||
|
|
||
| std::string checksum(const std::string& data); | ||
| std::string checksum(const std::filesystem::path& path, const std::size_t chunkSize = 16384); |
There was a problem hiding this comment.
The magic number should be a constexpr std::uint_fast16_t elsewhere.
| License: Apache 2.0 | ||
| URL: https://versatushpc.com.br/opencattus/ | ||
| Source0: opencattus-%{VERSION}.tar.gz | ||
| BuildRequires: make,cmake,cppcheck,ninja-build,newt-devel,gcc-toolset-14,gcc-toolset-14-libubsan-devel,gcc-toolset-14-libasan-devel |
There was a problem hiding this comment.
It's a good idea to target what will be shipped in RHEL 10. I don't remember the version they are targetting.
| /usr/bin/cloysterhpc | ||
|
|
||
| %changelog | ||
| * Tue Feb 25 2025 Daniel Hilst <danielhilst@versatushpc.com> - 1.0-1 |
There was a problem hiding this comment.
Your own email address is wrong.
|
Oh that was already merged @dhilst? Can you look at the comments? And maybe address in other PR? |
@viniciusferrao This was merged in another PR, not in the master, you can review the changes in that PR: |
* WIP: Repository class refactoring * Add parse() and unparse() methods, fix more things * Add stringstream read specialization, as suggested by @dhilst * Move some common functions to functions.h * Remove this-> * Fix repo class * Fix const ref and declaration name * Fix naming * Rename required files * fixup! Rename required files * WIP repositories class sketches * Make Cluster generic over Runner This commit adds a type parameter in Cluster class regarding the Runner. This is in an intetion to decouple cluster from the Runner in the near future. Then all these type parameters spreding all over the place can be removed Runner is a special case here, it what runs commands so I want to be very strict in where we can use it. Another thing to pay attention is that Cluster is a kind of "god" object where every other parts of the code rely into, we want to break this into smaller pieces and have the code depending on more atomic parts, this will help with testability. * Removing Runner from Cluster * Detach the presenter/view build from the rest of the code The intent is that this become an internal library in future Rationale: Having better separation of concerns and less coupling between some complex components (like the UI) from the remaining of the code. This may make the building faster on average aftewars. * WIP Refactoring RepoManager * Isolating Glib::KeyFile * Add name spaces and move files to their places I'm favoring to move stuff to models/ or services/ folders/namespaces. There is a lot of moves to do yet but this already outlines some structure * Refactoring RepoManager * Testing RepoManager refactoring * Run clang-format * Testing release build * Run clang-format again * Remove empty file * Remove commented code * Add RPMRepoManager sketch implementation * Replace old code with RPMRepositoryManager in repos.cpp * Remove unused code * Save RPMRepositoryFile only once for multiple enable calls * Run clang-format * RPM Build script && Use host glibmm (#96) * Add script to build rpms * Fix debug build * Link against host Glibmm using pkg-config * Extract glibmm from diskImage, move it to files.cpp --------- Co-authored-by: Daniel Hilst <daniel@versatushpc.com.br> * OFED doca + Revam repos + Remove deps (#97) * Adding OFED option and Cluster singleton with global getter * Add singleton class * Use Singleton<T> class for other singletons * Make all Dry Run message LOG_INFO * Remove print and test option * Implement DOCA kernel driver installation into the netboot image * Fix OFED installation in headnode * Fix review comments * Generalize testing and fix createHTTPRepo function * Remove CATTUS_... environment variables in favor of --force + --skip flags * Rename BaseRunner to IRunner for consistency * Wrap magic_enum lib * Remove package_manager in favor of IOSService interface * Deduplicate code * Run clang-format * Remove hwinfo, cloyster/hardware.h and tests The tests are breaking because of the refactoring, I'll redo the tests after I finish it * Remove inifile in favor of KeyFile * Removing old repository code * Add comments and FIXME * Use boost to parse options * Run clang-format * Decouple message bus from implementors * Fix test command handling * Fix warning in options.h * Restores runtime behavior after refactoring (WIP) * Replace boost::program_options with CLI11 * Implement repository sanity checking logic in repos.cpp * WIP generalizing repository addition * Restore testing code infra * Add test on the CI * Move singletons initalization to its own file * [WIP] Add libbacktrace to the dependencies * Decouple I/O from repository config classes to make them testable * Remove stacktrace attempt There is no libstdc++exp.a in Rocklinux repositories, stacktrace requires it. * Continuing the repositories core logic implementation * Remove old repository installation for xCAT and OFED * Add test files * Add ScriptBuilder service * Update NFS with script builder * Refactor NFS to use ScriptBuilder for installation and image customization. * WIP Fixing repositories bugs after the revamp * Fixing image generation and bugs after revamp * Fix the tests --------- Co-authored-by: Daniel Hilst <daniel@versatushpc.com.br> --------- Co-authored-by: Daniel Hilst <daniel@versatushpc.com.br> Co-authored-by: Daniel Hilst <danielhilst@gmail.com>



Add a small script and a .spec file to generate the RPM
-- Edit --
~/rpmbuild/RPMS/folder, as usual. The .spec file is not being generated by CPack