macports


Prevent MacPorts from installing pre-built package?


I am trying to instal libiconv with MacPorts. I need to build it to run in OS X 10.5 while my Mac is running 10.6. So I added this like to macports.conf:
macosx_deployment_target 10.5
That supposedly force MacPorts to build the port with 10.5 SDK. However, the installed libraries still contain LC_DYLD_INFO load command which is available only in 10.6.
I reinstalled the port with -v option and find that it downloads and installs a pre-built package without compiling. The package obviously was built on a 10.6 machines.
The question is: how can I force MacPorts to built the port on my machine with my settings? Thanks.
Edit: I am building x86/x64 universal binaries with this command:
sudo port -v install libiconv +universal
As of MacPorts 2.1.0, there is a new setting called buildfromsource in the configuration file /opt/local/etc/macports/macports.conf that controls the use a pre-built archives:
# When to build ports from source. Default is 'ifneeded', which downloads an
# archive if available or builds from source otherwise. 'always' has the same
# effect as -s on the command line, and 'never' is likewise the same as -b.
#buildfromsource ifneeded
Duh! I've looked up and down for the better part of the day. And right after I posted the question, I find it out myself.
Add -s to port command and it will pull and compile the source locally:
sudo port -s -v install libiconv +universal

Related Links

500 OOPS: vsftpd: not configured for standalone, must be started from inetd
Mac Ports Update Failing
Macports ncurses error when trying to upgrade [closed]
macports: list out my own ports
why does macports “--set ipython ipython32” fail?
Prevent MacPorts from installing pre-built package?
Wine is extremely slow, how do I find out why?
Problems with macports
Where can I view tools or packages availble in Homebrew
See what has been installed via MacPorts
Installing a php extension with Macports
Lost ability to run as sudo following MacPorts upgrade
Error: Failed to install atk with mac ports
How to replace MacPort's libiconv with Mac's default 64-bit version?
Cannot install YUM in MacOS
Perl5.12 not installing via Macports

Categories

HOME
oracle
class
angular-ui-grid
paypal-ipn
couchdb
typeerror
twitter-fabric
dronekit-python
mirc
tibco
msmq
siesta
amazon-emr
chromecast
business-intelligence
mailmerge
xbap
jpa-2.0
rpmbuild
maven-plugin
coroutine
raml
activeadmin
bsd
connection-refused
uislider
mime-types
rxjs5
mod-wsgi
data-collection
math.js
spring-annotations
audit
tilemill
reporting
quickcheck
listjs
advanced-filter
spring-rabbitmq
amazon-kms
transform
textmate2
identify
cartopy
telephonymanager
recovery
tidal-scheduler
spring-restcontroller
swfupload
classnotfoundexception
secure-coding
flipkart
optionaldataexception
expandablelistview
latexml
zend-form
wysihtml5
tinyioc
ptvs
msxml
rustdoc
openerp-6
maatwebsite-excel
msg
p6spy
svnserve
jemdoc
flipclock
jsr363
ajax4jsf
phpquery
stack-smash
opencyc
supersocket.net
ssmtp
fiware-bosun
string.format
n-tier-architecture
utf8-decode
xml-signature
window-resize
dmake
oracle-adf-mobile
nidaqmx
accessory
neo4jphp
flipboard
usb-flash-drive
code39
pbkdf2
google-code-prettify
rikulo
delphi-xe4
spiral
examine
jsplitpane
nsmutablestring
coordinate
wiktionary
n-queens
boost-foreach
datacontracts
play2-mini
grails-validation
printqueue
bass
icicles
principles
firephp
powergui
prism-2
acceleration
webclient.uploaddata

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App