GNOME Bugzilla – Bug 706105
libav: .gitignore file included in tarballs
Last modified: 2018-01-12 19:41:37 UTC
There is a .gitignore file in the source archive for gst-libav: http://gstreamer.freedesktop.org/src/gst-libav/gst-libav-1.0.9.tar.xz gst-libs/ext/libav/.gitignore This leads to problems when importing the code in another git repository because some required files will not be imported.
Which files specifically are in .gitignore but required? gst-libs/ext/libav is just a git checkout from libav git, if you import all that in a git repository from a tarball (why would you do that?) it might make more sense to just use a git submodule for libav.
In my case the version.h was missing after committing the files into another repository. Probably the way via the submodule would be the right way, but there are many ways to do something. We only wanted the have a snapshot and no connection to an external repository.
Ok, if you could prepare a patch to exclude the .gitignore that would be great :)
I don't know how you create the archive file, but for "git archive" there is an attribute export-ignore to not export some of the files in the repository.
make dist
I think you can override this when importing with git add -f or somesuch? Either way, we'd be happy to accept a patch, but in the mean time let's close this :)