I vote for "don't clone with depth 1". There's no way we're going to catch all of these anyway. Jean-Marc On 10/02/2013 12:47 AM, Ralph Giles wrote:> On 2013-10-01 5:27 PM, bat guano wrote: > >> opus-tools is broken. >> >> configure: error: Package requirements (opus>= 1.0.3) were not met: >> Requested 'opus>= 1.0.3' but version of Opus is aee4d80 > > "You're in the bottom of a well, surrounded by yaks." > > Well, I'm back to keeping a hard-coded fallback version string in the > repo. Anyone else? > > -r > _______________________________________________ > opus mailing list > opus at xiph.org > http://lists.xiph.org/mailman/listinfo/opus >
The Arch Linux vcs packaging guidelines used to recommend shallow cloning of git packages, as apparently this was said to save bandwidth for the repo server. Now Pacman is doing the cloning automatically based on the vcs URL in the sources array, so the checkout function is no longer needed, and versioning is now done via a pkgver() function that in the case of git, uses git describe --long if the repo includes annotated tags and git rev-list --count HEAD)" "$(git rev-parse --short HEAD if not. As I am the maintainer of the opus-git and opus-tools-git packages in the Arch User Repository, I'll experiment to find out what versions I get when building the packages. The last time I built these packages I didn't get unknown versions, but I got the commit number rather than the version tag. I think the version seen by programs linked against the libs is correct though. ~Kyle http://kyle.tk/ -- "Kyle? ... She calls her cake, Kyle?" Out of This World, season 2 episode 21 - "The Amazing Evie"
I'll experiment to find out what> versions I get when building the packages. The last time I built these > packages I didn't get unknown versions, but I got the commit numberHi "git ls-remote --tags" gives some information, but seems like hard work. Maybe it would be OK to... "keep a hard-coded fallback version string in the repo" and... run a modified script to obtain the commit string. @ubuntu:~$ git clone --depth 1 git://git.xiph.org/opus-tools.git; cd opus-tools; git ls-remote --tags Cloning into opus-tools... remote: Counting objects: 261, done. remote: Compressing objects: 100% (249/249), done. remote: Total 261 (delta 162), reused 17 (delta 6) Receiving objects: 100% (261/261), 171.86 KiB | 133 KiB/s, done. Resolving deltas: 100% (162/162), done.