Bug 1816588 Comment 4 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

(In reply to Mike Hommey [:glandium] from comment #3)
> Try emptying `.cargo/config.in`

emptying how?

I tried four things:
(1) If I delete that file, my build errors out with
`File listed in OBJDIR_PP_FILES does not exist: /scratch/work/builds/mozilla-central/mozilla/.cargo/config.in`

(2) If I empty out that file, my build errors out with
`mozbuild.preprocessor.Preprocessor.Error: ('/scratch/work/builds/mozilla-central/mozilla/.cargo/config.in', None, 'no useful preprocessor directives found', None)`

OK, it needs some "useful" preprocessor directives.
(3) If I remove all of the package-specific stuff up to the `#define REPLACE_NAME vendored-sources` (a "useful" preprocessor directive), my build errors out with
```
 0:16.97 error: failed to download `adler v1.0.2`
 0:16.97 Caused by:
 0:16.97   attempting to make an HTTP request, but --frozen was specified
 ```

(4) If I then add back just the first two lines...
```
[source.crates-io]
replace-with = "vendored-sources"
```
...but leave out everything else, then I'm back to the `compiler_builtins` error from comment 0.
(In reply to Mike Hommey [:glandium] from comment #3)
> Try emptying `.cargo/config.in`

emptying how?

I tried four things:
(1) If I delete that file, my build errors out with
`File listed in OBJDIR_PP_FILES does not exist: /scratch/work/builds/mozilla-central/mozilla/.cargo/config.in`

(2) If I clear the contents of that file (but leave it there as an empty file), my build errors out with
`mozbuild.preprocessor.Preprocessor.Error: ('/scratch/work/builds/mozilla-central/mozilla/.cargo/config.in', None, 'no useful preprocessor directives found', None)`

OK, it needs some "useful" preprocessor directives.
(3) If I remove all of the package-specific stuff up to the `#define REPLACE_NAME vendored-sources` (a "useful" preprocessor directive), my build errors out with
```
 0:16.97 error: failed to download `adler v1.0.2`
 0:16.97 Caused by:
 0:16.97   attempting to make an HTTP request, but --frozen was specified
 ```

(4) If I then add back just the first two lines...
```
[source.crates-io]
replace-with = "vendored-sources"
```
...but leave out everything else, then I'm back to the `compiler_builtins` error from comment 0.
(In reply to Mike Hommey [:glandium] from comment #3)
> Try emptying `.cargo/config.in`

emptying how?

I tried four things:
(1) If I delete that file, my build errors out with
`File listed in OBJDIR_PP_FILES does not exist: /scratch/work/builds/mozilla-central/mozilla/.cargo/config.in`

(2) If I clear the contents of that file (but leave it there as an empty file), my build errors out with
`mozbuild.preprocessor.Preprocessor.Error: ('/scratch/work/builds/mozilla-central/mozilla/.cargo/config.in', None, 'no useful preprocessor directives found', None)`

OK, it needs some "useful" preprocessor directives.

(3) If I remove all of the package-specific stuff up to the `#define REPLACE_NAME vendored-sources` (a "useful" preprocessor directive), my build errors out with
```
 0:16.97 error: failed to download `adler v1.0.2`
 0:16.97 Caused by:
 0:16.97   attempting to make an HTTP request, but --frozen was specified
 ```

(4) If I then add back just the first two lines...
```
[source.crates-io]
replace-with = "vendored-sources"
```
...but leave out everything else, then I'm back to the `compiler_builtins` error from comment 0.

Back to Bug 1816588 Comment 4