Tk Source Code

View Ticket
Login
Ticket UUID: 319566b7c19bfb630b7b04bb4e0eef6b4b7bee0a
Title: Broken Windows build
Type: Bug Version:
Submitter: griffin Created on: 2024-01-25 23:52:35
Subsystem: 85. Win Build Assigned To: nobody
Priority: 5 Medium Severity: Severe
Status: Closed Last Modified: 2024-01-26 17:28:28
Resolution: None Closed By: griffin
    Closed on: 2024-01-26 17:28:28
Description:
The following build rule in makefile.vc cannot possibly work 
except in a github actions environment. 

 $(ROOT)\manifest.uuid:
    copy $(WIN_DIR)\gitmanifest.in $(ROOT)\manifest.uuid
    git rev-parse HEAD >>$(ROOT)\manifest.uuid

Firstly, "git" is not installed on my machine. 

	git rev-parse HEAD >>C:\tcl_core\tk\win\..\manifest.uuid
'git' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'git' : return code '0x1'
Stop.

Secondly, this is a fossil checkout, not a git checkout, so even if 
git was installed, it still fails. 

With git present:

	copy C:\tcl_core\tk\win\..\win\gitmanifest.in C:\tcl_core\tk\win\..\manifest.uuid
        1 file(s) copied.
	git rev-parse HEAD >>C:\tcl_core\tk\win\..\manifest.uuid
fatal: not a git repository (or any of the parent directories): .git
NMAKE : fatal error U1077: 'git' : return code '0x80'
Stop.


So what Am I missing?
User Comments: griffin added on 2024-01-26 17:28:28:
Thanks Jan.  That wasn't it.  
Somehow, the manifest.uuid file was removed. 
Without an effective fossil update, the "git" path was taken, leading to failure.
Since there was no changes on the codeline, fossil update did nothing, 
leading to a failing path with no clues.
It would be more useful if the fossil action was explicit in the makefile. 
Short of that, there should at least be comments in the makefile 
explaining what magic is expected to happen, and when.

Thanks again!
Moving on...

jan.nijtmans added on 2024-01-26 08:15:25:
> So what Am I missing?

You are most likely missing a ".fossil-settings/manifest" file in your repository (containing at least a single character 'u'). This file will make fossil generate the "manifest.uuid" file, which overrides the git rule (which is meant for GITHUB, or when you are working from GIT outside a fossil environment)