From MAILER-DAEMON  Mon Dec 29 00:43:45 2003
Return-Path: <>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 6DF8616A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 29 Dec 2003 00:43:45 -0800 (PST)
Received: from pimout5-ext.prodigy.net (pimout5-ext.prodigy.net [207.115.63.73])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1180043D53
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 29 Dec 2003 00:43:44 -0800 (PST)
	(envelope-from "")
Received: from sentinel.erased.us (adsl-68-76-187-158.dsl.akrnoh.ameritech.net [68.76.187.158])
	by pimout5-ext.prodigy.net (8.12.10/8.12.10) with ESMTP id hBT8hh6R391732
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 29 Dec 2003 03:43:43 -0500
Received: from dial163-48.awalnet.net ([213.184.163.48] helo=beastie.freebsd.local)
	by sentinel.erased.us with esmtp (Exim 3.36 #1 (Debian))
	id 1Aat17-00030u-00
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 29 Dec 2003 03:44:50 -0500
Message-Id: <1072687455@beastie.freebsd.local>
Date: Mon, 29 Dec 2003 11:44:19 +0300
From: "Samy Al Bahra" <samy@kerneled.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Fix editors/mg build on 5.X systems
X-Send-Pr-Version: gtk-send-pr 0.3 
X-GNATS-Notify:

>Number:         60684
>Category:       ports
>Synopsis:       Fix editors/mg build on 5.X systems
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    dd
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 29 00:50:18 PST 2003
>Closed-Date:    Mon Dec 29 02:52:25 PST 2003
>Last-Modified:  Mon Dec 29 02:52:25 PST 2003
>Originator:     Samy Al Bahra
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
Kerneled 
>Environment:


System: FreeBSD beastie.freebsd.local 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Wed Aug 20 18:35:24 AST 2003     samy@beastie.freebsd.local:/usr/src/sys/i386/compile/KERNELED i386


>Description:


The editors/mg port does not build on
5.X systems due to its type request for
a short gid_t, depreciated in all thinkable
ways.


>How-To-Repeat:


Build with gcc 3.X.


>Fix:


--- mg.patch begins here ---
diff -ruN mg/Makefile /home/samy/tmp/mg/Makefile
--- mg/Makefile	Sun Dec 21 01:18:02 2003
+++ /home/samy/tmp/mg/Makefile	Mon Dec 29 11:35:05 2003
@@ -41,10 +41,6 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${OSVERSION} >= 500113
-BROKEN=		"Does not compile on FreeBSD ${OSVERSION}"
-.endif
-
 #
 # Ports build/install stuff stops here.  Tarball creation stuff begins here.
 #
diff -ruN mg/files/patch-sysdef.h /home/samy/tmp/mg/files/patch-sysdef.h
--- mg/files/patch-sysdef.h	Thu Jan  1 03:00:00 1970
+++ /home/samy/tmp/mg/files/patch-sysdef.h	Mon Dec 29 11:39:00 2003
@@ -0,0 +1,9 @@
+--- sysdef.h.orig	Mon Dec 29 11:37:41 2003
++++ sysdef.h	Mon Dec 29 11:38:00 2003
+@@ -23,5 +23,5 @@
+ struct fileinfo {
+ 	mode_t          fi_mode;
+ 	uid_t           fi_uid;
+-	gid_t short     fi_gid;
++	gid_t	fi_gid;
+ };
--- mg.patch ends here ---



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->dd  
Responsible-Changed-By: krion 
Responsible-Changed-When: Mon Dec 29 01:24:00 PST 2003 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=60684 
State-Changed-From-To: open->closed 
State-Changed-By: dd 
State-Changed-When: Mon Dec 29 02:49:41 PST 2003 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=60684 
>Unformatted:
