Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#59505 closed defect (fixed)

Failed to upgrade from mariadb-10.2-10.2.25_0 to mariadb-10.2-10.2.27_0

Reported by: jvmyers Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: mariadb-10.2

Description (last modified by jmroot (Joshua Root))

MacBook Pro (Mid 2009): OS X El Capitan, version 10.11.6.

Tried several different ways, but all attempts to upgrade mariadb-10.2 failed as noted below.

sh-3.2# port installed | grep maria
  mariadb-10.2 @10.2.25_0 (active)
  mariadb-10.2-server @10.2.25_0 (active)
sh-3.2# port install mariadb-10.2
--->  Computing dependencies for mariadb-10.2
--->  Fetching archive for mariadb-10.2
--->  Attempting to fetch mariadb-10.2-10.2.27_0.darwin_15.x86_64.tbz2 from https://packages.macports.org/mariadb-10.2
--->  Attempting to fetch mariadb-10.2-10.2.27_0.darwin_15.x86_64.tbz2 from http://aus.us.packages.macports.org/macports/packages/mariadb-10.2
--->  Attempting to fetch mariadb-10.2-10.2.27_0.darwin_15.x86_64.tbz2 from http://ywg.ca.packages.macports.org/mirror/macports/packages/mariadb-10.2
--->  Building mariadb-10.2
Error: Failed to build mariadb-10.2: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mariadb-10.2/mariadb-10.2/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port mariadb-10.2 failed

Attachments (3)

main.log (612.2 KB) - added by jvmyers 5 years ago.
mariadb main.log
main.2.log (4.5 MB) - added by GreggGreen (Gregg Green) 5 years ago.
main.3.log (2.7 MB) - added by GreggGreen (Gregg Green) 5 years ago.

Change History (18)

Changed 5 years ago by jvmyers

Attachment: main.log added

mariadb main.log

comment:1 Changed 5 years ago by jmroot (Joshua Root)

Cc: ryandesign added
Description: modified (diff)
Owner: set to michaelld
Port: mariadb-10.2 added
Status: newassigned

Looks very similar to #59499.

comment:2 Changed 5 years ago by michaelld (Michael Dickens)

Same basic issue as #59499 ... yes indeed! Looks like libxml & icu are quite the pair!

comment:3 Changed 5 years ago by michaelld (Michael Dickens)

... and looks like there's very little choice, too: the libxml header include/libxml2/libxml/xmlversion.h with ICU enabled shows:

/**
 * LIBXML_ICU_ENABLED:
 *
 * Whether icu support is available
 */
#if 1
#define LIBXML_ICU_ENABLED
#endif

... so can't even disable the chain-inclusion from libxml to icu ... ouch!

comment:4 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign removed

comment:5 Changed 5 years ago by dehart (Michael)

If for some reason someone is (like me) looking at a mariadb that will no longer start or build. This is my workaround:

git clone --single-branch https://github.com/macports/macports-ports.git
cd macports-ports
git checkout 010b501ffbfcdcf6b5716cc71802f4448e73216a
cd textproc/libxml2
sudo port install
sudo port install mariadb-10.2

the commit "010b501ffbfcdcf6b5716cc71802f4448e73216a" is before icu was added to libxml2

comment:6 Changed 5 years ago by michaelld (Michael Dickens)

Cc: ryandesign added

Has duplicate #59520

comment:7 Changed 5 years ago by michaelld (Michael Dickens)

@dehart : that's always an option to revert back to some prior commit ... of course you don't get updates going forward! but as a temporary fix until this broader issue is worked out, it's a perfectly fine solution.

comment:8 Changed 5 years ago by GreggGreen (Gregg Green)

Mariadb-10.1 won't compile either, if you uninstall and reinstall.

comment:9 Changed 5 years ago by michaelld (Michael Dickens)

Has duplicate #59588

comment:10 Changed 5 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: assignedclosed

In bfd9a1776f09c20a7b9bcf7d31762a5ebef6182f/macports-ports (master):

mariadb-10.2: add non-default-variant connect_with_libxml2

This is the only part of MariaDB 10.2 that requires libxml2, which in turn will require C++11. So the MariaDB core will now be buildable without C++11 or libxml2.

Closes: #59505
Closes: #59563

Changed 5 years ago by GreggGreen (Gregg Green)

Attachment: main.2.log added

comment:11 Changed 5 years ago by michaelld (Michael Dickens)

@GreggGreen : Please update your ports tree again. There's a subsequent commit (after the update to 10.2.28) that should fix this issue. Please "sudo port clean mariadb-10.2" before trying again ...

comment:12 Changed 5 years ago by GreggGreen (Gregg Green)

macOS 10.8.5 doesn't work

sudo port install mariadb-10.2
--->  Computing dependencies for mariadb-10.2
--->  Fetching archive for mariadb-10.2
--->  Attempting to fetch mariadb-10.2-10.2.28_2.darwin_12.x86_64.tbz2 from https://packages.macports.org/mariadb-10.2
--->  Attempting to fetch mariadb-10.2-10.2.28_2.darwin_12.x86_64.tbz2 from http://aus.us.packages.macports.org/macports/packages/mariadb-10.2
--->  Attempting to fetch mariadb-10.2-10.2.28_2.darwin_12.x86_64.tbz2 from http://ywg.ca.packages.macports.org/mirror/macports/packages/mariadb-10.2
--->  Building mariadb-10.2
Error: Failed to build mariadb-10.2: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mariadb-10.2/mariadb-10.2/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port mariadb-10.2 failed

comment:13 Changed 5 years ago by michaelld (Michael Dickens)

Log file please?

Changed 5 years ago by GreggGreen (Gregg Green)

Attachment: main.3.log added

comment:14 Changed 5 years ago by GreggGreen (Gregg Green)

I have multiple Mac servers running different versions of macOS. If you want I can do some testing for you if you need.

comment:15 Changed 5 years ago by michaelld (Michael Dickens)

@GreggGreen: Same issue as #59575

Last edited 5 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)
Note: See TracTickets for help on using tickets.