[Pkg-javascript-devel] Bug#847749: ITP: node-user-home -- Get the path to the user home directory

Christian Seiler christian at iwakd.de
Sun Dec 11 19:10:03 UTC 2016


On 12/11/2016 07:57 PM, Sruthi Chandran wrote:
> On 12/12/2016 12:20 AM, Sruthi Chandran wrote:
>> On 12/11/2016 11:30 PM, Christian Seiler wrote:
>>>> I've attached an updated use-os-homedir.patch that does this (including
>>>> the removal of the require.resolve() line above),
>> Thanks a lot!!! That fixed it.
> It was fixed in local build, but fails in sbuild. Can you check?

I see you enabled the tests during build; the problem here is that
the tests write to the home directory, which is not allowed during
package build (see a recent thread on debian-devel about that),
and sbuild enforces that by setting the home directory of the
sbuild user to something like /non-existent.

You can manually set the HOME environment variable during testing
to override that with a temporarily created directory.

I've attached a git patch against your current packaging (you can
use git am to apply it) that does just this. I've tried building
it in sbuild -d unstable and it works - and the tests pass.

Hope that helps.

Regards,
Christian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-debian-rules-use-fake-HOME-for-tests.patch
Type: text/x-patch
Size: 732 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-javascript-devel/attachments/20161211/8880e8a5/attachment.bin>


More information about the Pkg-javascript-devel mailing list