[Slackbuilds-users] ceph package git question

Shahab Vahedi list+sbo at vahedi.org
Thu May 14 07:00:27 UTC 2026


May 14, 2026 fsLeg via SlackBuilds-users:

> What about cases where the build process relies on the source tree being a proper git repo as it uses commit history?

What if you have a `git` script that mocks the desired output and you put it in the PATH so it will take precedence over `/usr/bin/git`?

Imagine the build process uses:
-----------------------------
git rev-list --max-count=1 HEAD
-----------------------------

then your got script would be:
-----------------------------
cat /path/to/mocking/git
#! /bin/sh
echo <commit_hash>
-----------------------------

then, the SlackBuild would have:
-----------------------------
export PATH=/path/to/mocking:$PATH
-----------------------------


-Shahab


More information about the SlackBuilds-users mailing list