Hello there friends. We have recently moved our product to MariaDB 10.5.5, and someone on my team noticed an oddity that occurs in some build processes.
The product has a complicated make-based build system, and many phases including “make src” and “make build” which pre-req’s the “src” target, and includes packaging. The dev work to integrate mariadb used
“make build”, which works. Someone found unexpectedly this morning, that if we perform a “make src ; make build” we get a different outcome. There is a sym-link created by the install target
lrwxrwxrwx 1 cross2 5011 14 Sep 11 08:30
./destdir/usr/bin/mariadb-config -> mariadb_config
that is _not_ created in the first build. The first build, which given the dependencies of other parts of our product needing mariadb libraries to build, performs the destdir install (via “make install”
in mariadb). And, that includes mariadb_config, but _not_ mariadb-config.
Can someone help me figure out where that sym-link is created, and why it seems to only be created when maria’s “make install” is run twice?
- Chris
Cmake config:
CONF_OPTIONS:=-DBUILD_CONFIG=mysql_release \
-DAWS_SDK_EXTERNAL_PROJECT=OFF \
-DCMAKE_INSTALL_PREFIX:PATH=${EXTRAPREFIX}/usr \
-DINSTALL_LAYOUT=RPM \
-DINSTALL_PLUGINDIR=lib64/plugin \
-DINSTALL_SYSCONFDIR="" \
-DINSTALL_MYSQLTESTDIR="" \
-DWITH_EMBEDDED_SERVER=NO \
-DWITH_JEMALLOC=OFF \
-DWITH_PCRE=auto \
-DWITH_SSL=system \
-DWITH_ZLIB=system \
-DWITH_WSREP=OFF -DPLUGIN_WSREP_INFO=NO \
-DPLUGIN_AUTH_TEST_PLUGIN=NO \
-DPLUGIN_FUNC_TEST=NO \
-DPLUGIN_TYPE_TEST=NO \
-DPLUGIN_TEST_SQL_DISCOVERY=NO \
-DPLUGIN_TEST_VERSIONING=NO \
-DPLUGIN_BLACKHOLE=NO \
-DPLUGIN_CONNECT=NO \
-DPLUGIN_EXAMPLE=NO -DPLUGIN_EXAMPLE_KEY_MANAGEMENT=NO \
-DPLUGIN_FTEXAMPLE=NO \
-DPLUGIN_FEDERATED=NO -DPLUGIN_FEDERATEDX=NO \
-DPLUGIN_MROONGA=NO -DMRN_GROONGA_EMBED=OFF \
-DPLUGIN_S3=NO \
-DPLUGIN_SPIDER=NO \
-DPLUGIN_SPHINX=NO \
-DPLUGIN_TOKUDB=NO \
-DPLUGIN_ROCKSDB=NO
CONF_OPTIONS += -DSKIP_TESTS=ON -DWITH_UNIT_TESTS=NO
--
Chris Ross
Software Engineering Manager – Eventing/Datastore Teams
cross2@cisco.com