[haiku-bugs] Re: [Haiku] #16808: Stuck build when building from a git worktree

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Tue, 23 Feb 2021 18:08:12 -0000

#16808: Stuck build when building from a git worktree
---------------------------+----------------------------
  Reporter:  madmax        |      Owner:  bonefish
      Type:  enhancement   |     Status:  new
  Priority:  normal        |  Milestone:  Unscheduled
 Component:  Build System  |    Version:  R1/Development
Resolution:                |   Keywords:
Blocked By:                |   Blocking:
  Platform:  All           |
---------------------------+----------------------------
Comment (by madmax):

 As I understand it (basically from the comment in the rule), .git/index is
 just used to establish a dependency and run the script when the index
 changes to get the current revision. The script would only really get
 <haiku-rootdir>haiku-revision, so that it writes the revision name there.

 What I'm trying to call attention to is https://git.haiku-
 os.org/haiku/tree/build/jam/FileRules#n388: if you have not set
 HAIKU_REVISION and don't have the usual git checkout, the rule returns an
 empty value, which has bad consequences in other places. In this
 particular case, catting stdin instead of a revision file (which may not
 exist or make sense anyway under these conditions) in https://git.haiku-
 os.org/haiku/tree/build/jam/PackageRules#n138. Now that may be intended,
 just provide a name and Ctrl-D to continue, but I killed a build twice
 before looking into why it didn't advance.
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/16808#comment:2>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: