--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: ibus-table-createdb fails with nonexisting $HOME
- From: Adrian Bunk <bunk@debian.org>
- Date: Tue, 11 Sep 2018 16:53:39 +0300
- Message-id: <153667401934.3232.6379919127486520981.reportbug@localhost>
Package: ibus-table
Version: 1.9.21-1
Severity: serious
Control: affects -1 src:ibus-table-others
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/ibus-table-others.html
...
/usr/bin/ibus-table-createdb -n compose.db -s compose.txt
Traceback (most recent call last):
File "/usr/share/ibus-table/engine/tabcreatedb.py", line 455, in <module>
main()
File "/usr/share/ibus-table/engine/tabcreatedb.py", line 175, in main
create_database=True)
File "/usr/share/ibus-table/engine/tabsqlitedb.py", line 262, in __init__
import ibus_table_location
File "/usr/share/ibus-table/engine/ibus_table_location.py", line 102, in <module>
__module_init = __ModuleInitializer()
File "/usr/share/ibus-table/engine/ibus_table_location.py", line 96, in __init__
_init()
File "/usr/share/ibus-table/engine/ibus_table_location.py", line 76, in _init
os.makedirs(IBUS_TABLE_LOCATION['data_home'])
File "/usr/lib/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib/python3.6/os.py", line 220, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/nonexistent'
make[2]: *** [Makefile:519: compose.db] Error 1
This can be reproduced with:
# works
$ HOME=/tmp /usr/bin/ibus-table-createdb -n compose.db -s compose.txt
# fails
$ HOME=/doesnotexist /usr/bin/ibus-table-createdb -n compose.db -s compose.txt
--- End Message ---