From owner-freebsd-ports Thu Mar 28 01:34:19 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id BAA12128 for ports-outgoing; Thu, 28 Mar 1996 01:34:19 -0800 (PST) Received: from kavemachine.magna.com.au (kavemachine.magna.com.au [203.4.215.219]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id BAA12123 for ; Thu, 28 Mar 1996 01:34:13 -0800 (PST) Received: (from kaveman@localhost) by kavemachine.magna.com.au (8.6.12/8.6.12) id UAA00965; Thu, 28 Mar 1996 20:34:24 +1000 Date: Thu, 28 Mar 1996 20:34:23 +1000 (EST) From: Julian Jenkins To: ports@FreeBSD.org Subject: Questions on porting process Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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. 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? 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)? If I should be ensuring that the environment variable is set, where should I set it? write a wrapper shell script? modify the system .login and .profile? 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? Kaveman kaveman@magna.com.au