-
Notifications
You must be signed in to change notification settings - Fork 34
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
Linux (DEB) Package Creation #143
Comments
UpdateI've begun researching this issue and have started working on a solution. 2024-09-13I encountered some issues when generating packages using the SPECS files from the repository. After some investigation, I discovered the cause: the files were uploaded with Windows-style line endings (CRLF) instead of Unix-style (LF).
2024-09-16To avoid potential issues with older OS versions (meaning that when we generate Debian packages using a newer version of Debian, the packages might not work on older Debian versions), I am trying to use the same OS we currently use for generating Debian packages:
/bootstrap-vcpkg.sh
Downloading vcpkg-glibc...
curl: option --tlsv1.2: is unknown
curl: try 'curl --help' or 'curl --manual' for more information
Build curl 8-10.0curl-8.10.0# ./configure --with-gnutls --with-secure-transport --with-openssl
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports nested variables... yes
checking whether to enable debug build options... no
checking whether to enable compiler optimizer... (assumed) yes
checking whether to enable strict compiler warnings... no
checking whether to enable compiler warnings as errors... no
checking whether to enable curl debug memory tracking... no
checking whether to enable hiding of library internal symbols... yes
checking whether to enable c-ares for DNS lookups... no
checking whether to disable dependency on -lrt... (assumed no)
checking whether to enable HTTPSRR support... no
checking whether to enable ECH support... no
checking for path separator... :
...
checking default CA cert bundle/path... configure: want unset ca /etc/ssl/certs/ca-certificates.crt
/etc/ssl/certs/ca-certificates.crt
/etc/ssl/certs (capath)
checking whether to use built-in CA store of SSL library... no
checking CA cert bundle path to embed... no
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for libpsl options with pkg-config... no
checking for psl_builtin in -lpsl... no
configure: error: libpsl libs and/or directories were not found where specified! 2024-09-17Based on tier-1, I am trying to generate Debian packages using Debian 10. With this change, I got vcpkg to download the dependencies. However, when the build process started, I encountered problems with certain dependencies and g++ versions. After trying g++-10, it didn't work, so I had to build g++-14 from the source. It looks like I am close to completing the build process. I just have this pending issue to fix:
I haven't had time to investigate this further. 2024-09-18
|
Update
I am not prioritizing this issue for now as there are other things that need to be defined first. |
Dear @lchico, let me write here a brief of our discussion:
In conclusion, for all of these items, we need to ensure we follow the system standards for each platform (Debian, RedHat, Windows, macOS), reference the vendor's documentation, and review our requirements. We should adhere to the default standards unless we have a clear reason to deviate, which should be documented thoroughly. References |
First, thank you @vikman90. That sounds very clear to me. Update
|
Update(24/09/2024) Updating Dockerfile to enable compiling with the new repository, covering different dependencies. The GCC version has been downgraded to 13.2.0 since using 14.2 was causing |
Update 26/09/2024
Update 27/09/2024
Update 30/09/2024
|
Current DEB package
|
UpdateTest branch: In the branch, I have rebased the rest of the branches and added some steps to the Dockerfile to try to generate a 5.0 package. (10/21) - Compilation problems due to some (10/22) - Fixed vcpkg dependencies issue. (10/23) - Package generated successfully. |
Parent Issue:
Description
This issue focuses on creating a DEB package for Debian-based distributions such as Debian and Ubuntu. The package should manage all necessary dependencies and include pre/post-installation scripts to ensure that the Wazuh agent service is automatically enabled and running after installation.
Functional Requirements
Acceptance Criteria
The text was updated successfully, but these errors were encountered: