Re: how to avoid recompiling applications?

2006-06-05 Thread Lowell Gilbert
Jonathan Horne [EMAIL PROTECTED] writes:

 so, could i theoretically use 'make reinstall' on a fresh system where the 
 port had never been previously installed?

Maybe, maybe not.  If make install doesn't work because there's
already a .install_done...  file in the work directory, then reinstall
will be what you need.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how to avoid recompiling applications?

2006-06-05 Thread Donald J. O'Neill
On Monday 05 June 2006 09:49, Lowell Gilbert wrote:
 Jonathan Horne [EMAIL PROTECTED] writes:
  so, could i theoretically use 'make reinstall' on a fresh system
  where the port had never been previously installed?

 Maybe, maybe not.  If make install doesn't work because there's
 already a .install_done...  file in the work directory, then
 reinstall will be what you need.
 ___

I think a fresh system, where a port has never been installed, would not 
have a work directory in that port, so make install would work unless 
the port is broken. Using make reinstall in a port on a system that 
has been freshly reinstalled isn't going to save the OP anytime by 
avoiding recompiling ports, they'll be recompiled. How to save time is 
what he asked about, as he tends to experiment with this system and 
screw it up, requiring a reinstall from scratch. He also said that 
using pkg_add -r with, say kde, always tends to have something wrong 
with it.

The answer is: when he installs the ports, make a package using make 
package. Unfortunately, this doesn't make a package for ports required 
for that port, But, make package-recursive would, with the exception 
of certain ports, and he can get around that if he's clever enough. 

Another thing he can do is: use pkg_create -b 
some-port-already-installed and save it somewhere. Then he can 
do pkg_add that-saved-port.tbz and get that port and the required 
dependencies. If he's missing a dependency, oh well, guess what.

Don
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how to avoid recompiling applications?

2006-06-05 Thread Alex Zbyslaw

Donald J. O'Neill wrote:


On Monday 05 June 2006 09:49, Lowell Gilbert wrote:
 


Jonathan Horne [EMAIL PROTECTED] writes:
   


so, could i theoretically use 'make reinstall' on a fresh system
where the port had never been previously installed?
 


Maybe, maybe not.  If make install doesn't work because there's
already a .install_done...  file in the work directory, then
reinstall will be what you need.
___
   



The answer is: when he installs the ports, make a package using make 
package. Unfortunately, this doesn't make a package for ports required 
for that port, But, make package-recursive would, with the exception 
of certain ports, and he can get around that if he's clever enough. 

Another thing he can do is: use pkg_create -b 
some-port-already-installed and save it somewhere. Then he can 
do pkg_add that-saved-port.tbz and get that port and the required 
dependencies. If he's missing a dependency, oh well, guess what.


 


portupgrade -pr works a treat:

-p
--package  Build a package when each specified port is
   installed or upgraded.  If a package is upgraded
   and its dependent packages are given from 
the com-

   mand line (including the case where -r is speci-
   fied), build packages for them as well.

combined with pkg_create -b for already installed stuff and you should 
never have to compile the same version of a port more than once.


--Alex



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how to avoid recompiling applications?

2006-06-04 Thread Lowell Gilbert
Jonathan Horne [EMAIL PROTECTED] writes:

 i have a system that i tend to tear up quite often.  sometimes accidently, 
 sometimes not.  recompiling kde is quite a long process (and when i try to do 
 it from packages, something is always messed up).

 so, i was under the impression that if you *did not* make install clean 
 (thus, 
 only using 'make clean') and save your work directories, then when it came 
 time to reinstall something, you would not have to go thru the compile 
 process, and skip straight to the installation?

 example is, last night i compiled xorg from ports, but then tried to (against 
 my better judgement) pull down kde from packages.  utter catastrophe, after 
 removing the non-working kde-package, kde3 port would not even compile after 
 that.  anyway, long story short, i backed up 
 my /usr/ports, /usr/src, /usr/obj, and reinstalled.  using my restored backup 
 files, reapplying my old kernel and installworld went just without issue, i 
 skipped the buildworld and buildkernel just fine, no hitches.  but when i 
 went to reinstall the xorg from last night (all the work directories were 
 still there), 'make install' returned no output, and nothing happened.  what 
 gives?

make reinstall.  See man ports.

 i ended up having to do a make clean on my ports dir before i could continue. 
  
 in the future for me, is there a way to proeperly retain all the precompiled 
 stuff, and just skip right to the installation portion of my previously 
 compiled ports?

I would tend to build your own packages, and keep them around.  Then
you can reinstlal them easily.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how to avoid recompiling applications?

2006-06-04 Thread Jonathan Horne
On Sunday 04 June 2006 11:46, Lowell Gilbert wrote:
 Jonathan Horne [EMAIL PROTECTED] writes:
  i have a system that i tend to tear up quite often.  sometimes
  accidently, sometimes not.  recompiling kde is quite a long process (and
  when i try to do it from packages, something is always messed up).
 
  so, i was under the impression that if you *did not* make install clean
  (thus, only using 'make clean') and save your work directories, then when
  it came time to reinstall something, you would not have to go thru the
  compile process, and skip straight to the installation?
 
  example is, last night i compiled xorg from ports, but then tried to
  (against my better judgement) pull down kde from packages.  utter
  catastrophe, after removing the non-working kde-package, kde3 port would
  not even compile after that.  anyway, long story short, i backed up
  my /usr/ports, /usr/src, /usr/obj, and reinstalled.  using my restored
  backup files, reapplying my old kernel and installworld went just without
  issue, i skipped the buildworld and buildkernel just fine, no hitches. 
  but when i went to reinstall the xorg from last night (all the work
  directories were still there), 'make install' returned no output, and
  nothing happened.  what gives?

 make reinstall.  See man ports.

  i ended up having to do a make clean on my ports dir before i could
  continue. in the future for me, is there a way to proeperly retain all
  the precompiled stuff, and just skip right to the installation portion of
  my previously compiled ports?

 I would tend to build your own packages, and keep them around.  Then
 you can reinstlal them easily.

ah, thank you for your reply... i finally exhale while waiting in anticpation!

so, could i theoretically use 'make reinstall' on a fresh system where the 
port had never been previously installed?  im trying to build my system using 
the minimal install, and then recover my previous /boot /usr/src /usr/obj 
(then make installworld etc), then turn to my recovered /usr/ports and just 
begin installing previously compiled applications.

thanks,
jonathan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how to avoid recompiling applications?

2006-06-04 Thread Nikolas Britton

On 6/4/06, Jonathan Horne [EMAIL PROTECTED] wrote:


so, could i theoretically use 'make reinstall' on a fresh system where the
port had never been previously installed?



Yes... but what's the point?... when you can make your own packages.
instead of typing 'make install' type 'make package', this will spit
out a .tbz file you can use with pkg_add etc...
http://www.onlamp.com/pub/a/bsd/2003/08/07/FreeBSD_Basics.html



--
BSD Podcasts @:
http://bsdtalk.blogspot.com/
http://freebsdforall.blogspot.com/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how to avoid recompiling applications?

2006-06-04 Thread Donald J. O'Neill
On Sunday 04 June 2006 12:19, Nikolas Britton wrote:
 On 6/4/06, Jonathan Horne [EMAIL PROTECTED] wrote:
  so, could i theoretically use 'make reinstall' on a fresh system
  where the port had never been previously installed?


No, you can't.

 Yes... but what's the point?... when you can make your own packages.
 instead of typing 'make install' type 'make package', this will spit
 out a .tbz file you can use with pkg_add etc...
 http://www.onlamp.com/pub/a/bsd/2003/08/07/FreeBSD_Basics.html

Now, this is what I do, except do it make package-recursive, that way 
you get any packages that have been installed as requirements.

Be sure to do mkdir /usr/ports/packages, otherwise, the packages 
you're making are going to be stored in the individual port. If you 
have /usr/ports/packages, they'll be stored in one location that you 
can copy elsewhere, cd or dvd for instance.

Don
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how to avoid recompiling applications?

2006-06-04 Thread Mikhail Goriachev
Donald J. O'Neill wrote:
 On Sunday 04 June 2006 12:19, Nikolas Britton wrote:
 On 6/4/06, Jonathan Horne [EMAIL PROTECTED] wrote:
 so, could i theoretically use 'make reinstall' on a fresh system
 where the port had never been previously installed?
 
 No, you can't.
 
 Yes... but what's the point?... when you can make your own packages.
 instead of typing 'make install' type 'make package', this will spit
 out a .tbz file you can use with pkg_add etc...
 http://www.onlamp.com/pub/a/bsd/2003/08/07/FreeBSD_Basics.html
 
 Now, this is what I do, except do it make package-recursive, that way 
 you get any packages that have been installed as requirements.
 
 Be sure to do mkdir /usr/ports/packages, otherwise, the packages 
 you're making are going to be stored in the individual port. If you 
 have /usr/ports/packages, they'll be stored in one location that you 
 can copy elsewhere, cd or dvd for instance.

You could also use pkg_create.

man pkg_create

Cheers,
Mikhail.

-- 
Mikhail Goriachev
Webanoide

Telephone: +61 (0)3 62252501
Mobile Phone: +61 (0)4 38255158
E-Mail: [EMAIL PROTECTED]
Web: http://www.webanoide.org

PGP Key ID: 0x4E148A3B
PGP Key Fingerprint: D96B 7C14 79A5 8824 B99D 9562 F50E 2F5D 4E14 8A3B
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how to avoid recompiling applications?

2006-06-04 Thread Donald J. O'Neill
On Sunday 04 June 2006 12:54, Mikhail Goriachev wrote:
 Donald J. O'Neill wrote:
  On Sunday 04 June 2006 12:19, Nikolas Britton wrote:
  On 6/4/06, Jonathan Horne [EMAIL PROTECTED] wrote:
  so, could i theoretically use 'make reinstall' on a fresh system
  where the port had never been previously installed?
 
  No, you can't.
 
  Yes... but what's the point?... when you can make your own
  packages. instead of typing 'make install' type 'make package',
  this will spit out a .tbz file you can use with pkg_add etc...
  http://www.onlamp.com/pub/a/bsd/2003/08/07/FreeBSD_Basics.html
 
  Now, this is what I do, except do it make package-recursive, that
  way you get any packages that have been installed as requirements.
 
  Be sure to do mkdir /usr/ports/packages, otherwise, the packages
  you're making are going to be stored in the individual port. If you
  have /usr/ports/packages, they'll be stored in one location that
  you can copy elsewhere, cd or dvd for instance.

 You could also use pkg_create.

 man pkg_create

 Cheers,
 Mikhail.


Yes, you could, if it's already installed on the computer. If I took the 
output from pkg_info and compared it to what packages were 
in /usr/ports/packages/All, I could use pkg_create to build the missing 
packages I wanted to save to do a fast reinstall. But, if the port 
hasn't been built and installed yet, pkg_create will complain about it 
and conk out.

Don
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


how to avoid recompiling applications?

2006-06-03 Thread Jonathan Horne
i have a system that i tend to tear up quite often.  sometimes accidently, 
sometimes not.  recompiling kde is quite a long process (and when i try to do 
it from packages, something is always messed up).

so, i was under the impression that if you *did not* make install clean (thus, 
only using 'make clean') and save your work directories, then when it came 
time to reinstall something, you would not have to go thru the compile 
process, and skip straight to the installation?

example is, last night i compiled xorg from ports, but then tried to (against 
my better judgement) pull down kde from packages.  utter catastrophe, after 
removing the non-working kde-package, kde3 port would not even compile after 
that.  anyway, long story short, i backed up 
my /usr/ports, /usr/src, /usr/obj, and reinstalled.  using my restored backup 
files, reapplying my old kernel and installworld went just without issue, i 
skipped the buildworld and buildkernel just fine, no hitches.  but when i 
went to reinstall the xorg from last night (all the work directories were 
still there), 'make install' returned no output, and nothing happened.  what 
gives?

i ended up having to do a make clean on my ports dir before i could continue.  
in the future for me, is there a way to proeperly retain all the precompiled 
stuff, and just skip right to the installation portion of my previously 
compiled ports?

thanks,
jonathan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]