NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: misc/59051: edt-1.9's "keypad_configure" function performs global configuration of remote X session
The following reply was made to PR misc/59051; it has been noted by GNATS.
From: RVP <rvp%SDF.ORG@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: jon.brase%gmail.com@localhost, wiz%netbsd.org@localhost
Subject: Re: misc/59051: edt-1.9's "keypad_configure" function performs global
configuration of remote X session
Date: Sat, 15 Feb 2025 22:56:16 +0000 (UTC)
On Tue, 11 Feb 2025, Thomas Klausner via gnats wrote:
> On Tue, Feb 11, 2025 at 07:50:02AM +0000, RVP via gnats wrote:
> > Or, try out a different version of EDT:
> >
> > http://www.o3one.org/edt.html
>
> I've just packaged this as pkgsrc/editors/edt-o3one.
>
Oh, thanks, but you'll need a patch like this if the `edt.hlp' file is not in
the same dir. as the executable itself (which is what this prog. expects):
```
diff -urN edtdist_20161222.orig/makefile edtdist_20161222/makefile
--- edtdist_20161222.orig/makefile 2016-12-23 00:28:13.000000000 +0000
+++ edtdist_20161222/makefile 2025-02-15 22:45:23.851226174 +0000
@@ -119,7 +119,7 @@
$(CC) md5.c
os.linux.o: os.c
- $(CC) -DUSE_LIBREADLINE -o os.linux.o os.c
+ $(CC) -DUSE_LIBREADLINE -DEDT_HELPFILE=\"${EDT_HELPFILE}\" -o os.linux.o os.c
output.o: output.c
$(CC) output.c
diff -urN edtdist_20161222.orig/os.c edtdist_20161222/os.c
--- edtdist_20161222.orig/os.c 2016-12-23 00:35:48.000000000 +0000
+++ edtdist_20161222/os.c 2025-02-15 22:46:27.605856430 +0000
@@ -265,6 +265,14 @@
abort ();
}
+#ifdef EDT_HELPFILE
+ help_name = malloc(strlen(EDT_HELPFILE) + 1);
+ if (help_name == NULL) {
+ fprintf (stderr, "out of memory\n");
+ exit (1);
+ }
+ strcpy(help_name, EDT_HELPFILE);
+#else
/* Try to find help file - same directory as executable */
pathstring = NULL; /* haven't allocated a string yet */
@@ -303,6 +311,7 @@
strcat (help_name, ".hlp"); /* append .hlp for the help file name */
if (pathstring != NULL) string_delete (pathstring); /* free off string if we allocated one */
+#endif
#endif
```
Compile as (usual):
make EDT_HELPFILE=/PATH/TO/edt.hlp
-RVP
Home |
Main Index |
Thread Index |
Old Index