From owner-freebsd-ports Thu Mar 28 15:10:00 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id PAA16385 for ports-outgoing; Thu, 28 Mar 1996 15:10:00 -0800 (PST) Received: from sunrise.cs.berkeley.edu (sunrise.CS.Berkeley.EDU [128.32.38.121]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id PAA16361 for ; Thu, 28 Mar 1996 15:09:58 -0800 (PST) Received: (from asami@localhost) by sunrise.cs.berkeley.edu (8.6.12/8.6.12) id PAA26271; Thu, 28 Mar 1996 15:10:14 -0800 Date: Thu, 28 Mar 1996 15:10:14 -0800 Message-Id: <199603282310.PAA26271@sunrise.cs.berkeley.edu> To: kaveman@magna.com.au CC: ports@FreeBSD.org In-reply-to: (message from Julian Jenkins on Thu, 28 Mar 1996 20:34:23 +1000 (EST)) Subject: Re: Questions on porting process From: asami@cs.berkeley.edu (Satoshi Asami) Sender: owner-ports@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk * I have managed to get spice3f4 working on my system and thought I would * make a port of it. I have a few questions however. Cool! * Spice attempts to perform some sort of check to find out the size of its * data segment. When it does this it it dies with a segmentation violation. I * can disable this by setting an environment variable * (SPICE_NO_DATASEG_CHECK). Would it be better to modify the code so that this * is not done anyway or ensure that the environment variable is set? I think it's better to modify the code. * If the code is eliminated should I make a minimum change equivelent to * SPICE_NO_DATASEG_CHECK being found or try to eliminate all the code that * is only used here as possible (using #ifdefs of course)? A minimum change is fine. That way it's much easier to see what has been done later by looking at the patch. * The documentation for creating a port says that any conditonal compilation * should be done with #ifdefs appropriate for the most general case (ie. not * just using _FREEBSD_). How do I find out what the most general case is? I don't think we know what range of systems it breaks, so #ifdef __FreeBSD__ is fine. Satoshi