Closed AlexRuiz7 closed 6 days ago
I tested this but I still cannot see the revision in the final package:
fede@tyner:~/src/wazuh-indexer (ci/277-add-revision-as-metadata-to-deb-packages)
$ dpkg -I artifacts/dist/wazuh-indexer_4.9.0_amd64.deb
new Debian package, version 2.0.
size 850530026 bytes: control archive=27753 bytes.
1704 bytes, 30 lines conffiles
676 bytes, 13 lines control
104140 bytes, 1003 lines md5sums
1602 bytes, 58 lines * postinst #!/bin/bash
1118 bytes, 31 lines * preinst #!/bin/bash
828 bytes, 26 lines * prerm #!/bin/bash
Package: wazuh-indexer
Version: 4.9.0
Architecture: amd64
Maintainer: Wazuh Indexer Team <info@wazuh.com>
Installed-Size: 1051646
Section: web
Priority: optional
Homepage: https://www.wazuh.com/
Description: Wazuh indexer is a near real-time full-text search and analytics engine that gathers security-related data into one platform.
This Wazuh central component indexes and stores alerts generated by the Wazuh server.
Wazuh indexer can be configured as a single-node or multi-node cluster, providing scalability and high availability.
Documentation can be found at https://documentation.wazuh.com/current/getting-started/components/wazuh-indexer.html
License: Apache-2.0
debmake
seems to have received the right parameter though:
+ echo 'DEBUILD_DPKG_BUILDPACKAGE_OPTS="-us -uc -b"'
+ debmake --fullname 'Wazuh Team' --email hello@wazuh.com --invoke debuild --package wazuh-indexer --native --revision 1 --upstreamversion 4.9.0
I: set parameters
I: sanity check of parameters
W: -p "wazuh-indexer" != auto set value ""
W: -u "4.9.0" != auto set value ""
W: -r "1" != auto set value ""
I: pkg="wazuh-indexer", ver="4.9.0", rev="1"
Didn't work
dpkg-deb -I wazuh-indexer_4.9.0-0_amd64_9fe851b.deb
paquete Debian nuevo, versión 2.0.
tamaño 850267444 bytes: archivo de control= 27750 bytes.
1704 bytes, 30 líneas conffiles
676 bytes, 13 líneas control
104140 bytes, 1003 líneas md5sums
1602 bytes, 58 líneas * postinst #!/bin/bash
1118 bytes, 31 líneas * preinst #!/bin/bash
828 bytes, 26 líneas * prerm #!/bin/bash
Package: wazuh-indexer
Version: 4.9.0
Architecture: amd64
Maintainer: Wazuh Indexer Team <info@wazuh.com>
Installed-Size: 1051397
Section: web
Priority: optional
Homepage: https://www.wazuh.com/
Description: Wazuh indexer is a near real-time full-text search and analytics engine that gathers security-related data into one platform.
This Wazuh central component indexes and stores alerts generated by the Wazuh server.
Wazuh indexer can be configured as a single-node or multi-node cluster, providing scalability and high availability.
Documentation can be found at https://documentation.wazuh.com/current/getting-started/components/wazuh-indexer.html
License: Apache-2.0
Description
On this PR I try to fix the missing revision on the DEB package metadata by removing the
-ui
option when invokingdebuild
, to make it identical to the previous package builder.https://man7.org/linux/man-pages/man1/dpkg-buildpackage.1.html
Issues Resolved
277
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.