Skip to content

V3.0.3 add fedora42 builds#5138

Merged
renecannao merged 8 commits intov3.0from
v3.0.3-add_fedora42_builds
Oct 6, 2025
Merged

V3.0.3 add fedora42 builds#5138
renecannao merged 8 commits intov3.0from
v3.0.3-add_fedora42_builds

Conversation

@mirostauder
Copy link
Contributor

adds fedora42 builds
due to new GCC compiler, some issues need to be solved:
fix by updating libconfig to v1.8.1
patch mariadb-client - bool is a keyword
fix by updating postgresql to 16.10
add explicit include in btree.h

@mirostauder mirostauder added this to the Release 3.0.3 milestone Oct 2, 2025
@mirostauder mirostauder self-assigned this Oct 2, 2025
@gemini-code-assist
Copy link

Summary of Changes

Hello @mirostauder, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces support for building on Fedora 42, addressing the necessary compatibility adjustments for its updated GCC compiler. The changes involve updating several core dependencies, applying specific patches to resolve compiler-related issues, and integrating the new build targets into the existing build system and Docker Compose configurations. The primary goal is to ensure the project can be successfully built and tested on the latest Fedora release.

Highlights

  • Fedora 42 Build Support: Added comprehensive build support for Fedora 42 across both amd64 and arm64 architectures, including standard, clang, and debug configurations.
  • Dependency Updates: Updated the libconfig dependency to version 1.8.1 and the PostgreSQL dependency to version 16.10 to ensure compatibility with the new Fedora 42 environment.
  • Compiler Compatibility Fixes: Implemented a patch for the MariaDB client library to resolve a bool keyword conflict with the newer GCC compiler, and added an explicit include for <cstdint> in btree.h.
  • Build System Adjustments: Modified deps/Makefile and src/Makefile to align with the updated libconfig build process, now utilizing CMake, and added new Docker Compose services for Fedora 42 builds.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@mirostauder mirostauder marked this pull request as draft October 2, 2025 09:13
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds support for Fedora 42 builds. The changes include updating dependencies like libconfig to v1.8.1 and postgresql to 16.10, and patching mariadb-client to resolve a compiler issue with the bool keyword. Build configurations in Makefiles and docker-compose.yml are updated accordingly. The changes are logical and directly support the goal of enabling Fedora 42 builds. I have one suggestion to improve the maintainability of the docker-compose.yml file by reducing duplication.

Comment on lines +108 to +119
fedora42_build:
extends:
service: _build
image: proxysql/packaging:build-fedora42-v3.0.2
volumes:
- ./docker/images/proxysql/rhel-compliant/rpmmacros/rpmbuild/:/root/rpmbuild/
- ./docker/images/proxysql/rhel-compliant/rpmmacros/.rpmmacros:/root/.rpmmacros
- ./docker/images/proxysql/rhel-compliant/entrypoint/:/opt/entrypoint/
- ./:/opt/proxysql/
environment:
- PKG_RELEASE=fedora42
- PROXYSQL_BUILD_TYPE=clickhouse

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

While the new fedora42_build service is consistent with the existing Fedora build services, it adds to the duplication in this file. The volumes section is identical for fedora40_build, fedora41_build, and the new fedora42_build.

To improve maintainability and make it easier to add new Fedora versions in the future, consider creating a common base service for Fedora builds that contains the shared properties. For example:

  _fedora_build_base:
    extends:
      service: _build
    volumes:
      - ./docker/images/proxysql/rhel-compliant/rpmmacros/rpmbuild/:/root/rpmbuild/
      - ./docker/images/proxysql/rhel-compliant/rpmmacros/.rpmmacros:/root/.rpmmacros
      - ./docker/images/proxysql/rhel-compliant/entrypoint/:/opt/entrypoint/
      - ./:/opt/proxysql/

Then, each specific Fedora build service can extend this base, reducing repetition:

  fedora42_build:
    extends:
      service: _fedora_build_base
    image: proxysql/packaging:build-fedora42-v3.0.2
    environment:
      - PKG_RELEASE=fedora42
      - PROXYSQL_BUILD_TYPE=clickhouse

This refactoring could be applied to the other Fedora build services as well.

@mirostauder mirostauder marked this pull request as ready for review October 2, 2025 09:21
@mirostauder mirostauder marked this pull request as draft October 2, 2025 10:37
@mirostauder mirostauder marked this pull request as ready for review October 2, 2025 21:06
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 2, 2025

@renecannao renecannao merged commit b9a5253 into v3.0 Oct 6, 2025
149 of 155 checks passed
@mirostauder mirostauder mentioned this pull request Oct 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants