Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Dockerfile): initialize git repo in VMAF source to satisfy vcstagger #604

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cyberjames
Copy link

Summary:
This PR fixes the build error in the Dockerfile by initializing a minimal git repository in the VMAF source directory. The issue occurred during the Meson step (vcstagger) because the tarball lacked a .git folder.

Changes:

  • Added commands to initialize a git repo and commit the extracted VMAF source before running Meson.
  • This allows git describe to work correctly, resolving the fatal error during build.

Testing:
I built the image locally (using Podman on an Apple M3 Pro) and confirmed that the build now completes successfully without errors.

Initialize a minimal git repository after extracting the VMAF tarball so that Meson’s
git describe step works properly. This prevents the fatal error due to missing .git data.
@wader
Copy link
Owner

wader commented Mar 19, 2025

Hi, could you elaborate more? i'm a bit confused as it seems to build fine as it is.

But i do see this in the build log but it seem to not fail the build? but maybe some version string ends up wrong or empty because of it, but is that string exposed somewhere via the ffmpeg cli tools?

2025-03-18T19:57:28.4166860Z #7 3.823 [64/93] /usr/bin/meson --internal vcstagger ../include/vcs_version.h.in include/vcs_version.h 3.0.0 /vmaf-3.0.0/libvmaf/include @VCS_TAG@ '(.*)' /usr/bin/git --git-dir /vmaf-3.0.0/libvmaf/../.git describe --tags --long --match '?.*.*' --always
2025-03-18T19:57:28.4168390Z #7 3.901 fatal: not a git repository: '/vmaf-3.0.0/libvmaf/../.git'

For what i can see vmaf does not do "proper" source distributions of releases that embed the version? the "source code" link on github will download a git tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants