From owner-freebsd-ports@FreeBSD.ORG  Thu Mar  6 08:14:36 2008
Return-Path: <owner-freebsd-ports@FreeBSD.ORG>
Delivered-To: freebsd-ports@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id EC59F1065676
	for <freebsd-ports@freebsd.org>; Thu,  6 Mar 2008 08:14:36 +0000 (UTC)
	(envelope-from trasz@FreeBSD.org)
Received: from pin.if.uz.zgora.pl (pin.if.uz.zgora.pl [212.109.128.251])
	by mx1.freebsd.org (Postfix) with ESMTP id 504098FC1A
	for <freebsd-ports@freebsd.org>; Thu,  6 Mar 2008 08:14:31 +0000 (UTC)
	(envelope-from trasz@FreeBSD.org)
Received: by pin.if.uz.zgora.pl (Postfix, from userid 1001)
	id B37E139BA3; Thu,  6 Mar 2008 09:00:53 +0100 (CET)
Date: Thu, 6 Mar 2008 09:00:53 +0100
From: Edward Tomasz Napierala <trasz@FreeBSD.org>
To: freebsd-ports@freebsd.org
Message-ID: <20080306080053.GA93915@pin.if.uz.zgora.pl>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: inline
User-Agent: Mutt/1.5.16 (2007-06-09)
Subject: Re: FreeBSD-games/Larn is broken in FreeBSD7.0 Release
X-BeenThere: freebsd-ports@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Porting software to FreeBSD <freebsd-ports.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ports>,
	<mailto:freebsd-ports-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-ports>
List-Post: <mailto:freebsd-ports@freebsd.org>
List-Help: <mailto:freebsd-ports-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ports>,
	<mailto:freebsd-ports-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 06 Mar 2008 08:14:37 -0000

In article <op.t7ivojtk9aq2h7@mezz.mezzweb.com> you wrote:
>>>  When you run Larn, and chose to read/eat/drink anything the games exits
>>>  with a signal 11 ,segfaults and does a coredump.
>>>
>>>  You have found a magic potion
>>>  Do you (d) drink it, (t) take it, or (i) ignore it?
>>>  Segmentation fault (core dumped) [SIGSEGV]drink
>>>
>>>  I would like to use Larn on 7.0, what do I suggest I do to fix this ?
>>
>> This is caused by the same problem as freebsd-games/hack.
>> Please refer to the thread beginning with
>> http://lists.freebsd.org/pipermail/freebsd-ports/2008-January/046245.html
>>
>> For the temporary solution,
>> edit freebsd-games/files/patch-larn_Makefile to add -fwritable-strings
>> to CFLAGS and do not forget to use gcc34 or earlier instead of gcc in  
>> 7.0.
>>
>> Hope this helps.
> 
> I believe that someone in DragonFly BSD did a lot of clean up in the  
> src/games/*. But I don't know if these cleans up will helping with this  
> issue. It might be worth for someone to dig in there and bring in FreeBSD  
> if someone care about these games.

Diff between freebsd-games and DragonFly, after removing irrelevant stuff,
is over a megabyte long.  Maybe we should just use their code verbatim?

(Untested diff at http://freebsd.org/~trasz/patch-zzz_fixes_from_dfly)

-- 
If you cut off my head, what would I say?  Me and my head, or me and my body?