From 956ffe5de96d3ff8817bdc2a0d306fcd02cfedf9f9c44f84e03effcf25289002 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sat, 2 Nov 2024 15:34:22 +0000 Subject: [PATCH 1/5] [info=9f14648fd1b57bd8e5fe844e0e2549b08d8afc234d241e0b172b5b7ab7cdf2bb] OBS-URL: https://build.opensuse.org/package/show/security:forensics/libfvalue?expand=0&rev=25 --- .gitattributes | 23 ++++++ .gitignore | 1 + _scmsync.obsinfo | 4 + build.specials.obscpio | 3 + libfvalue-experimental-20240415.tar.gz | 3 + libfvalue-experimental-20240415.tar.gz.asc | 11 +++ libfvalue.changes | 86 +++++++++++++++++++++ libfvalue.keyring | 29 +++++++ libfvalue.spec | 89 ++++++++++++++++++++++ 9 files changed, 249 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _scmsync.obsinfo create mode 100644 build.specials.obscpio create mode 100644 libfvalue-experimental-20240415.tar.gz create mode 100644 libfvalue-experimental-20240415.tar.gz.asc create mode 100644 libfvalue.changes create mode 100644 libfvalue.keyring create mode 100644 libfvalue.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_scmsync.obsinfo b/_scmsync.obsinfo new file mode 100644 index 0000000..1683931 --- /dev/null +++ b/_scmsync.obsinfo @@ -0,0 +1,4 @@ +mtime: 1713290660 +commit: 9f14648fd1b57bd8e5fe844e0e2549b08d8afc234d241e0b172b5b7ab7cdf2bb +url: https://src.opensuse.org/jengelh/libfvalue +revision: master diff --git a/build.specials.obscpio b/build.specials.obscpio new file mode 100644 index 0000000..96157dd --- /dev/null +++ b/build.specials.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0e0e7a6472d4c167eb9a884b7544ab891a727f120c3325e7e20b2dbbbdba87f6 +size 256 diff --git a/libfvalue-experimental-20240415.tar.gz b/libfvalue-experimental-20240415.tar.gz new file mode 100644 index 0000000..65be206 --- /dev/null +++ b/libfvalue-experimental-20240415.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:37520ad9ac4db13cc4f0da020e14d5feb905d7d27ff4ba9ebf1552a595a49b40 +size 1321529 diff --git a/libfvalue-experimental-20240415.tar.gz.asc b/libfvalue-experimental-20240415.tar.gz.asc new file mode 100644 index 0000000..29f4cca --- /dev/null +++ b/libfvalue-experimental-20240415.tar.gz.asc @@ -0,0 +1,11 @@ +-----BEGIN PGP SIGNATURE----- + +iQEzBAABCAAdFiEEDtkCDakNP25wvTlF2WJeXXrQF34FAmYdiG8ACgkQ2WJeXXrQ +F3780Qf7B6DjjUQ0NvmKdm6zrolYm5CNmwaZYxUXe2H3WVXF8/N9oiPZ93UGCF9W +WES0il8adEsdKa08bBy6lLwhiJrZCxfr4PY0HODZCucFAtwN3avgo1JGZx4PA9Ch +DuTHe9KoE1iWTd6kW3S3/Q7DELVl/U0dwC7ouPdICSEymrvU81p8j58jqvNsH/rM +Mt0kBAxsYthH7Vc8H6y2o7lycdWfgrb3v/jsK7ygEi8K84hQOKZ6gXirZF/oZRRA +j+B8b5eTx/8onVDVo9PLj/gVMNhxuoF1lnylGdziJGmwXIRl5pVpZotFf6PZBJEK +G0bkgnR/8OW62VvMflO7lUryfEZ5qg== +=EWaF +-----END PGP SIGNATURE----- diff --git a/libfvalue.changes b/libfvalue.changes new file mode 100644 index 0000000..4a12007 --- /dev/null +++ b/libfvalue.changes @@ -0,0 +1,86 @@ +------------------------------------------------------------------- +Mon Apr 15 20:06:32 UTC 2024 - Jan Engelhardt + +- Update to release 20240415 + * No changelog was provided + +------------------------------------------------------------------- +Wed Jan 24 10:53:14 UTC 2024 - Jan Engelhardt + +- Update to release 20240124 + * Better support for unpaired surrogates + +------------------------------------------------------------------- +Sat Nov 26 16:43:24 UTC 2022 - Jan Engelhardt + +- Delete system-libs.patch (not needed - system libs are + autodetected) + +------------------------------------------------------------------- +Mon Aug 8 11:37:44 UTC 2022 - Jan Engelhardt + +- Add forced symvers + +------------------------------------------------------------------- +Thu Jan 20 10:03:53 UTC 2022 - Jan Engelhardt + +- Update to release 20220120 + * No changes, version bump only. + +------------------------------------------------------------------- +Wed May 12 22:27:14 UTC 2021 - Jan Engelhardt + +- Update to snapshot 20210510 (12264644) + * No changelog was provided +- Add system-libs.patch + +------------------------------------------------------------------- +Mon Dec 14 21:59:13 UTC 2020 - Greg Freemyer + +- update to v0~20201124 + * Changes for POSIX time value type + +------------------------------------------------------------------- +Mon Mar 25 01:59:39 UTC 2019 - Greg Freemyer + +- update to v0~20180817 + * Floating support updates + * minor fixes + +------------------------------------------------------------------- +Wed Feb 15 21:26:35 UTC 2017 - Greg.Freemyer@gmail.com + +- update to v0~20170113 +- tweak dependency list +- verified plaso run_tests.py didn't segfault + +------------------------------------------------------------------- +Wed Jul 13 03:03:08 UTC 2016 - Greg.Freemyer@gmail.com + +- update to v0~20160325 + * fixed leaks in value and data handle + * fix in clear function + * 2016 update + +------------------------------------------------------------------- +Wed Jan 27 17:53:26 UTC 2016 - Greg.Freemyer@gmail.com + +- Use internal libcdata package. Getting segfaults otherwise. +- spec-cleaner removed redundant License: fields + +------------------------------------------------------------------- +Wed Jan 20 22:39:17 UTC 2016 - Greg.Freemyer@gmail.com + +- update to v0~20151226 + * applied updates + * added value clear function + * code clean up + * added NULL type + * upgraded release status from experimental to alpha +- verified libcerror and libcstring in OBS were the latest release + +------------------------------------------------------------------- +Thu Jan 8 23:19:52 UTC 2015 - Greg.Freemyer@gmail.com + +- initial package (v0~20150104) + diff --git a/libfvalue.keyring b/libfvalue.keyring new file mode 100644 index 0000000..da327a1 --- /dev/null +++ b/libfvalue.keyring @@ -0,0 +1,29 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQENBFSf2CoBCADJOuDavJeI0IhBPnIYol/ZfE2bXvmRJMGPasU1H6CJagTkc/Iq +SuUpiix7HcYgyGY7qHO7B1Wpnh5plc03dFW2ysTnOk8NzSqWF/gbWIYbRg8GUATg +fGy7NoIio/hbBlWkM0rPQq7AIK79m0m2U4ZAuQPamAC4y8H9j/SyTFI1gQNeExZ+ +L8DE3QjSx4GAVgb4cfdQQPwGmoOIgKSudZN6oPiOj+MM3yh1vv49C45ChSWNWGjB +683zFbjuS0A483MFPI8iQGC8JecmQGvpzcOoSLkyTjT7vleFYGkfj8N0FB5Bq2L5 +TT2w9lQKEjvWTe//G4tXgnGXy8PwqRZmj2CfABEBAAG0JUpvYWNoaW0gTWV0eiA8 +am9hY2hpbS5tZXR6QGdtYWlsLmNvbT6JATkEEwECACMFAlSf2CoCGwMHCwkIBwMC +AQYVCAIJCgsEFgIDAQIeAQIXgAAKCRDZYl5detAXfkBgCAC4W/adqlNYSkK5VDoU +FDMMRDffVVe0WdPlW7PDJXR0R0IParwHD+FJY3jtNA2upqKTCXm7JbQRN/n4Qrfb +PJHr0EoBF7iG6kT4RKocImciuMJaj4fTolGNdc0iRKl5tMIb64RiE47XhN7v6/oP +UaqrbnF5EW9EZ2AqOSTEcLeTgKLErMlv2dLjFXg8jXGNxTkmi6BELyaczgWBgD9I +3tfMvXLswI5q9RtpJUc8oAfV81ibfFm6UeItQxM6SM0WLKILlXIQqqiQ4oCbAm4R +PJI4RwoJYAhcJOmUXrAUC5obhjkf9Qo0RJzVMFLuQXDiRV5W5dBL/hs9M0FVWDxv +siZNuQENBFSf2CoBCADODF+4Q3nXhmvTpVZTh17gYzCQqOHKctyTwoWg0VidmWWD +lmtDBX8hWh1fjm0KQezzYagddgjlPncgq/oyrhvq2fEG3nch5qpb8k94v6KlhC9+ +SoJAwFoMLfCG8lQXASHKFvt3LJKJhS3laOLzzc4QNhWG7KRrwiOcp47bjoL8x+9L +U1EkGZR1OMGWYaJmokEcPTNchLEgL7MMRtdaPmh9R2f8N7eqb/mKNZCxyt89a3yw +uapLtYe5dRPEnpL00PXd9uMlwMbyuMcP60CouMFGqqKeBITWTd8vPsz+CpictNZw +Toa25CCGgoGm2pP5catMdjH3SDZef5Mkqq5uZT/pABEBAAGJAR8EGAECAAkFAlSf +2CoCGwwACgkQ2WJeXXrQF34oPQf6AyuzFs60DKrldW8tKPZxSmrQoOEK5h+w1WUQ +RTvJyE5CECzocC68s46jGkluMa4wHzBDGYH2CoWAqXpnEC4UivBtlZses92vdqtM +5kqWrSkamTwsggtVyqHvHUW+OSiJLluGA1amn1sVaQUAIP9PEk/q7Qj9VzctKGA5 +3UVw6NA/sYad+IIg95qu798GF4nrtyY9nhQg9YM/6C2CF6FpJJUlNMPXm9zx20dL +cuAm/5zwU7xoNbV8c829EiqrRCdJMY8/LPriF7fDxUQa3AAptFZoWWkt4T5QbjB4 +VpPayIneEZRdCFktpSPgVYLm8HboNXeladSTdOtJS0HaoPzMTg== +=fRjn +-----END PGP PUBLIC KEY BLOCK----- diff --git a/libfvalue.spec b/libfvalue.spec new file mode 100644 index 0000000..9948319 --- /dev/null +++ b/libfvalue.spec @@ -0,0 +1,89 @@ +# +# spec file for package libfvalue +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: libfvalue +%define lname libfvalue1 +Version: 20240415 +Release: 0 +Summary: Library to provide generic file value functions +License: LGPL-3.0-or-later +Group: Productivity/File utilities +URL: https://github.com/libyal/libfvalue +Source: https://github.com/libyal/libfvalue/releases/download/%version/libfvalue-experimental-%version.tar.gz +Source2: https://github.com/libyal/libfvalue/releases/download/%version/libfvalue-experimental-%version.tar.gz.asc +Source9: %name.keyring +BuildRequires: c_compiler +BuildRequires: pkg-config +BuildRequires: pkgconfig(libcdata) >= 20240414 +BuildRequires: pkgconfig(libcerror) >= 20240413 +BuildRequires: pkgconfig(libcnotify) >= 20240414 +BuildRequires: pkgconfig(libcthreads) >= 20240413 +BuildRequires: pkgconfig(libfdatetime) >= 20240415 +BuildRequires: pkgconfig(libfguid) >= 20240415 +BuildRequires: pkgconfig(libfwnt) >= 20240415 +BuildRequires: pkgconfig(libuna) >= 20240414 +# Various notes: https://en.opensuse.org/libyal + +%description +Library to provide generic file value functions for the libyal family of libraries. + +%package -n %lname +Summary: Library to provide generic file value functions +Group: System/Libraries + +%description -n %lname +Library to provide generic file value functions for the libyal family of libraries. + +%package devel +Summary: Development files for libfvalue +Group: Development/Libraries/C and C++ +Requires: %lname = %version + +%description devel +Library to provide generic file value functions for the libyal family of libraries. + +This subpackage contains libraries and header files for developing +applications that want to make use of libfvalue. + +%prep +%autosetup -p1 + +%build +echo "V_%version { global: *; };" >v.sym +%configure --disable-static LDFLAGS="-Wl,--version-script=$PWD/v.sym" +grep ' local' config.log && exit 1 +%make_build + +%install +%make_install +find %buildroot -type f -name "*.la" -delete -print + +%ldconfig_scriptlets -n %lname + +%files -n %lname +%license COPYING* +%_libdir/libfvalue.so.* + +%files devel +%_includedir/libfvalue.h +%_includedir/libfvalue/ +%_libdir/libfvalue.so +%_libdir/pkgconfig/libfvalue.pc +%_mandir/man3/libfvalue.3* + +%changelog From 7b7086aba1cdb96efc9b613b0c963248a70c54f47fd4b9fd09a506588b534c3b Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Sat, 2 Nov 2024 16:04:12 +0000 Subject: [PATCH 2/5] [info=6bfe93a57c55b662d39c5972f71a08547eb0b6f7033f875e40be5deb371a3bae] OBS-URL: https://build.opensuse.org/package/show/security:forensics/libfvalue?expand=0&rev=26 --- 0001-Export-libfvalue_value_get_entry.patch | 51 +++++++++++++++++++++ _scmsync.obsinfo | 4 +- build.specials.obscpio | 2 +- libfvalue.changes | 5 ++ libfvalue.spec | 1 + 5 files changed, 60 insertions(+), 3 deletions(-) create mode 100644 0001-Export-libfvalue_value_get_entry.patch diff --git a/0001-Export-libfvalue_value_get_entry.patch b/0001-Export-libfvalue_value_get_entry.patch new file mode 100644 index 0000000..2b71c4d --- /dev/null +++ b/0001-Export-libfvalue_value_get_entry.patch @@ -0,0 +1,51 @@ +From 9829f2df776a28ac373a3235030123bcd902a06f Mon Sep 17 00:00:00 2001 +From: Jan Engelhardt +Date: Sat, 2 Nov 2024 16:36:19 +0100 +Subject: [PATCH] Export libfvalue_value_get_entry + +`libfvalue_value_get_entry`` is used externally, by libesedb. Hence, +it needs to be exported for DLLs to work correctly. This patch +corrects that problem. +--- + include/libfvalue.h.in | 8 ++++++++ + libfvalue/libfvalue_value.h | 8 -------- + 2 files changed, 8 insertions(+), 8 deletions(-) + +Index: libfvalue-20240415/include/libfvalue.h.in +=================================================================== +--- libfvalue-20240415.orig/include/libfvalue.h.in ++++ libfvalue-20240415/include/libfvalue.h.in +@@ -943,6 +943,14 @@ int libfvalue_value_get_number_of_value_ + int *number_of_value_entries, + libfvalue_error_t **error ); + ++LIBFVALUE_EXTERN \ ++int libfvalue_value_get_entry( ++ libfvalue_value_t *value, ++ int value_entry_index, ++ size_t *entry_data_offset, ++ size_t *entry_data_size, ++ libcerror_error_t **error ); ++ + /* Retrieves the entry data + * Returns 1 if successful, 0 if the value has no data or -1 on error + */ +Index: libfvalue-20240415/libfvalue/libfvalue_value.h +=================================================================== +--- libfvalue-20240415.orig/libfvalue/libfvalue_value.h ++++ libfvalue-20240415/libfvalue/libfvalue_value.h +@@ -462,14 +462,6 @@ int libfvalue_value_get_number_of_value_ + libcerror_error_t **error ); + + LIBFVALUE_EXTERN \ +-int libfvalue_value_get_entry( +- libfvalue_value_t *value, +- int value_entry_index, +- size_t *entry_data_offset, +- size_t *entry_data_size, +- libcerror_error_t **error ); +- +-LIBFVALUE_EXTERN \ + int libfvalue_value_set_entry( + libfvalue_value_t *value, + int value_entry_index, diff --git a/_scmsync.obsinfo b/_scmsync.obsinfo index 1683931..c7f6a8e 100644 --- a/_scmsync.obsinfo +++ b/_scmsync.obsinfo @@ -1,4 +1,4 @@ -mtime: 1713290660 -commit: 9f14648fd1b57bd8e5fe844e0e2549b08d8afc234d241e0b172b5b7ab7cdf2bb +mtime: 1730563434 +commit: 6bfe93a57c55b662d39c5972f71a08547eb0b6f7033f875e40be5deb371a3bae url: https://src.opensuse.org/jengelh/libfvalue revision: master diff --git a/build.specials.obscpio b/build.specials.obscpio index 96157dd..cecb049 100644 --- a/build.specials.obscpio +++ b/build.specials.obscpio @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:0e0e7a6472d4c167eb9a884b7544ab891a727f120c3325e7e20b2dbbbdba87f6 +oid sha256:97770828b58e571fafa2bde5186ccc14641eb9dae5d9491391b4c192c36da5b9 size 256 diff --git a/libfvalue.changes b/libfvalue.changes index 4a12007..be0a6ba 100644 --- a/libfvalue.changes +++ b/libfvalue.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Nov 2 16:03:42 UTC 2024 - Jan Engelhardt + +- Add 0001-Export-libfvalue_value_get_entry.patch + ------------------------------------------------------------------- Mon Apr 15 20:06:32 UTC 2024 - Jan Engelhardt diff --git a/libfvalue.spec b/libfvalue.spec index 9948319..d297f0a 100644 --- a/libfvalue.spec +++ b/libfvalue.spec @@ -27,6 +27,7 @@ URL: https://github.com/libyal/libfvalue Source: https://github.com/libyal/libfvalue/releases/download/%version/libfvalue-experimental-%version.tar.gz Source2: https://github.com/libyal/libfvalue/releases/download/%version/libfvalue-experimental-%version.tar.gz.asc Source9: %name.keyring +Patch1: 0001-Export-libfvalue_value_get_entry.patch BuildRequires: c_compiler BuildRequires: pkg-config BuildRequires: pkgconfig(libcdata) >= 20240414 From 85c2b9406a902cd30f01dacd6ca3c3e6931e66e8a74b8d9b71877bc11594048a Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Sat, 2 Nov 2024 16:08:44 +0000 Subject: [PATCH 3/5] [info=2df836ddb736a13c96397f8a36728b284fa44260e021c3e579dab154216f66c4] OBS-URL: https://build.opensuse.org/package/show/security:forensics/libfvalue?expand=0&rev=27 --- 0001-Export-libfvalue_value_get_entry.patch | 20 ++++++++++++++++++-- _scmsync.obsinfo | 4 ++-- build.specials.obscpio | 2 +- 3 files changed, 21 insertions(+), 5 deletions(-) diff --git a/0001-Export-libfvalue_value_get_entry.patch b/0001-Export-libfvalue_value_get_entry.patch index 2b71c4d..a9a7e1f 100644 --- a/0001-Export-libfvalue_value_get_entry.patch +++ b/0001-Export-libfvalue_value_get_entry.patch @@ -7,9 +7,9 @@ Subject: [PATCH] Export libfvalue_value_get_entry it needs to be exported for DLLs to work correctly. This patch corrects that problem. --- - include/libfvalue.h.in | 8 ++++++++ + include/libfvalue.h.in | 17 +++++++++++++++++ libfvalue/libfvalue_value.h | 8 -------- - 2 files changed, 8 insertions(+), 8 deletions(-) + 2 files changed, 17 insertions(+), 8 deletions(-) Index: libfvalue-20240415/include/libfvalue.h.in =================================================================== @@ -30,6 +30,22 @@ Index: libfvalue-20240415/include/libfvalue.h.in /* Retrieves the entry data * Returns 1 if successful, 0 if the value has no data or -1 on error */ +@@ -979,6 +987,15 @@ int libfvalue_value_append_entry_data( + int encoding, + libfvalue_error_t **error ); + ++LIBFVALUE_EXTERN \ ++int libfvalue_value_copy_entry_data( ++ libfvalue_value_t *value, ++ int value_entry_index, ++ uint8_t *entry_data, ++ size_t entry_data_size, ++ int *encoding, ++ libcerror_error_t **error ); ++ + /* Copies the value data from a boolean value + * Returns 1 if successful, 0 if value could not be set or -1 on error + */ Index: libfvalue-20240415/libfvalue/libfvalue_value.h =================================================================== --- libfvalue-20240415.orig/libfvalue/libfvalue_value.h diff --git a/_scmsync.obsinfo b/_scmsync.obsinfo index c7f6a8e..44e9d72 100644 --- a/_scmsync.obsinfo +++ b/_scmsync.obsinfo @@ -1,4 +1,4 @@ -mtime: 1730563434 -commit: 6bfe93a57c55b662d39c5972f71a08547eb0b6f7033f875e40be5deb371a3bae +mtime: 1730563711 +commit: 2df836ddb736a13c96397f8a36728b284fa44260e021c3e579dab154216f66c4 url: https://src.opensuse.org/jengelh/libfvalue revision: master diff --git a/build.specials.obscpio b/build.specials.obscpio index cecb049..70c6d4a 100644 --- a/build.specials.obscpio +++ b/build.specials.obscpio @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:97770828b58e571fafa2bde5186ccc14641eb9dae5d9491391b4c192c36da5b9 +oid sha256:b384314197b8d1796dff99a4cdb03e297e13b1501c54c11edd2dd4aaa99d21db size 256 From 844daaa67d1573732f143e63a115067bbc27b2a2c2a639fa20bcb3ec55237eeb Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Sat, 2 Nov 2024 16:21:52 +0000 Subject: [PATCH 4/5] [info=5037deed9e819852961aea86956727af9511b985ca0ac2394f0f94c4104328f0] OBS-URL: https://build.opensuse.org/package/show/security:forensics/libfvalue?expand=0&rev=28 --- 0001-Export-libfvalue_value_get_entry.patch | 58 ++++++++++++--------- _scmsync.obsinfo | 4 +- build.specials.obscpio | 2 +- 3 files changed, 37 insertions(+), 27 deletions(-) diff --git a/0001-Export-libfvalue_value_get_entry.patch b/0001-Export-libfvalue_value_get_entry.patch index a9a7e1f..f63a06b 100644 --- a/0001-Export-libfvalue_value_get_entry.patch +++ b/0001-Export-libfvalue_value_get_entry.patch @@ -7,15 +7,29 @@ Subject: [PATCH] Export libfvalue_value_get_entry it needs to be exported for DLLs to work correctly. This patch corrects that problem. --- - include/libfvalue.h.in | 17 +++++++++++++++++ - libfvalue/libfvalue_value.h | 8 -------- - 2 files changed, 17 insertions(+), 8 deletions(-) + include/libfvalue.h.in | 33 +++++++++++++++++++++++++++++++++ + 1 file changed, 33 insertions(+) Index: libfvalue-20240415/include/libfvalue.h.in =================================================================== --- libfvalue-20240415.orig/include/libfvalue.h.in +++ libfvalue-20240415/include/libfvalue.h.in -@@ -943,6 +943,14 @@ int libfvalue_value_get_number_of_value_ +@@ -210,6 +210,14 @@ int libfvalue_data_handle_set_value_entr + int encoding, + libfvalue_error_t **error ); + ++LIBFVALUE_EXTERN \ ++int libfvalue_data_handle_append_value_entry( ++ libfvalue_data_handle_t *data_handle, ++ int *value_entry_index, ++ size_t value_entry_offset, ++ size_t value_entry_size, ++ libcerror_error_t **error ); ++ + /* Appends a value entry + * Returns if successful or -1 on error + */ +@@ -943,6 +951,14 @@ int libfvalue_value_get_number_of_value_ int *number_of_value_entries, libfvalue_error_t **error ); @@ -30,7 +44,22 @@ Index: libfvalue-20240415/include/libfvalue.h.in /* Retrieves the entry data * Returns 1 if successful, 0 if the value has no data or -1 on error */ -@@ -979,6 +987,15 @@ int libfvalue_value_append_entry_data( +@@ -967,6 +983,14 @@ int libfvalue_value_set_entry_data( + int encoding, + libfvalue_error_t **error ); + ++LIBFVALUE_EXTERN \ ++int libfvalue_value_append_entry( ++ libfvalue_value_t *value, ++ int *value_entry_index, ++ size_t entry_data_offset, ++ size_t entry_data_size, ++ libcerror_error_t **error ); ++ + /* Appends the entry data + * Returns 1 if successful or -1 on error + */ +@@ -979,6 +1003,15 @@ int libfvalue_value_append_entry_data( int encoding, libfvalue_error_t **error ); @@ -46,22 +75,3 @@ Index: libfvalue-20240415/include/libfvalue.h.in /* Copies the value data from a boolean value * Returns 1 if successful, 0 if value could not be set or -1 on error */ -Index: libfvalue-20240415/libfvalue/libfvalue_value.h -=================================================================== ---- libfvalue-20240415.orig/libfvalue/libfvalue_value.h -+++ libfvalue-20240415/libfvalue/libfvalue_value.h -@@ -462,14 +462,6 @@ int libfvalue_value_get_number_of_value_ - libcerror_error_t **error ); - - LIBFVALUE_EXTERN \ --int libfvalue_value_get_entry( -- libfvalue_value_t *value, -- int value_entry_index, -- size_t *entry_data_offset, -- size_t *entry_data_size, -- libcerror_error_t **error ); -- --LIBFVALUE_EXTERN \ - int libfvalue_value_set_entry( - libfvalue_value_t *value, - int value_entry_index, diff --git a/_scmsync.obsinfo b/_scmsync.obsinfo index 44e9d72..0d2d8ff 100644 --- a/_scmsync.obsinfo +++ b/_scmsync.obsinfo @@ -1,4 +1,4 @@ -mtime: 1730563711 -commit: 2df836ddb736a13c96397f8a36728b284fa44260e021c3e579dab154216f66c4 +mtime: 1730564497 +commit: 5037deed9e819852961aea86956727af9511b985ca0ac2394f0f94c4104328f0 url: https://src.opensuse.org/jengelh/libfvalue revision: master diff --git a/build.specials.obscpio b/build.specials.obscpio index 70c6d4a..08ef022 100644 --- a/build.specials.obscpio +++ b/build.specials.obscpio @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b384314197b8d1796dff99a4cdb03e297e13b1501c54c11edd2dd4aaa99d21db +oid sha256:a7c359ec2e0f2c6a14b2e3afe80100d363bd71d1f9be06de19cfd230f041f349 size 256 From 3f3db034d73575e93f715766c28ad59392e168404f5d494bf13bbe7ef505410e Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Sat, 2 Nov 2024 16:28:07 +0000 Subject: [PATCH 5/5] [info=b2e0839597dfb60e8e3c1b4ee7e0d8247d81d563c3e1c87d9e49916ea2251b0d] OBS-URL: https://build.opensuse.org/package/show/security:forensics/libfvalue?expand=0&rev=29 --- 0001-Export-libfvalue_value_get_entry.patch | 11 +++++++++-- _scmsync.obsinfo | 4 ++-- build.specials.obscpio | 2 +- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/0001-Export-libfvalue_value_get_entry.patch b/0001-Export-libfvalue_value_get_entry.patch index f63a06b..2755b6a 100644 --- a/0001-Export-libfvalue_value_get_entry.patch +++ b/0001-Export-libfvalue_value_get_entry.patch @@ -2,9 +2,16 @@ From 9829f2df776a28ac373a3235030123bcd902a06f Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sat, 2 Nov 2024 16:36:19 +0100 Subject: [PATCH] Export libfvalue_value_get_entry +References: https://github.com/libyal/libfvalue/issues/6 +References: https://github.com/libyal/libfvalue/pull/7 -`libfvalue_value_get_entry`` is used externally, by libesedb. Hence, -it needs to be exported for DLLs to work correctly. This patch +libesedb_multi_value.c:338:13: error: implicit declaration of function 'libfvalue_value_get_entry'; did you mean 'libfvalue_value_get_data'? [-Wimplicit-function-declaration] +libesedb_multi_value.c:385:13: error: implicit declaration of function 'libfvalue_value_copy_entry_data'; did you mean 'libfvalue_value_set_entry_data'? [-Wimplicit-function-declaration] +libesedb_record.c:3813:29: error: implicit declaration of function 'libfvalue_value_append_entry'; did you mean 'libfvalue_value_append_entry_data'? [-Wimplicit-function-declaration] +libesedb_value_data_handle.c:175:29: error: implicit declaration of function 'libfvalue_data_handle_append_value_entry'; did you mean 'libfvalue_data_handle_append_value_entry_data'? [-Wimplicit-function-declaration] + +``libfvalue_value_get_entry`` et al is used externally, by libesedb. +Hence, it needs to be exported for DLLs to work correctly. This patch corrects that problem. --- include/libfvalue.h.in | 33 +++++++++++++++++++++++++++++++++ diff --git a/_scmsync.obsinfo b/_scmsync.obsinfo index 0d2d8ff..7930231 100644 --- a/_scmsync.obsinfo +++ b/_scmsync.obsinfo @@ -1,4 +1,4 @@ -mtime: 1730564497 -commit: 5037deed9e819852961aea86956727af9511b985ca0ac2394f0f94c4104328f0 +mtime: 1730564877 +commit: b2e0839597dfb60e8e3c1b4ee7e0d8247d81d563c3e1c87d9e49916ea2251b0d url: https://src.opensuse.org/jengelh/libfvalue revision: master diff --git a/build.specials.obscpio b/build.specials.obscpio index 08ef022..ef63b31 100644 --- a/build.specials.obscpio +++ b/build.specials.obscpio @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a7c359ec2e0f2c6a14b2e3afe80100d363bd71d1f9be06de19cfd230f041f349 +oid sha256:26f441b8cdab1a482b37c8bb24a4ff9f7e21dea70e8d3a2ba6a4a8b0ae8b8f6d size 256