remove editors/axe

The last release dates from 1994 and the code becomes increasingly
difficult to build with modern C compilers.  It broke again with llvm22.

ok kn@ tb@ matthieu@
This commit is contained in:
naddy
2026-05-30 15:30:21 +00:00
parent f0640bb443
commit 1c06bee563
34 changed files with 4 additions and 470 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ CATEGORIES = devel databases
DISTFILES =
# API.rev
PKGNAME = quirks-7.203
PKGNAME = quirks-7.204
PKG_ARCH = *
MAINTAINER = Marc Espie <espie@openbsd.org>
+3 -2
View File
@@ -1,7 +1,7 @@
#! /usr/bin/perl
# ex:ts=8 sw=4:
# $OpenBSD: Quirks.pm,v 1.1810 2026/05/30 14:01:44 sthen Exp $
# $OpenBSD: Quirks.pm,v 1.1811 2026/05/30 15:30:21 naddy Exp $
#
# Copyright (c) 2009 Marc Espie <espie@openbsd.org>
#
@@ -1071,8 +1071,10 @@ setup_obsolete_reason(
# 8.0
5 => 'XawMu',
3 => 'facette',
5 => 'telepathy-logger',
0 => 'xpilot',
0 => 'xasteroids',
0 => 'axe',
);
# beware, if ports with an RDEP on Python 3 are removed, they need to be listed
# as @conflict/pkgpath in lang/python/3 and not here, otherwise an update from a
@@ -1112,7 +1114,6 @@ my $obsolete_suggestion = {
'usmb' => 'susmb',
# 8.0
'facette' => 'grafana',
'telepathy-logger' => '5',
};
# reasons for obsolete packages
-1
View File
@@ -2,7 +2,6 @@
SUBDIR += TeXmacs
SUBDIR += abiword
SUBDIR += apostrophe
SUBDIR += axe
SUBDIR += beav
SUBDIR += bvi
SUBDIR += calligra
-19
View File
@@ -1,19 +0,0 @@
COMMENT= simple to use text editor for X11
DISTNAME= aXe-6.1.2
PKGNAME= ${DISTNAME:L}
REVISION= 5
CATEGORIES= editors
# "other than commercial exploitation"
PERMIT_PACKAGE= Yes
WANTLIB= ICE SM X11 Xau Xdmcp Xaw Xext Xmu Xpm Xt c
SITES= ${SITE_XCONTRIB:=editors/}
EXTRACT_SUFX= .tar.Z
CONFIGURE_STYLE= imake
NO_TEST= Yes
.include <bsd.port.mk>
-2
View File
@@ -1,2 +0,0 @@
SHA256 (aXe-6.1.2.tar.Z) = zn9UP7xEOajUCYnePEr14T2L+YiqJ7jtUP366U/w7CE=
SIZE (aXe-6.1.2.tar.Z) = 661375
-14
View File
@@ -1,14 +0,0 @@
--- Axe.rules.orig Wed Apr 6 18:07:33 1994
+++ Axe.rules Tue Aug 21 02:43:48 2001
@@ -72,7 +72,7 @@ extension:: @@\
#define InstallCoaxe(bindest) @@\
InstallProgram(coaxe,bindest) @@\
install:: @@\
- if [ -f bindest/faxe ]; then set +x; \ @@\
- else (cd bindest; set -x; $(LN) coaxe faxe); fi @@\
- if [ -f bindest/poleaxe ]; then set +x; \ @@\
- else (cd bindest; set -x; $(LN) coaxe poleaxe); fi
+ if [ -f $(DESTDIR)bindest/faxe ]; then set +x; \ @@\
+ else (cd $(DESTDIR)bindest; set -x; $(LN) coaxe faxe); fi @@\
+ if [ -f $(DESTDIR)bindest/poleaxe ]; then set +x; \ @@\
+ else (cd $(DESTDIR)bindest; set -x; $(LN) coaxe poleaxe); fi
-8
View File
@@ -1,8 +0,0 @@
--- Axe.tmpl.orig Wed Apr 6 18:07:33 1994
+++ Axe.tmpl Tue Aug 21 02:43:48 2001
@@ -131,4 +131,4 @@ XAW3D_INCLUDES = -I./X11/Xaw3d
SCANDIR_OBJS = scandir.o
#endif
-DEFINES = ${EXTENSION} ${XAW3D} ${HAVEX11R5PL20} ${MAXPATHLEN}
+DEFINES = ${EXTENSION} ${XAW3D} ${HAVEX11R5PL20} ${MAXPATHLEN} -D__BSD_4_4__
-29
View File
@@ -1,29 +0,0 @@
Index: Help/Hyper.c
--- Help/Hyper.c.orig
+++ Help/Hyper.c
@@ -977,7 +977,6 @@ HyperWidget hyper;
char *fname;
{
Widget widget = (Widget) hyper;
- extern char *sys_errlist[];
FILE *f = fopen(fname,"r");
if(f)
@@ -1448,7 +1447,7 @@ Boolean HyperGrep(HyperWidget widget,
text_segment *s;
char expbuf[ESIZE];
- if(!widget->hyper.first_seg) return;
+ if(!widget->hyper.first_seg) return FALSE;
if(ignore_case)
{
@@ -1458,7 +1457,7 @@ Boolean HyperGrep(HyperWidget widget,
}
/* compile the regular expression */
- compile(w,expbuf,&expbuf[ESIZE],'\0');
+ compile(w,expbuf,'\0');
if(ignore_case) XtFree(w);
-13
View File
@@ -1,13 +0,0 @@
--- Help/axinfo.c.orig Thu Apr 7 10:43:22 1994
+++ Help/axinfo.c Wed Mar 16 19:30:15 2016
@@ -43,9 +43,7 @@
#include <sys/stat.h>
#include <stdio.h>
-
-extern char *getenv();
-extern char *malloc(), *realloc();
+#include <stdlib.h>
#include "Confirmer.h"
#include "Hyper.h"
@@ -1,21 +0,0 @@
Index: Widgets/AxeEditor.c
--- Widgets/AxeEditor.c.orig
+++ Widgets/AxeEditor.c
@@ -49,13 +49,15 @@
#include <FileNom.h>
#include <sys/param.h>
#include <sys/stat.h>
-#include <sys/errno.h>
+#include <sys/wait.h>
+#include <ctype.h>
+#include <errno.h>
#include <signal.h>
-extern int errno;
#ifndef __BSD_4_4__
extern char *sys_errlist[];
#endif
#include <stdio.h>
+#include <stdlib.h>
#ifdef EXTENSION
#include "Language.h"
@@ -1,11 +0,0 @@
--- Widgets/AxeTextDeck.c.orig Wed Aug 22 01:00:20 2001
+++ Widgets/AxeTextDeck.c Wed Aug 22 01:01:32 2001
@@ -177,7 +177,7 @@ Initialize(req, new, args, num_args)
}
else
{
- expandedName = theFile;
+ expandedName = XtNewString("");
}
XtVaCreateManagedWidget("ed", axeTextWidgetClass, new,
@@ -1,10 +0,0 @@
--- Widgets/AxeText.c.orig Wed Apr 6 18:07:38 1994
+++ Widgets/AxeText.c Wed Mar 9 18:09:28 2016
@@ -45,7 +45,6 @@
#include <sys/stat.h>
#include <sys/param.h>
#include <errno.h>
-extern int errno;
#include <stdio.h>
@@ -1,11 +0,0 @@
Index: Widgets/AxeWindow.c
--- Widgets/AxeWindow.c.orig
+++ Widgets/AxeWindow.c
@@ -27,6 +27,7 @@
* University of Newcastle upon Tyne, UK
*/
+#include <stdlib.h>
#include <X11/Xos.h>
#include <X11/IntrinsicP.h>
#include <X11/StringDefs.h>
@@ -1,40 +0,0 @@
Index: Widgets/AxeiiText.c
--- Widgets/AxeiiText.c.orig
+++ Widgets/AxeiiText.c
@@ -32,10 +32,10 @@
#include <X11/StringDefs.h>
#include <X11/Xmu/Converters.h>
#include <X11/keysym.h>
+#include <X11/Xaw/Toggle.h>
#include <ctype.h>
#include <stdio.h>
#include <sys/file.h>
-#include "AxeiiSink.h"
#include "AxeiiTextP.h"
#include "AxeiiUndo.h"
#include "regexp.h"
@@ -319,19 +319,18 @@ Initialize(req, new, args, num_args)
{
XtVaSetValues(new,
XtNtextSink,
- XtVaCreateWidget("axeiisink",
- axeiiSinkObjectClass,
+ XtVaCreateWidget("asciisink",
+ asciiSinkObjectClass,
new,
- XtNcursorBitmap, atw->axeii.caret_bitmap,
+ XtNcursorName, atw->axeii.caret_bitmap,
NULL),
NULL);
}
else if (atw->axeii.block_caret)
{
XtVaSetValues(new,
- XtNtextSink, XtVaCreateWidget("axeiisink",
- axeiiSinkObjectClass, new,
- XtNblockCursor, True,
+ XtNtextSink, XtVaCreateWidget("asciisink",
+ asciiSinkObjectClass, new,
NULL),
NULL);
}
@@ -1,11 +0,0 @@
--- Widgets/CtrlCodeSel.c.orig Wed Apr 6 18:07:40 1994
+++ Widgets/CtrlCodeSel.c Wed Mar 16 19:22:29 2016
@@ -33,6 +33,8 @@
#include <X11/Xaw/Label.h>
#include <X11/Xaw/Command.h>
+#include <stdio.h>
+
#include <CtrlCodeSelP.h>
#define CLASS(field) controlCodeSelectorClassRec.control_code_selector_class.field
@@ -1,10 +0,0 @@
--- Widgets/CtrlCodeSel.h.orig Wed Apr 6 18:07:46 1994
+++ Widgets/CtrlCodeSel.h Wed Mar 9 18:06:13 2016
@@ -40,7 +40,6 @@ typedef struct _ControlCodeSelectorRec *ControlCo
#define XtNbase "base"
#define XtCBase "Base"
#define XtNenterCallback "enterCallback"
-#define XtNcancelCallback "cancelCallback"
#endif /* _ControlCodeSelector_h */
@@ -1,21 +0,0 @@
Index: Widgets/FileNom.c
--- Widgets/FileNom.c.orig
+++ Widgets/FileNom.c
@@ -42,16 +42,14 @@
#if defined(XtSpecificationRelease) && XtSpecificationRelease > 4
#include <Viewlist.h>
-#else
-#include <X11/Xaw/Viewport.h>
#endif
+#include <X11/Xaw/Viewport.h>
#include <X11/Xaw/Command.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/param.h>
#include <errno.h>
-extern int errno;
#include <sys/file.h>
#include <pwd.h>
@@ -1,10 +0,0 @@
--- Widgets/FileNom.h.orig Wed Apr 6 18:07:46 1994
+++ Widgets/FileNom.h Tue Aug 21 02:43:48 2001
@@ -33,7 +33,6 @@
#define XtNinitialDirectory "initialDirectory"
#define XtNselectCallback "selectCallback"
#define XtNpathList "pathList"
-#define XtNcancelCallback "cancelCallback"
#define XtNmargin "margin"
#define XtNnumberRows "numberRows"
#define XtNshowDotFiles "showDotFiles"
@@ -1,20 +0,0 @@
--- Widgets/Imakefile.orig Wed Aug 22 01:05:50 2001
+++ Widgets/Imakefile Wed Aug 22 01:06:12 2001
@@ -4,7 +4,7 @@
SRCS = ${TABLE_SRCS} ${EXTN_SRCS} \
AxeWindow.c AxeEditor.c AxeMenuBtn.c AxeSimMenu.c \
AxeSmeBSB.c AxeCommand.c AxeTextDeck.c AxeText.c \
- AxeiiText.c AxeiiUndo.c AxeiiSink.c \
+ AxeiiText.c AxeiiUndo.c \
FileNomWin.c FileNom.c ${R5ONLY_SRCS} ${R4ONLY_SRCS} ScrollText.c \
NumericPad.c CtrlCodeSel.c Preference.c Confirmer.c \
${SCANDIR_SRCS} regexp.c insertfile.c match.c util.c
@@ -12,7 +12,7 @@ SRCS = ${TABLE_SRCS} ${EXTN_SRCS} \
OBJS = ${TABLE_OBJS} ${EXTN_OBJS} \
AxeWindow.o AxeEditor.o AxeMenuBtn.o AxeSimMenu.o \
AxeSmeBSB.o AxeTextDeck.o AxeCommand.o AxeText.o \
- AxeiiText.o AxeiiUndo.o AxeiiSink.o \
+ AxeiiText.o AxeiiUndo.o \
FileNomWin.o FileNom.o ${R5ONLY_OBJS} ${R4ONLY_OBJS} ScrollText.o \
NumericPad.o CtrlCodeSel.o Preference.o Confirmer.o \
${SCANDIR_OBJS} regexp.o insertfile.o match.o util.o
@@ -1,11 +0,0 @@
--- Widgets/NumericPad.c.orig Wed Apr 6 18:07:40 1994
+++ Widgets/NumericPad.c Wed Mar 16 19:20:23 2016
@@ -33,6 +33,8 @@
#include <X11/Xaw/Command.h>
#include <X11/Xaw/AsciiText.h>
+#include <stdio.h>
+
#include <NumericPadP.h>
#define OCT 8
@@ -1,10 +0,0 @@
--- Widgets/NumericPad.h.orig Wed Apr 6 18:07:47 1994
+++ Widgets/NumericPad.h Tue Aug 21 02:43:48 2001
@@ -47,7 +47,6 @@ typedef struct
#define XtNbase "base"
#define XtCBase "Base"
#define XtNenterCallback "enterCallback"
-#define XtNcancelCallback "cancelCallback"
extern void NumericPadClear();
@@ -1,13 +0,0 @@
Index: Widgets/Preference.c
--- Widgets/Preference.c.orig
+++ Widgets/Preference.c
@@ -35,6 +35,9 @@
#include <X11/Xaw/Box.h>
#include <AxeText.h>
+#include <stdio.h>
+#include <stdlib.h>
+
#include <PreferenceP.h>
#define PRIVATE(w,field) (((PreferenceWidget) w)->preference.field)
@@ -1,9 +0,0 @@
--- Widgets/Preference.h.orig Wed Apr 6 18:07:47 1994
+++ Widgets/Preference.h Tue Aug 21 02:43:48 2001
@@ -47,6 +47,5 @@ typedef struct {
} PreferenceReturnStruct;
#define XtNenterCallback "enterCallback"
-#define XtNcancelCallback "cancelCallback"
#endif /* _Preference_h */
@@ -1,46 +0,0 @@
--- Widgets/ScrollText.c.orig Wed Apr 6 18:07:41 1994
+++ Widgets/ScrollText.c Wed Mar 9 18:06:13 2016
@@ -222,6 +222,7 @@ AdjustForMovement(widget, client_data, action, event,
strcmp(action, "beginning-of-line") == 0 ||
strcmp(action, "end-of-line") == 0)
{
+#if 0
/*
* Positioning with the mouse results in work_proc being corrupted with
* the result that the test fails and scrolling stops happening. I don't
@@ -236,9 +237,11 @@ AdjustForMovement(widget, client_data, action, event,
XtAppAddWorkProc(XtWidgetToApplicationContext(widget),
AfterAction, (XtPointer) widget);
/* } */
+#endif
}
}
+#if 0
static Boolean
AfterAction(client_data)
XtPointer client_data;
@@ -252,6 +255,7 @@ AfterAction(client_data)
return True;
}
+#endif
/* ARGSUSED */
static void
@@ -259,6 +263,7 @@ AdjustForChange(widget, client_data, call_data)
Widget widget;
XtPointer client_data, call_data;
{
+#if 0
Widget source, sink, text = XtParent(widget), porthole = XtParent(text);
Position x, prevx, top;
Dimension lm, width, phwidth, fwidth = PRIVATE(porthole,font_width);
@@ -299,6 +304,7 @@ AdjustForChange(widget, client_data, call_data)
width = ed + fwidth;
XtVaSetValues(text, XtNx, x, XtNwidth, width, NULL);
+#endif
}
#undef PRIVATE
@@ -1,12 +0,0 @@
Index: Widgets/TableVec.c
--- Widgets/TableVec.c.orig
+++ Widgets/TableVec.c
@@ -3,6 +3,8 @@
* SCCS_data: @(#) TableVec.c 1.8 93/01/29 08:10:55
*/
+#include <stdlib.h>
+
#include <X11/Xp/COPY>
#include <X11/IntrinsicP.h>
-12
View File
@@ -1,12 +0,0 @@
Index: Widgets/Table.c
--- Widgets/Table.c.orig
+++ Widgets/Table.c
@@ -25,6 +25,8 @@ Edit History
*/
+#include <ctype.h>
+
#include <X11/Xp/COPY>
#include <X11/IntrinsicP.h>
@@ -1,11 +0,0 @@
Index: Widgets/insertfile.c
--- Widgets/insertfile.c.orig
+++ Widgets/insertfile.c
@@ -26,6 +26,7 @@ SOFTWARE.
#include <X11/Xaw/Text.h>
#include <fcntl.h>
#include <stdio.h>
+#include <unistd.h>
Boolean
InsertFileNamed(tw, str)
-11
View File
@@ -1,11 +0,0 @@
Index: Widgets/match.c
--- Widgets/match.c.orig
+++ Widgets/match.c
@@ -36,6 +36,7 @@
/* match.c: pattern matching routines */
+#include <string.h>
static int rangematch();
@@ -1,19 +0,0 @@
--- Widgets/regexp.c.orig Wed Apr 6 18:07:43 1994
+++ Widgets/regexp.c Wed Mar 16 19:24:55 2016
@@ -28,6 +28,8 @@
* regular-expression syntax might require a total rethink.
*/
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include "regexp.h"
#include "regmagic.h"
@@ -199,7 +201,6 @@ char *exp;
register char *longest;
register int len;
int flags;
- extern char *malloc();
if (exp == NULL)
FAIL("NULL argument");
-11
View File
@@ -1,11 +0,0 @@
Index: Widgets/util.c
--- Widgets/util.c.orig
+++ Widgets/util.c
@@ -27,6 +27,7 @@
* University of Newcastle upon Tyne, UK
*/
+#include <unistd.h>
#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
-10
View File
@@ -1,10 +0,0 @@
--- axe.c.orig Wed Apr 6 18:07:34 1994
+++ axe.c Wed Mar 16 19:28:58 2016
@@ -75,6 +75,7 @@
#include <axeLogo.xbm>
#include <sys/param.h>
#include <stdio.h>
+#include <stdlib.h>
#ifdef EXTENSION
#include "Language.h"
-19
View File
@@ -1,19 +0,0 @@
--- coaxe.c.orig Wed Apr 6 18:07:34 1994
+++ coaxe.c Wed Mar 16 19:29:26 2016
@@ -31,14 +31,12 @@
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <sys/param.h>
-#include <sys/errno.h>
-extern int errno;
+#include <errno.h>
#ifndef __BSD_4_4__
extern char *sys_errlist[];
#endif
#include <stdio.h>
-extern char *getenv();
-extern char *malloc(), *realloc();
+#include <stdlib.h>
#include "util.h"
-11
View File
@@ -1,11 +0,0 @@
aXe is a simple to use text editor for X11 that represents a significant
improvement over xedit. Also built around the Athena Text Widget it
features, amongst other things,
o multiple windows, buffers
o configurable menus, optional configurable button interface
o provision for defining keyboard macros
o file selection via a browser
o parenthesis matching, regular expression searching
o restricted or unlimited undo
o ability to change font
o both brief and comprehensive (hypertext) on-line help
-11
View File
@@ -1,11 +0,0 @@
@bin bin/axe
@bin bin/axinfo
@bin bin/coaxe
bin/faxe
bin/poleaxe
lib/X11/app-defaults/Axe
lib/X11/app-defaults/Axinfo
@info lib/X11/axe.info
lib/X11/axe.tcl
@man man/man1/axe.1
@man man/man1/axinfo.1