[PATCH] Fix jobserver does not work on OS/2

2023-12-13 Thread KO Myung-Hun
mkfifo() on OS/2 is a dummy, even it returns a wrong value on error. Do not use it on OS/2. * src/makeint.h (JOBSERVER_USE_FIFO): Do not define on OS/2. --- src/makeint.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/makeint.h b/src/makeint.h index

Re: [PATCH] Implement ttyname() for OS/2

2023-01-17 Thread KO Myung-Hun
Hi/2. KO Myung-Hun wrote: > OS/2 kLIBC has a declaration, but has not implemented. > ... > + if (type == HANDTYPE_DEVICE) > +{ > + if ((attr & 3) == 3) > +return (char *) "/dev/con"; > + > + if ((attr & 4)

[PATCH] Implement ttyname() for OS/2

2023-01-17 Thread KO Myung-Hun
OS/2 kLIBC has a declaration, but has not implemented. * Makefile.am [OS/2]: define OS2ENV. * configure.ac [OS/2]: define os2_SRCS. * src/os2_ttyname.c: Implement ttyname() for OS/2. --- Makefile.am | 6 ++ configure.ac | 9 src/os2_ttyname.c | 53

Re: [PATCH] Check .exe as well when a target does not exist on OS/2

2023-01-17 Thread KO Myung-Hun
Paul Smith wrote: > On Tue, 2023-01-17 at 01:38 +0900, KO Myung-Hun wrote: >> What I meant is checking the existence of a rule for a target not a >> real file built for a target. > > But how do you check for a "rule for a target"? > > What i

Re: [PATCH] Check .exe as well when a target does not exist on OS/2

2023-01-16 Thread KO Myung-Hun
Hi/2. Paul Smith wrote: > On Mon, 2023-01-16 at 22:14 +0900, KO Myung-Hun wrote: >>> But this does not seem like an easy thing to accomplish, at all. >>> What if there is a "%.exe" pattern rule, not an explicit rule for >>> "foo.exe"? >>

Re: [PATCH] Check .exe as well when a target does not exist on OS/2

2023-01-16 Thread KO Myung-Hun
Hi/2. Paul Smith wrote: > On Mon, 2023-01-16 at 00:15 +0900, KO Myung-Hun wrote: >> Then, this patch is acceptable? Or MSYS is a special case ? > > I don't think this patch is a good idea. I said in my initial email: > >> I don't think I like this change. I u

Re: [PATCH] Check .exe as well when a target does not exist on OS/2

2023-01-15 Thread KO Myung-Hun
Hi/2. Eli Zaretskii wrote: >> Date: Sun, 15 Jan 2023 00:57:56 +0900 >> From: KO Myung-Hun >> CC: bug-make@gnu.org >> >>> How do you mean "make of mingw does not require $(EXEEXT)"? AFAICT, >>> if the Makefile defines a target FOO, and t

Re: [PATCH] Check .exe as well when a target does not exist on OS/2

2023-01-14 Thread KO Myung-Hun
Hi/2. Eli Zaretskii wrote: >> Date: Sat, 14 Jan 2023 23:40:57 +0900 >> From: KO Myung-Hun >> CC: bug-make@gnu.org >> >>> Please describe the use case in detail. This situation exists on >>> other platforms, not just of OS/2, and we don't do anything li

Re: [PATCH] Check .exe as well when a target does not exist on OS/2

2023-01-14 Thread KO Myung-Hun
Hi/2. Paul Smith wrote: > On Fri, 2023-01-13 at 22:27 +0900, KO Myung-Hun wrote: >> This pattern is usually used on UNIX. However, on OS/2, gcc creates >> foo.exe not foo when an extension is not present, and Make check foo >> only. Therefore Make tries to build foo whenever

Re: [PATCH] Check .exe as well when a target does not exist on OS/2

2023-01-14 Thread KO Myung-Hun
Hi/2. Eli Zaretskii wrote: >> From: KO Myung-Hun >> Date: Fri, 13 Jan 2023 22:27:43 +0900 >> >> For example, >> >> foo: foo.c >> gcc $@ $< >> >> This pattern is usually used on UNIX. However, on OS/2, gcc creates >> foo.exe not f

[PATCH] Check .exe as well when a target does not exist on OS/2

2023-01-13 Thread KO Myung-Hun
For example, foo: foo.c gcc $@ $< This pattern is usually used on UNIX. However, on OS/2, gcc creates foo.exe not foo when an extension is not present, and Make check foo only. Therefore Make tries to build foo whenever called. * src/remake.c (f_mtime) [EMX]: Check a target again by

Re: [PATCH 0/8] Fix compilation on OS/2

2023-01-12 Thread KO Myung-Hun
Hi/2. Paul Smith wrote: > On Sun, 2022-11-20 at 23:42 +0900, KO Myung-Hun wrote: >> These patches fix compilation on OS/2. > > I have applied some of these patches as-is, and modified others, but I > believe all the changes needed have been pushed to Git. I've confirmed tha

Re: bootstrap fails due to certification expiration

2022-11-20 Thread KO Myung-Hun
Paul Smith wrote: > On Fri, 2022-11-18 at 20:34 +0900, KO Myung-Hun wrote: >> Downloaded: 10 files, 546K in 1.9s (283 KB/s) >> ./bootstrap: autopull.sh failed. >> - >> >> Any idea? > > I'm not sure why it fails but looking at the script it seems you

[PATCH 6/8] Fix [-Werror=incompatible-pointer-types] on OS/2

2022-11-20 Thread KO Myung-Hun
* src/main.c (main) [__EMX__]: Type cast explicitly. --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index eec93656..af3ce702 100644 --- a/src/main.c +++ b/src/main.c @@ -2782,7 +2782,7 @@ main (int argc, char **argv, char **envp)

[PATCH 7/8] Fix [-Werror=shadow] on OS/2

2022-11-20 Thread KO Myung-Hun
* src/job.c (construct_command_argv_internal) [__EMX__]: Just reuse variables. --- src/job.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/job.c b/src/job.c index 9f1e4a3b..800f3b30 100644 --- a/src/job.c +++ b/src/job.c @@ -3553,9 +3553,9 @@

[PATCH 3/8] Fix assignment of read-only location error on OS/2

2022-11-20 Thread KO Myung-Hun
* src/job.c (construct_command_argv_internal) [__EMX__]: Use a buffer allocated in a stack. --- src/job.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/job.c b/src/job.c index b78f279c..aa848f0e 100644 --- a/src/job.c +++ b/src/job.c @@ -3226,7 +3226,11 @@

[PATCH 2/8] Define a HAVE___STRCHRNUL macro properly

2022-11-20 Thread KO Myung-Hun
lib/fnmatch.c tests a HAVE___STRCHRNUL macro to implement an alternative __strchrnul(). Without this, compilation fails on OS/2 kLIBC due to duplicated declarations of __strchrnul() like this: - gcc -DHAVE_CONFIG_H -I. -I../src -D__ST_MT_ERRNO__ -Wno-cast-qual -Wno-conversion

[PATCH 5/8] Fix [-Werror=discarded-qualifiers] on OS/2

2022-11-20 Thread KO Myung-Hun
* src/dir.c (dir_contents_file_exists_p) [__EMX__]: Use a buffer allocated in a stack. * src/job.c (exec_command) [__EMX__]: Type cast explicitly. --- src/dir.c | 6 +- src/job.c | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/dir.c b/src/dir.c index

[PATCH 4/8] Fix [-Werror=unused-variable] on OS/2

2022-11-20 Thread KO Myung-Hun
* src/getopt.c (_getopt_initialize): Use statements without any effect. * src/posixos.c (set_blocking): Declare parameters with UNUSED. * src/remake.c (f_mtime) [__EMX__]: Declare adjustment with UNUSED. --- src/getopt.c | 3 +++ src/posixos.c | 2 +- src/remake.c | 1 + 3 files changed, 5

[PATCH 0/8] Fix compilation on OS/2

2022-11-20 Thread KO Myung-Hun
Hi/2. These patches fix compilation on OS/2. And these are based on git repo. Review, please...

[PATCH 8/8] Fix [-Werror=dangling-else] on OS/2

2022-11-20 Thread KO Myung-Hun
* src/getopt.c (_getopt_internal): Insert explicit braces. --- src/getopt.c | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/getopt.c b/src/getopt.c index fc7cead4..1535a3d5 100644 --- a/src/getopt.c +++ b/src/getopt.c @@ -680,16 +680,18 @@

[PATCH 1/8] Update README.OS2

2022-11-20 Thread KO Myung-Hun
* README.OS2: Apply the latest environment. --- README.OS2 | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.OS2 b/README.OS2 index 82f496e0..e9be44a5 100644 --- a/README.OS2 +++ b/README.OS2 @@ -73,7 +73,7 @@ III. * COMPILATION AND INSTALLATION * To

Re: bootstrap fails due to certification expiration

2022-11-18 Thread KO Myung-Hun
Hi/2. Paul Smith wrote: > On Mon, 2022-11-14 at 13:29 +0900, KO Myung-Hun wrote: >> ./autopull.sh: getting translations into po/.reference for make... >> ERROR: cannot verify translationproject.org's certificate, issued by >> 'CN=R3,O=Let\'s Encrypt,C=US': >> Iss

bootstrap fails due to certification expiration

2022-11-14 Thread KO Myung-Hun
`--no-check-certificate'. ./bootstrap: autopull.sh failed. - What should I do? -- KO Myung-Hun Using Mozilla SeaMonkey 2.7.2 Under OS/2 Warp 4 for Korean with FixPak #15 In VirtualBox v6.1.40 on Intel Core i7-3615QM 2.30GHz with 12GB RAM Korean OS/2 User Community : http://www.os2.kr/

Re: [PATCH 1/2] Fix duplicated __strchrnul() declaration error on OS/2 kLIBC

2022-11-14 Thread KO Myung-Hun
Hi/2. Paul Smith wrote: > On Wed, 2022-11-09 at 22:45 +0900, KO Myung-Hun wrote: >> OS/2 kLIBC has __strchrnul(). But HAVE___STRCHRNUL is undefined. >> 'static' declarion of __strchrnul() causes an error with gcc4 because >> OS/2 kLIBC declares __strchrnul() as public

[PATCH 1/2] Fix duplicated __strchrnul() declaration error on OS/2 kLIBC

2022-11-09 Thread KO Myung-Hun
OS/2 kLIBC has __strchrnul(). But HAVE___STRCHRNUL is undefined. 'static' declarion of __strchrnul() causes an error with gcc4 because OS/2 kLIBC declares __strchrnul() as public. - gcc -DHAVE_CONFIG_H -I. -I../src -D__ST_MT_ERRNO__ -Wno-cast-qual -Wno-conversion -Wno-float-equal

[PATCH 2/2] Fix assignment of read-only location error OS/2

2022-11-09 Thread KO Myung-Hun
- gcc -DHAVE_CONFIG_H -Isrc -I./src -Ilib -I./lib -DLIBDIR=\"/usr/local/lib\" -DLOCALEDIR=\"/usr/local/share/locale\" -D__ST_MT_ERRNO__ -O2 -Zomf -Zmt -MT src/job.o -MD -MP -MF $depbase.Tpo -c -o src/job.o src/job.c &&\ mv -f $depbase.Tpo $depbase.Po src/job.c: In function

Re: GNU Make 4.4 released!

2022-11-08 Thread KO Myung-Hun
Hi/2. Paul Smith wrote: > On Mon, 2022-11-07 at 20:40 +0900, KO Myung-Hun wrote: >> May I take over OS/2 port maintenance ? >> For this, what should I do ? > >1. Subscribe to this mailing list and announce your intention to > work on this (to prevent possib

Re: GNU Make 4.4 released!

2022-11-07 Thread KO Myung-Hun
> > * WARNING: Deprecation! The following systems are deprecated in > this release: - OS/2 (EMX) - AmigaOS - Xenix - Cray In the NEXT > release of GNU Make, support for these systems will be removed. If > you want to see them continue to be supported, contact > . > May I tak