FS#70100 - [scons] Build info contains useless __BUILD__

Attached to Project: Arch Linux
Opened by Jason Yundt (Jayman) - Sunday, 21 March 2021, 02:35 GMT
Last edited by David Runge (dvzrv) - Tuesday, 20 July 2021, 21:31 GMT
Task Type General Gripe
Category Packages: Extra
Status Closed
Assigned To David Runge (dvzrv)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
When using the --version flag, SCons displays __BUILD__ instead of a Git commit hash.

Additional info:
* package version: 3.1.2-4
* config and/or log files etc:
[jayman@Jason-Desktop-Linux ~]$ scons --version
SCons by Steven Knight et al.:
script: v3.1.2.__BUILD__, 2019-12-17 02:06:27, by none on none
engine: v3.1.2.__BUILD__, 2019-12-17 02:06:27, by none on none
engine path: ['/usr/lib/python3.9/site-packages/SCons']
Copyright (c) 2001 - 2019 The SCons Foundation
[jayman@Jason-Desktop-Linux ~]$

Steps to reproduce:
1. Run scons --version.
This task depends upon

Closed by  David Runge (dvzrv)
Tuesday, 20 July 2021, 21:31 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed with 4.1.0-2
Comment by Eli Schwartz (eschwartz) - Sunday, 21 March 2021, 03:20 GMT
  • Field changed: Task Type (Bug Report → General Gripe)
  • Field changed: Summary ([scons] Build info appears as __BUILD__ → [scons] Build info contains useless __BUILD__)
  • Field changed: Status (Unconfirmed → Assigned)
  • Task assigned to David Runge (dvzrv)
This is because scons is not built from a git commit hash, it is built from a stable tarball. The only viable solution, really, would be deleting "__BUILD__" and not replacing it with actual content.

I'm curious, why does upstream have it set up this way when building from stable releases? Might be worth discussing with the actual project. ;)
Comment by loqs (loqs) - Sunday, 21 March 2021, 10:17 GMT
The issue is improved with 4.1.0
scons --version
SCons by Steven Knight et al.:
SCons: v4.1.0, Sun, 21 Mar 2021 10:11:28 +0000, by scons on archlinux
SCons path: ['/usr/lib/python3.9/site-packages/SCons']
Copyright (c) 2001 - 2021 The SCons Foundation

requires:
python scripts/scons.py BUILD_SYSTEM="archlinux" DEVELOPER="$pkgname" DATE="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})"
Comment by loqs (loqs) - Tuesday, 13 July 2021, 09:53 GMT
With scons 4.1.0-1
scons --version
SCons by Steven Knight et al.:
SCons: v4.1.0, 2021-07-13 08:39:57, by _reproducible on _reproducible
SCons path: ['/usr/lib/python3.9/site-packages/SCons']
Copyright (c) 2001 - 2021 The SCons Foundation

@Jayman good enough?
Comment by Jason Yundt (Jayman) - Tuesday, 13 July 2021, 11:27 GMT
Looks good to me!

Loading...