On Thu, Sep 13, 2018 at 02:39:58PM -0400, Boyuan Yang wrote: > 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.
https://www.debian.org/doc/debian-policy/ch-opersys.html#non-existent-home-directories > What do you think would be the best solution? Should we export $HOME as /tmp > explicitly prior to the build? Ideally it should work without requiring $HOME to exist. HOME=/tmp opens a bunch of potential security and other problems on machines with more than one user - sorry if my example was misleading for that. < plugwash> basically there are three bits to "home inside the builddir" < plugwash> 1. "export HOME :=$(CURDIR)/fakehome" at the top-level of the rules file. < plugwash> 2. "mkdir fakehome" at the start of the build target < plugwash> 3. "rm -rf fakehome" at the end of the clean target < plugwash> exactly how you do 2 and 3 will depend on what style of rules file the package uses. > Regards, > Boyuan Yang cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed