[MacPorts] #49683: libphonenumber-cpp @7.2.1: upgrade fails
MacPorts
noreply at macports.org
Fri Nov 13 05:53:33 PST 2015
#49683: libphonenumber-cpp @7.2.1: upgrade fails
--------------------------+--------------------------------
Reporter: ryandesign@… | Owner: devans@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.4
Keywords: | Port: libphonenumber-cpp
--------------------------+--------------------------------
Upgrading libphonenumber-cpp @7.0.9 to 7.2.1 fails:
{{{
$ port -v installed libphonenumber-cpp
The following ports are currently installed:
libphonenumber-cpp @7.0.9_0+universal (active) platform='darwin 14'
archs='i386 x86_64'
$ sudo port upgrade libphonenumber-cpp build.jobs=1
---> Computing dependencies for libphonenumber-cpp
---> Fetching distfiles for libphonenumber-cpp
---> Verifying checksums for libphonenumber-cpp
---> Extracting libphonenumber-cpp
---> Applying patches to libphonenumber-cpp
---> Configuring libphonenumber-cpp
---> Building libphonenumber-cpp
Error: Failed to build libphonenumber-cpp: command execution failed
Error: See /opt/local/var/macports/logs
/_Users_rschmidt_macports_dports_devel_libphonenumber-cpp/libphonenumber-
cpp/main.log for details.
Error: Follow http://guide.macports.org/#project.tickets to report a bug.
$
}}}
The main.log is attached.
It works fine if I deactivate libphonenumber-cpp @7.0.9 first:
{{{
$ sudo port -f deactivate libphonenumber-cpp
---> Unable to deactivate libphonenumber-cpp @7.0.9_0+universal, the
following ports depend on it:
---> evolution-data-server @3.18.0_0+phonenumber
Warning: Deactivate forced. Proceeding despite dependencies.
---> Deactivating libphonenumber-cpp @7.0.9_0+universal
$ sudo port clean libphonenumber-cpp
---> Cleaning libphonenumber-cpp
$ sudo port upgrade libphonenumber-cpp build.jobs=1
---> Computing dependencies for libphonenumber-cpp
---> Fetching distfiles for libphonenumber-cpp
---> Verifying checksums for libphonenumber-cpp
---> Extracting libphonenumber-cpp
---> Applying patches to libphonenumber-cpp
---> Configuring libphonenumber-cpp
---> Building libphonenumber-cpp
---> Staging libphonenumber-cpp into destroot
---> Installing libphonenumber-cpp @7.2.1_0+universal
---> Cleaning libphonenumber-cpp
---> Computing dependencies for libphonenumber-cpp
---> Activating libphonenumber-cpp @7.2.1_0+universal
---> Cleaning libphonenumber-cpp
$
}}}
This suggests that the order of `-I` flags is incorrect, placing
`-I/opt/local/include` before the flags for the source directories when it
should be after.
If the order of `-I` flags can't be fixed, another fix might be to use
{{{
configure.cppflags-replace -I${prefix}/include -isystem${prefix}/include
}}}
See #40656.
If that doesn't work, the last resort would be to use the conflicts_build
1.0 portgroup and declare `conflicts_build ${name}`.
--
Ticket URL: <https://trac.macports.org/ticket/49683>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list