9front - general discussion about 9front
 help / color / mirror / Atom feed
* x509.c for ape in libsec.a
@ 2020-07-01  5:37 kokamoto
  2020-07-02  4:54 ` [9front] " kokamoto
  0 siblings, 1 reply; 15+ messages in thread
From: kokamoto @ 2020-07-01  5:37 UTC (permalink / raw)
  To: 9front

I'm playing with python2.7.6 on 9front.
The ape/libsec.a file for this port makes x509-ape.c instead of x509.c on the fly by the line:

x509-ape.c:	../../../../libsec/port/x509.c
	cat ../../../../libsec/port/x509.c | \
	sed 's/Tm \*tm = gmtime\(t\)/struct tm *tm0 = gmtime\(\&t\)/;s/tm->/tm0->tm_/g' | \
	sed 's/static //g' > x509-ape.c

Essential part is 's/static //g' to use is_seq etc ib cpython/Plan9/_ssl9.c.
Is this OK? for 9front system?

Kenji

PS: I hve permission to port python2.7.6 to 9front from jas.
Porting 2.7.6 is not so bright because it has no implementation of _ctypes() module.
So, this just a play...



^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2020-07-13  1:39 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-01  5:37 x509.c for ape in libsec.a kokamoto
2020-07-02  4:54 ` [9front] " kokamoto
2020-07-02 14:48   ` Ori Bernstein
2020-07-04  0:39     ` kokamoto
2020-07-08  5:19       ` kokamoto
2020-07-09  4:19         ` kokamoto
2020-07-09  4:25           ` ori
2020-07-09 23:31             ` kokamoto
2020-07-10  0:23               ` kokamoto
2020-07-10  0:27               ` ori
2020-07-10  0:53                 ` Dr. Kenji Okamoto
2020-07-10  1:31                   ` kokamoto
2020-07-10  4:12                     ` ori
2020-07-10  4:36                       ` kokamoto
2020-07-13  1:39                         ` ori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).