Details

    Description

      Currently, MariaDB's server does not link under FreeBSD's aarch64 architecture due to the use of sbrk, which does not exist under that architecture. MySQL has corrected this issue with the following commit:

      https://github.com/mysql/mysql-server/commit/75271e51d60bce8683423b208cbb43b11ca6060e

      I have tested patching all current versions of MariaDB from FreeBSD's ports tree (5.5, 10.0, 10.1 and 10.2) under the aarch64 architecture, patching only mysys/stacktrace.c in all those versions, and it allows MariaDB to link. I have sent a patch to the FreeBSD ports tree here:

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

      If the patch that MySQL utilized was applied to all supported versions of MariaDB, it would allow MariaDB to work on more FreeBSD platforms.

      Attachments

        Issue Links

          Activity

            spil Bernard Spil added a comment -

            Can the MariaDB devs please take a look?

            spil Bernard Spil added a comment - Can the MariaDB devs please take a look?

            Can this please be looked into? It is preventing MariaDB 10.5 from compiling on FreeBSD Aarch64. The work-around patch can in theory be applied to the mariadb105-X ports like it is with the mariadb104-X and older ports, but considering how trivial this is, and already fixed in MySQL, this should be applied directly to the MariaDB core code base. The MySQL patch linked in the initial bug report can most likely be applied unmodified.

            darkain Vincent Milum Jr added a comment - Can this please be looked into? It is preventing MariaDB 10.5 from compiling on FreeBSD Aarch64. The work-around patch can in theory be applied to the mariadb105-X ports like it is with the mariadb104-X and older ports, but considering how trivial this is, and already fixed in MySQL, this should be applied directly to the MariaDB core code base. The MySQL patch linked in the initial bug report can most likely be applied unmodified.
            danblack Daniel Black added a comment -

            Took the mariadb101-X ports patch from CyberBotX as 1620|https://github.com/MariaDB/server/pull/1629]. The patch works fine for me though I lack an aarch64 machine to test. I'm taking its existence in ports as sufficient testing.

            I'm awaiting a license declaration from CyberBotX as the patch author.

            Is there a a coverall license for patches and build changes in the FreeBSD ports that I could rely on in future?

            danblack Daniel Black added a comment - Took the mariadb101-X ports patch from CyberBotX as 1620 |https://github.com/MariaDB/server/pull/1629]. The patch works fine for me though I lack an aarch64 machine to test. I'm taking its existence in ports as sufficient testing. I'm awaiting a license declaration from CyberBotX as the patch author. Is there a a coverall license for patches and build changes in the FreeBSD ports that I could rely on in future?
            CyberBotX Naram Qashat added a comment -

            I did not author the FreeBSD patches, I only applied the MySQL commit from the initial bug report to mysys/stacktrace.c and have since needed to have ~spil apply them to the mariadb103-X and mariadb104-X ports, and he will still need to apply it to the mariadb105-X port (I have already submitted a FreeBSD bug report to get that to happen). As such, I do not know what license the patches would be under, as they come from MySQL's commit. I shall also post this under the GitHub pull request you have referenced.

            CyberBotX Naram Qashat added a comment - I did not author the FreeBSD patches, I only applied the MySQL commit from the initial bug report to mysys/stacktrace.c and have since needed to have ~spil apply them to the mariadb103-X and mariadb104-X ports, and he will still need to apply it to the mariadb105-X port (I have already submitted a FreeBSD bug report to get that to happen). As such, I do not know what license the patches would be under, as they come from MySQL's commit. I shall also post this under the GitHub pull request you have referenced.
            danblack Daniel Black added a comment -

            Apologies for the delay.

            Thanks Oracle for the patch

            danblack Daniel Black added a comment - Apologies for the delay. Thanks Oracle for the patch

            People

              danblack Daniel Black
              CyberBotX Naram Qashat
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.