I'm wondering why reproducible-builds project has to use a nonexistant $HOME 
value. It seems to be reasonable for a program to function correctly only with 
a valid (existing) $HOME directory available.

What do you think would be the best solution? Should we export $HOME as /tmp 
explicitly prior to the build?

--
Regards,
Boyuan Yang

在 2018年9月11日星期二 EDT 上午9:53:39,您写道:
> 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-tabl
> e-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

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to