r/linuxfromscratch • • Jan 05 '21

Compiling source code outside of the git repository fails (#217) · Issues · libinput / libinput

https://gitlab.freedesktop.org/libinput/libinput/-/issues/217
0 Upvotes

5 comments sorted by

View all comments

Show parent comment

1

u/cvnmjs Jan 13 '21

Surely it isn't common practice to distribute the source pkg w/ the .git directory tho?

Yeah, the issue here is that meson's rules don't cache the git sha, so it always tries to rebuild the vcs_target. But that call is the meson way of getting the git sha, so we can't change this and working around it for the sake of non-fatal error messages isn't worth it.

Any improvements regarding error messages (and I'm pretty sure that one actually comes from git, so meson doesn't intercept stderr as it looks like) would have to go into meson.

1

u/GT3CH1 Jan 13 '21

Yeah, the issue here is that meson's rules don't cache the git sha, so it always tries to rebuild the vcs_target. But that call is the meson way of getting the git sha, so we can't change this and working around it for the sake of non-fatal error messages isn't worth it.

Most definitely, this is probably the weirdest thing I've seen for any package.