[packages/azure-storage-cpp] - new (deprecated now but has some users)

qboosh qboosh at pld-linux.org
Sun May 17 08:43:30 CEST 2026


commit 6f6cd1d08f073988292d0e15f690d4d5feba1452
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun May 17 08:43:21 2026 +0200

    - new (deprecated now but has some users)

 azure-storage-cpp-boost.patch | 52 ++++++++++++++++++++++++
 azure-storage-cpp.spec        | 93 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 145 insertions(+)
---
diff --git a/azure-storage-cpp.spec b/azure-storage-cpp.spec
new file mode 100644
index 0000000..c0e69d6
--- /dev/null
+++ b/azure-storage-cpp.spec
@@ -0,0 +1,93 @@
+Summary:	Azure Storage Client Library for C++ (deprecated)
+Summary(pl.UTF-8):	Biblioteka Azure Storage Client dla C++ (przestarzała)
+Name:		azure-storage-cpp
+Version:	7.5.0
+Release:	1
+License:	Apache v2.0
+Group:		Libraries
+#Source0Download: https://github.com/Azure/azure-storage-cpp/releases
+Source0:	https://github.com/Azure/azure-storage-cpp/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	fed50779b589f2da29d62c533a29c474
+Patch0:		%{name}-boost.patch
+URL:		https://github.com/Azure/azure-storage-cpp
+# log log_setup random system thread locale regex filesystem chrono date_time
+BuildRequires:	boost-devel >= 1.66
+BuildRequires:	cmake >= 2.6
+BuildRequires:	cpprestsdk-devel >= 2.9
+BuildRequires:	libstdc++-devel >= 6:4.7
+BuildRequires:	libuuid-devel
+BuildRequires:	libxml2-devel >= 2.0
+BuildRequires:	openssl-devel >= 1.0.0
+BuildRequires:	pkgconfig
+BuildRequires:	rpmbuild(macros) >= 1.605
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The Azure Storage Client Library for C++ allows you to build
+applications against Microsoft Azure Storage.
+
+Note: this library is deprecated and no longer developed, users should
+move to azure-sdk-cpp.
+
+%description -l pl.UTF-8
+Biblioteka Azure Storage Client dla C++ pozwala budować aplikacje
+wykorzystujące Microsoft Azure Storage.
+
+Uwaga: ta biblioteka jest przestarzała i nie jest już rozwijana,
+użytkownicy powinni się przenieść na azure-sdk-cpp.
+
+%package devel
+Summary:	Header files for Azure Storage C++ library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki Azure Storage C++
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	boost-devel >= 1.66
+Requires:	cpprestsdk-devel >= 2.9
+Requires:	libstdc++-devel >= 6:4.7
+Requires:	libuuid-devel
+Requires:	libxml2-devel >= 2.0
+Requires:	openssl-devel >= 1.0.0
+
+%description devel
+Header files for Azure Storage C++ library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki Azure Storage C++.
+
+%prep
+%setup -q
+%patch -P0 -p1
+
+%{__mv} "documentation/Microsoft Azure Storage Client Library for C++ 2.0.0.md" documentation/Microsoft_Azure_Storage_Client_Library_for_C++_2.0.0.md
+
+%build
+install -d build
+cd build
+%cmake ../Microsoft.WindowsAzure.Storage
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc BreakingChanges.txt Changelog.txt README.md
+%{_libdir}/libazurestorage.so.*.*
+%ghost %{_libdir}/libazurestorage.so.7
+
+%files devel
+%defattr(644,root,root,755)
+%doc documentation/Microsoft_Azure_Storage_Client_Library_for_C++_2.0.0.md
+%{_libdir}/libazurestorage.so
+%{_includedir}/was
+%{_includedir}/wascore
diff --git a/azure-storage-cpp-boost.patch b/azure-storage-cpp-boost.patch
new file mode 100644
index 0000000..350b0c5
--- /dev/null
+++ b/azure-storage-cpp-boost.patch
@@ -0,0 +1,52 @@
+--- azure-storage-cpp-7.5.0/Microsoft.WindowsAzure.Storage/src/CMakeLists.txt.orig	2026-05-16 18:41:29.406579053 +0200
++++ azure-storage-cpp-7.5.0/Microsoft.WindowsAzure.Storage/src/CMakeLists.txt	2026-05-16 18:41:49.463137064 +0200
+@@ -1,4 +1,4 @@
+-include_directories(${Boost_INCLUDE_DIR} ${OPENSSL_INCLUDE_DIR})
++include_directories(${Boost_INCLUDE_DIRS} ${OPENSSL_INCLUDE_DIR})
+ include_directories(${AZURESTORAGE_INCLUDE_DIRS})
+ 
+ # THE ORDER OF FILES IS VERY /VERY/ IMPORTANT
+--- azure-storage-cpp-7.5.0/Microsoft.WindowsAzure.Storage/includes/wascore/util.h.orig	2026-05-16 22:42:25.081599271 +0200
++++ azure-storage-cpp-7.5.0/Microsoft.WindowsAzure.Storage/includes/wascore/util.h	2026-05-16 22:42:44.934825051 +0200
+@@ -125,7 +125,7 @@ namespace azure { namespace storage { na
+         WASTORAGE_API static std::shared_ptr<web::http::client::http_client> get_http_client(const web::uri& uri, const web::http::client::http_client_config& config);
+ 
+     private:
+-        static const boost::asio::io_service& s_service;
++        static const boost::asio::io_context& s_service;
+         WASTORAGE_API static std::map<utility::string_t, std::shared_ptr<web::http::client::http_client>> s_http_clients;
+         WASTORAGE_API static std::mutex s_mutex;
+     };
+--- azure-storage-cpp-7.5.0/Microsoft.WindowsAzure.Storage/src/timer_handler.cpp.orig	2026-05-17 07:07:23.424125719 +0200
++++ azure-storage-cpp-7.5.0/Microsoft.WindowsAzure.Storage/src/timer_handler.cpp	2026-05-17 07:12:08.862579366 +0200
+@@ -86,7 +86,7 @@ namespace azure {    namespace storage {
+     pplx::task<void> timer_handler::timeout_after(const std::chrono::milliseconds& time)
+     {
+         m_timer = std::make_shared<boost::asio::basic_waitable_timer<std::chrono::steady_clock>>(crossplat::threadpool::shared_instance().service());
+-        m_timer->expires_from_now(std::chrono::duration_cast<std::chrono::steady_clock::duration>(time));
++        m_timer->expires_after(time);
+         std::weak_ptr<timer_handler> weak_this_pointer = shared_from_this();
+         auto callback = [weak_this_pointer](const boost::system::error_code& ec)
+         {
+--- azure-storage-cpp-7.5.0/Microsoft.WindowsAzure.Storage/src/util.cpp.orig	2026-05-17 07:18:03.287325949 +0200
++++ azure-storage-cpp-7.5.0/Microsoft.WindowsAzure.Storage/src/util.cpp	2026-05-17 07:18:15.963923940 +0200
+@@ -440,7 +440,7 @@ namespace azure { namespace storage {  n
+     }
+ 
+ #ifndef _WIN32
+-    const boost::asio::io_service& http_client_reusable::s_service = crossplat::threadpool::shared_instance().service();
++    const boost::asio::io_context& http_client_reusable::s_service = crossplat::threadpool::shared_instance().service();
+     std::map<utility::string_t, std::shared_ptr<web::http::client::http_client>> http_client_reusable::s_http_clients;
+     std::mutex http_client_reusable::s_mutex;
+ 
+--- azure-storage-cpp-7.5.0/Microsoft.WindowsAzure.Storage/src/cloud_common.cpp.orig	2026-05-17 07:57:46.614414357 +0200
++++ azure-storage-cpp-7.5.0/Microsoft.WindowsAzure.Storage/src/cloud_common.cpp	2026-05-17 07:58:29.447515644 +0200
+@@ -71,7 +71,7 @@ namespace azure { namespace storage {
+         throw std::invalid_argument(protocol::error_invalid_ip_address);
+ #else
+         boost::system::error_code error;
+-        auto addr = boost::asio::ip::address::from_string(address, error);
++        auto addr = boost::asio::ip::make_address(address, error);
+         if (error.value() == 0)
+         {
+             if (addr.is_v4())
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/azure-storage-cpp.git/commitdiff/6f6cd1d08f073988292d0e15f690d4d5feba1452



More information about the pld-cvs-commit mailing list