Repository navigation
Copr packaging - #487
Closed
xgerman wants to merge 10 commits into
Closed
Copr packaging#487xgerman wants to merge 10 commits into
xgerman wants to merge 10 commits into
Conversation
Add three new files for Copr-based RPM distribution targeting Fedora + PG 18: - packaging/rpm/spec/documentdb-copr.spec: Copr-compatible spec producing three binary RPMs (postgresql18-documentdb, documentdb-gateway, documentdb-server meta-package). Builds vendored libbson and Intel Decimal Math Library in-tree; uses system pcre2-devel. - .copr/Makefile: SRPM builder for Copr SCM integration. Downloads vendored sources, creates cargo vendor tarball, and produces the SRPM. - packaging/README.md: Documents Copr project setup, SCM integration, external PGDG repo configuration, and user installation instructions. Co-authored-by: Copilot <[email protected]>
Update all packaging and documentation references from the old 'vCore-based Azure Cosmos DB for MongoDB' branding to 'Azure DocumentDB'. Co-authored-by: Copilot <[email protected]>
The last changelog entry was missing email, version, and description, causing 'no description in %changelog' error during SRPM build. Co-authored-by: Copilot <[email protected]>
The Copr SRPM mock chroot does not include git. It is needed to clone the Intel Decimal Math Library from Launchpad. Co-authored-by: Copilot <[email protected]>
Add packaging/test_copr_srpm.sh that runs the .copr/Makefile srpm target inside a Fedora container, replicating the Copr mock chroot environment. Also add make_srpm to the SCM settings table and a testing section in README. Co-authored-by: Copilot <[email protected]>
Use fedora-42 (pinned) instead of $releasever (rawhide expands to 45 which PGDG doesn't publish). Use $basearch instead of hardcoded x86_64 to support aarch64 builds. Co-authored-by: Copilot <[email protected]>
The PGDG extensions install to /usr/pgsql-18/lib which triggers Fedora's check-rpaths (error 0x0002: standard library path). Set QA_RPATHS=0x0002 to allow this expected RPATH. Also add EPEL-9 chroots (x86_64 + aarch64) to README docs since PGDG publishes aarch64 packages for EL-9 but not for Fedora. Co-authored-by: Copilot <[email protected]>
Replace pcre2-static BuildRequires with a vendored pcre2 source build. RHEL 9 / EL9 does not ship pcre2-static in base repos (it requires CRB), which caused the COPR epel-9 build to fail. Building pcre2 from source as a static library avoids this dependency issue. Changes: - Add pcre2 source tarball as Source4 - Build pcre2 static lib in %build and install to _vendored prefix - Remove pcre2-static from BuildRequires (pcre2-devel still needed for headers) - Add Provides: bundled(pcre2) for rpmlint compliance Co-authored-by: Copilot <[email protected]>
- Add fedora-42-aarch64 chroot to setup instructions - Document RHEL 9 PGDG repo needed for Fedora aarch64 builds - Add vendored build dependencies table (libbson, intelmathlib, pcre2) - Update spec file description to cover both Fedora and EPEL Co-authored-by: Copilot <[email protected]>
The PGDG RPM creates /var/lib/pgsql owned by the postgres user. Use that user directly instead of creating a separate documentdb user. Co-authored-by: Copilot <[email protected]>
Contributor
Author
|
will re-open when I have it working |
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.
Summary
Adds Fedora Copr integration to distribute DocumentDB as RPM packages, and updates branding from "Azure Cosmos DB for MongoDB" to
"Azure DocumentDB".
Packages produced
A single SRPM builds three binary RPMs:
postgresql18-documentdbdocumentdb_core,documentdb,documentdb_extended_rumdocumentdb-gatewaydocumentdb-serverNew files
packaging/rpm/spec/documentdb-copr.spec— Copr-compatible spec file. Builds vendored libbson and Intel Decimal Math Libraryin-tree; uses system
pcre2-devel. Targets PG 18 on Fedora via PGDG external repo..copr/Makefile—srpmtarget for Copr SCM integration. Downloads vendored sources, creates cargo vendor tarball, and producesthe SRPM.
packaging/README.md— Documents Copr project setup, external repo config, and user installation.Branding update
Replaces "vCore-based Azure Cosmos DB for MongoDB" with "Azure DocumentDB" across packaging and documentation files.