From owner-freebsd-ports@FreeBSD.ORG Sun Jul 1 11:32:01 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 78C59106566B for ; Sun, 1 Jul 2012 11:32:01 +0000 (UTC) (envelope-from scheidell@FreeBSD.org) Received: from mx1.secnap.com.ionspam.net (mx1.secnap.com.ionspam.net [204.89.241.253]) by mx1.freebsd.org (Postfix) with ESMTP id 43C7C8FC0A for ; Sun, 1 Jul 2012 11:32:01 +0000 (UTC) Received: from mx1.secnap.com.ionspam.net (mx1.secnap.com.ionspam.net [10.70.1.253]) by mx1.secnap.com.ionspam.net (Postfix) with ESMTP id 4C487621C09 for ; Sun, 1 Jul 2012 07:31:55 -0400 (EDT) X-Virus-Scanned: SpammerTrap(r) VPS-1500 2.18 at mx1.secnap.com.ionspam.net Received: from USBCTDC001.secnap.com (usbctdc001.secnap.com [10.70.1.1]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.secnap.com.ionspam.net (Postfix) with ESMTPS id 7C5B1621C08 for ; Sun, 1 Jul 2012 07:31:54 -0400 (EDT) Received: from USBCTMX001.secnap.com (::ffff:10.70.1.129) by USBCTDC001.secnap.com (::ffff:10.70.1.1) with Microsoft SMTP Server (TLS) id 14.0.722.0; Sun, 1 Jul 2012 07:31:54 -0400 Received: from [192.168.1.83] (108.83.158.142) by USBCTMX001.secnap.com (10.70.1.129) with Microsoft SMTP Server (TLS) id 14.0.722.0; Sun, 1 Jul 2012 07:31:53 -0400 Message-ID: <4FF03521.60600@FreeBSD.org> Date: Sun, 1 Jul 2012 07:31:45 -0400 From: Michael Scheidell Organization: SECNAP Network Security Corp User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.7; en-US; rv:1.9.2.20) Gecko/20110804 Thunderbird/3.1.12 MIME-Version: 1.0 To: References: <4FEFDB16.2070200@uclive.ac.nz> In-Reply-To: <4FEFDB16.2070200@uclive.ac.nz> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Patching files after install? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Jul 2012 11:32:01 -0000 On 7/1/12 1:07 AM, Benjamin wrote: > I am nearing the end of my first ever port, Altera Quartus II design > software, to FreeBSD. Not so much of a "port" however, as it is just a > big archive of Linux binaries, libraries and scripts. > > I have a question regarding one of these scripts. Every binary > installed by this program has an associated shell script wrapper that > sets up paths, and checks the environment. They currently fail when > they can't find SSE extensions because they are looking for > /proc/cpuinfo. That's fine I have amended the script, but by which > mechanism do I include this amended script in the port? > > It is not really a patch, because it is applied *after* the install. > At the moment I am just doing: is there any reason you didn't path the source? that is done normally. and by PATCHDIR, you mean the already defined '${FILESDIR}' ? > > post-install: > @${PATCH} $(PREFIX)/altera/quartus/adm/qenv.sh ${PATCHDIR}/qenv.patch > > Is this the correct way to do it? Is it customary to have random files > lying around in files/ that are not source code patches? its always better to patch the source, (file named 'patch-dir__subdir__filename.ext) and let the ports subsystem take care of it. -- Michael Scheidell, CTO >*| * SECNAP Network Security Corporation d: +1.561.948.2259 w: http://people.freebsd.org/~scheidell