From owner-freebsd-questions@FreeBSD.ORG Wed Dec 17 15:34:24 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 850BC1065675 for ; Wed, 17 Dec 2008 15:34:24 +0000 (UTC) (envelope-from prvs=pauls=2304bd7d9@utdallas.edu) Received: from ip-relay-001.utdallas.edu (ip-relay-001.utdallas.edu [129.110.20.111]) by mx1.freebsd.org (Postfix) with ESMTP id A6C8B8FC16 for ; Wed, 17 Dec 2008 15:34:23 +0000 (UTC) (envelope-from prvs=pauls=2304bd7d9@utdallas.edu) X-Group: RELAYLIST X-IronPort-AV: E=Sophos;i="4.36,237,1228111200"; d="scan'208";a="4202858" Received: from smtp3.utdallas.edu ([129.110.20.110]) by ip-relay-001.utdallas.edu with ESMTP; 17 Dec 2008 09:34:22 -0600 Received: from utd65257.utdallas.edu (utd65257.utdallas.edu [129.110.3.28]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp3.utdallas.edu (Postfix) with ESMTPSA id 0CB708A34; Wed, 17 Dec 2008 09:34:23 -0600 (CST) Date: Wed, 17 Dec 2008 09:34:22 -0600 From: Paul Schmehl To: freebsd-questions@freebsd.org Message-ID: <8C4EF0DE64745893F3E3EE3D@utd65257.utdallas.edu> In-Reply-To: <200812170818.48243.fbsd.questions@rachie.is-a-geek.net> References: <494856EB.5000608@ibctech.ca> <1889F6A8DE3863AB25C59556@Macintosh-2.local> <200812170818.48243.fbsd.questions@rachie.is-a-geek.net> X-Mailer: Mulberry/4.0.6 (Linux/x86) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=sha1; protocol="application/pkcs7-signature"; boundary="==========73D221446723FA309E31==========" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Mel , Steve Bertrand Subject: Re: lang/php5 port 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: Wed, 17 Dec 2008 15:34:24 -0000 --==========73D221446723FA309E31========== Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline --On Wednesday, December 17, 2008 08:18:47 +0100 Mel=20 wrote: > On Wednesday 17 December 2008 04:33:51 Paul Schmehl wrote: >> --On December 16, 2008 7:33:31 PM -0600 Steve Bertrand >> >> wrote: >> > One of the reasons I've had to edit Makefile manually was because a >> > client needed JPEG support. >> > >> > At the time, `make config' didn't provide that option. >> >> You should *never* need to edit a Makefile in a port. (Well, extremely >> rarely.) > > More often then you think. I encourage understanding the system and editing > to suit your needs. It's a transparent system, unlike many others out there, > so you might as well make good use of it. > > Though a lot of things can be handled by: > 1) environment variables (temporary) > 2) /etc/make.conf (permanent) > 3) Makefile.local (permanent, inclusion is at bsd.port.pre.mk stage which > allows you to override hardcoded settings) > > It is needed in some cases to edit the makefile to fix things or remove > dependencies that the maintainer didn't find necessary to remove or even to > fix bugs. I agree with you with one caveat. Make sure that you know what you're doing=20 before you do this, and be prepared for the consequences. For example, if you=20 edit any files in a port, they will be overwritten when you update your ports.=20 That means you'll have to make those edits again. If you're maintaining your=20 own workstation, that might be an educational experience. If you're=20 maintaining servers, that could cause an outage while you try to remember what=20 your edits were. If you think a port is incorrectly built (unnecessary dependencies, for=20 example) there's nothing wrong with submitting a PR and asking the maintainer=20 to update the port. If the maintainer rejects your changes, you can always=20 edit locally later, but your submission could benefit thousands of people. IOW, if you're the smartest guy on the block, please don't keep it to yourself. --=20 Paul Schmehl (pauls@utdallas.edu) Senior Information Security Analyst The University of Texas at Dallas http://www.utdallas.edu/ir/security/ --==========73D221446723FA309E31==========--