Reply
 
Thread Tools Display Modes
  #1  
Old 08-16-2006, 04:53 PM
Apatewna Apatewna is offline
Senior Member
 
Join Date: May 2006
Location: Greece
Posts: 1,142
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Apatewna Send a message via MSN to Apatewna Send a message via Yahoo to Apatewna
Default Faster ports compilation for slower PCs [SOLVED]
We see that compiling from ports takes a very long time in older hardware (it makes sense). I have read that it is possible to compile a port on a faster machine using the command:
Code:
# portinstall -p name_of_port
The -p switch creates packages (.tbz) for all the ports that the above command needed to compile. And as we know local packages are faster to install :
Code:
# pkg_add name_of_package.tbz
What is the prerequisite so that somebody with two PCBSD installations can accomplish this little trick and upgrade the slower machine using these faster created packages? As far as I understand the process the critical points are

a) the compilers
b) the kernel sources (if compiling some driver)
c) the architecture (Intel or AMD, older or newer, x64 or not)

This is very interesting and I'm sure lots (including me) are willing to hear an answer from more experienced members.
__________________
RTFM and STFW before anything bad happens

Please read and UNDERSTAND these pages before posting:
http://www.catb.org/~esr/faqs/smart-questions.html
http://en.wikipedia.org/wiki/Netiquette
Reply With Quote
  #2  
Old 08-16-2006, 05:09 PM
antik antik is offline
Senior Member
 
Join Date: Jul 2005
Location: Estonia
Posts: 3,610
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Faster ports compilation for slower PCs
Originally Posted by Apatewna
This is very interesting and I'm sure lots (including me) are willing to hear an answer from more experienced members.
And don't forget to make /usr/ports/packages directory- due to some awkward reason this firectory is not created automagically.
__________________
"All parts should go together without forcing. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer." -- IBM maintenance manual, 1975
Reply With Quote
  #3  
Old 08-16-2006, 05:12 PM
dracheflieger dracheflieger is offline
Senior Member
 
Join Date: May 2006
Location: Greater State of Northern Kaliforneea
Posts: 2,880
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Looks like you have to have the port installed already but not sure
Code:
-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.
Reply With Quote
  #4  
Old 08-17-2006, 06:52 PM
Apatewna Apatewna is offline
Senior Member
 
Join Date: May 2006
Location: Greece
Posts: 1,142
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Apatewna Send a message via MSN to Apatewna Send a message via Yahoo to Apatewna
Default
Here is a practical example:

Code:
 # mkdir /usr/ports/packages 
# portinstall -p wine
After installation I got three folders under /usr/ports/packages:
Quote:
PCBSD# ls /usr/ports/packages/*
/usr/ports/packages/All:
wine-0.9.19,1.tbz

/usr/ports/packages/Latest:
wine.tbz

/usr/ports/packages/emulators:
wine-0.9.19,1.tbz
PCBSD#
And a little cutoff from the end of the compilation itself:

Quote:
Creating bzip'd tar ball in '/usr/ports/packages/All/wine-0.9.19,1.tbz'
===> Cleaning for gmake-3.81_1
===> Cleaning for bison-1.75_2,1
===> Cleaning for lcms-1.15,1
===> Cleaning for freetype2-2.1.10_3
===> Cleaning for fontforge-20060413
===> Cleaning for libglut-6.4.2
===> Cleaning for xorg-libraries-6.9.0
===> Cleaning for gettext-0.14.5_2
===> Cleaning for m4-1.4.4
===> Cleaning for pkg-config-0.20_2
===> Cleaning for libuninameslist-20050712
===> Cleaning for tiff-3.8.2
===> Cleaning for jpeg-6b_4
===> Cleaning for png-1.2.12_1
===> Cleaning for libungif-4.1.4_1
===> Cleaning for libxml2-2.6.26
===> Cleaning for libiconv-1.9.2_2
===> Cleaning for imake-6.9.0
===> Cleaning for libdrm-2.0.2
===> Cleaning for fontconfig-2.3.2_5,1
===> Cleaning for libtool-1.5.22_2
===> Cleaning for perl-5.8.8
===> Cleaning for expat-2.0.0_1
===> Cleaning for wine-0.9.19,1
This is the list of the prerequisites which are aparently already installed so no packages were created for them.
__________________
RTFM and STFW before anything bad happens

Please read and UNDERSTAND these pages before posting:
http://www.catb.org/~esr/faqs/smart-questions.html
http://en.wikipedia.org/wiki/Netiquette
Reply With Quote
  #5  
Old 08-17-2006, 06:56 PM
antik antik is offline
Senior Member
 
Join Date: Jul 2005
Location: Estonia
Posts: 3,610
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Originally Posted by Apatewna
This is the list of the prerequisites which are aparently already installed so no packages were created for them.
You can force recreatin/reinstall.
__________________
"All parts should go together without forcing. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer." -- IBM maintenance manual, 1975
Reply With Quote
  #6  
Old 08-19-2006, 11:59 AM
Apatewna Apatewna is offline
Senior Member
 
Join Date: May 2006
Location: Greece
Posts: 1,142
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Apatewna Send a message via MSN to Apatewna Send a message via Yahoo to Apatewna
Default
Last night I did:
Code:
# portinstall -p kino
Look what happened to /usr/ports/packages
Code:
PCBSD# ls -l /usr/ports/packages/
total 28
drwxr-xr-x  2 root  wheel  1024 19 Αυγ 01:06 All
drwxr-xr-x  2 root  wheel   512 19 Αυγ 01:06 Latest
drwxr-xr-x  2 root  wheel   512 19 Αυγ 00:28 accessibility
drwxr-xr-x  2 root  wheel   512 19 Αυγ 00:22 audio
drwxr-xr-x  2 root  wheel   512 19 Αυγ 01:00 devel
drwxr-xr-x  2 root  wheel   512 17 Αυγ 21:36 emulators
drwxr-xr-x  2 root  wheel   512 19 Αυγ 01:00 gnome
drwxr-xr-x  2 root  wheel   512 19 Αυγ 00:22 ipv6
drwxr-xr-x  2 root  wheel   512 19 Αυγ 00:56 misc
drwxr-xr-x  2 root  wheel   512 19 Αυγ 01:06 multimedia
drwxr-xr-x  2 root  wheel   512 19 Αυγ 00:22 net
drwxr-xr-x  2 root  wheel   512 19 Αυγ 00:13 perl5
drwxr-xr-x  2 root  wheel   512 19 Αυγ 01:00 textproc
drwxr-xr-x  2 root  wheel   512 19 Αυγ 00:58 x11-toolkits
PCBSD#
Let's see the "All folder
Code:
PCBSD# ls -l /usr/ports/packages/All/
total 21832
-rw-r--r--  1 root  wheel   205826 19 Αυγ 00:28 atk-1.11.4_1.tbz
-rw-r--r--  1 root  wheel   455024 19 Αυγ 00:12 autoconf-2.59_2.tbz
-rw-r--r--  1 root  wheel  2877734 19 Αυγ 00:22 ffmpeg-devel-0.4.9.c.2006032300_2.tbz
-rw-r--r--  1 root  wheel  5795555 19 Αυγ 00:58 gtk-2.8.20.tbz
-rw-r--r--  1 root  wheel    32625 19 Αυγ 00:12 help2man-1.36.4_1.tbz
-rw-r--r--  1 root  wheel     3461 19 Αυγ 00:56 hicolor-icon-theme-0.5.tbz
-rw-r--r--  1 root  wheel    44657 19 Αυγ 00:13 intltool-0.35.0.tbz
-rw-r--r--  1 root  wheel  1221852 19 Αυγ 01:06 kino-0.9.0.tbz
-rw-r--r--  1 root  wheel   248953 19 Αυγ 00:15 libdv-0.104_1.tbz
-rw-r--r--  1 root  wheel    81088 19 Αυγ 01:00 libglade2-2.6.0.tbz
-rw-r--r--  1 root  wheel   545334 19 Αυγ 00:26 libquicktime-0.9.9.tbz
-rw-r--r--  1 root  wheel   180733 19 Αυγ 00:13 p5-XML-Parser-2.34_2.tbz
-rw-r--r--  1 root  wheel   480647 19 Αυγ 00:39 pango-1.12.3.tbz
-rw-r--r--  1 root  wheel   164873 19 Αυγ 00:56 shared-mime-info-0.18.tbz
-rw-r--r--  1 root  wheel   191838 19 Αυγ 00:17 texi2html-1.76_1,1.tbz
-rw-r--r--  1 root  wheel  9584581 17 Αυγ 21:36 wine-0.9.19,1.tbz
-rw-r--r--  1 root  wheel    23514 19 Αυγ 01:00 xmlcatmgr-2.2.tbz
PCBSD#
Very nice

EDIT
--------
If you see some unexpected characters in the above lines it's because of Greek encoding in the console text.
__________________
RTFM and STFW before anything bad happens

Please read and UNDERSTAND these pages before posting:
http://www.catb.org/~esr/faqs/smart-questions.html
http://en.wikipedia.org/wiki/Netiquette
Reply With Quote
  #7  
Old 08-21-2006, 10:41 AM
g0lem g0lem is offline
Senior Member
 
Join Date: Apr 2006
Posts: 572
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to g0lem
Default
did anyone see if by make package-recursive (or portinstall -p) ports are recreated even if they were already created once for another port, as a dependency?

(i'm tred, hope you understand what i just said... :roll: )
Reply With Quote
  #8  
Old 08-21-2006, 11:01 AM
Apatewna Apatewna is offline
Senior Member
 
Join Date: May 2006
Location: Greece
Posts: 1,142
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Apatewna Send a message via MSN to Apatewna Send a message via Yahoo to Apatewna
Default
I will retry "portinstall -p kino" (on top installation) tonight at home and see what messages popup

EDIT
-------------
FYI, I updated ports, but there was no new version for kino. Then I tried
Code:
# portinstall -p kino
and nothing happened. I doubt that any of the prerequisites had a new version either.
__________________
RTFM and STFW before anything bad happens

Please read and UNDERSTAND these pages before posting:
http://www.catb.org/~esr/faqs/smart-questions.html
http://en.wikipedia.org/wiki/Netiquette
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] Upgrading from Ports Tylerious General Questions 3 10-15-2007 12:59 PM
FreeBSD 6.2 Install Ports [SOLVED] mogchr FreeBSD Help 14 08-01-2007 12:40 AM
Build ports faster TerryP Tips and Tricks 4 11-23-2006 10:05 PM
A theme for slower and more elderly machines rcarring General Questions 9 06-26-2006 06:48 AM
adding ports with cvsup/root/ports-supfile(solved) catlett Startup Bug Reports (read-only) 6 06-04-2006 11:30 AM


All times are GMT. The time now is 10:40 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.