Skip to content

Makefile: BUILD_DATE only computes properly on GNU systems #2578

@ismaell

Description

@ismaell

The -d argument to the date command is not portable, and there's no portable alternative.

This results in an error in BSD systems, and consequently always the current date in BUILD_DATE even if SOURCE_DATE_EPOCH is defined.

On BSD systems one must use -j and -f to produce an equivalent effect to the GNU -d (BSD doesn't guess the format).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority-3Affects a small number of users or is largely cosmetic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions