[build2] Build error on openbsd 7.1

Dirty Dawn dirtdawn777 at protonmail.ch
Wed May 25 07:51:00 UTC 2022


Hi,
Is it possible to use on openbsd only the cmd bsdtar that has all the options you need?
It is also installed by default.
In any case I'll post as soon as possible on openbsd the question.

Thank you

-------- Messaggio originale --------
On 24 mag 2022, 15:53, Boris Kolpackov ha scritto:

> Dirty Dawn via users <users at build2.org> writes:
>
>> The error in my opinion is related to the --version switch not
>> supported in openbsd tar version.
>
> I don't think it's that (I don't see us calling tar with --version)
> anywhere in the codebase.
>
> I believe the culprit is `--format ustar` which we pass in the build
> system when creating distributions. This option is not recognized by
> OpenBSD tar. I did a bit of research and ustar (aka POSIX) seems to
> be the default, though this is not explicitly stated/guaranteed
> anywhere. We could just assume that and omit the option or we could
> switch to pax which has `-x ustar`.
>
> There is another problem with OpenBSD tar: in bpkg we need the
> ability to extract just one file and pipe it to stdout. With GNU
> and FreeBSD tar this can be achieved with -O|--to-stdout. But there
> doesn't seem to be anything like this in OpenBSD tar (or pax). Not
> sure what our options are here other than requiring GNU tar (which
> would be unfortunate).
>
> If you can do some research on these issues (maybe ask on OpenBSD
> mailing list) and provide some guidance, that would be great.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.build2.org/archives/users/attachments/20220525/f9d0a4a6/attachment.html>


More information about the users mailing list