#30932 closed enhancement (fixed)
avoid using (mono's) /usr/bin/pkg-config on darwin
Reported by: | adfreed@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | MacPorts 2.1.0 |
Component: | base | Version: | 2.0.1 |
Keywords: | haspatch | Cc: | ryandesign (Ryan Carsten Schmidt), ahelfer1971@… |
Port: |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
When I try to upgrade my macports to the current version (2.0.1) I get an error on the upgrade. I've waited a couple weeks to see if it would get fixed, but it hasn't. I'm not much good at chasing this kind of thing down, so I'm submitting this ticket. The attached file contains the printout to the terminal for the following command:
sudo port -v selfupdate
Thanks for any help you can give.
Al
Attachments (2)
Change History (18)
Changed 13 years ago by adfreed@…
Attachment: | upgradeBugOutput.rtf added |
---|
comment:1 Changed 13 years ago by danielluke (Daniel J. Luke)
Component: | ports → base |
---|---|
Type: | update → defect |
comment:2 Changed 13 years ago by danielluke (Daniel J. Luke)
From a quick look at our aclocal.m4, it looks like we look for sqlite3 like this:
- From a configure arg (--with-sqlite3prefix) if set
- Otherwise use pkg-config
- otherwise assume it's in the default include/lib search path(s)
I'm guessing that this means the Mono.framework a couple of people have noticed problems with is registering sqlite with pkg-config (maybe?). Perhaps we should switch the order of things so that second we look for sqlite3 in a default location (and use it) and fall back on pkg-config.
comment:3 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Keywords: | upgrade failure removed |
comment:4 Changed 13 years ago by jmroot (Joshua Root)
Milestone: | MacPorts 2.0.2 → MacPorts Future |
---|---|
Summary: | cannot upgrade to vs 2.0.1 → avoid using /usr/bin/pkgconfig on darwin |
Type: | defect → enhancement |
It's totally unsupported to install third party programs in /usr/bin of course.
comment:5 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
#25318 was previously filed about this problem.
Changed 13 years ago by danielluke (Daniel J. Luke)
Attachment: | reverse_logic.diff added |
---|
patch to check for sqlite3.h first, then look for pkg-config
comment:6 Changed 13 years ago by danielluke (Daniel J. Luke)
I haven't thoroughly tested that patch, but it should have our configure look for sqlite3.h in the normal search path first (and use that) and only fall back to asking pkg-config if AC_CHECK_HEADER doesn't find it.
The existing behavior of being able to set --with-sqlite3prefix to override this should also still work.
comment:7 Changed 13 years ago by danielluke (Daniel J. Luke)
Keywords: | haspatch added |
---|
comment:8 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|
comment:9 Changed 13 years ago by neverpanic (Clemens Lang)
See https://bugzilla.xamarin.com/show_bug.cgi?id=1154 on the Mono bugtracker, where this is being tracked. Since this does not only affect MacPorts it really should be fixed by Mono.
comment:10 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ahelfer1971@… added |
---|---|
Summary: | avoid using /usr/bin/pkgconfig on darwin → avoid using (mono's) /usr/bin/pkg-config on darwin |
Has duplicate #33403.
comment:14 Changed 13 years ago by jmroot (Joshua Root)
Milestone: | MacPorts Future → MacPorts 2.1.0 |
---|
comment:15 Changed 13 years ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Your Mono.framework in /Library/Frameworks is interfering with the macports build. Moving it aside should work to get the upgrade built. As an alternative, you could download the appropriate macports package from the website and install it to get 2.0.1.
We should probably fix base so it doesn't try to link with sqlite3 from a random framework...