Ticket #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@…, ahelfer1971@… |
| Port: |
Description (last modified by ryandesign@…) (diff)
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
Change History
comment:1 Changed 22 months ago by dluke@…
- Component changed from ports to base
- Type changed from update to defect
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...
comment:2 Changed 22 months ago by dluke@…
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 22 months ago by ryandesign@…
- Keywords upgrade failure removed
- Description modified (diff)
comment:4 Changed 22 months ago by jmr@…
- Milestone changed from MacPorts 2.0.2 to MacPorts Future
- Type changed from defect to enhancement
- Summary changed from cannot upgrade to vs 2.0.1 to avoid using /usr/bin/pkgconfig on darwin
It's totally unsupported to install third party programs in /usr/bin of course.
Changed 22 months ago by dluke@…
- Attachment reverse_logic.diff added
patch to check for sqlite3.h first, then look for pkg-config
comment:6 Changed 22 months ago by dluke@…
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:9 Changed 16 months ago by cal@…
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 16 months ago by ryandesign@…
- Cc ahelfer1971@… added
- Summary changed from avoid using /usr/bin/pkgconfig on darwin to avoid using (mono's) /usr/bin/pkg-config on darwin
Has duplicate #33403.
comment:11 Changed 16 months ago by cal@…
Has duplicate #33523.
comment:12 Changed 16 months ago by cal@…
Has duplicate #33525.
comment:13 Changed 15 months ago by cal@…
Has duplicate #33626.
comment:15 Changed 15 months ago by jmr@…
- Status changed from new to closed
- Resolution set to fixed
comment:16 Changed 13 months ago by cal@…
Has duplicate #34425.

