Subject: pkg/6612: xview-lib won't build on -current
To: None <gnats-bugs@gnats.netbsd.org>
From: None <matthieu@laas.fr>
List: netbsd-bugs
Date: 12/19/1998 14:53:40
>Number: 6612
>Category: pkg
>Synopsis: xview-lib wont build on -current
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Dec 19 06:05:01 1998
>Last-Modified:
>Originator: Matthieu Herrb
>Organization:
LAAS/CNRS
>Release: 1998/12/05
>Environment:
System: NetBSD bluenote 1.3I NetBSD 1.3I (BLUENOTE) #0: Sun Dec 6 02:36:03 PST 1998 matthieu@bluenote:/local/NetBSD/src/sys/arch/i386/compile/BLUENOTE i386
>Description:
Due to signal changes and new declaration of signal list, the
xview-lib package doesn't compile anymore.
>How-To-Repeat:
cd /usr/pkgsrc/x11/xview
make
>Fix:
Add the following 2 patches to the xview-lib package:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# patch-ai
# patch-aj
#
echo x - patch-ai
sed 's/^X//' >patch-ai << 'END-of-patch-ai'
X+++ lib/libxview/notify/ntfy.h Sat Dec 19 13:49:24 1998
X@@ -188,9 +188,12 @@
X extern sigset_t ntfy_sigs_delayed;/* Bit mask of signals received while in
X critical section */
X
X-#ifdef SVR4
X+#if defined(SVR4)
X #define sigisempty(s) (!(((s)->__sigbits[0]) | ((s)->__sigbits[1]) \
X | ((s)->__sigbits[2]) | ((s)->__sigbits[3])))
X+#elif defined(__NetBSD__) && (__NetBSD_Version__ > 103080000)
X+#define sigisempty(s) (!(((s)->__bits[0]) | ((s)->__bits[1]) \
X+ | ((s)->__bits[2]) | ((s)->__bits[3])))
X #else
X #define sigisempty(s) (!(*(s)))
X #endif
END-of-patch-ai
echo x - patch-aj
sed 's/^X//' >patch-aj << 'END-of-patch-aj'
X+++ lib/libxview/textsw/txt_file.c Sat Dec 19 13:56:47 1998
X@@ -52,7 +52,11 @@
X #endif /* SVR4 */
X extern int errno, sys_nerr;
X #if (defined(BSD) && (BSD >= 199306))
X+#if __NetBSD_Version__ > 103080000
X+#include <errno.h>
X+#else
X extern const char *const sys_errlist[];
X+#endif
X #else
X extern char *sys_errlist[];
X #endif
END-of-patch-aj
exit
>Audit-Trail:
>Unformatted: