Skip to content

depends: touch command for creating determinstic archive timestamps fails on OpenBSD #29447

@theStack

Description

@theStack

Is there an existing issue for this?

  • I have searched the existing issues

Current behaviour

In the course of the "Caching..." step of a depends build, the touch command for creating determinstic package archive timestamps fails on OpenBSD. The reason is that the used option -h option (introduced in PR #21995, commit 6ebe576) doesn't exist in OpenBSD's version of touch (see https://man.openbsd.org/touch.1). E.g. for zeromq:

[ ... ]
Postprocessing zeromq...
Caching zeromq...
touch: unknown option -- h
usage: touch [-acm] [-d ccyy-mm-ddTHH:MM:SS[.frac][Z]] [-r file]
             [-t [[cc]yy]mmddHHMM[.SS]] file ...

Expected behaviour

Ideally, creating deterministic package archive timestamps should also work on OpenBSD. As an alternative, if that's not easily possible, the touch command shouldn't be executed at all on OpenBSD, do avoid the "unknown option" error message.

Steps to reproduce

Make a fresh depends build on OpenBSD, e.g. (for zeromq):

$ gmake -C depends clean
$ gmake -C depends NO_BDB=1 NO_BOOST=1 NO_LIBEVENT=1 NO_QT=1 NO_SQLITE=1 NO_NATPMP=1 NO_UPNP=1 NO_USDT=1

Relevant log output

No response

How did you obtain Bitcoin Core

Compiled from source

What version of Bitcoin Core are you using?

master branch (commit 6c24eb55e021991196003dc7f0a643e806b14295)

Operating system and version

OpenBSD 7.4 (amd64)

Machine specifications

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions