Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Feb 2025 18:58:33 +0000
From:      Nuno Teixeira <eduardo@freebsd.org>
To:        Zsolt Udvari <uzsolt@freebsd.org>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: cran.mk strange do-test
Message-ID:  <CAFDf7U%2BAx1Mim6sL6h4UKk91_yzCxLGfi4JEROdhooC7wnzF9g@mail.gmail.com>
In-Reply-To: <CAFDf7UKLEG4JTJNpt2FftYc0Rv2H=p-8oiJVJPa5S6_ACSzMeA@mail.gmail.com>
References:  <Z6kAEmeaAh7jtMMW@bsd-zsolt> <Z64chbwLJTsUyXYT@bsd-zsolt> <CAFDf7UKLEG4JTJNpt2FftYc0Rv2H=p-8oiJVJPa5S6_ACSzMeA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000bd272c062e0aa5a6
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

(...)

MAKE_ENV+=3D LC_ALL=3DC.UTF-8
OK
MAKE_ENV+=3D LC_ALL=3DC
FAIL

Nuno Teixeira <eduardo@freebsd.org> escreveu (quinta, 13/02/2025 =C3=A0(s)
18:50):

> Hello,
>
> Just tested OK:
>
> +MAKE_ENV+=3D       LC_ALL=3DC.UTF-8
>
> As you are suspecting that LC_ALL is affecting tests, you can now test
> with other values.
> If you can "prove" that it fails on a certain vallue, then upstream shoul=
d
> fix tests to work on all values or force it to specific one.
>
> Cheers
>
> Zsolt Udvari <uzsolt@freebsd.org> escreveu (quinta, 13/02/2025 =C3=A0(s)
> 16:24):
>
>> Found the difference: in the clean poudriere jail the LC_ALL variable is
>> empty but in the ports 'make test' the LC_ALL is C.
>>
>> If I set the LC_ALL to C the 'R CMD check' fails too.
>>
>> Could you please check it who use R? Any ideas?
>>
>> Cheers,
>>   Zsolt
>>
>> On Sun, Feb 09, 2025 at 08:20:50PM +0100, Zsolt Udvari wrote:
>> > Hi all,
>> >
>> > I run a strange issue in Mk/Uses/cran.mk, and I don't understand.
>> >
>> > I updated devel/R-cran/sessioninfo
>> (2cfb7dfba861db7f6216f8aaa5fa81f1148c12f1).
>> > The 'make test' fails so I opened an issue on project page [1].
>> > The developer show me that the 'R CMD check' runs well. I checked it i=
n
>> > poudriere jail - yes, he's right. So it seems it is an ports
>> > framework-specific issue.
>> >
>> > I begin play with Mk/Uses/cran.mk.
>> > If I copy and run the full command [2] works fine so IMHO the command
>> is okay.
>> > I copied it into /root/test.sh. Running of /root/test.sh is okay,
>> > all tests passed (or skipped).
>> > I changed the command in cran.mk to '/bin/sh /root/test.sh' - the test
>> fails
>> > (as in github issue)!
>> >
>> > Do you have any idea why fails with ports framework and how can fix it=
?
>> >
>> > Thanks,
>> >   Zsolt
>> >
>> > [1] https://github.com/r-lib/sessioninfo/issues/111
>> > [2] https://cgit.freebsd.org/ports/tree/Mk/Uses/cran.mk#n39
>> >
>>
>>
>
> --
> Nuno Teixeira
> FreeBSD UNIX:  <eduardo@FreeBSD.org>   Web:  https://FreeBSD.org
>


--=20
Nuno Teixeira
FreeBSD UNIX:  <eduardo@FreeBSD.org>   Web:  https://FreeBSD.org

--000000000000bd272c062e0aa5a6
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>(...)</div><div><br></div><div>MAKE_ENV+=3D LC_ALL=3D=
C.UTF-8</div><div>OK</div><div>MAKE_ENV+=3D LC_ALL=3DC=C2=A0</div><div>FAIL=
</div></div><br><div class=3D"gmail_quote gmail_quote_container"><div dir=
=3D"ltr" class=3D"gmail_attr">Nuno Teixeira &lt;<a href=3D"mailto:eduardo@f=
reebsd.org">eduardo@freebsd.org</a>&gt; escreveu (quinta, 13/02/2025 =C3=A0=
(s) 18:50):<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px =
0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div=
 dir=3D"ltr"><div>Hello,</div><div><br></div><div>Just tested OK:</div><div=
><br></div><div>+MAKE_ENV+=3D =C2=A0 =C2=A0 =C2=A0 LC_ALL=3DC.UTF-8</div><d=
iv><br></div><div>As you are suspecting that LC_ALL is affecting tests, you=
 can now test with other values.<br></div><div>If you can &quot;prove&quot;=
 that it fails on a certain vallue, then upstream should fix tests to work =
on all values or force it to specific one.</div><div><br></div><div>Cheers<=
/div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_a=
ttr">Zsolt Udvari &lt;<a href=3D"mailto:uzsolt@freebsd.org" target=3D"_blan=
k">uzsolt@freebsd.org</a>&gt; escreveu (quinta, 13/02/2025 =C3=A0(s) 16:24)=
:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.=
8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Found the diff=
erence: in the clean poudriere jail the LC_ALL variable is<br>
empty but in the ports &#39;make test&#39; the LC_ALL is C.<br>
<br>
If I set the LC_ALL to C the &#39;R CMD check&#39; fails too.<br>
<br>
Could you please check it who use R? Any ideas?<br>
<br>
Cheers,<br>
=C2=A0 Zsolt<br>
<br>
On Sun, Feb 09, 2025 at 08:20:50PM +0100, Zsolt Udvari wrote:<br>
&gt; Hi all,<br>
&gt; <br>
&gt; I run a strange issue in Mk/Uses/<a href=3D"http://cran.mk" rel=3D"nor=
eferrer" target=3D"_blank">cran.mk</a>, and I don&#39;t understand.<br>
&gt; <br>
&gt; I updated devel/R-cran/sessioninfo (2cfb7dfba861db7f6216f8aaa5fa81f114=
8c12f1).<br>
&gt; The &#39;make test&#39; fails so I opened an issue on project page [1]=
.<br>
&gt; The developer show me that the &#39;R CMD check&#39; runs well. I chec=
ked it in<br>
&gt; poudriere jail - yes, he&#39;s right. So it seems it is an ports<br>
&gt; framework-specific issue.<br>
&gt; <br>
&gt; I begin play with Mk/Uses/<a href=3D"http://cran.mk" rel=3D"noreferrer=
" target=3D"_blank">cran.mk</a>.<br>
&gt; If I copy and run the full command [2] works fine so IMHO the command =
is okay.<br>
&gt; I copied it into /root/test.sh. Running of /root/test.sh is okay,<br>
&gt; all tests passed (or skipped).<br>
&gt; I changed the command in <a href=3D"http://cran.mk" rel=3D"noreferrer"=
 target=3D"_blank">cran.mk</a> to &#39;/bin/sh /root/test.sh&#39; - the tes=
t fails<br>
&gt; (as in github issue)!<br>
&gt; <br>
&gt; Do you have any idea why fails with ports framework and how can fix it=
?<br>
&gt; <br>
&gt; Thanks,<br>
&gt;=C2=A0 =C2=A0Zsolt<br>
&gt; <br>
&gt; [1] <a href=3D"https://github.com/r-lib/sessioninfo/issues/111" rel=3D=
"noreferrer" target=3D"_blank">https://github.com/r-lib/sessioninfo/issues/=
111</a><br>
&gt; [2] <a href=3D"https://cgit.freebsd.org/ports/tree/Mk/Uses/cran.mk#n39=
" rel=3D"noreferrer" target=3D"_blank">https://cgit.freebsd.org/ports/tree/=
Mk/Uses/cran.mk#n39</a><br>
&gt; <br>
<br>
</blockquote></div><div><br clear=3D"all"></div><br><span class=3D"gmail_si=
gnature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><d=
iv dir=3D"ltr"><div><font color=3D"#888888">Nuno Teixeira</font></div><div>=
<div><font color=3D"#888888">
FreeBSD UNIX:=C2=A0 &lt;eduardo@FreeBSD.org&gt;=C2=A0 =C2=A0Web:=C2=A0 <a h=
ref=3D"https://FreeBSD.org" rel=3D"noreferrer" target=3D"_blank">https://Fr=
eeBSD.org</a><br></font></div></div></div></div>
</blockquote></div><div><br clear=3D"all"></div><br><span class=3D"gmail_si=
gnature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><d=
iv dir=3D"ltr"><div><font color=3D"#888888">Nuno Teixeira</font></div><div>=
<div><font color=3D"#888888">
FreeBSD UNIX:=C2=A0 &lt;eduardo@FreeBSD.org&gt;=C2=A0 =C2=A0Web:=C2=A0 <a h=
ref=3D"https://FreeBSD.org" rel=3D"noreferrer" target=3D"_blank">https://Fr=
eeBSD.org</a><br></font></div></div></div></div>

--000000000000bd272c062e0aa5a6--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7U%2BAx1Mim6sL6h4UKk91_yzCxLGfi4JEROdhooC7wnzF9g>