Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
c44c9e7b74
!23 [sync] PR-22: Update to 1.27.4 for fix CVE-2024-6381 and CVE-2024-6383
From: @openeuler-sync-bot 
Reviewed-by: @wang--ge 
Signed-off-by: @wang--ge
2024-07-12 01:23:08 +00:00
starlet-dx
5df528a4fd Update to 1.27.4 for fix CVE-2024-6381 and CVE-2024-6383
(cherry picked from commit 7b6f5198e85e70049b777c132b3bd1436525a315)
2024-07-11 14:40:07 +08:00
openeuler-ci-bot
9625626780
!14 Fix CVE-2023-0437
From: @wk333 
Reviewed-by: @wang--ge 
Signed-off-by: @wang--ge
2024-01-16 02:03:46 +00:00
wk333
451b33feb7 Fix CVE-2023-0437 2024-01-16 09:21:09 +08:00
openeuler-ci-bot
737e892fe1
!13 Upgrade version to 1.24.4
From: @cherry530 
Reviewed-by: @wang--ge 
Signed-off-by: @wang--ge
2023-10-18 03:09:20 +00:00
cherry530
5f497f593c Upgrade version to 1.24.4
Signed-off-by: cherry530 <707078654@qq.com>
2023-10-18 09:04:33 +08:00
openeuler-ci-bot
3daf12c50f
!12 [sync] PR-9: 删除rpath解决安全编译问题
From: @openeuler-sync-bot 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
2022-12-04 01:34:41 +00:00
wk333
f2202021e3 Remove rpath
(cherry picked from commit 68cb5926a370608340d3a8d7982ef9d01a61d62d)
2022-12-03 17:39:54 +08:00
openeuler-ci-bot
daf343d356 !5 新增编译依赖gcc
From: @shine_
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2021-06-16 10:10:10 +00:00
shine_
6fe8c992b9 add gcc require. 2021-06-02 09:44:46 +08:00
3 changed files with 62 additions and 6 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,13 +1,14 @@
%global with_tests 0%{?_with_tests:1} %global with_tests 0%{?_with_tests:1}
Name: mongo-c-driver Name: mongo-c-driver
Summary: Client library written in C for MongoDB Summary: Client library written in C for MongoDB
Version: 1.13.1 Version: 1.27.4
Release: 4 Release: 1
License: ASL 2.0 and ISC and MIT and zlib License: ASL 2.0 and ISC and MIT and zlib
URL: https://github.com/mongodb/mongo-c-driver URL: https://github.com/mongodb/mongo-c-driver
Source0: https://github.com/mongodb/mongo-c-driver/releases/download/1.13.1/mongo-c-driver-1.13.1.tar.gz Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.gz
BuildRequires: cmake >= 3.1 openssl-devel pkgconfig(libsasl2) pkgconfig(zlib) BuildRequires: cmake >= 3.1 openssl-devel pkgconfig(libsasl2) pkgconfig(zlib) gcc
BuildRequires: pkgconfig(snappy) pkgconfig(icu-uc) perl-interpreter python3 python3-sphinx BuildRequires: pkgconfig(snappy) pkgconfig(icu-uc) perl-interpreter python3 python3-sphinx
BuildRequires: chrpath
%if %{with_tests} %if %{with_tests}
BuildRequires: mongodb-server openssl BuildRequires: mongodb-server openssl
%endif %endif
@ -68,6 +69,18 @@ Files for help with mongo-c-driver.
%delete_la_and_a %delete_la_and_a
find %{buildroot}%{_libdir} -type f -name "*static*" -exec rm -f {} ';' find %{buildroot}%{_libdir} -type f -name "*static*" -exec rm -f {} ';'
chrpath -d %{buildroot}%{_bindir}/mongoc-stat
mkdir -p %{buildroot}/etc/ld.so.conf.d
echo "/home/abuild/rpmbuild/BUILD/mongo-c-driver-%{version}/src/libmongoc:/home/abuild/rpmbuild/BUILD/mongo-c-driver-%{version}/src/libbson" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
rm -rf %{buildroot}%{_datadir}/%{name}
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%check %check
%if %{with_tests} %if %{with_tests}
install -d dbtest install -d dbtest
@ -85,12 +98,15 @@ exit $ret
%doc COPYING %doc COPYING
%doc THIRD_PARTY_NOTICES %doc THIRD_PARTY_NOTICES
%{_libdir}/libmongoc-1.0.so.* %{_libdir}/libmongoc-1.0.so.*
%config(noreplace) /etc/ld.so.conf.d/*
%files devel %files devel
%doc src/libmongoc/examples %doc src/libmongoc/examples
%doc NEWS
%{_includedir}/libmongoc-1.0 %{_includedir}/libmongoc-1.0
%{_libdir}/libmongoc-1.0.so %{_libdir}/libmongoc-1.0.so
%{_libdir}/pkgconfig/libmongoc-*.pc %{_libdir}/pkgconfig/libmongoc-*.pc
%{_libdir}/cmake/mongoc-1.0
%{_libdir}/cmake/libmongoc-1.0 %{_libdir}/cmake/libmongoc-1.0
%files -n libbson %files -n libbson
@ -98,17 +114,57 @@ exit $ret
%files -n libbson-devel %files -n libbson-devel
%doc src/libbson/examples %doc src/libbson/examples
%doc src/libbson/NEWS
%{_includedir}/libbson-1.0 %{_includedir}/libbson-1.0
%{_libdir}/libbson*.so %{_libdir}/libbson*.so
%{_libdir}/cmake/libbson-1.0 %{_libdir}/cmake/libbson-1.0
%{_libdir}/cmake/bson-1.0
%{_libdir}/pkgconfig/libbson-*.pc %{_libdir}/pkgconfig/libbson-*.pc
%files help %files help
%{_mandir}/man3/* %{_mandir}/man3/*
%doc src/libbson/NEWS
%doc NEWS
%changelog %changelog
* Thu Jul 11 2024 yaoxin <yao_xin001@hoperun.com> - 1.27.4-1
- Update to 1.27.4 for fix CVE-2024-6381 and CVE-2024-6383
- libbson Fixes:
* Fix build with Visual Studio 2013.
* Fix parsing of colon in timezone.
* Error on failure to init subdocument in bson_iter_visit_all.
* Fix string handling in bson_string_new and bson_string_append.
* Fix iteration in bson_strfreev.
* Use aligned alloc for bson_array_builder_t
* Restore support for Sphinx 1.7.6 for man page build.
* Fix conversion warning with GCC 12.
* Fixes to some format strings in trace logs.
* Allow mongoc_buffer_t to be larger than INT_MAX.
* Add bson_array_builder_t.
- libmongoc Fixes:
* Fix possible crash reading malformed wire protocol message.
* Upgraded bundled Zlib from 1.2.3 to 1.3.1
* Close leftover connections to removed servers.
* Fix possible crash when client is configured with empty password.
* Fix possible hang if mongoc_gridfs_file_readv is called with a corrupt chunk with incomplete data.
* Fix 32-bit compile with 64-bit time_t
* Restore support for Sphinx 1.7.6 for man page build.
* Disable shared libmongoc targets if ENABLE_SHARED=OFF
* Fix documentation build with Python 3.9.
* Fix data race in mongoc_cursor_get_host.
* Add back support for BUILD_VERSION CMake option. BUILD_VERSION was unintentionally removed in 1.25.0.
* Send recoveryToken in transactions when connected to a load balancer.
* Tue Jan 16 2024 wangkai <13474090681@163.com> - 1.24.4-2
- Fix CVE-2023-0437
* Tue Oct 17 2023 xu_ping <707078654@qq.com> - 1.24.4-1
- Upgrade version to 1.24.4
* Thu Aug 25 2022 wangkai <wangkai385@h-partners.com> - 1.13.1-6
- Remove rpath
* Web 02 Jun 2021 zhaoyao<zhaoyao32@huawei.com> - 1.13.1-5
- Add gcc build require.
* Fri Jun 19 2020 sunguoshuai<sunguoshuai@huawei.com> - 1.13.1-4 * Fri Jun 19 2020 sunguoshuai<sunguoshuai@huawei.com> - 1.13.1-4
- Use python3 instead of python2. - Use python3 instead of python2.