From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Feb 21 23:00:25 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93DFA106566B for ; Tue, 21 Feb 2012 23:00:25 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 650438FC1C for ; Tue, 21 Feb 2012 23:00:25 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q1LN0PRs010370 for ; Tue, 21 Feb 2012 23:00:25 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q1LN0PBj010368; Tue, 21 Feb 2012 23:00:25 GMT (envelope-from gnats) Resent-Date: Tue, 21 Feb 2012 23:00:25 GMT Resent-Message-Id: <201202212300.q1LN0PBj010368@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Denis Generalov Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7A0A61065670 for ; Tue, 21 Feb 2012 22:51:55 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 50C4C8FC12 for ; Tue, 21 Feb 2012 22:51:55 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q1LMpqR1003131 for ; Tue, 21 Feb 2012 22:51:52 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q1LMpqNX003130; Tue, 21 Feb 2012 22:51:52 GMT (envelope-from nobody) Message-Id: <201202212251.q1LMpqNX003130@red.freebsd.org> Date: Tue, 21 Feb 2012 22:51:52 GMT From: Denis Generalov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/165380: utmpx fix and make it work X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Feb 2012 23:00:25 -0000 >Number: 165380 >Category: ports >Synopsis: utmpx fix and make it work >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Tue Feb 21 23:00:25 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Denis Generalov >Release: FreeBSD 9.0-STABLE >Organization: Rambler >Environment: FreeBSD tyl2.park.rambler.ru 9.0-STABLE FreeBSD 9.0-STABLE #1: Tue Feb 14 22:57:58 MSK 2012 root@tyl2.park.rambler.ru:/usr/obj/usr/src/sys/GENERIC amd64 >Description: Fix utmpx and make it work for FreeBSD 9.0 and FreeBSD 8.2. >How-To-Repeat: try to make and run msend or mesgd >Fix: Patch attached Patch attached with submission follows: ===> Generating patch ===> Viewing diff with more diff -ruN --exclude=CVS /usr/ports/net/msend/Makefile /home/gd/work/cvs_ports/net/msend/Makefile --- /usr/ports/net/msend/Makefile 2010-03-20 19:02:53.000000000 +0300 +++ /home/gd/work/cvs_ports/net/msend/Makefile 2012-02-22 02:38:37.000000000 +0400 @@ -7,6 +7,7 @@ PORTNAME= msend PORTVERSION= 3.0 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= markp @@ -14,16 +15,19 @@ MAINTAINER= ports@FreeBSD.org COMMENT= A client and server for the RFC1312 message protocol +USE_RC_SUBR= mesgd +USE_AUTOTOOLS= aclocal autoheader autoconf automake +AUTOMAKE_ARGS+= --add-missing GNU_CONFIGURE= yes -CFLAGS+= -DUSE_READLINE +CFLAGS+= -DUSE_READLINE -DNO_GETDTABLESIZE -DNEW_HEADERS MAN1= msend.1 MAN8= mesgd.8 .include -.if ${OSVERSION} > 900007 -BROKEN= fails to build with new utmpx +.if ${OSVERSION} >= 900007 +CFLAGS+= -DUSE_UTMPX .endif .include diff -ruN --exclude=CVS /usr/ports/net/msend/files/mesgd.in /home/gd/work/cvs_ports/net/msend/files/mesgd.in --- /usr/ports/net/msend/files/mesgd.in 1970-01-01 03:00:00.000000000 +0300 +++ /home/gd/work/cvs_ports/net/msend/files/mesgd.in 2012-02-22 02:40:47.000000000 +0400 @@ -0,0 +1,27 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: mesgd +# REQUIRE: DAEMON +# KEYWORD: shutdown +# +# Add the following line to /etc/rc.conf to enable mesgd: +# +# mesgd_enable=(bool): Set it to "YES" to enable mesgd +# +# and add appropriate mesgd_flags. +# + +. /etc/rc.subr + +name="mesgd" +rcvar=mesgd_enable + +load_rc_config $name + +: ${mesgd_enable="NO"} + +command=%%PREFIX%%/sbin/${name} + +run_rc_command "$1" diff -ruN --exclude=CVS /usr/ports/net/msend/files/patch-common-h /home/gd/work/cvs_ports/net/msend/files/patch-common-h --- /usr/ports/net/msend/files/patch-common-h 1970-01-01 03:00:00.000000000 +0300 +++ /home/gd/work/cvs_ports/net/msend/files/patch-common-h 2012-02-22 02:21:10.000000000 +0400 @@ -0,0 +1,10 @@ +--- common.h.orig 1999-05-02 17:00:39.000000000 +0400 ++++ common.h 2012-02-22 02:20:34.000000000 +0400 +@@ -45,6 +45,7 @@ + + #ifdef USE_UTMPX + #include ++#define ut_name ut_user + #else + #include + #endif ===> Done >Release-Note: >Audit-Trail: >Unformatted: