Whamcloud - gitweb
LU-14948 build: Warn about /usr/src/lustre.tar.bz2 77/44677/5
authorShaun Tancheff <shaun.tancheff@hpe.com>
Tue, 4 Jan 2022 15:22:57 +0000 (22:22 +0700)
committerOleg Drokin <green@whamcloud.com>
Wed, 26 Jan 2022 05:14:52 +0000 (05:14 +0000)
commit1d97ac16d8ade4786202c2e9005896a2ac661340
treeb14e1d49c4ef4704d9d7785b630f47c34ac7a72e
parentc2e94f08cf3ff000b350faf61b6d25ebbad7970e
LU-14948 build: Warn about /usr/src/lustre.tar.bz2

When /usr/src/lustre.tar.bz2 exists, make debs (and dkms-debs)
will fail with an error like:

  Extracting the package tarball, /usr/src/lustre.tar.bz2, ...
  ../../generic.sh: line 73: debian/rules: Permission denied
  BUILD FAILED!

Add the current git hash to the lustre tarball, as well as
attempt to remove the conflict from /usr/src.  Failing that,
give a warning to ask the user to remove the conflicting file.

HPE-bug-id: LUS-10308
Test-Parameters: trivial
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: I4aaa803cb81c2ed8ffc0182bb49ea0bff5064df4
Reviewed-on: https://review.whamcloud.com/44677
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
autoMakefile.am
debian/rules