Sync from SUSE:SLFO:Main libnbd revision 3588b3bd4bf5e0272b728cf9e0c5a23f

This commit is contained in:
Adrian Schröter 2024-10-01 08:46:14 +02:00
parent fb9f82446d
commit b618924ae2
6 changed files with 152 additions and 24 deletions

View File

@ -1,7 +1,7 @@
<services> <services>
<service name="tar_scm" mode="manual"> <service name="tar_scm" mode="manual">
<param name="filename">libnbd</param> <param name="filename">libnbd</param>
<param name="revision">v1.18.5</param> <param name="revision">v1.20.2</param>
<param name="scm">git</param> <param name="scm">git</param>
<param name="submodules">disable</param> <param name="submodules">disable</param>
<param name="url">https://gitlab.com/nbdkit/libnbd.git</param> <param name="url">https://gitlab.com/nbdkit/libnbd.git</param>

View File

@ -1,4 +1,4 @@
<servicedata> <servicedata>
<service name="tar_scm"> <service name="tar_scm">
<param name="url">https://gitlab.com/nbdkit/libnbd.git</param> <param name="url">https://gitlab.com/nbdkit/libnbd.git</param>
<param name="changesrevision">dcd1fc77f129cde770b8bf0a18ce23f72ed5c903</param></service></servicedata> <param name="changesrevision">30963227b281adab0017317e3eb17f4c3088f1fc</param></service></servicedata>

BIN
libnbd-1.18.5.tar.bz2 (Stored with Git LFS)

Binary file not shown.

BIN
libnbd-1.20.2.tar.bz2 (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,10 +1,9 @@
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Aug 05 17:02:18 UTC 2024 - jfehlig@suse.com Mon Aug 05 16:08:37 UTC 2024 - jfehlig@suse.com
- Update to version 1.18.5: - Update to version 1.20.2:
* CVE-2024-7383 (bsc#1228872) * CVE-2024-7383 (bsc#1228872)
* Drop upstream patch 4451e5b6-CVE-2023-5871.patch * Version 1.20.2.
* Version 1.18.5.
* docs: security: Add link to TLS server certificate checking announcement * docs: security: Add link to TLS server certificate checking announcement
* lib/uri.c: Allow tls-verify-peer to be overridden in URIs * lib/uri.c: Allow tls-verify-peer to be overridden in URIs
* interop: Test interop with a bad system CA * interop: Test interop with a bad system CA
@ -16,9 +15,18 @@ Mon Aug 05 17:02:18 UTC 2024 - jfehlig@suse.com
* nbdfuse: Can't use ?tls-certificates or ?tls-psk-file * nbdfuse: Can't use ?tls-certificates or ?tls-psk-file
* ci: Fix MacOS builds * ci: Fix MacOS builds
* tests: Fix CI on Fedora 40 * tests: Fix CI on Fedora 40
* Version 1.20.1.
* tests: Add some code quality checks (mainly for maintainers)
* common/utils/device-size.c: Include <stdint.h>
* copy: Use device_size to get size of block devices
* copy: Refactor the internal file_create API
* common/utils: Add a function to find the size of a file or block device
* Include <stdint.h> in code which uses standard C int types * Include <stdint.h> in code which uses standard C int types
* common/include, ublk: Include <inttypes.h> in code which uses PRI* or SCN* * common/include, ublk: Include <inttypes.h> in code which uses PRI* or SCN*
* Include <stdbool.h> in code which uses bool/true/false * Include <stdbool.h> in code which uses bool/true/false
* copy: Detect <sys/ioctl.h>
* copy: Detect <linux/fs.h> at configure time
* configure.ac: Indent AC_CHECK_HEADERS consistent with nbdkit
* ublk/nbdublk.c: Include <errno.h> * ublk/nbdublk.c: Include <errno.h>
* copy, lib, ublk: Include <assert.h> which was missing in a few places * copy, lib, ublk: Include <assert.h> which was missing in a few places
* tests: Remove extra whitespace * tests: Remove extra whitespace
@ -28,6 +36,127 @@ Mon Aug 05 17:02:18 UTC 2024 - jfehlig@suse.com
* ci: refresh with latest 'lcitool manifest' * ci: refresh with latest 'lcitool manifest'
* ci: import lcitool project package list definitions * ci: import lcitool project package list definitions
* podwrapper: nbd-server(1), nbd-client(8) are not local man pages * podwrapper: nbd-server(1), nbd-client(8) are not local man pages
* Version 1.20.0.
* tests/connect-uri.c: Don't call strlen on each loop iteration
* tests/connect-uri: Remove -DPIDFILE, generate it implicitly
* lib/uri: Make parsing URIs more case insensitive
* rust: Make the struct Cookie internal field fully public
* interop/block-status-64.c: Fix skip path under valgrind
* Revert "valgrind: Add suppression for liblzma bug"
* docs: Add outline release notes for forthcoming libnbd 1.20
* lib/handle.c: Invalidate h->magic field just before freeing
* Version 1.19.11.
* ocaml: Add ocamlfind -package to ocamldoc invocation
* ocaml: Mention bigstring and bigstringaf libraries
* ocaml/tests: Add a test of the buffer lifecycle
* ocaml: Update META so we link programs with bigarray on OCaml < 5
* ocaml: Use Bigarray to link examples and tests on OCaml < 5
* ocaml/tests: Modify the tests to use the new NBD.Buffer.t
* ocaml: Add NBD.Buffer to/from string functions
* ocaml: Reimplement NBD.Buffer.t using Bigarray for zero-copy
* Version 1.19.10.
* info: Add --isnt & --cannot to --help output
* info: Implement --cannot and synonyms
* info/can.c: Assert that 'can' variable is set
* info: Fix error message
* info: Add note that --can/--is/--has are synonyms
* Version 1.19.9.
* info: --uri: Free URI after printing it
* lib/uri.c: Add better comments to nbd_get_uri function
* info: Add --uri parameter
* docs: Link from nbd_get_size to nbdinfo --size option
* info: Handle failure of call to file
* copy, fuse: Use vector_reserve_exactly in a few places
* common/utils: Make vector_reserve_page_aligned allocate exactly
* common/utils: Add vector_reserve_exactly function
* fuzzing: Add a comment that the libfuzzer test is unmaintained
* Version 1.19.8.
* tests/opt-info.c: Free string returned by nbd_get_export_name
* valgrind: Add suppression for liblzma bug
* info: Try harder to report contents from nbd-server
* copy: Add test for server without meta context support
* api: Fix nbd_can_meta_context for server that lacks meta contexts
* copy, info: Treat can_meta_context failures as unsupported
* configure: Copy bash-completions test from nbdkit
* Version 1.19.7.
* podwrapper: Ignore check on older versions of Perl
* podwrapper: Allow = (POD directive) followed by bare URL
* podwrapper: Check for bare URLs and suggest replacement with L<> links
* podwrapper: Move long lines and cross-reference checks earlier
* contrib: Add suggested autoconf CHECK_LIBNBD macro
* Version 1.19.6.
* tests: Missed another C test which didn't use NBDKIT
* tests: Use $NBDKIT instead of plain 'nbdkit'
* tests: Use 'source ./function.sh' consistently in this directory
* ocaml/tests: Add replacement for Bytes.set_int64_be
* ocaml/tests: Add explicit dependency on ocaml_test_config.cm{o,x}
* build: Define the minimum required version of OCaml as 4.05
* generator: Remove definition of sort_uniq
* configure: Annotate OCaml tests by version of OCaml
* ci: Skip certain deadlocking nbd-server tests on Alpine 3.19
* docs: Clarify description of block size constraints
* ocaml: tests: Compute srcdir centrally in Ocaml_test_config module
* ocaml: tests: Use @NBDKIT@ instead of hard coding nbdkit
* python: tests: Use $NBDKIT instead of hard coding nbdkit
* python: Various fixes to the Python tests and test wrapper
* Version 1.19.5.
* tests: Use wait_for_pidfile instead of open-coded loops
* tests: Define NBD_SERVER in config.h and use it for requires tests
* tests: Define QEMU_NBD in config.h and use it for requires tests
* maint: Be more consistent about using ./configure-defined @NBDKIT@
* maint: Be more consistent about using ./configure-defined @QEMU_NBD@
* interop: Prefer exporting QEMU_STORAGE_DAEMON through tests/functions.sh
* interop: Use nbd-server FORCEDTLS mode
* interop: Test write, flush and zero operations
* interop: Add nbd-server flush flag
* interop: Remove -DNEEDS_TMPFILE
* maint: Use @LN_S@ autoconf macro in preference to writing out 'ln -s'
* tests: connect-uri: Choose random port for TCP connections at runtime
* tests: connect-uri: Change how Unix domain sockets are generated
* docs: Fix accidental double line in SECURITY file
* Version 1.19.4.
* ci: Update to latest lcitool
* rust: Avoid compiler warning about unused import
* bash: Make nbdfuse and nbdublk installation conditional
* generator/Makefile.am: Fix missing continuation backslash
* Version 1.19.3.
* ocaml: Nullify custom block before releasing runtime lock
* ocaml: Use Gc.finalize instead of a C finalizer
* Version 1.19.2.
* generator: Clarify message about generated files
* docs: Mention CVE-2023-5871
* docs: Improve handle states documentation
* generator: Move docs generation out to a new module
* docs: Add comment for api_built, and formatting
* docs: Tighten up description of nbd_connect_uri(3)
* examples: Add example code for nbd_connect_uri(3)
* examples: Rearrange Makefile alphabetically
* generator: Make sure man pages are rebuilt if examples change
* New mailing list archives
* examples/userfault-map.c: Make nbd handle static
* example: Using userfaultfd to mmap an NBD-backed drive
* tests: Check behavior of nbd_set_strict_mode(STRICT_AUTO_FLAG)
* lib: Add dynamic validation of struct nbd_handle
* docs: Fix incorrect xref in libnbd-release-notes for 1.18
* fuzzing: Remove unnecessary NULL assignments
* fuzzing: Change fuzzing approach so we issue asynchronous commands
* generator: Fix assertion in ext-mode BLOCK_STATUS, CVE-2023-5871
* fuzzing: We need to disable Rust bindings when building fuzzer version
* Version 1.19.1.
* rust: Use string_starts_with instead of String.starts_with
* rust: Build the examples
* rust: Write a custom translator from POD to rustdoc
* rust: Add overview documentation
* rust: Annotate 'endif' with corresponding label
* info: Show human sizes for block_size values
* utils: Slightly simplify human_size()
* docs: Assign CVE-2023-5215 to nbd_get_size negative result issue
* info: Try harder for graceful disconnect from server
-------------------------------------------------------------------
Thu Apr 18 20:01:31 UTC 2024 - jfehlig@suse.com
- Update to version 1.18.4:
* Version 1.18.4. * Version 1.18.4.
* tests/connect-uri: Remove -DPIDFILE, generate it implicitly * tests/connect-uri: Remove -DPIDFILE, generate it implicitly
* rust: Make the struct Cookie internal field fully public * rust: Make the struct Cookie internal field fully public
@ -91,6 +220,13 @@ Mon Aug 05 17:02:18 UTC 2024 - jfehlig@suse.com
* tests: Check behavior of nbd_set_strict_mode(STRICT_AUTO_FLAG) * tests: Check behavior of nbd_set_strict_mode(STRICT_AUTO_FLAG)
* docs: Fix incorrect xref in libnbd-release-notes for 1.18 * docs: Fix incorrect xref in libnbd-release-notes for 1.18
* generator: Fix assertion in ext-mode BLOCK_STATUS, CVE-2023-5871 * generator: Fix assertion in ext-mode BLOCK_STATUS, CVE-2023-5871
* Drop patch 4451e5b6-CVE-2023-5871.patch, which is now included
in the stable-1.18 branch
-------------------------------------------------------------------
Tue Dec 12 12:12:12 UTC 2023 - ohering@suse.de
- Use ocaml-rpm-macros to track OCaml ABI
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Nov 13 21:15:40 UTC 2023 - James Fehlig <jfehlig@suse.com> Mon Nov 13 21:15:40 UTC 2023 - James Fehlig <jfehlig@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package libnbd # spec file for package libnbd
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -19,7 +19,7 @@
%define sover 0 %define sover 0
Name: libnbd Name: libnbd
Version: 1.18.5 Version: 1.20.2
Release: 0 Release: 0
Summary: NBD client library in userspace Summary: NBD client library in userspace
License: LGPL-2.1-or-later License: LGPL-2.1-or-later
@ -30,6 +30,7 @@ BuildRequires: automake
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: libtool BuildRequires: libtool
BuildRequires: ocaml-findlib BuildRequires: ocaml-findlib
BuildRequires: ocaml-rpm-macros
BuildRequires: pkg-config BuildRequires: pkg-config
BuildRequires: ocaml(compiler) BuildRequires: ocaml(compiler)
BuildRequires: perl(Pod::Man) BuildRequires: perl(Pod::Man)
@ -132,6 +133,8 @@ find "%{buildroot}" -name '*.la' -delete
# Delete the golang man page since we're not distributing the bindings. # Delete the golang man page since we're not distributing the bindings.
rm %{buildroot}/%{_mandir}/man3/libnbd-golang.3* rm %{buildroot}/%{_mandir}/man3/libnbd-golang.3*
%ocaml_create_file_list
%check %check
# All fuse tests fail in Koji with: # All fuse tests fail in Koji with:
# fusermount: entry for fuse/test-*.d not found in /etc/mtab # fusermount: entry for fuse/test-*.d not found in /etc/mtab
@ -162,26 +165,15 @@ done
%{_mandir}/man1/nbddump.1* %{_mandir}/man1/nbddump.1*
%{_mandir}/man1/nbdinfo.1* %{_mandir}/man1/nbdinfo.1*
%files -n libnbd%{sover} %files -n libnbd%{sover} -f %name.files
%license COPYING.LIB %license COPYING.LIB
%{_libdir}/libnbd.so.%{sover} %{_libdir}/libnbd.so.%{sover}
%{_libdir}/libnbd.so.%{sover}.* %{_libdir}/libnbd.so.%{sover}.*
%dir %{_libdir}/ocaml/nbd
%{_libdir}/ocaml/nbd/META
%{_libdir}/ocaml/nbd/NBD.cmi
%{_libdir}/ocaml/nbd/mlnbd.cma
%{_libdir}/ocaml/stublibs/dllmlnbd.so
%{_libdir}/ocaml/stublibs/dllmlnbd.so.owner
%files devel %files devel -f %name.files.devel
%{_includedir}/libnbd.h %{_includedir}/libnbd.h
%{_libdir}/libnbd.so %{_libdir}/libnbd.so
%{_libdir}/pkgconfig/libnbd.pc %{_libdir}/pkgconfig/libnbd.pc
%{_libdir}/ocaml/nbd/NBD.cmx
%{_libdir}/ocaml/nbd/mlnbd.cmxa
%{_libdir}/ocaml/nbd/NBD.mli
%{_libdir}/ocaml/nbd/mlnbd.a
%{_libdir}/ocaml/nbd/libmlnbd.a
%{_mandir}/man3/libnbd.3* %{_mandir}/man3/libnbd.3*
%{_mandir}/man3/libnbd-ocaml.3.gz %{_mandir}/man3/libnbd-ocaml.3.gz
%{_mandir}/man1/libnbd-release-notes-1.*.1* %{_mandir}/man1/libnbd-release-notes-1.*.1*