Skip to content

Conversation

@BewareMyPower
Copy link
Contributor

@BewareMyPower BewareMyPower commented Jun 17, 2024

Motivation

See https://lists.apache.org/thread/7o8hpv1gtoffvzx053wm0ss2s9xt0795, we will discard the support for CentOS 7 and old std::string ABI.

Modifications

  • Switch from centos:7 image and GCC 4.8 to rockylinux:8 image and GCC 8 to build RPM packages.
  • Use vcpkg to install dependencies according to vcpkg.json (dependencies.json will be deprecated in future)
  • Add a new script to build libpulsarwithdeps.a for dependencies installed by vcpkg
  • Link to libstdc++ and libgcc_s libraries statically

Additional, with vcpkg, OpenSSL will search /etc/ssl/certs.pem for the default CA certificate rather than /usr/local/ssl/ssl/certs.pem.

@BewareMyPower BewareMyPower self-assigned this Jun 17, 2024
@BewareMyPower BewareMyPower added this to the 3.6.0 milestone Jun 17, 2024
@BewareMyPower
Copy link
Contributor Author

This patch has been verified in my own fork, see BewareMyPower#32 (comment)

Co-authored-by: Matteo Merli <mmerli@apache.org>
@BewareMyPower BewareMyPower merged commit 8aab896 into apache:main Jun 24, 2024
@BewareMyPower BewareMyPower deleted the bewaremypower/vcpkg-rpm branch June 24, 2024 14:15
shibd pushed a commit to shibd/pulsar-client-cpp that referenced this pull request Aug 21, 2024
### Motivation

See https://lists.apache.org/thread/7o8hpv1gtoffvzx053wm0ss2s9xt0795, we will discard the support for CentOS 7 and old `std::string` ABI.

### Modifications

- Switch from `centos:7` image and GCC 4.8 to `rockylinux:8` image and GCC 8 to build RPM packages.
- Use vcpkg to install dependencies according to `vcpkg.json` (`dependencies.json` will be deprecated in future)
- Add a new script to build `libpulsarwithdeps.a` for dependencies installed by vcpkg
- Link to `libstdc++` and `libgcc_s` libraries statically

Additional, with vcpkg, OpenSSL will search `/etc/ssl/certs.pem` for the default CA certificate rather than `/usr/local/ssl/ssl/certs.pem`.

(cherry picked from commit 8aab896)
shibd pushed a commit to shibd/pulsar-client-cpp that referenced this pull request Aug 21, 2024
### Motivation

See https://lists.apache.org/thread/7o8hpv1gtoffvzx053wm0ss2s9xt0795, we will discard the support for CentOS 7 and old `std::string` ABI.

### Modifications

- Switch from `centos:7` image and GCC 4.8 to `rockylinux:8` image and GCC 8 to build RPM packages.
- Use vcpkg to install dependencies according to `vcpkg.json` (`dependencies.json` will be deprecated in future)
- Add a new script to build `libpulsarwithdeps.a` for dependencies installed by vcpkg
- Link to `libstdc++` and `libgcc_s` libraries statically

Additional, with vcpkg, OpenSSL will search `/etc/ssl/certs.pem` for the default CA certificate rather than `/usr/local/ssl/ssl/certs.pem`.

(cherry picked from commit 8aab896)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants