Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 May 2012 19:28:58 -0600
From:      Gary Aitken <freebsd@dreamchaser.org>
To:        freebsd-questions@freebsd.org
Subject:   automating menu options in ports (and other ports build questions)
Message-ID:  <4FBEE05A.6000909@dreamchaser.org>
In-Reply-To: <4FBD7BA0.7070502@dreamchaser.org>
References:  <4FBBF32D.9070505@dreamchaser.org> <20120522234510.a406941d.goksin.akdeniz@gmail.com> <4FBD7BA0.7070502@dreamchaser.org>

next in thread | previous in thread | raw e-mail | index | archive | help
1. When building a port, the system uses sysinstall to set options for 
the build.  How does one configure those options so make can be run 
unattended?  I didn't see anything in the ports documentation, but maybe 
I'm blind.  In particular, how does one configure a dependent port for 
the options you want whenever it is built as part of a higher-level build?

2. Do port builds deal with concurrency?
i.e. can I safely do a make install in two different ports subtrees 
simultaneously?
I attempted this with gnome2-lite and firefox and ended up with the 
firefox build barfing on tests in shared-mime-info -- one of the tests 
failed because a directory already existed.  I had to deinstall and 
reinstall shared-mime-info and then restart the firefox make.  The two 
builds actually ended up in the less likely scenario of trying to build 
the same dependency at roughly the same time.

3. Do the package builds use the defaults set in the ports tree?  If 
not, how are the options for packages chosen, and how does one determine 
what the package options are?

4. Is there a discussion anywhere of whether or not one should turn on 
various optimizations?  If these aren't turned on by default, but are 
safe, why aren't they the default?  Is this a cross-platform build 
issue, and the default is to build for cross-platform?

5. It looks like the options which show up using sysinstall are from the 
OPTIONS variable in the Makefile.  Is there any convention for where to 
find out more about the option other than the often useless text hint 
provided in the menu?
   e.g. gvfs has an option called
          FUSE       Enable fuse
which doesn't say which of the several software systems called FUSE this 
refers to
   e.g.  OPENGL      Use OpenGL graphics
doesn't say much about why you would want to do that,
what the opengl option actually does, ramifications,
whether it will help only if your graphics card / driver supports it,
etc.
   Or is this a documentation project in the offing?

Thanks,

Gary




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