Fix DEB packaging to support multi-arch builds#1576
Merged
tuhaihe merged 2 commits intoapache:mainfrom Feb 13, 2026
Merged
Conversation
Member
Author
|
Will test again on the local virtual machine and Docker container. |
reshke
approved these changes
Feb 13, 2026
leborchuk
approved these changes
Feb 13, 2026
Contributor
leborchuk
left a comment
There was a problem hiding this comment.
LGTM, Ok with changing name, short is better. Also see produced debian files, they are the same as for old debian package:
xifos@xifos-dev-jammy:~$ dpkg-deb -c apache-cloudberry-db-incubating_99.0.0-1-ubuntu22.04_amd64.deb | grep bin/postgres
-rwxr-xr-x root/root 20917272 2026-02-13 02:25 ./usr/cloudberry-db/bin/postgres
xifos@xifos-dev-jammy:~$ dpkg-deb -I apache-cloudberry-db-incubating_99.0.0-1-ubuntu22.04_amd64.deb
new Debian package, version 2.0.
size 20856034 bytes: control archive=62785 bytes.
1947 bytes, 32 lines control
263634 bytes, 2734 lines md5sums
143 bytes, 12 lines * postinst #!/bin/bash
218 bytes, 5 lines shlibs
72 bytes, 2 lines triggers
Package: apache-cloudberry-db-incubating
Version: 99.0.0-1-ubuntu22.04
Architecture: amd64
Maintainer: Apache Cloudberry (Incubating) <dev@cloudberry.apache.org>
Installed-Size: 79239
Depends: curl, cgroup-tools, iputils-ping, iproute2, keyutils, krb5-multidev, less, libapr1, libbz2-1.0, libcurl4, libcurl3-gnutls, libevent-2.1-7, libreadline8, libxml2, libyaml-0-2, libldap-2.5-0, libzstd1, libcgroup1, libssl3, libpam0g, libprotobuf23, libpsl5, libuv1, liburing2, libxerces-c3.2, locales, lsof, lz4, net-tools, openssh-client, openssh-server, openssl, python3, rsync, wget, xz-utils, zlib1g
Provides: apache-cloudberry-db
Section: database
Description: Apache Cloudberry (incubating) is an advanced, open-source, massively
parallel processing (MPP) data warehouse developed from PostgreSQL and
Greenplum. It is designed for high-performance analytics on
large-scale data sets, offering powerful analytical capabilities and
enhanced security features.
Key Features:
- Massively parallel processing for optimized performance
- Advanced analytics for complex data processing
- Integration with ETL and BI tools
- Compatibility with multiple data sources and formats
- Enhanced security features
Apache Cloudberry supports both batch processing and real-time data
warehousing, making it a versatile solution for modern data
environments.
Apache Cloudberry (incubating) is an effort undergoing incubation at
the Apache Software Foundation (ASF), sponsored by the Apache
Incubator PMC.
Incubation is required of all newly accepted projects until a further
review indicates that the infrastructure, communications, and decision
making process have stabilized in a manner consistent with other
successful ASF projects.
While incubation status is not necessarily a reflection of the
completeness or stability of the code, it does indicate that the
project has yet to be fully endorsed by the ASF.
Member
Author
Member
Author
Thanks for reviewing! Here, we follow the ASF rules for compliance and set a high standard ourselves. |
Fix DEB build failures on arm64 by addressing three issues: - Change Architecture from 'amd64' to 'any' in control file to support building on any architecture - Fix DESTDIR path in rules to correctly install cloudberry-env.sh to the debian staging directory - Use DEB_HOST_MULTIARCH variable instead of hardcoded x86_64 path for libfakeroot in dh_shlibdeps Also update package version format to include OS distribution name (e.g., ubuntu22.04) instead of git commit info for clearer package identification. The file name format will be like: ``` apache-cloudberry-db-incubating_2.1.0-1-ubuntu22.04_arm64.deb ``` Before: ``` apache-cloudberry-db-incubating_2.1.0-1-1.bdf90c55_arm64.deb ```
5aa7325 to
af35cee
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Fix DEB build failures on arm64 by addressing three issues:
Also update package version format to include OS distribution name (e.g., ubuntu22.04) instead of git commit info for clearer package identification. The file name format will be like:
Before:
Fixes #ISSUE_Number
What does this PR do?
Type of Change
Breaking Changes
Test Plan
make installcheckmake -C src/test installcheck-cbdb-parallelImpact
Performance:
User-facing changes:
Dependencies:
Checklist
Additional Context
CI Skip Instructions