Replies: 5 comments 3 replies
-
You could always check if the libraries are present on the system, and if not, use a copy from a Git submodule. |
Beta Was this translation helpful? Give feedback.
-
Heard back from Lasse Collin, author of XZ ( @tukaani ) and the lzma library. Unfortunately, the library is not current with the SDK and its features lack multi threading for the match finder and no assembler decoder. Also, the file output would be incompatible with past |
Beta Was this translation helpful? Give feedback.
-
In addition, no debugging would be possible when external libraries are used unless rebuilt locally. This is especially important with lzma and zpaq where large chunks of memory are used and large blocks of data passed. So for now, this is not going to happen. |
Beta Was this translation helpful? Give feedback.
-
A good start is separate lrzip-next changes and the files copied from external libraries. E.g. move "/////////////////////////// lrzip functions //////////////////" line and subsequent lines from src/lib/libzpaq/libzpaq.h to a separate header file and #include <libzpaq.h> from the separate file. Then if you need different types in libzpaq.h API, wrap the original ZPAQ functions into your new API functions. It will help you maintaining the code when a new ZPAQ version comes. It will also help others review your changes in the bundled files. And it will also help you to format the needed patched for ZPAQ and sending them to ZPAQ author to merge them into ZPAQ. |
Beta Was this translation helpful? Give feedback.
-
Maybe consider using .patch files?
…On Mon, 21 Nov 2022, 10:15 Petr Pisar, ***@***.***> wrote:
A good start is separate lrzip-next changes and the files copied from
external libraries.
E.g. move "/////////////////////////// lrzip functions //////////////////"
line and subsequent lines from src/lib/libzpaq/libzpaq.h to a separate
header file and #include <libzpaq.h> from the separate file. Then if you
need different types in libzpaq.h API, wrap the original ZPAQ functions
into your new API functions. It will help you maintaining the code when a
new ZPAQ version comes. It will also help others review your changes in the
bundled files. And it will also help you to format the needed patched for
ZPAQ and sending them to ZPAQ author to merge them into ZPAQ.
—
Reply to this email directly, view it on GitHub
<#94 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGTTDFO5USMBR44QUXCGSHLWJM4U3ANCNFSM6AAAAAASENJJP4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
@ppisar at @RedHatOfficial offered a suggestion to stop bundling zpaq and lzma libraries with
lrzip-next
. The main reason was security and secondarily maintenance.Back in the day, lzma was not a part of many distributions and zpaq is still not. While small changes have been made to both sets of sources, such a project is worth looking at. The same goes with bzip3, which is not a part of all distros.
Comments welcome.
Beta Was this translation helpful? Give feedback.
All reactions