[Users] [Bug 4614] New: In shallow git checkout, build fails with `version.h:32:54: error: invalid suffix "d76d2" on integer constant` due to wrong version number.
noreply at thewildbeast.co.uk
noreply at thewildbeast.co.uk
Thu Jul 14 20:12:33 UTC 2022
https://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=4614
Bug ID: 4614
Summary: In shallow git checkout, build fails with
`version.h:32:54: error: invalid suffix "d76d2" on
integer constant` due to wrong version number.
Product: Claws Mail (GTK 2)
Version: GIT
Hardware: PC
OS: Linux
Status: NEW
Severity: minor
Priority: P3
Component: Other
Assignee: users at lists.claws-mail.org
Reporter: linux.felixbecker2 at gmx.de
A shallow git checkout leads to version number generation that is invalid and
makes a build fail:
```
git clone --single-branch --depth 1 --shallow-submodules --branch gtk2
git://git.claws-mail.org/claws.git claws-mail
./autogen.sh
make
```
fails with errors like
```
claws.c: In function 'claws_get_version':
version.h:32:54: error: invalid suffix "d76d2" on integer constant
32 | #define VERSION_NUMERIC MAKE_NUMERIC_VERSION(5d76d2, 5d76d2, \
| ^~~~~~
```
After the `./autogen`, there is a file `version` which contains
```
echo 5d76d2
```
If instead of the above git clone command I use
```
git clone git://git.claws-mail.org/claws.git claws-mail
git switch gtk2
git checkout gtk2
./autogen.sh
make
```
those errors does not occur, and `version` contains
```
echo 3.19.0-48-g5d76d2
```
Regards!
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Users
mailing list