From owner-freebsd-ports Wed Nov 6 12:30: 7 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 46D3237B401 for ; Wed, 6 Nov 2002 12:30:04 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B227E43E7B for ; Wed, 6 Nov 2002 12:30:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gA6KU1x3091744 for ; Wed, 6 Nov 2002 12:30:01 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gA6KU1MC091743; Wed, 6 Nov 2002 12:30:01 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E1ACC37B401 for ; Wed, 6 Nov 2002 12:25:16 -0800 (PST) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 81EA543E4A for ; Wed, 6 Nov 2002 12:25:16 -0800 (PST) (envelope-from kargl@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.12.6/8.12.6) with ESMTP id gA6KPB8A066485 for ; Wed, 6 Nov 2002 12:25:11 -0800 (PST) (envelope-from kargl@troutmask.apl.washington.edu) Received: (from root@localhost) by troutmask.apl.washington.edu (8.12.6/8.12.6/Submit) id gA6KPBeh066484; Wed, 6 Nov 2002 12:25:11 -0800 (PST) Message-Id: <200211062025.gA6KPBeh066484@troutmask.apl.washington.edu> Date: Wed, 6 Nov 2002 12:25:11 -0800 (PST) From: "Steven G. Kargl" Reply-To: "Steven G. Kargl" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/45008: Fix build of ports/knews on -current. Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 45008 >Category: ports >Synopsis: Fix build of ports/knews on -current. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Nov 06 12:30:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Steven G. Kargl >Release: FreeBSD 5.0-CURRENT i386 >Organization: apl/uw >Environment: System: FreeBSD troutmask.apl.washington.edu 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Tue Nov 5 11:54:46 PST 2002 kargl@troutmask.apl.washington.edu:/usr/obj/usr/src/sys/TROUTMASK i386 >Description: Revision 1.33 of sys/sys/signal.h changed the visibility of the sigaction member sa_handler. This change breaks knews. >How-To-Repeat: cd ports/news/knews make >Fix: Added this to ports/knews/files as patch-child.c --- src/child.c.orig Wed Nov 6 11:55:57 2002 +++ src/child.c Wed Nov 6 11:57:43 2002 @@ -121,7 +121,7 @@ flags |= SA_RESTART; #endif - sig_act.sa_handler = sigchld_handler; + sig_act.__sigaction_u.__sa_handler = sigchld_handler; sigemptyset(&sig_act.sa_mask); sigaddset(&sig_act.sa_mask, SIGCHLD); sig_act.sa_flags = flags; @@ -136,27 +136,27 @@ * now, thanks to leo@marco.de, but I might as well keeps this. */ - sig_act.sa_handler = SIG_IGN; + sig_act.__sigaction_u.__sa_handler = SIG_IGN; sigemptyset(&sig_act.sa_mask); sig_act.sa_flags = flags; if (sigaction(SIGPIPE, &sig_act, NULL) < 0) perror("knews: sigaction(SIGPIPE)"); - sig_act.sa_handler = sigfpe_handler; + sig_act.__sigaction_u.__sa_handler = sigfpe_handler; sigemptyset(&sig_act.sa_mask); sigaddset(&sig_act.sa_mask, SIGFPE); sig_act.sa_flags = flags; if (sigaction(SIGFPE, &sig_act, NULL) < 0) perror("knews: sigaction(SIGFPE)"); - sig_act.sa_handler = sighup_handler; + sig_act.__sigaction_u.__sa_handler = sighup_handler; sigemptyset(&sig_act.sa_mask); sigaddset(&sig_act.sa_mask, SIGHUP); sig_act.sa_flags = flags; if (sigaction(SIGHUP, &sig_act, NULL) < 0) perror("knews: sigaction(SIGHUP)"); - sig_act.sa_handler = sigusr1_handler; + sig_act.__sigaction_u.__sa_handler = sigusr1_handler; sigemptyset(&sig_act.sa_mask); sigaddset(&sig_act.sa_mask, SIGUSR1); sig_act.sa_flags = flags; @@ -168,7 +168,7 @@ { struct sigaction sig_act; - sig_act.sa_handler = SIG_DFL; + sig_act.__sigaction_u.__sa_handler = SIG_DFL; sigemptyset(&sig_act.sa_mask); sig_act.sa_flags = 0; if (sigaction(SIGPIPE, &sig_act, NULL) < 0) >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message