make: make openssl output parsing symbol number agnostic (#3429)

This commit is contained in:
Zakhar Bessarab 2022-12-01 19:09:36 +04:00 committed by Aliaksandr Valialkin
parent 31ca22109e
commit de0e4f1f7e
No known key found for this signature in database
GPG Key ID: A72BEC6CD3D0DED1

View File

@ -2,7 +2,7 @@ PKG_PREFIX := github.com/VictoriaMetrics/VictoriaMetrics
DATEINFO_TAG ?= $(shell date -u +'%Y%m%d-%H%M%S')
BUILDINFO_TAG ?= $(shell echo $$(git describe --long --all | tr '/' '-')$$( \
git diff-index --quiet HEAD -- || echo '-dirty-'$$(git diff-index -u HEAD | openssl sha1 | cut -c 10-17)))
git diff-index --quiet HEAD -- || echo '-dirty-'$$(git diff-index -u HEAD | openssl sha1 | cut -d' ' -f2 | cut -c 1-8)))
PKG_TAG ?= $(shell git tag -l --points-at HEAD)
ifeq ($(PKG_TAG),)