From owner-freebsd-questions@FreeBSD.ORG Fri Aug 11 21:55:48 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B33E016A4DA for ; Fri, 11 Aug 2006 21:55:48 +0000 (UTC) (envelope-from micahjon@ywave.com) Received: from relay2.av-mx.com (relay2.av-mx.com [137.118.16.124]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F4FE43D46 for ; Fri, 11 Aug 2006 21:55:47 +0000 (GMT) (envelope-from micahjon@ywave.com) X-Virus-Scan-Time: 0 Received: from [137.118.16.60] (HELO mx2.av-mx.com) by relay2.av-mx.com (CommuniGate Pro SMTP 4.2.10) with SMTP id 355171840 for freebsd-questions@freebsd.org; Fri, 11 Aug 2006 17:55:47 -0400 Received: (qmail 7615 invoked from network); 11 Aug 2006 21:55:46 -0000 Received: from dsl25232.ywave.com (HELO ?192.168.1.65?) (micahjon@ywave.com@216.227.113.232) by 0 with SMTP; 11 Aug 2006 21:55:46 -0000 X-CLIENT-IP: 216.227.113.232 X-CLIENT-HOST: dsl25232.ywave.com Message-ID: <44DCFCE1.6040907@ywave.com> Date: Fri, 11 Aug 2006 14:55:45 -0700 From: Micah User-Agent: Thunderbird 1.5.0.5 (X11/20060730) MIME-Version: 1.0 To: Ensel Sharon References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: static linked python from the ports tree - possible ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Aug 2006 21:55:48 -0000 Ensel Sharon wrote: > For a variety of reasons (long, hard to explain) I need a static python > binary - with no external libraries. > > I know how to do this from source. However, I would like to install from > the ports tree - what line can I run inside of /usr/ports/lang/python to > get a totally static, standalone python binary ? > > Thanks. So, how do you do it from source? Perhaps you can apply changes to lang/python/Makefile to do the same steps (and then submit a PR with the changes so others can benefit). Checkout http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/ Alternately, doing a make install really does the following: make fetch, make extract, make patch, make configure, make build, then make install. You could manually run each make step and apply any needed changes in between steps, but that would make upgrading hard. HTH, Micah