Re: making source code changes to a port ?

2002-11-25 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2002-11-23 22:25:42 -0500:
 On Sat, Nov 23, 2002 at 06:05:42PM -0800, Josh Brooks wrote:
  
  Hi folks,
  
  
  that is, how can I get the port to download and unpack all the work into
  port/work directory but not actually install anything until I finish with
  the edits, ect?  then after that I would go do the `make install`.
 
 I just do make extract which will fetch and extract the file--then I cd
 into the work directory (in my case, there's a patch for fluxbox that I
 have to apply to Basemenu.cc), apply the patch, then do make install.

the sources might get (are more often than not) patched with
FreeBSD-specific deltas. your changes could cause patch(1) to fail.

Paul Beard's sequence avoids this by letting the port apply its
patches first.

-- 
If you cc me or remove the list(s) completely I'll most likely ignore
your message.see http://www.eyrie.org./~eagle/faqs/questions.html

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



making source code changes to a port ?

2002-11-23 Thread Josh Brooks

Hi folks,

I have a piece of software that I want to install via the ports tree, but
due to a specific custom behavior I want to add to it, I need to edit a
few lines in one of the source files.

Right now, I am doing the following:

cd /usr/ports/category/package
make install
cd work/package-1.2.3/src
(edit file)
cd /usr/ports/category/package
make deinstall
make install


and this works, but it is rather unelegant - can't there be a way to do
this without install/deinstall/install ?

that is, how can I get the port to download and unpack all the work into
port/work directory but not actually install anything until I finish with
the edits, ect?  then after that I would go do the `make install`.

Anyone ?


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: making source code changes to a port ?

2002-11-23 Thread paul beard
Josh Brooks wrote:


Hi folks,

I have a piece of software that I want to install via the ports 
tree, but
due to a specific custom behavior I want to add to it, I need to 
edit a
few lines in one of the source files.

Right now, I am doing the following:

cd /usr/ports/category/package
make install
cd work/package-1.2.3/src
(edit file)
cd /usr/ports/category/package
make deinstall
make install


and this works, but it is rather unelegant - can't there be a 
way to do
this without install/deinstall/install ?

that is, how can I get the port to download and unpack all the 
work into
port/work directory but not actually install anything until I 
finish with
the edits, ect?  then after that I would go do the `make install`.

Anyone ?

this sounds like a job for patch(1).


--
Paul Beard / 8040 27th Ave NE / Seattle WA 98115 /
paulbeard [at] mac [ dot] com / 206 529 8400

weblog @ http://paulbeard.no-ip.org/movabletype/

Democracy is the recurrent suspicion that more than half of the people
are right more than half of the time.
		-- E. B. White


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: making source code changes to a port ?

2002-11-23 Thread Kirk Strauser

At 2002-11-24T02:05:42Z, Josh Brooks [EMAIL PROTECTED] writes:

 that is, how can I get the port to download and unpack all the work into
 port/work directory but not actually install anything until I finish with
 the edits, ect?  then after that I would go do the `make install`.

There are other targets than just install, deinstall, and clean.  For
example, this should do what you want:

cd /usr/ports/my/program; make patch
cd work/program-1.2.3
vi file.c
cd ../..
make install
-- 
Kirk Strauser
In Googlis non est, ergo non est.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message