On 4 March 2022 07:48:58 CET, Emmanuel Deloget <[email protected]> wrote:
>Hello Tim,
>
>it seems to me that it should not be that complicated, as the tar
>handling code is mostly encapsulated into a library of its own.
>
>See https://git.busybox.net/busybox/tree/archival/libarchive for
>futher reference.

I think we provide means to build busybox as shared library. Iff this ist still 
in there, you could simply link against that.

Of course you have to be aware that we do not guarantee a stable library API. 
But that said, it gets changed seldomly if at all.

HTH,
>
>Best regards,
>
>-- Emmanuel Deloget
>
>
>Le jeu. 3 mars 2022 à 18:59, Tim Tassonis <[email protected]> a écrit :
>>
>> Hi all
>>
>> I've written a package manager in C for my distro where packages are
>> basically gzipped cpio (newc type) archives.
>>
>> I'm currently using the libarchive library in the program for
>> extraction, which works well, but is quite a big dependency.
>>
>> So, as busybox handles those archives well (I tested it), I though it
>> would be nice to get rid of libarchive and use the code from busybox. As
>> my package manager is GPL, too, there should also be no licensing issues.
>>
>> However, I have not dug too deep into the busybox code yet and just
>> wanted to ask whether someone knows if this is a good idea, e.g. how
>> much work it would be to isolate the needed parts for use in my code.
>>
>> Has anybody else here ever done a similar thing, or is there maybe even
>> a document giving a rough idea about what has to be considered or how to
>> go about that the easiest?
>>
>> Sorry if this post is considered off-topic, I just though maybe someone
>> has a quick answer that will save me some work.
>>
>>
>> Bye
>> Tim
>>
>>
>> _______________________________________________
>> busybox mailing list
>> [email protected]
>> http://lists.busybox.net/mailman/listinfo/busybox
>_______________________________________________
>busybox mailing list
>[email protected]
>http://lists.busybox.net/mailman/listinfo/busybox

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to