Closed michaelrsweet closed 12 years ago
CUPS.org User: mike
Fixed in Subversion repository.
"str4092.patch":
--- backend/usb-unix.c (revision 10629) +++ backend/usb-unix.c (working copy) @@ -257,7 +257,6 @@
close(fd);
} -#elif defined(__sgi)
int i; /* Looping var / int fd; / File descriptor */
--- config-scripts/cups-manpages.m4 (revision 10629) +++ config-scripts/cups-manpages.m4 (working copy) @@ -28,12 +28,6 @@ AMANDIR="/usr/share/man" PMANDIR="/usr/share/man" ;;
;;
*)
# All others
mandir="/usr/man"
@@ -51,14 +45,6 @@
dnl Setup manpage extensions... case "$uname" in
--- config-scripts/cups-compiler.m4 (revision 10629) +++ config-scripts/cups-compiler.m4 (working copy) @@ -202,19 +202,6 @@ OPTIM="+z $OPTIM" fi ;;
if test -z "$OPTIM"; then
--- config-scripts/cups-directories.m4 (revision 10629) +++ config-scripts/cups-directories.m4 (working copy) @@ -102,9 +102,6 @@ dnl Fix "libdir" variable... if test "$libdir" = "\${exec_prefix}/lib"; then case "$uname" in
;;
Linux*)
if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot; then
libdir="$exec_prefix/lib64"
@@ -169,13 +166,6 @@ RCSTOP="620" ;;
IRIX*)
Linux | GNU | GNU/k*BSD*)
# Linux/HURD seems to choose an init.d directory at random...
if test -d /sbin/init.d; then
--- config-scripts/cups-opsys.m4 (revision 10629) +++ config-scripts/cups-opsys.m4 (working copy) @@ -3,7 +3,7 @@ dnl dnl Operating system stuff for CUPS. dnl -dnl Copyright 2007-2011 by Apple Inc. +dnl Copyright 2007-2012 by Apple Inc. dnl Copyright 1997-2006 by Easy Software Products, all rights reserved. dnl dnl These coded instructions, statements, and computer programs are the @@ -22,9 +22,6 @@ GNU* | GNU/*) uname="GNU" ;;
--- config-scripts/cups-sharedlibs.m4 (revision 10629) +++ config-scripts/cups-sharedlibs.m4 (working copy) @@ -215,8 +215,8 @@ EXPORT_LDFLAGS="-Wl,-R$libdir" fi ;;
# Linux, and HURD...
if test $exec_prefix != /usr; then
DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS"
LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir"
--- doc/help/network.html (revision 10629) +++ doc/help/network.html (working copy) @@ -38,15 +38,9 @@
-
The BOOTP protocol is used when you need to provide additional information such as the location of a configuration file to the network interface. Using the standard bootpd(8) program supplied with UNIX you simply need to add a line to the /etc/bootptab file; for IRIX:
+The BOOTP protocol is used when you need to provide additional information such as the location of a configuration file to the network interface. Using the standard bootpd(8) program supplied with UNIX you simply need to add a line to the /etc/bootptab file:
-myprinter 08:00:69:00:12:34 192.0.2.2 myprinter.boot ## -
Newer versions of bootpd use a different format:
-
myprinter:ha=080069001234:ip=192.0.2.2:t144=myprinter.boot
--- doc/help/spec-cmp.html (revision 10629) +++ doc/help/spec-cmp.html (working copy) @@ -245,10 +245,6 @@
-
-
-
Finally, the tools/testrpm and tools/testosx scripts can be used to create binary packages from the current working copy for testing on Linux and OS X, respectively:
--- doc/help/ref-cupsd-conf.html.in (revision 10629) +++ doc/help/ref-cupsd-conf.html.in (working copy) @@ -21,7 +21,7 @@
/etc/init.d/cups restart
@@ -2139,22 +2139,6 @@ Solaris format on Solaris, and the BSD format on other operating systems.
-
-PrintGUI /usr/bin/glpoptions-
-
The PrintcapGUI
directive sets the program to
-associate with the IRIX printer GUI interface script which is
-used by IRIX applications to display printer-specific options.
--- systemv/lpstat.c (revision 10629) +++ systemv/lpstat.c (working copy) @@ -205,38 +205,6 @@ } break;
-#ifdef __sgi
case 'c' : /_ Show classes and members */ op = 'c';
@@ -299,18 +267,7 @@ break;
case 'l' : /* Long status or long job status */
-#ifdef __sgi
long_status = 2;
break;
case 'o' : /* Show jobs by destination */
--- cups/http.h (revision 10629) +++ cups/http.h (working copy) @@ -36,9 +36,6 @@
-# ifdef sgi -# define INET6 /* IRIX IPv6 support... / -# endif / sgi */
--- cups/http-addr.c (revision 10629) +++ cups/http-addr.c (working copy) @@ -162,13 +162,6 @@ }
-#ifdef __sgi -# define ADDR_CAST (struct sockaddr ) -#else -# define ADDR_CAST (char )
/*
'httpAddrLookup()' - Lookup the hostname associated with the address. * @@ -267,11 +260,11 @@
if (addr->addr.sa_family == AF_INET6)
if (host == NULL)
--- cups/http-private.h (revision 10629) +++ cups/http-private.h (working copy) @@ -73,14 +73,14 @@
-# if defined(sgi) || (defined(__APPLE) && !defined(_SOCKLEN_T)) +# if defined(APPLE) && !defined(_SOCKLEN_T) /*
typedef int socklen_t; -# endif /* sgi || (__APPLE && !_SOCKLENT) / +# endif /_ APPLE && !_SOCKLEN_T */
--- Makefile (revision 10629)
+++ Makefile (working copy)
@@ -316,7 +316,6 @@
case uname
in \
BSD) $(MAKE) $(MFLAGS) bsd;; \
Darwin*) $(MAKE) $(MFLAGS) osx;; \
-#ifdef __sgi
--- scheduler/conf.c (revision 10629) +++ scheduler/conf.c (working copy) @@ -151,7 +151,6 @@ { "PreserveJobFiles", &JobFiles, CUPSD_VARTYPE_TIME }, { "PreserveJobHistory", &JobHistory, CUPSD_VARTYPE_TIME }, { "Printcap", &Printcap, CUPSD_VARTYPE_STRING },
--- scheduler/conf.h (revision 10629) +++ scheduler/conf.h (working copy) @@ -147,8 +147,6 @@ /* Temporary directory / *Printcap VALUE(NULL), / Printcap file */
--- scheduler/printers.c (revision 10629) +++ scheduler/printers.c (working copy) @@ -49,10 +49,6 @@
@@ -96,10 +92,6 @@ static void log_ipp_conformance(cupsd_printer_t _p, const char reason); static ipp_t new_media_col(_pwg_size_t size, const char source, const char type); -#ifdef __sgi -static void write_irix_config(cupsd_printer_t p); -static void write_irix_state(cupsd_printert *p); -#endif / __sgi / static void write_xml_string(cups_file_t fp, const char *s);
@@ -720,9 +712,6 @@ { int i, /* Looping var / changed = 0; / Class changed? */ -#ifdef __sgi
char filename[1024]; /* Interface script filename / -#endif / __sgi */
cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdDeletePrinter(p=%p(%s), update=%d)", @@ -756,31 +745,6 @@ cupsArrayRemove(Printers, p);
/*
-#ifdef __sgi
@@ -1657,14 +1621,6 @@ (long)printer->marker_time);
cupsFilePuts(fp, "</Printer>\n");
-#ifdef __sgi
write_irix_state(printer); -#endif /* __sgi */ }
cupsdCloseCreatedConfFile(fp, filename); @@ -2457,16 +2413,7 @@
add_printer_defaults(p);
-#ifdef __sgi /*
@@ -2653,10 +2600,6 @@ */
p->state_time = time(NULL);
-#ifdef __sgi
write_irix_state(p); -#endif /* __sgi */ }
/ @@ -3045,17 +2988,7 @@ cupsd_printer_t p; / Current printer /
-#ifdef __sgi /*
@@ -5079,262 +5012,7 @@ }
-#ifdef __sgi /*
-static void -write_irix_config(cupsd_printer_t p) / I - Printer to update */ -{
- -/*
-static void -write_irix_state(cupsd_printer_t p) / I - Printer to update */ -{
- -/_
--- scheduler/cups.sh.in (revision 10629) +++ scheduler/cups.sh.in (working copy) @@ -4,7 +4,7 @@ #
# -# Copyright 2007-2011 by Apple Inc. +# Copyright 2007-2012 by Apple Inc.
#
@@ -35,18 +35,6 @@
case "uname
" in
*BSD*)
IS_ON=:
ECHO=echo
@@ -147,7 +135,7 @@ HP-UX* | AIX* | SINIX) pid=`ps -e | awk '{if (match($4, "./cupsd$") || $4 == "cupsd") print $1}'` ;;
--- scheduler/select.c (revision 10629) +++ scheduler/select.c (working copy) @@ -3,7 +3,7 @@ *
--- scheduler/main.c (revision 10629) +++ scheduler/main.c (working copy) @@ -129,10 +129,6 @@
struct sigaction action; /* Actions for POSIX signals _/
-#ifdef __sgi
@@ -565,29 +561,7 @@ signal(SIGTERM, sigterm_handler);
-#ifdef __sgi /*
@@ -1131,18 +1105,6 @@ krb5_free_context(KerberosContext);
-#ifdef __sgi
unlink("/var/spool/lp/SCHEDLOCK");
cupsdStopSelect();
return (!stop_scheduler);
Version: 1.7-feature CUPS.org User: mike
IRIX hasn't been updated since 2006, and EOL for MIPS-based SGI workstations is 2013. Current SGI offerings are Linux-based, so let's remove all of the IRIX-specific code from CUPS.