Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Jul 2012 07:31:45 -0400
From:      Michael Scheidell <scheidell@FreeBSD.org>
To:        <freebsd-ports@freebsd.org>
Subject:   Re: Patching files after install?
Message-ID:  <4FF03521.60600@FreeBSD.org>
In-Reply-To: <4FEFDB16.2070200@uclive.ac.nz>
References:  <4FEFDB16.2070200@uclive.ac.nz>

next in thread | previous in thread | raw e-mail | index | archive | help


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FF03521.60600>