Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#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)

upgradeBugOutput.rtf (32.5 KB) - added by adfreed@… 13 years ago.
reverse_logic.diff (1.7 KB) - added by danielluke (Daniel J. Luke) 13 years ago.
patch to check for sqlite3.h first, then look for pkg-config

Download all attachments as: .zip

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: portsbase
Type: updatedefect

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 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:

  1. From a configure arg (--with-sqlite3prefix) if set
  2. Otherwise use pkg-config
  3. 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.2MacPorts Future
Summary: cannot upgrade to vs 2.0.1avoid using /usr/bin/pkgconfig on darwin
Type: defectenhancement

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 darwinavoid using (mono's) /usr/bin/pkg-config on darwin

Has duplicate #33403.

comment:11 Changed 13 years ago by neverpanic (Clemens Lang)

Has duplicate #33523.

comment:12 Changed 13 years ago by neverpanic (Clemens Lang)

Has duplicate #33525.

comment:13 Changed 13 years ago by neverpanic (Clemens Lang)

Has duplicate #33626.

comment:14 Changed 13 years ago by jmroot (Joshua Root)

Milestone: MacPorts FutureMacPorts 2.1.0

comment:15 Changed 13 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

comment:16 Changed 13 years ago by neverpanic (Clemens Lang)

Has duplicate #34425.

Note: See TracTickets for help on using tickets.