Bug 1667948 Comment 3 Edit History

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

Another idea which :acat brought up today was us just setting `MOZILLA_OFFICIAL`. Would that be okay from a build system PoV? I realize that we set it essentially on all of our mozconfig files already (with the exception of the one for generating the fat .aar file) to be as close as possible to Mozilla's build config.

It seems this does the trick for this bug, too, even though I then run into a different issue which seems weird:
```
 1:19.39 /var/tmp/build/geckoview-1e87e9af192c/obj-arm-unknown-linux-androideabi/_virtualenvs/init_py3/bin/python /var/tmp/build/geckoview-1e87e9af192c/config/nsinstall.py -R -m 644 '/var/tmp/build/geckoview-1e87e9af192c/toolkit/library/libxul.so-gdb.py' '/var/tmp/build/geckoview-1e87e9af192c/obj-arm-unknown-linux-androideabi/toolkit/library/build'
 1:19.46 Traceback (most recent call last):
 1:19.46   File "/var/tmp/build/geckoview-1e87e9af192c/config/nsinstall.py", line 162, in <module>
 1:19.46     sys.exit(_nsinstall_internal(sys.argv[1:]))
 1:19.46   File "/var/tmp/build/geckoview-1e87e9af192c/config/nsinstall.py", line 151, in _nsinstall_internal
 1:19.46     copy_all_entries(args, target)
 1:19.46   File "/var/tmp/build/geckoview-1e87e9af192c/config/nsinstall.py", line 112, in copy_all_entries
 1:19.46     os.chmod(dest, options.m)
 1:19.46 FileNotFoundError: [Errno 2] No such file or directory: '/var/tmp/build/geckoview-1e87e9af192c/obj-arm-unknown-linux-androideabi/toolkit/library/build/libxul.so-gdb.py'
```
Another idea which :acat brought up today was us just setting `MOZILLA_OFFICIAL`. Would that be okay from a build system PoV? I realize that we set it essentially in all of our mozconfig files already (with the exception of the one for generating the fat .aar file) to be as close as possible to Mozilla's build config.

It seems this does the trick for this bug, too, even though I then run into a different issue which seems weird:
```
 1:19.39 /var/tmp/build/geckoview-1e87e9af192c/obj-arm-unknown-linux-androideabi/_virtualenvs/init_py3/bin/python /var/tmp/build/geckoview-1e87e9af192c/config/nsinstall.py -R -m 644 '/var/tmp/build/geckoview-1e87e9af192c/toolkit/library/libxul.so-gdb.py' '/var/tmp/build/geckoview-1e87e9af192c/obj-arm-unknown-linux-androideabi/toolkit/library/build'
 1:19.46 Traceback (most recent call last):
 1:19.46   File "/var/tmp/build/geckoview-1e87e9af192c/config/nsinstall.py", line 162, in <module>
 1:19.46     sys.exit(_nsinstall_internal(sys.argv[1:]))
 1:19.46   File "/var/tmp/build/geckoview-1e87e9af192c/config/nsinstall.py", line 151, in _nsinstall_internal
 1:19.46     copy_all_entries(args, target)
 1:19.46   File "/var/tmp/build/geckoview-1e87e9af192c/config/nsinstall.py", line 112, in copy_all_entries
 1:19.46     os.chmod(dest, options.m)
 1:19.46 FileNotFoundError: [Errno 2] No such file or directory: '/var/tmp/build/geckoview-1e87e9af192c/obj-arm-unknown-linux-androideabi/toolkit/library/build/libxul.so-gdb.py'
```
It seems this does the trick for this bug, too, even though I then run into a different issue which seems weird:
```
 1:19.39 /var/tmp/build/geckoview-1e87e9af192c/obj-arm-unknown-linux-androideabi/_virtualenvs/init_py3/bin/python /var/tmp/build/geckoview-1e87e9af192c/config/nsinstall.py -R -m 644 '/var/tmp/build/geckoview-1e87e9af192c/toolkit/library/libxul.so-gdb.py' '/var/tmp/build/geckoview-1e87e9af192c/obj-arm-unknown-linux-androideabi/toolkit/library/build'
 1:19.46 Traceback (most recent call last):
 1:19.46   File "/var/tmp/build/geckoview-1e87e9af192c/config/nsinstall.py", line 162, in <module>
 1:19.46     sys.exit(_nsinstall_internal(sys.argv[1:]))
 1:19.46   File "/var/tmp/build/geckoview-1e87e9af192c/config/nsinstall.py", line 151, in _nsinstall_internal
 1:19.46     copy_all_entries(args, target)
 1:19.46   File "/var/tmp/build/geckoview-1e87e9af192c/config/nsinstall.py", line 112, in copy_all_entries
 1:19.46     os.chmod(dest, options.m)
 1:19.46 FileNotFoundError: [Errno 2] No such file or directory: '/var/tmp/build/geckoview-1e87e9af192c/obj-arm-unknown-linux-androideabi/toolkit/library/build/libxul.so-gdb.py'
```
Interesting, this went away when I rebuilt. So, maybe scratch that for now...
It seems this does the trick for this bug, too, even though I then run into a different issue which seems weird:
```
 1:19.39 /var/tmp/build/geckoview-1e87e9af192c/obj-arm-unknown-linux-androideabi/_virtualenvs/init_py3/bin/python /var/tmp/build/geckoview-1e87e9af192c/config/nsinstall.py -R -m 644 '/var/tmp/build/geckoview-1e87e9af192c/toolkit/library/libxul.so-gdb.py' '/var/tmp/build/geckoview-1e87e9af192c/obj-arm-unknown-linux-androideabi/toolkit/library/build'
 1:19.46 Traceback (most recent call last):
 1:19.46   File "/var/tmp/build/geckoview-1e87e9af192c/config/nsinstall.py", line 162, in <module>
 1:19.46     sys.exit(_nsinstall_internal(sys.argv[1:]))
 1:19.46   File "/var/tmp/build/geckoview-1e87e9af192c/config/nsinstall.py", line 151, in _nsinstall_internal
 1:19.46     copy_all_entries(args, target)
 1:19.46   File "/var/tmp/build/geckoview-1e87e9af192c/config/nsinstall.py", line 112, in copy_all_entries
 1:19.46     os.chmod(dest, options.m)
 1:19.46 FileNotFoundError: [Errno 2] No such file or directory: '/var/tmp/build/geckoview-1e87e9af192c/obj-arm-unknown-linux-androideabi/toolkit/library/build/libxul.so-gdb.py'
```
Interesting, this went away when I rebuilt and the build succeded (I did not make any changes). So, maybe scratch that for now...
It seems this does the trick for this bug, too, even though I then run into a different issue which seems weird:
```
 1:19.39 /var/tmp/build/geckoview-1e87e9af192c/obj-arm-unknown-linux-androideabi/_virtualenvs/init_py3/bin/python /var/tmp/build/geckoview-1e87e9af192c/config/nsinstall.py -R -m 644 '/var/tmp/build/geckoview-1e87e9af192c/toolkit/library/libxul.so-gdb.py' '/var/tmp/build/geckoview-1e87e9af192c/obj-arm-unknown-linux-androideabi/toolkit/library/build'
 1:19.46 Traceback (most recent call last):
 1:19.46   File "/var/tmp/build/geckoview-1e87e9af192c/config/nsinstall.py", line 162, in <module>
 1:19.46     sys.exit(_nsinstall_internal(sys.argv[1:]))
 1:19.46   File "/var/tmp/build/geckoview-1e87e9af192c/config/nsinstall.py", line 151, in _nsinstall_internal
 1:19.46     copy_all_entries(args, target)
 1:19.46   File "/var/tmp/build/geckoview-1e87e9af192c/config/nsinstall.py", line 112, in copy_all_entries
 1:19.46     os.chmod(dest, options.m)
 1:19.46 FileNotFoundError: [Errno 2] No such file or directory: '/var/tmp/build/geckoview-1e87e9af192c/obj-arm-unknown-linux-androideabi/toolkit/library/build/libxul.so-gdb.py'
```
Interesting, this went away when I rebuilt and the build succeeded (I did not make any changes). So, maybe scratch that for now...
```
 1:19.39 /var/tmp/build/geckoview-1e87e9af192c/obj-arm-unknown-linux-androideabi/_virtualenvs/init_py3/bin/python /var/tmp/build/geckoview-1e87e9af192c/config/nsinstall.py -R -m 644 '/var/tmp/build/geckoview-1e87e9af192c/toolkit/library/libxul.so-gdb.py' '/var/tmp/build/geckoview-1e87e9af192c/obj-arm-unknown-linux-androideabi/toolkit/library/build'
 1:19.46 Traceback (most recent call last):
 1:19.46   File "/var/tmp/build/geckoview-1e87e9af192c/config/nsinstall.py", line 162, in <module>
 1:19.46     sys.exit(_nsinstall_internal(sys.argv[1:]))
 1:19.46   File "/var/tmp/build/geckoview-1e87e9af192c/config/nsinstall.py", line 151, in _nsinstall_internal
 1:19.46     copy_all_entries(args, target)
 1:19.46   File "/var/tmp/build/geckoview-1e87e9af192c/config/nsinstall.py", line 112, in copy_all_entries
 1:19.46     os.chmod(dest, options.m)
 1:19.46 FileNotFoundError: [Errno 2] No such file or directory: '/var/tmp/build/geckoview-1e87e9af192c/obj-arm-unknown-linux-androideabi/toolkit/library/build/libxul.so-gdb.py'
```
Interesting, this went away when I rebuilt and the build succeeded (I did not make any changes). So, maybe scratch that for now...
Another idea :acat came up with today: could we just set `MOZILLA_OFFICIAL`, too? Would that be okay from a build PoV? I realized we do this already for all of our other `mozconfig` files to be as close to Mozilla's official build config as possible. This works for us even though I just ran into another build issue later on:
```
 1:19.39 /var/tmp/build/geckoview-1e87e9af192c/obj-arm-unknown-linux-androideabi/_virtualenvs/init_py3/bin/python /var/tmp/build/geckoview-1e87e9af192c/config/nsinstall.py -R -m 644 '/var/tmp/build/geckoview-1e87e9af192c/toolkit/library/libxul.so-gdb.py' '/var/tmp/build/geckoview-1e87e9af192c/obj-arm-unknown-linux-androideabi/toolkit/library/build'
 1:19.46 Traceback (most recent call last):
 1:19.46   File "/var/tmp/build/geckoview-1e87e9af192c/config/nsinstall.py", line 162, in <module>
 1:19.46     sys.exit(_nsinstall_internal(sys.argv[1:]))
 1:19.46   File "/var/tmp/build/geckoview-1e87e9af192c/config/nsinstall.py", line 151, in _nsinstall_internal
 1:19.46     copy_all_entries(args, target)
 1:19.46   File "/var/tmp/build/geckoview-1e87e9af192c/config/nsinstall.py", line 112, in copy_all_entries
 1:19.46     os.chmod(dest, options.m)
 1:19.46 FileNotFoundError: [Errno 2] No such file or directory: '/var/tmp/build/geckoview-1e87e9af192c/obj-arm-unknown-linux-androideabi/toolkit/library/build/libxul.so-gdb.py'
```

Back to Bug 1667948 Comment 3