Whamcloud - gitweb
LU-14785 build: changelog updates should not dirty version 69/44069/5
authorShaun Tancheff <stancheff@cray.com>
Thu, 24 Jun 2021 13:08:24 +0000 (08:08 -0500)
committerOleg Drokin <green@whamcloud.com>
Tue, 31 Aug 2021 05:20:37 +0000 (05:20 +0000)
When building lustre debs the final version should not
include 'dirty' due to an update of the changelog

HPE-bug-id: LUS-10152
Test-Parameters: trivial
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: I59f4da4b3006302e3598cfa56a0364b052f885ef
Reviewed-on: https://review.whamcloud.com/44069
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Li Dongyang <dongyangli@ddn.com>
Reviewed-by: Thomas Stibor <thomas@stibor.net>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
autoMakefile.am
debian/changelog.in [moved from debian/changelog with 100% similarity]

index 0c2a878..c133f3b 100644 (file)
@@ -234,6 +234,7 @@ srpm: @PACKAGE_TARNAME@.spec dist Makefile
 # In the debs target, first make sure what's in the changelog reflects
 # the software version.
 debs: undef.h
+       cp -v debian/changelog.in debian/changelog ; \
        lversion=$$(echo @VERSION@ | tr '_' '-'); \
        cversion=$$(sed -ne '1s/^lustre (\(.*\)-[0-9][0-9]*).*$$/\1/p' debian/changelog); \
        if [ "$$lversion" != "$$cversion" ]; then \
@@ -338,6 +339,7 @@ debs: undef.h
           debs/
 
 dkms-debs: undef.h
+       cp -v debian/changelog.in debian/changelog ; \
        lversion=$$(echo @VERSION@ | tr '_' '-'); \
        cversion=$$(sed -ne '1s/^lustre (\(.*\)-[0-9][0-9]*).*$$/\1/p' debian/changelog); \
        if [ "$$lversion" != "$$cversion" ]; then \
similarity index 100%
rename from debian/changelog
rename to debian/changelog.in