Skip to content

Commit

Permalink
avoid deprecated code
Browse files Browse the repository at this point in the history
  • Loading branch information
dbolduc committed Jun 27, 2024
1 parent b709d07 commit b71bc24
Show file tree
Hide file tree
Showing 20 changed files with 31 additions and 2 deletions.
3 changes: 1 addition & 2 deletions ci/cloudbuild/dockerfiles/centos-7.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@ RUN curl -fsSL https://github.com/open-telemetry/opentelemetry-cpp/archive/v1.16
-DBUILD_TESTING=OFF \
-DOPENTELEMETRY_INSTALL=ON \
-DOPENTELEMETRY_ABI_VERSION_NO=2 \
-DgRPC_OPENTELEMETRY_PROVIDER=package \
-DgRPC_BUILD_GRPCPP_OTEL_PLUGIN=ON \
-DWITH_DEPRECATED_SDK_FACTORY=OFF \
-GNinja -S . -B cmake-out && \
cmake --build cmake-out --target install && \
ldconfig && cd /var/tmp && rm -fr build
Expand Down
1 change: 1 addition & 0 deletions ci/cloudbuild/dockerfiles/demo-alpine-stable.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ RUN curl -fsSL https://github.com/open-telemetry/opentelemetry-cpp/archive/v1.16
-DBUILD_TESTING=OFF \
-DOPENTELEMETRY_INSTALL=ON \
-DOPENTELEMETRY_ABI_VERSION_NO=2 \
-DWITH_DEPRECATED_SDK_FACTORY=OFF \
-S . -B cmake-out && \
cmake --build cmake-out --target install -- -j ${NCPU:-4}
# ```
Expand Down
1 change: 1 addition & 0 deletions ci/cloudbuild/dockerfiles/demo-centos-7.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ RUN curl -fsSL https://github.com/open-telemetry/opentelemetry-cpp/archive/v1.16
-DBUILD_TESTING=OFF \
-DOPENTELEMETRY_INSTALL=ON \
-DOPENTELEMETRY_ABI_VERSION_NO=2 \
-DWITH_DEPRECATED_SDK_FACTORY=OFF \
-S . -B cmake-out && \
cmake --build cmake-out --target install -- -j ${NCPU:-4} && \
ldconfig
Expand Down
1 change: 1 addition & 0 deletions ci/cloudbuild/dockerfiles/demo-debian-bookworm.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ RUN curl -fsSL https://github.com/open-telemetry/opentelemetry-cpp/archive/v1.16
-DBUILD_TESTING=OFF \
-DOPENTELEMETRY_INSTALL=ON \
-DOPENTELEMETRY_ABI_VERSION_NO=2 \
-DWITH_DEPRECATED_SDK_FACTORY=OFF \
-S . -B cmake-out && \
cmake --build cmake-out --target install -- -j ${NCPU:-4} && \
ldconfig
Expand Down
1 change: 1 addition & 0 deletions ci/cloudbuild/dockerfiles/demo-debian-bullseye.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ RUN curl -fsSL https://github.com/open-telemetry/opentelemetry-cpp/archive/v1.16
-DBUILD_TESTING=OFF \
-DOPENTELEMETRY_INSTALL=ON \
-DOPENTELEMETRY_ABI_VERSION_NO=2 \
-DWITH_DEPRECATED_SDK_FACTORY=OFF \
-S . -B cmake-out && \
cmake --build cmake-out --target install -- -j ${NCPU:-4} && \
ldconfig
Expand Down
1 change: 1 addition & 0 deletions ci/cloudbuild/dockerfiles/demo-debian-buster.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ RUN curl -fsSL https://github.com/open-telemetry/opentelemetry-cpp/archive/v1.16
-DBUILD_TESTING=OFF \
-DOPENTELEMETRY_INSTALL=ON \
-DOPENTELEMETRY_ABI_VERSION_NO=2 \
-DWITH_DEPRECATED_SDK_FACTORY=OFF \
-S . -B cmake-out && \
cmake --build cmake-out --target install -- -j ${NCPU:-4} && \
ldconfig
Expand Down
1 change: 1 addition & 0 deletions ci/cloudbuild/dockerfiles/demo-fedora.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ RUN curl -fsSL https://github.com/open-telemetry/opentelemetry-cpp/archive/v1.16
-DBUILD_TESTING=OFF \
-DOPENTELEMETRY_INSTALL=ON \
-DOPENTELEMETRY_ABI_VERSION_NO=2 \
-DWITH_DEPRECATED_SDK_FACTORY=OFF \
-S . -B cmake-out && \
cmake --build cmake-out --target install -- -j ${NCPU:-4} && \
ldconfig
Expand Down
1 change: 1 addition & 0 deletions ci/cloudbuild/dockerfiles/demo-opensuse-leap.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ RUN curl -fsSL https://github.com/open-telemetry/opentelemetry-cpp/archive/v1.16
-DBUILD_TESTING=OFF \
-DOPENTELEMETRY_INSTALL=ON \
-DOPENTELEMETRY_ABI_VERSION_NO=2 \
-DWITH_DEPRECATED_SDK_FACTORY=OFF \
-S . -B cmake-out && \
cmake --build cmake-out --target install -- -j ${NCPU:-4} && \
ldconfig
Expand Down
1 change: 1 addition & 0 deletions ci/cloudbuild/dockerfiles/demo-rockylinux-8.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ RUN curl -fsSL https://github.com/open-telemetry/opentelemetry-cpp/archive/v1.16
-DBUILD_TESTING=OFF \
-DOPENTELEMETRY_INSTALL=ON \
-DOPENTELEMETRY_ABI_VERSION_NO=2 \
-DWITH_DEPRECATED_SDK_FACTORY=OFF \
-S . -B cmake-out && \
cmake --build cmake-out --target install -- -j ${NCPU:-4} && \
ldconfig
Expand Down
1 change: 1 addition & 0 deletions ci/cloudbuild/dockerfiles/demo-rockylinux-9.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ RUN curl -fsSL https://github.com/open-telemetry/opentelemetry-cpp/archive/v1.16
-DBUILD_TESTING=OFF \
-DOPENTELEMETRY_INSTALL=ON \
-DOPENTELEMETRY_ABI_VERSION_NO=2 \
-DWITH_DEPRECATED_SDK_FACTORY=OFF \
-S . -B cmake-out && \
cmake --build cmake-out --target install -- -j ${NCPU:-4} && \
ldconfig
Expand Down
1 change: 1 addition & 0 deletions ci/cloudbuild/dockerfiles/demo-ubuntu-24.04.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ RUN curl -fsSL https://github.com/open-telemetry/opentelemetry-cpp/archive/v1.16
-DBUILD_TESTING=OFF \
-DOPENTELEMETRY_INSTALL=ON \
-DOPENTELEMETRY_ABI_VERSION_NO=2 \
-DWITH_DEPRECATED_SDK_FACTORY=OFF \
-S . -B cmake-out && \
cmake --build cmake-out --target install -- -j ${NCPU:-4} && \
ldconfig
Expand Down
1 change: 1 addition & 0 deletions ci/cloudbuild/dockerfiles/demo-ubuntu-focal.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ RUN curl -fsSL https://github.com/open-telemetry/opentelemetry-cpp/archive/v1.16
-DBUILD_TESTING=OFF \
-DOPENTELEMETRY_INSTALL=ON \
-DOPENTELEMETRY_ABI_VERSION_NO=2 \
-DWITH_DEPRECATED_SDK_FACTORY=OFF \
-S . -B cmake-out && \
cmake --build cmake-out --target install -- -j ${NCPU:-4} && \
ldconfig
Expand Down
1 change: 1 addition & 0 deletions ci/cloudbuild/dockerfiles/demo-ubuntu-jammy.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ RUN curl -fsSL https://github.com/open-telemetry/opentelemetry-cpp/archive/v1.16
-DBUILD_TESTING=OFF \
-DOPENTELEMETRY_INSTALL=ON \
-DOPENTELEMETRY_ABI_VERSION_NO=2 \
-DWITH_DEPRECATED_SDK_FACTORY=OFF \
-S . -B cmake-out && \
cmake --build cmake-out --target install -- -j ${NCPU:-4} && \
ldconfig
Expand Down
1 change: 1 addition & 0 deletions ci/cloudbuild/dockerfiles/fedora-latest-cmake.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ RUN curl -fsSL https://github.com/open-telemetry/opentelemetry-cpp/archive/v1.16
-DBUILD_TESTING=OFF \
-DOPENTELEMETRY_INSTALL=ON \
-DOPENTELEMETRY_ABI_VERSION_NO=2 \
-DWITH_DEPRECATED_SDK_FACTORY=OFF \
-S . -B cmake-out -GNinja && \
cmake --build cmake-out --target install && \
ldconfig && cd /var/tmp && rm -fr build
Expand Down
1 change: 1 addition & 0 deletions ci/cloudbuild/dockerfiles/fedora-latest-cxx14.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ RUN curl -fsSL https://github.com/open-telemetry/opentelemetry-cpp/archive/v1.16
-DBUILD_TESTING=OFF \
-DOPENTELEMETRY_INSTALL=ON \
-DOPENTELEMETRY_ABI_VERSION_NO=2 \
-DWITH_DEPRECATED_SDK_FACTORY=OFF \
-GNinja -S . -B cmake-out && \
cmake --build cmake-out && cmake --install cmake-out && \
ldconfig && cd /var/tmp && rm -fr build
Expand Down
1 change: 1 addition & 0 deletions ci/cloudbuild/dockerfiles/fedora-latest-cxx20.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ RUN curl -fsSL https://github.com/open-telemetry/opentelemetry-cpp/archive/v1.16
-DBUILD_TESTING=OFF \
-DOPENTELEMETRY_INSTALL=ON \
-DOPENTELEMETRY_ABI_VERSION_NO=2 \
-DWITH_DEPRECATED_SDK_FACTORY=OFF \
-GNinja -S . -B cmake-out && \
cmake --build cmake-out && cmake --install cmake-out && \
ldconfig && cd /var/tmp && rm -fr build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ RUN curl -fsSL https://github.com/open-telemetry/opentelemetry-cpp/archive/v1.16
-DBUILD_TESTING=OFF \
-DOPENTELEMETRY_INSTALL=ON \
-DOPENTELEMETRY_ABI_VERSION_NO=2 \
-DWITH_DEPRECATED_SDK_FACTORY=OFF \
-S . -B cmake-out -GNinja && \
cmake --build cmake-out --target install && \
ldconfig && cd /var/tmp && rm -fr build
Expand Down
1 change: 1 addition & 0 deletions ci/cloudbuild/dockerfiles/fedora-m32.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ RUN curl -fsSL https://github.com/open-telemetry/opentelemetry-cpp/archive/v1.16
-DBUILD_TESTING=OFF \
-DOPENTELEMETRY_INSTALL=ON \
-DOPENTELEMETRY_ABI_VERSION_NO=2 \
-DWITH_DEPRECATED_SDK_FACTORY=OFF \
-S . -B cmake-out && \
cmake --build cmake-out --target install -- -j ${NCPU:-4} && \
ldconfig
Expand Down
1 change: 1 addition & 0 deletions ci/cloudbuild/dockerfiles/ubuntu-20.04-install.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ RUN curl -fsSL https://github.com/open-telemetry/opentelemetry-cpp/archive/v1.16
-DBUILD_TESTING=OFF \
-DOPENTELEMETRY_INSTALL=ON \
-DOPENTELEMETRY_ABI_VERSION_NO=2 \
-DWITH_DEPRECATED_SDK_FACTORY=OFF \
-S . -B cmake-out -GNinja && \
cmake --build cmake-out --target install && \
ldconfig && cd /var/tmp && rm -fr build
Expand Down
12 changes: 12 additions & 0 deletions doc/packaging.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ curl -fsSL https://github.com/open-telemetry/opentelemetry-cpp/archive/v1.16.0.t
-DBUILD_TESTING=OFF \
-DOPENTELEMETRY_INSTALL=ON \
-DOPENTELEMETRY_ABI_VERSION_NO=2 \
-DWITH_DEPRECATED_SDK_FACTORY=OFF \
-S . -B cmake-out && \
sudo cmake --build cmake-out --target install -- -j ${NCPU:-4}
```
Expand Down Expand Up @@ -313,6 +314,7 @@ curl -fsSL https://github.com/open-telemetry/opentelemetry-cpp/archive/v1.16.0.t
-DBUILD_TESTING=OFF \
-DOPENTELEMETRY_INSTALL=ON \
-DOPENTELEMETRY_ABI_VERSION_NO=2 \
-DWITH_DEPRECATED_SDK_FACTORY=OFF \
-S . -B cmake-out && \
sudo cmake --build cmake-out --target install -- -j ${NCPU:-4} && \
sudo ldconfig
Expand Down Expand Up @@ -455,6 +457,7 @@ curl -fsSL https://github.com/open-telemetry/opentelemetry-cpp/archive/v1.16.0.t
-DBUILD_TESTING=OFF \
-DOPENTELEMETRY_INSTALL=ON \
-DOPENTELEMETRY_ABI_VERSION_NO=2 \
-DWITH_DEPRECATED_SDK_FACTORY=OFF \
-S . -B cmake-out && \
sudo cmake --build cmake-out --target install -- -j ${NCPU:-4} && \
sudo ldconfig
Expand Down Expand Up @@ -574,6 +577,7 @@ curl -fsSL https://github.com/open-telemetry/opentelemetry-cpp/archive/v1.16.0.t
-DBUILD_TESTING=OFF \
-DOPENTELEMETRY_INSTALL=ON \
-DOPENTELEMETRY_ABI_VERSION_NO=2 \
-DWITH_DEPRECATED_SDK_FACTORY=OFF \
-S . -B cmake-out && \
sudo cmake --build cmake-out --target install -- -j ${NCPU:-4} && \
sudo ldconfig
Expand Down Expand Up @@ -740,6 +744,7 @@ curl -fsSL https://github.com/open-telemetry/opentelemetry-cpp/archive/v1.16.0.t
-DBUILD_TESTING=OFF \
-DOPENTELEMETRY_INSTALL=ON \
-DOPENTELEMETRY_ABI_VERSION_NO=2 \
-DWITH_DEPRECATED_SDK_FACTORY=OFF \
-S . -B cmake-out && \
sudo cmake --build cmake-out --target install -- -j ${NCPU:-4} && \
sudo ldconfig
Expand Down Expand Up @@ -925,6 +930,7 @@ curl -fsSL https://github.com/open-telemetry/opentelemetry-cpp/archive/v1.16.0.t
-DBUILD_TESTING=OFF \
-DOPENTELEMETRY_INSTALL=ON \
-DOPENTELEMETRY_ABI_VERSION_NO=2 \
-DWITH_DEPRECATED_SDK_FACTORY=OFF \
-S . -B cmake-out && \
sudo cmake --build cmake-out --target install -- -j ${NCPU:-4} && \
sudo ldconfig
Expand Down Expand Up @@ -1034,6 +1040,7 @@ curl -fsSL https://github.com/open-telemetry/opentelemetry-cpp/archive/v1.16.0.t
-DBUILD_TESTING=OFF \
-DOPENTELEMETRY_INSTALL=ON \
-DOPENTELEMETRY_ABI_VERSION_NO=2 \
-DWITH_DEPRECATED_SDK_FACTORY=OFF \
-S . -B cmake-out && \
sudo cmake --build cmake-out --target install -- -j ${NCPU:-4} && \
sudo ldconfig
Expand Down Expand Up @@ -1207,6 +1214,7 @@ curl -fsSL https://github.com/open-telemetry/opentelemetry-cpp/archive/v1.16.0.t
-DBUILD_TESTING=OFF \
-DOPENTELEMETRY_INSTALL=ON \
-DOPENTELEMETRY_ABI_VERSION_NO=2 \
-DWITH_DEPRECATED_SDK_FACTORY=OFF \
-S . -B cmake-out && \
sudo cmake --build cmake-out --target install -- -j ${NCPU:-4} && \
sudo ldconfig
Expand Down Expand Up @@ -1390,6 +1398,7 @@ curl -fsSL https://github.com/open-telemetry/opentelemetry-cpp/archive/v1.16.0.t
-DBUILD_TESTING=OFF \
-DOPENTELEMETRY_INSTALL=ON \
-DOPENTELEMETRY_ABI_VERSION_NO=2 \
-DWITH_DEPRECATED_SDK_FACTORY=OFF \
-S . -B cmake-out && \
sudo cmake --build cmake-out --target install -- -j ${NCPU:-4} && \
sudo ldconfig
Expand Down Expand Up @@ -1604,6 +1613,7 @@ curl -fsSL https://github.com/open-telemetry/opentelemetry-cpp/archive/v1.16.0.t
-DBUILD_TESTING=OFF \
-DOPENTELEMETRY_INSTALL=ON \
-DOPENTELEMETRY_ABI_VERSION_NO=2 \
-DWITH_DEPRECATED_SDK_FACTORY=OFF \
-S . -B cmake-out && \
sudo cmake --build cmake-out --target install -- -j ${NCPU:-4} && \
sudo ldconfig
Expand Down Expand Up @@ -1824,6 +1834,7 @@ curl -fsSL https://github.com/open-telemetry/opentelemetry-cpp/archive/v1.16.0.t
-DBUILD_TESTING=OFF \
-DOPENTELEMETRY_INSTALL=ON \
-DOPENTELEMETRY_ABI_VERSION_NO=2 \
-DWITH_DEPRECATED_SDK_FACTORY=OFF \
-S . -B cmake-out && \
sudo cmake --build cmake-out --target install -- -j ${NCPU:-4} && \
sudo ldconfig
Expand Down Expand Up @@ -2046,6 +2057,7 @@ curl -fsSL https://github.com/open-telemetry/opentelemetry-cpp/archive/v1.16.0.t
-DBUILD_TESTING=OFF \
-DOPENTELEMETRY_INSTALL=ON \
-DOPENTELEMETRY_ABI_VERSION_NO=2 \
-DWITH_DEPRECATED_SDK_FACTORY=OFF \
-S . -B cmake-out && \
sudo cmake --build cmake-out --target install -- -j ${NCPU:-4} && \
sudo ldconfig
Expand Down

0 comments on commit b71bc24

Please sign in to comment.