DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 29th October 2009
shep shep is offline
ISO Quartermaster
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 577
Thanked 9 Times in 9 Posts
Default /devel/jdk/1.5 in 4.6

I ran out of disk space when installing jdk 1.5 I used the default disklabel layout at install. Almost everything else installed was the package binary.

My question is where most of the build occurs ?/tmp and how big should I make the directory to compile jdk 1.5, mplayer-codecs, libdvdcss?

I think I could add a thumb drive and map to the build directory but in the future it would be helpful to anticipate building jdk (at lease until openjdk w/ plugin becomes available).
Reply With Quote
  #2   (View Single Post)  
Old 29th October 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,608
Thanked 214 Times in 189 Posts
Default

/usr/ports/obj is where the build takes place on a default 4.6 system. A thumb drive won't be enough, unless you have a nice big one. JDK takes a number of GB to build.

You can redirect your build by setting the WRKOBJDIR environment variable. The ports(7) man page is a great place to learn about this sort of administrative control.

Hint: You can use the environment variable on a temporary basis from within your shell, or for use with make(1), you can create an /etc/mk.conf file to house them permenantly, for all users.
Reply With Quote
  #3   (View Single Post)  
Old 29th October 2009
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,873
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by shep View Post
My question is where most of the build occurs ?/tmp and how big should I make the directory to compile jdk 1.5, mplayer-codecs, libdvdcss?
Issuing the following:

$ df -h

...will help you pinpoint errant partition sizes.

If you are not changing the locations of where the ports tree builds applications, all versions of the JDK are primarily built underneath /usr/ports/devel/jdk & /usr/ports/obj, however, there are dependencies which will be built throughout the tree. Personally, I allocate 35-50GB as a single partition mounted as /usr/ports, but this is (intentionally) larger than what I ever need, but at times I build very large applications -- OpenOffice, etc., so I don't want to run into the situation you are experiencing now. 35GB is usually enough for everything, but I sometimes allocate more if I have the disk space to spare.

Cleaning object file & distfiles after building all applications can help if disk space is at a premium.

Likewise, note that only JDK versions prior to 1.7 require building as JDK 1.7 is available as a package as discussed in Section 8.3 of the FAQ.
Reply With Quote
  #4   (View Single Post)  
Old 29th October 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,608
Thanked 214 Times in 189 Posts
Default

While 1.7 is available as a package, 1.7 has no Mozilla plug-in for its associated JRE. So for those who want applets in a browser, 1.5 is the right way to go. If 1.6 is needed, 1.5 is a build dependency.

(Note that for subsequent update builds, the admin can use FLAVOR=native_bootstrap and reduce the length of time and some of the huge disk space demands for building Java.)
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
devel/kdebindings4-python-pykde4 Mantazz FreeBSD Ports and Packages 1 9th September 2009 06:54 PM
devel/linux-glib2 ccc FreeBSD Ports and Packages 8 3rd February 2009 11:31 PM


All times are GMT. The time now is 11:42 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick