Commit b9676c2
committed
Make distcheck use the tarball submodule directories
When Distcheck runs, it invokes `make check` with the current
directory set to `<git_root>/build/tmp/distcheck` which contains an
extracted plain source tarball.
Without passing `--src`, bootstrap's `compute_src_directory` will call
`git rev-parse --show-cdup` from that tmp directory and get back to
`<git_root>`
At that point all the `git_info` calls will find submodules in the
original git checkout, not in the tarball.
If we instead pass `--src`, `compute_src_directory` will use the
argument directory and all the git info commands will use the tarball
git-commit-info files.
Additionally, we update tidy's `gcc_submodule` check to look for the
`src/gcc/notice.txt` file that is present in tarballs to indicate that
we did not include the `src/gcc` submodule.1 parent cba5918 commit b9676c2
2 files changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
16 | 21 | | |
17 | 22 | | |
18 | 23 | | |
| |||
0 commit comments