[Bug 250664] databases/galera26: ARM64/Aarch64 support

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Oct 27 05:14:58 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250664

            Bug ID: 250664
           Summary: databases/galera26: ARM64/Aarch64 support
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs at FreeBSD.org
          Reporter: freebsd at darkain.com
                CC: devel at galeracluster.com
                CC: devel at galeracluster.com
             Flags: maintainer-feedback?(devel at galeracluster.com)

The Galera26 port for compiling on ARM64/Aarch64 is only missing a single
function call to make it work.

I pulled this out of sys/x86/include/endian.h


#define __bswap64_gen(x)                \
        (((__uint64_t)__bswap32((x) & 0xffffffff) << 32) | __bswap32((x) >>
32))

static __inline __uint64_t __bswap64_var(__uint64_t _x)
{
        return (__bswap64_gen(_x));
}


After this, Galera26 compiles just fine on ARM.

Next up, the MariaDB ports need a small fix as well. They're missing the
wasrep_ shell scripts due to the following in
databases/mariadb10x-sever/Makefile

.if ${ARCH} != amd64
PLIST_SUB+= WSREP="@comment "
.endif


With this, I now have a Galera cluster up and running across 3 ARM VMs.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list