mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Globally define GIT_CEILING_DIRECTORIES?
@ 2023-02-13 13:58 Sven Püschel
  2023-02-13 14:24 ` Christian Melki
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Sven Püschel @ 2023-02-13 13:58 UTC (permalink / raw)
  To: ptxdist

I would suggest globally setting the GIT_CEILING_DIRECTORIES environment 
variable when building packages.

Besides lshw, sockperf is now the second time I've encountered the 
buildsystem to check the current git repository. But as Git also checks 
the parent directories when searching for Git repositories, these checks 
may result in getting an unwanted Git repository (usually the BSP), 
resulting in package versions with a Git commit/version that has nothing 
to do with the actual package.

With GIT_CEILING_DIRECTORIES set to the parent directory of the 
extracted sources, Git will stop searching for parent Git repositories, 
when it encounters this directory. See my sockperf v2 patch for an 
example of using this environment variable.

Given this is a global change, does anyone see a potential problem?


Best regards

Sven




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-03-06  8:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-13 13:58 [ptxdist] Globally define GIT_CEILING_DIRECTORIES? Sven Püschel
2023-02-13 14:24 ` Christian Melki
2023-02-13 15:03   ` Sven Püschel
2023-02-13 19:27     ` Christian Melki
2023-02-14 10:32 ` Michael Riesch
2023-02-14 14:21 ` Michael Olbrich
2023-02-27 21:22   ` Michael Riesch
2023-03-03  7:25     ` Michael Olbrich
2023-03-06  8:34       ` Michael Riesch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox