Mail Archives: geda-user/2015/07/14/07:22:53
--047d7b10c88957fda5051ad40eb7
Content-Type: text/plain; charset=UTF-8
Vladimir,
I test the new stuff later today. Thanks for your efforts!
Lev
On Tue, Jul 14, 2015 at 12:56 PM, <gedau AT igor2 DOT repo DOT hu> wrote:
> Hi,
>
> On Tue, 14 Jul 2015, Vladimir Zhbanov (vzhbanov AT gmail DOT com) [via
> geda-user AT delorie DOT com] wrote:
>
>
>> Hi, geda users and devs.
>>
>> Recently, some issues with the FreeBSD port were solved. (This may
>> apply to other systems as well.)
>>
>> The only question suspended is about non-portable 'date -d'
>> invocation [1]. As it turns out, compilation works with gnu make
>> but breaks with BSD make.
>>
>> So I believe we have two options:
>> - leave it in the current state and recommend users to compile
>> geda-gaf using GNU make (I don't like this option)
>> - fix the date invocation somehow (I don't know how to
>> gracefully do it for all platforms)
>>
>> Any ideas?
>>
>
> One of my hobby projects is the second generation of a configuration
> system (./configure stuff). What I learned from the first generation was
> exactly this: you can't trust even the simplest utils will work
> consistently across systems. Not even echo.
>
> My solution is to use C89 for the configuration system, and simply do not
> target systems that don't comply with C89.
>
> In your specific case, a similar trick could work. A C fewliners around
> strftime() would be small, simple and reliable. Strftime is C89 for most
> features (don't use timezones and you'll be fine). The C code could compile
> with $(CC) directly into an executable in one step, without any extra
> configuration.
>
> Regards,
>
> Igor2
>
--047d7b10c88957fda5051ad40eb7
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div><div>Vladimir,<br><br><br></div>I test the new stuff =
later today. Thanks for your efforts!<br><br></div>Lev<br></div><div class=
=3D"gmail_extra"><br><div class=3D"gmail_quote">On Tue, Jul 14, 2015 at 12:=
56 PM, <span dir=3D"ltr"><<a href=3D"mailto:gedau AT igor2 DOT repo DOT hu" target=
=3D"_blank">gedau AT igor2 DOT repo DOT hu</a>></span> wrote:<br><blockquote class=
=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd=
ing-left:1ex">Hi,<span class=3D""><br>
<br>
On Tue, 14 Jul 2015, Vladimir Zhbanov (<a href=3D"mailto:vzhbanov AT gmail DOT com=
" target=3D"_blank">vzhbanov AT gmail DOT com</a>) [via <a href=3D"mailto:geda-use=
r AT delorie DOT com" target=3D"_blank">geda-user AT delorie DOT com</a>] wrote:<br>
<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
<br>
Hi, geda users and devs.<br>
<br>
Recently, some issues with the FreeBSD port were solved. (This may<br>
apply to other systems as well.)<br>
<br>
The only question suspended is about non-portable 'date -d'<br>
invocation [1]. As it turns out, compilation works with gnu make<br>
but breaks with BSD make.<br>
<br>
So I believe we have two options:<br>
=C2=A0- leave it in the current state and recommend users to compile<br>
=C2=A0 =C2=A0geda-gaf using GNU make (I don't like this option)<br>
=C2=A0- fix the date invocation somehow (I don't know how to<br>
=C2=A0 =C2=A0gracefully do it for all platforms)<br>
<br>
Any ideas?<br>
</blockquote>
<br></span>
One of my hobby projects is the second generation of a configuration system=
(./configure stuff). What I learned from the first generation was exactly =
this: you can't trust even the simplest utils will work consistently ac=
ross systems. Not even echo.<br>
<br>
My solution is to use C89 for the configuration system, and simply do not t=
arget systems that don't comply with C89.<br>
<br>
In your specific case, a similar trick could work. A C fewliners around str=
ftime() would be small, simple and reliable. Strftime is C89 for most featu=
res (don't use timezones and you'll be fine). The C code could comp=
ile with $(CC) directly into an executable in one step, without any extra c=
onfiguration.<br>
<br>
Regards,<br>
<br>
Igor2<br>
</blockquote></div><br></div>
--047d7b10c88957fda5051ad40eb7--
- Raw text -