On Thu, Nov 23, 2023 at 10:46:34AM -0500, Nicolas Mora wrote:
>Le 2023-11-23 à 09 h 46, Steve McIntyre a écrit :
>> 
>> Ah, apologies - that version is bogus, it's just the version on the
>> bullseye machine I ran reportbug from.
>> 
>> The tests are failing on current unstable source.
>> 
>
>OK, makes more sense then.
>
>Nevertheless I'm wondering about the seriousness of the bug, I can't
>reproduce on my environment and all the buildd environments where libssh2 is
>built don't have the problem.

AFAICS in a non-interactive environment, USER isn't required to be set
but LOGNAME is; see

  https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html

Alternatively, the tets should probably be calling get(e)uid and
getpwent() rather than relying on the environment here.

>Could your issue be fixed by running something like this?
>USER=$LOGNAME dpkg-buiildpackage
>
>I'm just wondering if the patch is worth applying it to fix a less probable
>case.

The tests failed in a CI system we use at work, so I needed to fix it
there. The patch just adds fallback here, and makes things more robust.

-- 
Steve McIntyre, Cambridge, UK.                                st...@einval.com
You raise the blade, you make the change... You re-arrange me 'til I'm sane...

Reply via email to