Re: [GIT PULL] btrfs-progs: more bugfixes for 0.20-rc1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 18, 2013 at 09:16:00AM -0500, Gene Czarcinski wrote:
> >Sergei Trofimovich (1):
> >       version.sh: fix version when built from tarball
> While you are about it, how about adding in this fix from Dieter Ries to fix
> version a little more:
> http://article.gmane.org/gmane.comp.file-systems.btrfs/20069

I did not notice it before, but Dieter's patch does not work when progs
are built from .git repository

-echo "#define BTRFS_BUILD_VERSION \"Btrfs $v\"" >> .build-version.h
+echo "#define BTRFS_BUILD_VERSION \"$v\"" >> .build-version.h

$v is set with the git tag, so the "Btrfs" string does not appear in the
output (eg. mkfs.btrfs).

Technically, $v should always contain some sort of a tag, Sergei's patch
hardcodes it to the latest one for the non-git case. This is IMHO the
right approach.

david
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux