Skip to content

darwin: mariadb: MariaDB build fails with cyclic references on Darwin #10599

@datakurre

Description

@datakurre

I've been trying to get mariadb build on darwin (see:datakurre@468d504)

Currently, the build fails because of cyclic dependencies:

cycle detected in the references of ‘/nix/store/0krr87qzflc7g63lcncwfxr1kbg60vwl-mariadb-10.0.21-lib’
error: build of ‘/nix/store/s071v3lcaszk4wilbqwbv075lwzba2bp-mariadb-10.0.21.drv’ failed

So, if I understand correctly, mariadb creates multiple outputs (``outputs = ["out", "lib"]) and the default output should depend on the "lib", but not other way around.

I guess, it works on Linux, but darwin build looks bad (grepping "out"'s hash from "lib"):

$ grep 9346asnfrw87i7c0vpxphqw1a0qdchsz -sR 0krr87qzflc7g63lcncwfxr1kbg60vwl-mariadb-10.0.21-lib 
Binary file 0krr87qzflc7g63lcncwfxr1kbg60vwl-mariadb-10.0.21-lib/lib/libmysqlclient.18.dylib matches
Binary file 0krr87qzflc7g63lcncwfxr1kbg60vwl-mariadb-10.0.21-lib/lib/libmysqlclient.dylib matches
Binary file 0krr87qzflc7g63lcncwfxr1kbg60vwl-mariadb-10.0.21-lib/lib/libmysqlclient_r.18.dylib matches
Binary file 0krr87qzflc7g63lcncwfxr1kbg60vwl-mariadb-10.0.21-lib/lib/libmysqlclient_r.dylib matches
Binary file 0krr87qzflc7g63lcncwfxr1kbg60vwl-mariadb-10.0.21-lib/lib/libmysqld.18.dylib matches
Binary file 0krr87qzflc7g63lcncwfxr1kbg60vwl-mariadb-10.0.21-lib/lib/libmysqld.dylib matches
Binary file 0krr87qzflc7g63lcncwfxr1kbg60vwl-mariadb-10.0.21-lib/lib/mysql/plugin/adt_null.so matches
Binary file 0krr87qzflc7g63lcncwfxr1kbg60vwl-mariadb-10.0.21-lib/lib/mysql/plugin/auth_0x0100.so matches
Binary file 0krr87qzflc7g63lcncwfxr1kbg60vwl-mariadb-10.0.21-lib/lib/mysql/plugin/auth_socket.so matches
Binary file 0krr87qzflc7g63lcncwfxr1kbg60vwl-mariadb-10.0.21-lib/lib/mysql/plugin/auth_test_plugin.so matches
Binary file 0krr87qzflc7g63lcncwfxr1kbg60vwl-mariadb-10.0.21-lib/lib/mysql/plugin/dialog.so matches
Binary file 0krr87qzflc7g63lcncwfxr1kbg60vwl-mariadb-10.0.21-lib/lib/mysql/plugin/dialog_examples.so matches
Binary file 0krr87qzflc7g63lcncwfxr1kbg60vwl-mariadb-10.0.21-lib/lib/mysql/plugin/ha_connect.so matches
Binary file 0krr87qzflc7g63lcncwfxr1kbg60vwl-mariadb-10.0.21-lib/lib/mysql/plugin/ha_innodb.so matches
Binary file 0krr87qzflc7g63lcncwfxr1kbg60vwl-mariadb-10.0.21-lib/lib/mysql/plugin/ha_mroonga.so matches
Binary file 0krr87qzflc7g63lcncwfxr1kbg60vwl-mariadb-10.0.21-lib/lib/mysql/plugin/ha_sequence.so matches
Binary file 0krr87qzflc7g63lcncwfxr1kbg60vwl-mariadb-10.0.21-lib/lib/mysql/plugin/ha_sphinx.so matches
Binary file 0krr87qzflc7g63lcncwfxr1kbg60vwl-mariadb-10.0.21-lib/lib/mysql/plugin/ha_spider.so matches
Binary file 0krr87qzflc7g63lcncwfxr1kbg60vwl-mariadb-10.0.21-lib/lib/mysql/plugin/ha_test_sql_discovery.so matches
Binary file 0krr87qzflc7g63lcncwfxr1kbg60vwl-mariadb-10.0.21-lib/lib/mysql/plugin/handlersocket.so matches
Binary file 0krr87qzflc7g63lcncwfxr1kbg60vwl-mariadb-10.0.21-lib/lib/mysql/plugin/libdaemon_example.so matches
Binary file 0krr87qzflc7g63lcncwfxr1kbg60vwl-mariadb-10.0.21-lib/lib/mysql/plugin/locales.so matches
Binary file 0krr87qzflc7g63lcncwfxr1kbg60vwl-mariadb-10.0.21-lib/lib/mysql/plugin/metadata_lock_info.so matches
Binary file 0krr87qzflc7g63lcncwfxr1kbg60vwl-mariadb-10.0.21-lib/lib/mysql/plugin/mypluglib.so matches
Binary file 0krr87qzflc7g63lcncwfxr1kbg60vwl-mariadb-10.0.21-lib/lib/mysql/plugin/mysql_clear_password.so matches
Binary file 0krr87qzflc7g63lcncwfxr1kbg60vwl-mariadb-10.0.21-lib/lib/mysql/plugin/qa_auth_client.so matches
Binary file 0krr87qzflc7g63lcncwfxr1kbg60vwl-mariadb-10.0.21-lib/lib/mysql/plugin/qa_auth_interface.so matches
Binary file 0krr87qzflc7g63lcncwfxr1kbg60vwl-mariadb-10.0.21-lib/lib/mysql/plugin/qa_auth_server.so matches
Binary file 0krr87qzflc7g63lcncwfxr1kbg60vwl-mariadb-10.0.21-lib/lib/mysql/plugin/query_cache_info.so matches
Binary file 0krr87qzflc7g63lcncwfxr1kbg60vwl-mariadb-10.0.21-lib/lib/mysql/plugin/query_response_time.so matches
Binary file 0krr87qzflc7g63lcncwfxr1kbg60vwl-mariadb-10.0.21-lib/lib/mysql/plugin/semisync_master.so matches
Binary file 0krr87qzflc7g63lcncwfxr1kbg60vwl-mariadb-10.0.21-lib/lib/mysql/plugin/semisync_slave.so matches
Binary file 0krr87qzflc7g63lcncwfxr1kbg60vwl-mariadb-10.0.21-lib/lib/mysql/plugin/server_audit.so matches
Binary file 0krr87qzflc7g63lcncwfxr1kbg60vwl-mariadb-10.0.21-lib/lib/mysql/plugin/sql_errlog.so matches

Any tips?

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: darwinRunning or building packages on Darwin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions