Ravenports generated: 10 Apr 2024 23:19
[ravenports.git] / bucket_3D / mariadb104
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               mariadb104
4 VERSION=                10.4.33
5 REVISION=               1
6 KEYWORDS=               databases
7 VARIANTS=               standard
8 SDESC[standard]=        Fast SQL database server, derived from MySQL
9 HOMEPAGE=               https://mariadb.org/
10 CONTACT=                nobody
11
12 DOWNLOAD_GROUPS=        main
13 SITES[main]=            https://downloads.mariadb.com/MariaDB/mariadb-10.4.33/source/
14 DISTFILE[1]=            mariadb-10.4.33.tar.gz:main
15 DF_INDEX=               1
16 SPKGS[standard]=        complete
17                         server
18                         client
19                         dev
20                         man
21                         docs
22
23 OPTIONS_AVAILABLE=      ROCKSDB
24 OPTIONS_STANDARD=       ROCKSDB
25
26 BUILD_DEPENDS=          bison:primary:standard
27                         msgpack:dev:standard
28                         snappy:dev:standard
29                         boost-libraries:dev:standard
30                         krb5:dev:standard
31 BUILDRUN_DEPENDS=       boost-libraries:primary:standard
32                         snappy:primary:standard
33                         msgpack:primary:standard
34                         judy:primary:standard
35                         krb5:primary:standard
36 B_DEPS[netbsd]=         openpam:dev:standard
37 BR_DEPS[netbsd]=        openpam:primary:standard
38
39 USERS=                  mysql
40 GROUPS=                 mysql
41 USERGROUP_SPKG=         server
42
43 USES=                   cmake zlib readline ncurses shebangfix cpe
44                         python:build perl:build pkgconfig iconv:translit
45                         zstd lz4 lzo bz2 execinfo ssl:openssl11
46 GNOME_COMPONENTS=       libxml2
47
48 DISTNAME=               mariadb-10.4.33
49
50 LICENSE=                GPLv2:server
51 LICENSE_TERMS=          server:{{WRKDIR}}/TERMS
52 LICENSE_FILE=           GPLv2:{{WRKSRC}}/COPYING
53 LICENSE_AWK=            TERMS:"^\#include"
54 LICENSE_SOURCE=         TERMS:{{WRKSRC}}/libmysqld/libmysqld.c
55 LICENSE_SCHEME=         solo
56
57 CPE_PRODUCT=            mariadb
58 CPE_VENDOR=             mariadb
59 SHEBANG_FILES=          scripts/*.sh
60
61 INSTALL_REQ_TOOLCHAIN=  yes
62 PLIST_SUB=              AUTHSOCKET={{AUTHSOCKET}}
63                         PAM={{PAM:U"@comment "}}
64
65 CMAKE_ARGS=             -DCOMPILATION_COMMENT="Ravenports"
66                         -DINSTALL_INCLUDEDIR=include/mysql
67                         -DINSTALL_PLUGINDIR=lib/mysql/plugin
68                         -DINSTALL_SHAREDIR=share
69                         -DINSTALL_SUPPORTFILESDIR=share/mysql
70                         -DINSTALL_MYSQLSHAREDIR=share/mysql
71                         -DINSTALL_DOCREADMEDIR=share/doc/mariadb104
72                         -DINSTALL_DOCDIR=share/doc/mariadb104
73                         -DINSTALL_LIBDIR=lib/mysql
74                         -DINSTALL_MANDIR=share/man
75                         -DINSTALL_SCRIPTDIR=bin
76                         -DINSTALL_MYSQLTESTDIR=
77                         -DINSTALL_SQLBENCHDIR=
78                         -DDEFAULT_CHARSET=utf8mb4
79                         -DDEFAULT_COLLATION=utf8mb4_unicode_ci
80                         -DDEFAULT_SYSCONFDIR="{{PREFIX}}/etc"
81                         -DENABLED_LOCAL_INFILE=ON
82                         -DPLUGIN_EXAMPLE=NO
83                         -DPLUGIN_FEEDBACK=NO
84                         -DPLUGIN_TOKUDB=NO
85                         -DWITH_EMBEDDED_SERVER=ON
86                         -DWITH_EXTRA_CHARSETS=complex
87                         -DWITH_JEMALLOC=NO
88                         -DWITH_SYSTEMD=no
89                         -DWITH_LIBWRAP=OFF
90                         -DWITH_UNIT_TESTS=OFF
91                         -DWITH_READLINE=system
92                         -DWITH_SSL="{{OPENSSLBASE}}"
93                         -DWITH_ZLIB=system
94                         -DWITH_PCRE=bundled
95                         -Wno-dev
96 VAR_OPSYS[freebsd]=     CXXFLAGS=-DHAVE_POSIX_MEMALIGN=1
97 VAR_OPSYS[netbsd]=      MAKEFILE_LINE=AUTHSOCKET="@comment "
98                         MAKEFILE_LINE=PAM=
99
100 [ROCKSDB].DESCRIPTION=                  Build RocksDB LSM Engine
101 [ROCKSDB].CMAKE_ARGS_OFF=               -DPLUGIN_ROCKSDB=NO
102 [ROCKSDB].CMAKE_ARGS_ON=                -DPLUGIN_ROCKSDB=DYNAMIC
103
104 post-patch:
105         ${CP} ${WRKSRC}/cmake/os/FreeBSD.cmake \
106                 ${WRKSRC}/cmake/os/DragonFly.cmake
107
108 post-install:
109         ${RM} ${STAGEDIR}${STD_DOCDIR}/COPYING
110         ${MV} ${STAGEDIR}${PREFIX}/lib/mysql/pkgconfig/mariadb.pc \
111                 ${STAGEDIR}${PREFIX}/lib/pkgconfig/
112         ${RMDIR} ${STAGEDIR}${PREFIX}/lib/mysql/pkgconfig
113         # strip plugins and libraries
114         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/mysql/libmariadb.so
115         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/mysql/libmariadbd.so
116         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/mysql/*/*.so
117         # strip binaries
118         @flist=$$(${FIND} ${STAGEDIR}${PREFIX}/bin -type f -perm /111 -print) ;\
119         for f in $$flist; do \
120                 (${FILE} $$f | ${GREP} -Fq ", not stripped")\
121                 && ${ECHO_CMD} "Auto-stripping $$f"\
122                 && ${STRIP_CMD} $$f || ${TRUE} ;\
123         done
124         # if pam config file exists, set it as a sample
125         # remove testsuite files too
126         if [ -f "${STAGEDIR}${PREFIX}/etc/mariadb/user_map.conf" ]; then \
127                 (cd ${STAGEDIR}${PREFIX}/etc/mariadb && \
128                 ${MV} user_map.conf user_map.conf.sample) ;\
129                 ${RM} -r ${STAGEDIR}/suite ;\
130         fi
131
132 pre-configure:
133         ${REINPLACE_CMD} 's|/usr/bin/env python|${PYTHON_CMD}|' \
134                 ${WRKSRC}/CMakeLists.txt
135         ${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|g' \
136                 ${WRKSRC}/mysys/my_default.c
137         ${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|g' \
138                 ${WRKSRC}/scripts/mysql_config.sh \
139                 ${WRKSRC}/scripts/CMakeLists.txt
140
141 post-configure:
142         ${REINPLACE_CMD} -Ee 's|(#define INCLUDE.*)"$$|\1 -I${PREFIX}/include"|' \
143                 -e 's|(#define LIBS .*)"$$|\1 -L${PREFIX}/lib"|' \
144                 ${BUILD_WRKSRC}/libmariadb/mariadb_config/mariadb_config.c
145         # Fix build failure in mbstream, see https://jira.mariadb.org/browse/MDEV-14072
146         ${REINPLACE_CMD} -e 's| ${PREFIX}/lib/liblz4.so\(.* ${PREFIX}/lib/liblz4.so.*\)|\1|' \
147                 -e 's| ${PREFIX}/lib/liblzo2.so\(.* ${PREFIX}/lib/liblzo2.so.*\)|\1|' \
148                 -e 's| ${PREFIX}/lib/libsnappy.so\(.* ${PREFIX}/lib/libsnappy.so\)|\1|' \
149                 -e 's| -llzma\(.* -llzma\)|\1|;s| -lbz2\(.* -lbz2\)|\1|;' \
150                 ${BUILD_WRKSRC}/extra/mariabackup/CMakeFiles/mbstream.dir/link.txt
151
152 [FILE:807:descriptions/desc.server]
153 MariaDB Server is one of the most popular database servers in the world.
154 It's made by the original developers of MySQL and guaranteed to stay open
155 source. Notable users include Wikipedia, WordPress.com and Google.
156
157 MariaDB turns data into structured information in a wide array of
158 applications, ranging from banking to websites. It is an enhanced, drop-in
159 replacement for MySQL. MariaDB is used because it is fast, scalable and
160 robust, with a rich ecosystem of storage engines, plugins and many other
161 tools make it very versatile for a wide variety of use cases.
162
163 MariaDB is developed as open source software and as a relational database
164 it provides an SQL interface for accessing data. The latest versions of
165 MariaDB also include GIS and JSON features.
166
167 This package contains the server and related files.
168
169
170 [FILE:267:descriptions/desc.client]
171 MariaDB Server is one of the most popular database servers in the world.
172 It's made by the original developers of MySQL and guaranteed to stay open
173 source. Notable users include Wikipedia, WordPress.com and Google.
174
175 This package contains the client and related files.
176
177
178 [FILE:101:distinfo]
179 6da4eb835ee2c2299f59f81d4b24a9a1524d25da6cc156c8d1b9f2faba593081     98404502 mariadb-10.4.33.tar.gz
180
181
182 [FILE:3967:manifests/plist.server]
183 %%ONLY-LINUX%%lib/mysql/plugin/disks.so
184 %%PAM%%@sample etc/mariadb/user_map.conf.sample
185 %%PAM%%lib/mysql/plugin/
186  auth_pam.so
187  auth_pam_v1.so
188 %%PAM%%lib/mysql/plugin/auth_pam_tool_dir/auth_pam_tool
189 %%PAM%%lib/mysql/security/pam_user_map.so
190 %%ROCKSDB-ON%%bin/
191  mariadb-ldb
192  myrocks_hotbackup
193  mysql_ldb
194  sst_dump
195 %%ROCKSDB-ON%%lib/mysql/plugin/ha_rocksdb.so
196 bin/
197  aria_chk
198  aria_dump_log
199  aria_ftdump
200  aria_pack
201  aria_read_log
202  innochecksum
203  mariabackup
204  mariadb-backup
205  mariadb-client-test
206  mariadb-client-test-embedded
207  mariadb-dumpslow
208  mariadb-embedded
209  mariadb-fix-extensions
210  mariadb-install-db
211  mariadb-secure-installation
212  mariadb-test
213  mariadb-test-embedded
214  mariadb-tzinfo-to-sql
215  mariadb-upgrade
216  mariadb-waitpid
217  mariadbd
218  mariadbd-multi
219  mariadbd-safe
220  mariadbd-safe-helper
221  mbstream
222  my_print_defaults
223  myisam_ftdump
224  myisamchk
225  myisamlog
226  myisampack
227  mysql_client_test
228  mysql_client_test_embedded
229  mysql_embedded
230  mysql_fix_extensions
231  mysql_install_db
232  mysql_plugin
233  mysql_secure_installation
234  mysql_tzinfo_to_sql
235  mysql_upgrade
236  mysql_waitpid
237  mysqld
238  mysqld_multi
239  mysqld_safe
240  mysqld_safe_helper
241  mysqldumpslow
242  mysqltest
243  mysqltest_embedded
244  perror
245  resolve_stack_dump
246  resolveip
247  test-connect-t
248  wsrep_sst_backup
249  wsrep_sst_common
250  wsrep_sst_mariabackup
251  wsrep_sst_mysqldump
252  wsrep_sst_rsync
253  wsrep_sst_rsync_wan
254 lib/mysql/
255  libmariadbd.a
256  libmariadbd.so
257  libmariadbd.so.19
258  libmysqld.a
259  libmysqld.so
260 lib/mysql/plugin/
261  adt_null.so
262  auth_0x0100.so
263  auth_ed25519.so
264  auth_gssapi.so
265  auth_gssapi_client.so
266  auth_test_plugin.so
267  caching_sha2_password.so
268  debug_key_management.so
269  dialog_examples.so
270  disks.so
271  example_key_management.so
272  file_key_management.so
273  ha_archive.so
274  ha_blackhole.so
275  ha_connect.so
276  ha_federated.so
277  ha_federatedx.so
278  ha_mroonga.so
279  ha_oqgraph.so
280  ha_sphinx.so
281  ha_spider.so
282  ha_test_sql_discovery.so
283  handlersocket.so
284  libdaemon_example.so
285  locales.so
286  metadata_lock_info.so
287  mypluglib.so
288  qa_auth_client.so
289  qa_auth_interface.so
290  qa_auth_server.so
291  query_cache_info.so
292  query_response_time.so
293  server_audit.so
294  simple_password_check.so
295  sql_errlog.so
296  test_sql_service.so
297  test_versioning.so
298  wsrep_info.so
299 share/groonga/
300  COPYING
301  README.md
302 share/groonga-normalizer-mysql/
303  README.md
304  lgpl-2.0.txt
305 share/mysql/
306  binary-configure
307  errmsg-utf8.txt
308  fill_help_tables.sql
309  install_spider.sql
310  magic
311  maria_add_gis_sp.sql
312  maria_add_gis_sp_bootstrap.sql
313  mysql-log-rotate
314  mysql.server
315  mysql_performance_tables.sql
316  mysql_system_tables.sql
317  mysql_system_tables_data.sql
318  mysql_test_data_timezone.sql
319  mysql_test_db.sql
320  mysqld_multi.server
321  wsrep.cnf
322  wsrep_notify
323 share/mysql/bulgarian/errmsg.sys
324 share/mysql/charsets/
325  Index.xml
326  README
327  armscii8.xml
328  ascii.xml
329  cp1250.xml
330  cp1251.xml
331  cp1256.xml
332  cp1257.xml
333  cp850.xml
334  cp852.xml
335  cp866.xml
336  dec8.xml
337  geostd8.xml
338  greek.xml
339  hebrew.xml
340  hp8.xml
341  keybcs2.xml
342  koi8r.xml
343  koi8u.xml
344  latin1.xml
345  latin2.xml
346  latin5.xml
347  latin7.xml
348  macce.xml
349  macroman.xml
350  swe7.xml
351 share/mysql/chinese/errmsg.sys
352 share/mysql/czech/errmsg.sys
353 share/mysql/danish/errmsg.sys
354 share/mysql/dutch/errmsg.sys
355 share/mysql/english/errmsg.sys
356 share/mysql/estonian/errmsg.sys
357 share/mysql/french/errmsg.sys
358 share/mysql/german/errmsg.sys
359 share/mysql/greek/errmsg.sys
360 share/mysql/hindi/errmsg.sys
361 share/mysql/hungarian/errmsg.sys
362 share/mysql/italian/errmsg.sys
363 share/mysql/japanese/errmsg.sys
364 share/mysql/korean/errmsg.sys
365 share/mysql/mroonga/
366  AUTHORS
367  COPYING
368  install.sql
369  uninstall.sql
370 share/mysql/norwegian/errmsg.sys
371 share/mysql/norwegian-ny/errmsg.sys
372 share/mysql/policy/apparmor/
373  README
374  usr.sbin.mysqld
375  usr.sbin.mysqld.local
376 share/mysql/policy/selinux/
377  README
378  mariadb-server.fc
379  mariadb-server.te
380  mariadb.te
381 share/mysql/polish/errmsg.sys
382 share/mysql/portuguese/errmsg.sys
383 share/mysql/romanian/errmsg.sys
384 share/mysql/russian/errmsg.sys
385 share/mysql/serbian/errmsg.sys
386 share/mysql/slovak/errmsg.sys
387 share/mysql/spanish/errmsg.sys
388 share/mysql/swedish/errmsg.sys
389 share/mysql/ukrainian/errmsg.sys
390
391
392 [FILE:661:manifests/plist.client]
393 bin/
394  mariadb
395  mariadb-access
396  mariadb-admin
397  mariadb-binlog
398  mariadb-check
399  mariadb-convert-table-format
400  mariadb-dump
401  mariadb-find-rows
402  mariadb-hotcopy
403  mariadb-import
404  mariadb-plugin
405  mariadb-setpermission
406  mariadb-show
407  mariadb-slap
408  mariadb_config
409  msql2mysql
410  mysql
411  mysql_config
412  mysql_convert_table_format
413  mysql_find_rows
414  mysql_setpermission
415  mysqlaccess
416  mysqladmin
417  mysqlbinlog
418  mysqlcheck
419  mysqldump
420  mysqlhotcopy
421  mysqlimport
422  mysqlshow
423  mysqlslap
424  mytop
425  replace
426 lib/mysql/
427  libmariadb.so.3
428  libmysqlclient.so
429  libmysqlclient_r.so
430 lib/mysql/plugin/
431  client_ed25519.so
432  daemon_example.ini
433  dialog.so
434  mysql_clear_password.so
435  sha256_password.so
436
437
438 [FILE:6576:manifests/plist.dev]
439 include/mysql/
440  errmsg.h
441  ma_list.h
442  ma_pvio.h
443  ma_tls.h
444  mariadb_com.h
445  mariadb_ctype.h
446  mariadb_dyncol.h
447  mariadb_rpl.h
448  mariadb_stmt.h
449  mariadb_version.h
450  my_config.h
451  my_global.h
452  my_sys.h
453  mysql.h
454  mysql_com.h
455  mysql_version.h
456  mysqld_error.h
457 include/mysql/mariadb/ma_io.h
458 include/mysql/mysql/
459  client_plugin.h
460  plugin_auth.h
461  plugin_auth_common.h
462 include/mysql/server/
463  big_endian.h
464  byte_order_generic.h
465  byte_order_generic_x86.h
466  byte_order_generic_x86_64.h
467  decimal.h
468  errmsg.h
469  handler_ername.h
470  handler_state.h
471  json_lib.h
472  keycache.h
473  little_endian.h
474  m_ctype.h
475  m_string.h
476  ma_dyncol.h
477  mariadb_capi_rename.h
478  my_alloc.h
479  my_alloca.h
480  my_attribute.h
481  my_byteorder.h
482  my_compiler.h
483  my_config.h
484  my_dbug.h
485  my_decimal_limits.h
486  my_dir.h
487  my_getopt.h
488  my_global.h
489  my_list.h
490  my_net.h
491  my_pthread.h
492  my_sys.h
493  my_valgrind.h
494  my_xml.h
495  mysql.h
496  mysql_com.h
497  mysql_com_server.h
498  mysql_embed.h
499  mysql_time.h
500  mysql_version.h
501  mysqld_ername.h
502  mysqld_error.h
503  pack.h
504  sql_common.h
505  sql_state.h
506  sslopt-case.h
507  sslopt-longopts.h
508  sslopt-vars.h
509  typelib.h
510 include/mysql/server/mysql/
511  auth_dialog_client.h
512  client_plugin.h
513  plugin.h
514  plugin_audit.h
515  plugin_auth.h
516  plugin_auth_common.h
517  plugin_encryption.h
518  plugin_ftparser.h
519  plugin_password_validation.h
520  service_base64.h
521  service_debug_sync.h
522  service_encryption.h
523  service_encryption_scheme.h
524  service_json.h
525  service_kill_statement.h
526  service_logger.h
527  service_md5.h
528  service_my_crypt.h
529  service_my_print_error.h
530  service_my_snprintf.h
531  service_progress_report.h
532  service_sha1.h
533  service_sha2.h
534  service_sql.h
535  service_thd_alloc.h
536  service_thd_autoinc.h
537  service_thd_error_context.h
538  service_thd_rnd.h
539  service_thd_specifics.h
540  service_thd_timezone.h
541  service_thd_wait.h
542  service_wsrep.h
543  services.h
544 include/mysql/server/mysql/psi/
545  mysql_file.h
546  mysql_idle.h
547  mysql_socket.h
548  mysql_stage.h
549  mysql_statement.h
550  mysql_table.h
551  mysql_thread.h
552  psi.h
553  psi_abi_v0.h
554  psi_abi_v1.h
555  psi_abi_v2.h
556  psi_base.h
557  psi_memory.h
558 include/mysql/server/private/
559  aria_backup.h
560  authors.h
561  backup.h
562  bounded_queue.h
563  client_settings.h
564  compat56.h
565  config.h
566  contributors.h
567  create_options.h
568  custom_conf.h
569  datadict.h
570  debug_sync.h
571  derived_handler.h
572  derror.h
573  des_key_file.h
574  discover.h
575  dur_prop.h
576  embedded_priv.h
577  event_data_objects.h
578  event_db_repository.h
579  event_parse_data.h
580  event_queue.h
581  event_scheduler.h
582  events.h
583  field.h
584  field_comp.h
585  filesort.h
586  filesort_utils.h
587  ft_global.h
588  gcalc_slicescan.h
589  gcalc_tools.h
590  group_by_handler.h
591  gstream.h
592  ha_partition.h
593  ha_sequence.h
594  handle_connections_win.h
595  handler.h
596  hash.h
597  hash_filo.h
598  heap.h
599  hostname.h
600  ilist.h
601  init.h
602  innodb_priv.h
603  item.h
604  item_cmpfunc.h
605  item_create.h
606  item_func.h
607  item_geofunc.h
608  item_inetfunc.h
609  item_jsonfunc.h
610  item_row.h
611  item_strfunc.h
612  item_subselect.h
613  item_sum.h
614  item_timefunc.h
615  item_vers.h
616  item_windowfunc.h
617  item_xmlfunc.h
618  key.h
619  keycaches.h
620  lex.h
621  lex_string.h
622  lex_symbol.h
623  lf.h
624  lock.h
625  log.h
626  log_event.h
627  log_event_old.h
628  log_slow.h
629  maria.h
630  mariadb.h
631  mdl.h
632  mem_root_array.h
633  message.h
634  multi_range_read.h
635  my_alarm.h
636  my_apc.h
637  my_atomic.h
638  my_atomic_wrapper.h
639  my_base.h
640  my_bit.h
641  my_bitmap.h
642  my_check_opt.h
643  my_compare.h
644  my_context.h
645  my_counter.h
646  my_cpu.h
647  my_crypt.h
648  my_decimal.h
649  my_default.h
650  my_handler_errors.h
651  my_json_writer.h
652  my_libwrap.h
653  my_md5.h
654  my_minidump.h
655  my_nosys.h
656  my_rdtsc.h
657  my_rnd.h
658  my_service_manager.h
659  my_stacktrace.h
660  my_time.h
661  my_tree.h
662  my_uctype.h
663  my_user.h
664  myisam.h
665  myisamchk.h
666  myisammrg.h
667  myisampack.h
668  mysql_async.h
669  mysqld.h
670  mysqld_default_groups.h
671  mysqld_suffix.h
672  mysys_err.h
673  nt_servc.h
674  opt_range.h
675  opt_subselect.h
676  opt_trace.h
677  opt_trace_context.h
678  parse_file.h
679  partition_element.h
680  partition_info.h
681  password.h
682  pcre.h
683  probes_mysql.h
684  probes_mysql_nodtrace.h
685  procedure.h
686  protocol.h
687  proxy_protocol.h
688  queues.h
689  records.h
690  repl_failsafe.h
691  replication.h
692  rijndael.h
693  rowid_filter.h
694  rpl_constants.h
695  rpl_filter.h
696  rpl_gtid.h
697  rpl_injector.h
698  rpl_mi.h
699  rpl_parallel.h
700  rpl_record.h
701  rpl_record_old.h
702  rpl_reporting.h
703  rpl_rli.h
704  rpl_tblmap.h
705  rpl_utility.h
706  scheduler.h
707  scope.h
708  select_handler.h
709  semisync.h
710  semisync_master.h
711  semisync_master_ack_receiver.h
712  semisync_slave.h
713  service_versions.h
714  session_tracker.h
715  set_var.h
716  slave.h
717  source_revision.h
718  sp.h
719  sp_cache.h
720  sp_head.h
721  sp_pcontext.h
722  sp_rcontext.h
723  span.h
724  spatial.h
725  sql_acl.h
726  sql_admin.h
727  sql_alloc.h
728  sql_alter.h
729  sql_analyse.h
730  sql_analyze_stmt.h
731  sql_array.h
732  sql_audit.h
733  sql_base.h
734  sql_basic_types.h
735  sql_binlog.h
736  sql_bitmap.h
737  sql_bootstrap.h
738  sql_cache.h
739  sql_callback.h
740  sql_class.h
741  sql_cmd.h
742  sql_connect.h
743  sql_const.h
744  sql_crypt.h
745  sql_cte.h
746  sql_cursor.h
747  sql_db.h
748  sql_debug.h
749  sql_delete.h
750  sql_derived.h
751  sql_digest.h
752  sql_digest_stream.h
753  sql_do.h
754  sql_error.h
755  sql_explain.h
756  sql_expression_cache.h
757  sql_get_diagnostics.h
758  sql_handler.h
759  sql_help.h
760  sql_hset.h
761  sql_insert.h
762  sql_join_cache.h
763  sql_lex.h
764  sql_lifo_buffer.h
765  sql_list.h
766  sql_load.h
767  sql_locale.h
768  sql_manager.h
769  sql_mode.h
770  sql_parse.h
771  sql_partition.h
772  sql_partition_admin.h
773  sql_plist.h
774  sql_plugin.h
775  sql_plugin_compat.h
776  sql_prepare.h
777  sql_priv.h
778  sql_profile.h
779  sql_reload.h
780  sql_rename.h
781  sql_repl.h
782  sql_schema.h
783  sql_select.h
784  sql_sequence.h
785  sql_servers.h
786  sql_show.h
787  sql_signal.h
788  sql_sort.h
789  sql_statistics.h
790  sql_string.h
791  sql_table.h
792  sql_tablespace.h
793  sql_test.h
794  sql_time.h
795  sql_trigger.h
796  sql_truncate.h
797  sql_tvc.h
798  sql_type.h
799  sql_type_int.h
800  sql_type_json.h
801  sql_type_real.h
802  sql_udf.h
803  sql_union.h
804  sql_update.h
805  sql_view.h
806  sql_window.h
807  ssl_compat.h
808  strfunc.h
809  structs.h
810  sys_vars_shared.h
811  t_ctype.h
812  table.h
813  table_cache.h
814  thr_alarm.h
815  thr_lock.h
816  thr_malloc.h
817  thr_timer.h
818  thread_pool_priv.h
819  threadpool.h
820  transaction.h
821  tzfile.h
822  tztime.h
823  uniques.h
824  unireg.h
825  vers_string.h
826  vers_utils.h
827  violite.h
828  waiting_threads.h
829  welcome_copyright_notice.h
830  win_tzname_data.h
831  winservice.h
832  wqueue.h
833  wsrep.h
834  wsrep_applier.h
835  wsrep_binlog.h
836  wsrep_client_service.h
837  wsrep_client_state.h
838  wsrep_condition_variable.h
839  wsrep_high_priority_service.h
840  wsrep_mutex.h
841  wsrep_mysqld.h
842  wsrep_mysqld_c.h
843  wsrep_on.h
844  wsrep_priv.h
845  wsrep_schema.h
846  wsrep_server_service.h
847  wsrep_server_state.h
848  wsrep_sst.h
849  wsrep_storage_service.h
850  wsrep_thd.h
851  wsrep_trans_observer.h
852  wsrep_types.h
853  wsrep_utils.h
854  wsrep_var.h
855  wsrep_xid.h
856  xa.h
857 include/mysql/server/private/atomic/
858  gcc_builtins.h
859  generic-msvc.h
860  solaris.h
861 lib/mysql/
862  libmariadb.a
863  libmariadb.so
864  libmariadbclient.a
865  libmysqlclient.a
866  libmysqlclient_r.a
867  libmysqlservices.a
868 lib/pkgconfig/
869  libmariadb.pc
870  mariadb.pc
871 share/aclocal/mysql.m4
872
873
874 [FILE:2049:manifests/plist.man]
875 share/man/man1/
876  aria_chk.1.gz
877  aria_dump_log.1.gz
878  aria_ftdump.1.gz
879  aria_pack.1.gz
880  aria_read_log.1.gz
881  galera_new_cluster.1.gz
882  galera_recovery.1.gz
883  innochecksum.1.gz
884  mariabackup.1.gz
885  mariadb-access.1.gz
886  mariadb-admin.1.gz
887  mariadb-backup.1.gz
888  mariadb-binlog.1.gz
889  mariadb-check.1.gz
890  mariadb-client-test-embedded.1.gz
891  mariadb-client-test.1.gz
892  mariadb-convert-table-format.1.gz
893  mariadb-dump.1.gz
894  mariadb-dumpslow.1.gz
895  mariadb-embedded.1.gz
896  mariadb-find-rows.1.gz
897  mariadb-fix-extensions.1.gz
898  mariadb-hotcopy.1.gz
899  mariadb-import.1.gz
900  mariadb-install-db.1.gz
901  mariadb-ldb.1.gz
902  mariadb-plugin.1.gz
903  mariadb-secure-installation.1.gz
904  mariadb-service-convert.1.gz
905  mariadb-setpermission.1.gz
906  mariadb-show.1.gz
907  mariadb-slap.1.gz
908  mariadb-test-embedded.1.gz
909  mariadb-test.1.gz
910  mariadb-tzinfo-to-sql.1.gz
911  mariadb-upgrade.1.gz
912  mariadb-waitpid.1.gz
913  mariadb.1.gz
914  mariadbd-multi.1.gz
915  mariadbd-safe-helper.1.gz
916  mariadbd-safe.1.gz
917  mbstream.1.gz
918  msql2mysql.1.gz
919  my_print_defaults.1.gz
920  my_safe_process.1.gz
921  myisam_ftdump.1.gz
922  myisamchk.1.gz
923  myisamlog.1.gz
924  myisampack.1.gz
925  mysql-stress-test.pl.1.gz
926  mysql-test-run.pl.1.gz
927  mysql.1.gz
928  mysql.server.1.gz
929  mysql_client_test.1.gz
930  mysql_client_test_embedded.1.gz
931  mysql_config.1.gz
932  mysql_convert_table_format.1.gz
933  mysql_embedded.1.gz
934  mysql_find_rows.1.gz
935  mysql_fix_extensions.1.gz
936  mysql_install_db.1.gz
937  mysql_ldb.1.gz
938  mysql_plugin.1.gz
939  mysql_secure_installation.1.gz
940  mysql_setpermission.1.gz
941  mysql_tzinfo_to_sql.1.gz
942  mysql_upgrade.1.gz
943  mysql_waitpid.1.gz
944  mysqlaccess.1.gz
945  mysqladmin.1.gz
946  mysqlbinlog.1.gz
947  mysqlcheck.1.gz
948  mysqld_multi.1.gz
949  mysqld_safe.1.gz
950  mysqld_safe_helper.1.gz
951  mysqldump.1.gz
952  mysqldumpslow.1.gz
953  mysqlhotcopy.1.gz
954  mysqlimport.1.gz
955  mysqlshow.1.gz
956  mysqlslap.1.gz
957  mysqltest.1.gz
958  mysqltest_embedded.1.gz
959  perror.1.gz
960  replace.1.gz
961  resolve_stack_dump.1.gz
962  resolveip.1.gz
963  wsrep_sst_common.1.gz
964  wsrep_sst_mariabackup.1.gz
965  wsrep_sst_mysqldump.1.gz
966  wsrep_sst_rsync.1.gz
967  wsrep_sst_rsync_wan.1.gz
968 share/man/man8/
969  mariadbd.8.gz
970  mysqld.8.gz
971
972
973 [FILE:84:manifests/plist.docs]
974 share/doc/mariadb104/
975  CREDITS
976  INSTALL-BINARY
977  README-wsrep
978  README.md
979  THIRDPARTY
980
981
982 [FILE:328:patches/patch-MDEV-20248]
983 --- storage/rocksdb/rocksdb/port/jemalloc_helper.h.orig 2023-10-30 12:36:23 UTC
984 +++ storage/rocksdb/rocksdb/port/jemalloc_helper.h
985 @@ -26,6 +26,10 @@
986  #include <jemalloc/jemalloc.h>
987  #endif
988  
989 +#ifdef __FreeBSD__
990 +#define JEMALLOC_USABLE_SIZE_CONST const
991 +#endif
992 +
993  #ifndef JEMALLOC_CXX_THROW
994  #define JEMALLOC_CXX_THROW
995  #endif
996
997
998 [FILE:572:patches/patch-client_mysql.cc]
999 --- client/mysql.cc.orig        2023-10-30 12:36:19 UTC
1000 +++ client/mysql.cc
1001 @@ -61,8 +61,8 @@ static char *server_version= NULL;
1002  
1003  extern "C" {
1004  #if defined(HAVE_CURSES_H) && defined(HAVE_TERM_H)
1005 -#include <curses.h>
1006 -#include <term.h>
1007 +#include <ncurses/curses.h>
1008 +#include <ncurses/term.h>
1009  #else
1010  #if defined(HAVE_TERMIOS_H)
1011  #include <termios.h>
1012 @@ -81,7 +81,7 @@ extern "C" {
1013  #endif
1014  #undef SYSV                            // hack to avoid syntax error
1015  #ifdef HAVE_TERM_H
1016 -#include <term.h>
1017 +#include <ncurses/term.h>
1018  #endif
1019  #endif
1020  #endif /* defined(HAVE_CURSES_H) && defined(HAVE_TERM_H) */
1021
1022
1023 [FILE:500:patches/patch-cmake_install__layout.cmake]
1024 --- cmake/install_layout.cmake.orig     2023-10-30 12:36:19 UTC
1025 +++ cmake/install_layout.cmake
1026 @@ -128,8 +128,8 @@ SET(INSTALL_SUPPORTFILESDIR_STANDALONE
1027  SET(INSTALL_MYSQLDATADIR_STANDALONE     "data")
1028  
1029  SET(INSTALL_UNIX_ADDRDIR_STANDALONE     "/tmp/mysql.sock")
1030 -SET(INSTALL_PAMDIR_STANDALONE           "share")
1031 -SET(INSTALL_PAMDATADIR_STANDALONE       "share")
1032 +SET(INSTALL_PAMDIR_STANDALONE           "lib/mysql/security")
1033 +SET(INSTALL_PAMDATADIR_STANDALONE       "etc/mariadb")
1034  #
1035  # RPM layout
1036  #
1037
1038
1039 [FILE:1968:patches/patch-cmake_readline.cmake]
1040 --- cmake/readline.cmake.orig   2023-10-30 12:36:19 UTC
1041 +++ cmake/readline.cmake
1042 @@ -52,40 +52,17 @@ MACRO (MYSQL_CHECK_MULTIBYTE)
1043  ENDMACRO()
1044  
1045  MACRO (FIND_CURSES)
1046 + SET(CURSES_NEED_NCURSES True)
1047   FIND_PACKAGE(Curses REQUIRED)
1048   MARK_AS_ADVANCED(CURSES_CURSES_H_PATH CURSES_FORM_LIBRARY CURSES_HAVE_CURSES_H)
1049   IF(NOT CURSES_FOUND)
1050     SET(ERRORMSG "Curses library not found. Please install appropriate package,
1051      remove CMakeCache.txt and rerun cmake.")
1052 -   IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
1053 -    SET(ERRORMSG ${ERRORMSG} 
1054 -    "On Debian/Ubuntu, package name is libncurses5-dev, on Redhat and derivatives " 
1055 -    "it is ncurses-devel.")
1056 -   ENDIF()
1057     MESSAGE(FATAL_ERROR ${ERRORMSG})
1058   ENDIF()
1059  
1060 - IF(CURSES_HAVE_CURSES_H)
1061 -   SET(HAVE_CURSES_H 1 CACHE INTERNAL "")
1062 - ENDIF()
1063 - IF(CMAKE_SYSTEM_NAME MATCHES "HP")
1064 -   # CMake uses full path to library /lib/libcurses.sl 
1065 -   # On Itanium, it results into architecture mismatch+
1066 -   # the library is for  PA-RISC
1067 -   SET(CURSES_LIBRARY "curses" CACHE INTERNAL "" FORCE)
1068 - ENDIF()
1069 + SET(HAVE_CURSES_H 1 CACHE INTERNAL "")
1070  
1071 - IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
1072 -   # -Wl,--as-needed breaks linking with -lcurses, e.g on Fedora 
1073 -   # Lower-level libcurses calls are exposed by libtinfo
1074 -   CHECK_LIBRARY_EXISTS(${CURSES_LIBRARY} tputs "" HAVE_TPUTS_IN_CURSES)
1075 -   IF(NOT HAVE_TPUTS_IN_CURSES)
1076 -     CHECK_LIBRARY_EXISTS(tinfo tputs "" HAVE_TPUTS_IN_TINFO)
1077 -     IF(HAVE_TPUTS_IN_TINFO)
1078 -       SET(CURSES_LIBRARY tinfo)
1079 -     ENDIF()
1080 -   ENDIF() 
1081 - ENDIF()
1082   CHECK_LIBRARY_EXISTS(${CURSES_LIBRARY} setupterm "" HAVE_SETUPTERM)
1083   CHECK_LIBRARY_EXISTS(${CURSES_LIBRARY} vidattr "" HAVE_VIDATTR)
1084  ENDMACRO()
1085 @@ -220,6 +197,8 @@ MACRO (MYSQL_CHECK_READLINE)
1086      SET(CMAKE_REQUIRED_LIBRARIES)
1087      SET(CMAKE_REQUIRED_INCLUDES)
1088    ENDIF(NOT WIN32)
1089 +  SET(CMAKE_REQUIRED_INCLUDES ${CURSES_INCLUDE_DIR}/ncurses)
1090    CHECK_INCLUDE_FILES ("curses.h;term.h" HAVE_TERM_H)
1091 +  SET(CMAKE_REQUIRED_INCLUDES)
1092  ENDMACRO()
1093  
1094
1095
1096 [FILE:349:patches/patch-extra_readline_CMakeLists.txt]
1097 --- extra/readline/CMakeLists.txt.orig  2023-10-30 12:36:19 UTC
1098 +++ extra/readline/CMakeLists.txt
1099 @@ -56,4 +56,4 @@ ADD_LIBRARY(readline STATIC
1100  
1101  # Declare dependency
1102  # so every executable that links with readline links with curses as well
1103 -TARGET_LINK_LIBRARIES(readline ${CURSES_LIBRARY})
1104 +TARGET_LINK_LIBRARIES(readline ${CURSES_LIBRARY} tinfo)
1105
1106
1107 [FILE:1692:patches/patch-mysys_my__default.c]
1108 --- mysys/my_default.c.orig     2023-10-30 12:36:20 UTC
1109 +++ mysys/my_default.c
1110 @@ -784,7 +784,7 @@ static int search_default_file_with_ext(
1111    {
1112      MY_STAT stat_info;
1113      if (!my_stat(name,&stat_info,MYF(0)))
1114 -      return 1;
1115 +      return 0;
1116      /*
1117        Ignore world-writable regular files (exceptions apply).
1118        This is mainly done to protect us to not read a file that may be
1119 @@ -817,6 +817,14 @@ static int search_default_file_with_ext(
1120    if (!(fp= mysql_file_fopen(key_file_cnf, name, O_RDONLY, MYF(0))))
1121      return 1;                                  /* Ignore wrong files */
1122  
1123 +  if (strstr(name, "/etc") == name)
1124 +  {
1125 +    fprintf(stderr,
1126 +             "error: Config file %s in invalid location, please move to or merge with %%PREFIX%%%s\n",
1127 +             name,name);
1128 +      goto err;
1129 +  }
1130 +
1131    while (mysql_file_fgets(buff, sizeof(buff) - 1, fp))
1132    {
1133      line++;
1134 @@ -1091,7 +1099,8 @@ void my_print_default_files(const char *
1135            if (name[0] == FN_HOMELIB)   /* Add . to filenames in home */
1136              *end++= '.';
1137            strxmov(end, conf_file, *ext, " ", NullS);
1138 -          fputs(name, stdout);
1139 +          if (strstr(name, "/etc") != name)
1140 +            fputs(name, stdout);
1141          }
1142        }
1143      }
1144 @@ -1218,13 +1227,10 @@ static const char **init_default_directo
1145  
1146  #else
1147  
1148 -#if defined(DEFAULT_SYSCONFDIR)
1149 -  if (DEFAULT_SYSCONFDIR[0])
1150 -    errors += add_directory(alloc, DEFAULT_SYSCONFDIR, dirs);
1151 -#else
1152    errors += add_directory(alloc, "/etc/", dirs);
1153    errors += add_directory(alloc, "/etc/mysql/", dirs);
1154 -#endif /* DEFAULT_SYSCONFDIR */
1155 +  errors += add_directory(alloc, "%%PREFIX%%/etc/", dirs);
1156 +  errors += add_directory(alloc, "%%PREFIX%%/etc/mysql/", dirs);
1157  
1158  #endif
1159  
1160
1161
1162 [FILE:1167:patches/patch-oqgraph-MDEV-15291]
1163 --- storage/oqgraph/oqgraph_judy.cc.orig        2023-10-30 12:36:21 UTC
1164 +++ storage/oqgraph/oqgraph_judy.cc
1165 @@ -27,7 +27,7 @@
1166  /*
1167    Currently the only active code that can return error is:
1168      judy_bitset::reset()/J1U()
1169 -    judy_bitset::setbit()/J1S()
1170 +    judy_bitset::jsetbit()/J1S()
1171  
1172    In most cases errors are either about wrong parameters passed to Judy
1173    functions or internal structures corruption. These definitely deserve
1174 @@ -60,7 +60,7 @@ bool open_query::judy_bitset::test(size_
1175    return rc == 1;
1176  }
1177  
1178 -open_query::judy_bitset& open_query::judy_bitset::setbit(size_type n)
1179 +open_query::judy_bitset& open_query::judy_bitset::jsetbit(size_type n)
1180  {
1181    int rc;
1182    J1S(rc, array, n);
1183 --- storage/oqgraph/oqgraph_judy.h.orig 2023-10-30 12:36:21 UTC
1184 +++ storage/oqgraph/oqgraph_judy.h
1185 @@ -63,7 +63,7 @@ namespace open_query
1186        if (!val)
1187          return reset(n);
1188        else
1189 -        return setbit(n);
1190 +        return jsetbit(n);
1191      }
1192  
1193      judy_bitset& set(const judy_bitset& src);
1194 @@ -114,7 +114,7 @@ namespace open_query
1195    private:
1196      mutable void* array;
1197  
1198 -    judy_bitset& setbit(size_type n);
1199 +    judy_bitset& jsetbit(size_type n);
1200    };
1201  }
1202  
1203
1204
1205 [FILE:399:patches/patch-scripts_CMakeLists.txt]
1206 --- scripts/CMakeLists.txt.orig 2023-10-30 12:36:20 UTC
1207 +++ scripts/CMakeLists.txt
1208 @@ -120,11 +120,7 @@ IF(CMAKE_GENERATOR MATCHES "Makefiles|Ni
1209  ENDIF()
1210  
1211  
1212 -IF(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
1213 -  SET (PERL_PATH "/usr/local/bin/perl")
1214 -ELSE()
1215 -  SET (PERL_PATH "/usr/bin/perl")
1216 -ENDIF()
1217 +SET (PERL_PATH "%%LOCALBASE%%/bin/perl")
1218  
1219  IF(UNIX)
1220    # FIND_PROC and CHECK_PID are used by mysqld_safe
1221
1222
1223 [FILE:403:patches/patch-scripts_mysql__config.sh]
1224 --- scripts/mysql_config.sh.orig        2023-10-30 12:36:20 UTC
1225 +++ scripts/mysql_config.sh
1226 @@ -87,7 +87,9 @@ fi
1227  
1228  # Create options 
1229  libs="-L$pkglibdir @RPATH_OPTION@ @LIBS_FOR_CLIENTS@"
1230 +libs="$libs -L%%LOCALBASE%%/lib "
1231  embedded_libs="-L$pkglibdir @RPATH_OPTION@ @EMB_LIBS_FOR_CLIENTS@"
1232 +embedded_libs="$embedded_libs -L%%LOCALBASE%%/lib "
1233  
1234  include="-I$pkgincludedir"
1235  if [ "$basedir" != "/usr" ]; then
1236
1237
1238 [FILE:446:patches/patch-scripts_mysqld__safe.sh]
1239 --- scripts/mysqld_safe.sh.orig 2023-10-30 12:36:20 UTC
1240 +++ scripts/mysqld_safe.sh
1241 @@ -559,11 +559,11 @@ fi
1242  
1243  if test -z "$MYSQL_HOME"
1244  then 
1245 -  if test -r "$DATADIR/my.cnf"
1246 +  if test -r "$DATADIR/etc/my.cnf"
1247    then
1248      log_error "WARNING: Found $DATADIR/my.cnf
1249  The data directory is not a valid location for my.cnf, please move it to
1250 -$MY_BASEDIR_VERSION/my.cnf"
1251 +$MY_BASEDIR_VERSION/etc/my.cnf"
1252    fi
1253    MYSQL_HOME=$MY_BASEDIR_VERSION
1254  fi
1255
1256
1257 [FILE:432:patches/patch-scripts_wsrep__sst__mariabackup.sh]
1258 --- scripts/wsrep_sst_mariabackup.sh.orig       2023-10-30 12:36:20 UTC
1259 +++ scripts/wsrep_sst_mariabackup.sh
1260 @@ -799,7 +799,7 @@ recv_joiner()
1261      if [ $tmt -gt 0 ]; then
1262          if [ -n "$(commandex timeout)" ]; then
1263              local koption=0
1264 -            if [ "$OS" = 'FreeBSD' ]; then
1265 +            if [ 1 eq 1 ]; then
1266                  if timeout 2>&1 | grep -qw -F -- '-k'; then
1267                      koption=1
1268                  fi
1269
1270
1271 [FILE:250:patches/patch-sql_mysqld.cc]
1272 --- sql/mysqld.cc.orig  2023-10-30 12:36:20 UTC
1273 +++ sql/mysqld.cc
1274 @@ -4767,8 +4767,9 @@ static void init_ssl()
1275          sql_print_warning("SSL error: %s",buf);
1276        }
1277      }
1278 -    else
1279 +    else {
1280        ERR_remove_state(0);
1281 +    }
1282    }
1283    else
1284    {
1285
1286
1287 [FILE:1559:patches/patch-storage_innobase_lz4.cmake]
1288 --- storage/innobase/lz4.cmake.orig     2023-10-30 12:36:21 UTC
1289 +++ storage/innobase/lz4.cmake
1290 @@ -17,9 +17,16 @@ SET(WITH_INNODB_LZ4 AUTO CACHE STRING
1291  
1292  MACRO (MYSQL_CHECK_LZ4)
1293    IF (WITH_INNODB_LZ4 STREQUAL "ON" OR WITH_INNODB_LZ4 STREQUAL "AUTO")
1294 -    CHECK_INCLUDE_FILES(lz4.h HAVE_LZ4_H)
1295 -    CHECK_LIBRARY_EXISTS(lz4 LZ4_compress_limitedOutput "" HAVE_LZ4_SHARED_LIB)
1296 -    CHECK_LIBRARY_EXISTS(lz4 LZ4_compress_default "" HAVE_LZ4_COMPRESS_DEFAULT)
1297 +    find_path(LZ4_INCLUDE_DIR NAMES lz4.h)
1298 +    find_library(LZ4_LIBRARY NAMES lz4)
1299 +    IF (LZ4_LIBRARY)
1300 +    get_filename_component(LZ4_LIBDIR ${LZ4_LIBRARY} DIRECTORY)
1301 +#MESSAGE(STATUS "LZ4_INCLUDE_DIR=${LZ4_INCLUDE_DIR} LZ4_LIBRARY=${LZ4_LIBRARY} LZ4_LIBDIR=${LZ4_LIBDIR}")
1302 +    IF (LZ4_INCLUDE_DIR)
1303 +      SET(HAVE_LZ4_H YES)
1304 +    ENDIF()
1305 +    CHECK_LIBRARY_EXISTS(lz4 LZ4_compress_limitedOutput ${LZ4_LIBDIR} HAVE_LZ4_SHARED_LIB)
1306 +    CHECK_LIBRARY_EXISTS(lz4 LZ4_compress_default ${LZ4_LIBDIR} HAVE_LZ4_COMPRESS_DEFAULT)
1307  
1308      IF (HAVE_LZ4_SHARED_LIB AND HAVE_LZ4_H)
1309        SET(HAVE_INNODB_LZ4 TRUE)
1310 @@ -27,12 +34,13 @@ MACRO (MYSQL_CHECK_LZ4)
1311        IF (HAVE_LZ4_COMPRESS_DEFAULT)
1312          ADD_DEFINITIONS(-DHAVE_LZ4_COMPRESS_DEFAULT=1)
1313        ENDIF()
1314 -      LINK_LIBRARIES(lz4)
1315 +      LINK_LIBRARIES(${LZ4_LIBRARY})
1316      ELSE()
1317        IF (WITH_INNODB_LZ4 STREQUAL "ON")
1318          MESSAGE(FATAL_ERROR "Required lz4 library is not found")
1319        ENDIF()
1320      ENDIF()
1321 +    ENDIF()
1322    ENDIF()
1323    ADD_FEATURE_INFO(INNODB_LZ4 HAVE_INNODB_LZ4 "LZ4 compression in the InnoDB storage engine")
1324  ENDMACRO()
1325
1326
1327 [FILE:968:patches/patch-storage_innobase_lzo.cmake]
1328 --- storage/innobase/lzo.cmake.orig     2023-10-30 12:36:21 UTC
1329 +++ storage/innobase/lzo.cmake
1330 @@ -17,13 +17,17 @@ SET(WITH_INNODB_LZO AUTO CACHE STRING
1331  
1332  MACRO (MYSQL_CHECK_LZO)
1333    IF (WITH_INNODB_LZO STREQUAL "ON" OR WITH_INNODB_LZO STREQUAL "AUTO")
1334 -    CHECK_INCLUDE_FILES(lzo/lzo1x.h HAVE_LZO_H)
1335 -    CHECK_LIBRARY_EXISTS(lzo2 lzo1x_1_compress "" HAVE_LZO_SHARED_LIB)
1336 -
1337 +    find_path(LZO_INCLUDE NAMES lzo/lzo1x.h)
1338 +    find_library(LZO_LIBRARY NAMES lzo2)
1339 +    get_filename_component(LZO_LIBDIR ${LZO_LIBRARY} DIRECTORY)
1340 +    IF (LZO_INCLUDE)
1341 +      SET(HAVE_LZO_H 1)
1342 +    ENDIF()
1343 +    CHECK_LIBRARY_EXISTS(lzo2 lzo1x_1_compress ${LZO_LIBDIR} HAVE_LZO_SHARED_LIB)
1344      IF(HAVE_LZO_SHARED_LIB AND HAVE_LZO_H)
1345        SET(HAVE_INNODB_LZO TRUE)
1346        ADD_DEFINITIONS(-DHAVE_LZO=1)
1347 -      LINK_LIBRARIES(lzo2)
1348 +      LINK_LIBRARIES(${LZO_LIBRARY})
1349      ELSE()
1350        IF (WITH_INNODB_LZO STREQUAL "ON")
1351          MESSAGE(FATAL_ERROR "Required lzo library is not found")
1352
1353
1354 [FILE:283:patches/patch-storage_perfschema_pfs__global.cc]
1355 --- storage/perfschema/pfs_global.cc.orig       2023-10-30 12:36:21 UTC
1356 +++ storage/perfschema/pfs_global.cc
1357 @@ -46,6 +46,9 @@
1358  #else
1359    #include <arpa/inet.h>
1360  #endif
1361 +#ifdef __MidnightBSD__
1362 +#include <malloc_np.h>
1363 +#endif
1364  
1365  bool pfs_initialized= false;
1366  size_t pfs_allocated_memory= 0;
1367
1368
1369 [FILE:486:patches/patch-storage_rocksdb_build__rocksdb.cmake]
1370 --- storage/rocksdb/build_rocksdb.cmake.orig    2023-10-30 12:36:21 UTC
1371 +++ storage/rocksdb/build_rocksdb.cmake
1372 @@ -90,7 +90,7 @@ elseif(CMAKE_SYSTEM_NAME MATCHES "Linux"
1373    add_definitions(-DOS_LINUX)
1374  elseif(CMAKE_SYSTEM_NAME MATCHES "SunOS")
1375    add_definitions(-DOS_SOLARIS)
1376 -elseif(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
1377 +elseif(CMAKE_SYSTEM_NAME MATCHES "FreeBSD|MidnightBSD")
1378    add_definitions(-DOS_FREEBSD)
1379  elseif(CMAKE_SYSTEM_NAME MATCHES "NetBSD")
1380    add_definitions(-DOS_NETBSD)
1381
1382
1383 [FILE:2105:patches/patch-storage_rocksdb_ha__rocksdb.cc]
1384 --- storage/rocksdb/ha_rocksdb.cc.orig  2023-10-30 12:36:21 UTC
1385 +++ storage/rocksdb/ha_rocksdb.cc
1386 @@ -260,7 +260,7 @@ Rdb_cf_manager cf_manager;
1387  Rdb_ddl_manager ddl_manager;
1388  Rdb_binlog_manager binlog_manager;
1389  
1390 -#if !defined(_WIN32) && !defined(__APPLE__) && !defined(__OpenBSD__)
1391 +#if defined(HAVE_TIMER_DELETE) && !defined(_WIN32) && !defined(__APPLE__) && !defined(__OpenBSD__)
1392  Rdb_io_watchdog *io_watchdog = nullptr;
1393  #endif
1394  /**
1395 @@ -844,7 +844,7 @@ static void rocksdb_set_io_write_timeout
1396      void *const var_ptr MY_ATTRIBUTE((__unused__)), const void *const save) {
1397    DBUG_ASSERT(save != nullptr);
1398    DBUG_ASSERT(rdb != nullptr);
1399 -#if !defined(_WIN32) && !defined(__APPLE__) && !defined(__OpenBSD__)
1400 +#if defined(HAVE_TIMER_DELETE) && !defined(_WIN32) && !defined(__APPLE__) && !defined(__OpenBSD__)
1401    DBUG_ASSERT(io_watchdog != nullptr);
1402  #endif
1403  
1404 @@ -853,7 +853,7 @@ static void rocksdb_set_io_write_timeout
1405    const uint32_t new_val = *static_cast<const uint32_t *>(save);
1406  
1407    rocksdb_io_write_timeout_secs = new_val;
1408 -#if !defined(_WIN32) && !defined(__APPLE__) && !defined(__OpenBSD__)
1409 +#if defined(HAVE_TIMER_DELETE) && !defined(_WIN32) && !defined(__APPLE__) && !defined(__OpenBSD__)
1410    io_watchdog->reset_timeout(rocksdb_io_write_timeout_secs);
1411  #endif
1412    RDB_MUTEX_UNLOCK_CHECK(rdb_sysvars_mutex);
1413 @@ -5768,7 +5768,7 @@ static int rocksdb_init_func(void *const
1414      directories.push_back(myrocks::rocksdb_wal_dir);
1415    }
1416  
1417 -#if !defined(_WIN32) && !defined(__APPLE__) && !defined(__OpenBSD__)
1418 +#if defined(HAVE_TIMER_DELETE) && !defined(_WIN32) && !defined(__APPLE__) && !defined(__OpenBSD__)
1419    io_watchdog = new Rdb_io_watchdog(std::move(directories));
1420    io_watchdog->reset_timeout(rocksdb_io_write_timeout_secs);
1421  #endif
1422 @@ -5875,7 +5875,7 @@ static int rocksdb_done_func(void *const
1423    delete commit_latency_stats;
1424    commit_latency_stats = nullptr;
1425  
1426 -#if !defined(_WIN32) && !defined(__APPLE__) && !defined(__OpenBSD__)
1427 +#if defined(HAVE_TIMER_DELETE) && !defined(_WIN32) && !defined(__APPLE__) && !defined(__OpenBSD__)
1428    delete io_watchdog;
1429    io_watchdog = nullptr;
1430  #endif
1431
1432
1433 [FILE:249:patches/patch-storage_rocksdb_rdb__buff.h]
1434 --- storage/rocksdb/rdb_buff.h.orig     2023-10-30 12:36:21 UTC
1435 +++ storage/rocksdb/rdb_buff.h
1436 @@ -40,6 +40,8 @@
1437  #define be16toh(x) OSSwapBigToHostInt16(x)
1438  #endif
1439  
1440 +#include "port/port_posix.h"
1441 +
1442  /* MySQL header files */
1443  #include "./my_global.h"
1444  
1445
1446
1447 [FILE:474:patches/patch-storage_rocksdb_rdb__io__watchdog.cc]
1448 If timer_t is an integer type, setting it to nullptr fails.
1449
1450 --- storage/rocksdb/rdb_io_watchdog.cc.orig     2023-10-30 12:36:21 UTC
1451 +++ storage/rocksdb/rdb_io_watchdog.cc
1452 @@ -111,7 +111,11 @@ void Rdb_io_watchdog::io_check_callback(
1453      sql_print_warning("Deleting the watchdog I/O timer failed with %d.", errno);
1454    }
1455  
1456 +#ifdef __NetBSD__
1457 +  m_io_check_watchdog_timer = 0;
1458 +#else
1459    m_io_check_watchdog_timer = nullptr;
1460 +#endif
1461  
1462    RDB_MUTEX_UNLOCK_CHECK(m_reset_mutex);
1463  }
1464
1465
1466 [FILE:1227:patches/patch-storage_rocksdb_rdb__io__watchdog.h]
1467 If timer_t is an integer type, setting it to nullptr fails.
1468
1469 --- storage/rocksdb/rdb_io_watchdog.h.orig      2023-10-30 12:36:21 UTC
1470 +++ storage/rocksdb/rdb_io_watchdog.h
1471 @@ -32,6 +32,12 @@
1472  /* MyRocks header files */
1473  #include "./rdb_utils.h"
1474  
1475 +#ifdef __NetBSD__
1476 +#define NULLTIMER      0
1477 +#else
1478 +#define NULLTIMER      nullptr
1479 +#endif
1480 +
1481  namespace myrocks {
1482  
1483  // Rdb_io_watchdog does not support Windows ATM.
1484 @@ -60,7 +66,7 @@ class Rdb_io_watchdog {
1485        ret = timer_delete(m_io_check_watchdog_timer);
1486  
1487        if (!ret) {
1488 -        m_io_check_watchdog_timer = nullptr;
1489 +        m_io_check_watchdog_timer = NULLTIMER;
1490        }
1491      }
1492  
1493 @@ -68,7 +74,7 @@ class Rdb_io_watchdog {
1494        ret = timer_delete(m_io_check_timer);
1495  
1496        if (!ret) {
1497 -        m_io_check_timer = nullptr;
1498 +        m_io_check_timer = NULLTIMER;
1499        }
1500      }
1501  
1502 @@ -93,8 +99,8 @@ class Rdb_io_watchdog {
1503  
1504   public:
1505    explicit Rdb_io_watchdog(std::vector<std::string> &&directories)
1506 -      : m_io_check_timer(nullptr),
1507 -        m_io_check_watchdog_timer(nullptr),
1508 +      : m_io_check_timer(NULLTIMER),
1509 +        m_io_check_watchdog_timer(NULLTIMER),
1510          m_io_in_progress(false),
1511          m_dirs_to_check(std::move(directories)),
1512          m_buf(nullptr) {
1513
1514
1515 [FILE:494:patches/patch-storage_rocksdb_rocksdb_CMakeLists.txt]
1516 --- storage/rocksdb/rocksdb/CMakeLists.txt.orig 2023-10-30 12:36:23 UTC
1517 +++ storage/rocksdb/rocksdb/CMakeLists.txt
1518 @@ -413,7 +413,7 @@ elseif(CMAKE_SYSTEM_NAME MATCHES "Linux"
1519    add_definitions(-DOS_LINUX)
1520  elseif(CMAKE_SYSTEM_NAME MATCHES "SunOS")
1521    add_definitions(-DOS_SOLARIS)
1522 -elseif(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
1523 +elseif(CMAKE_SYSTEM_NAME MATCHES "FreeBSD|MidnightBSD")
1524    add_definitions(-DOS_FREEBSD)
1525  elseif(CMAKE_SYSTEM_NAME MATCHES "NetBSD")
1526    add_definitions(-DOS_NETBSD)
1527
1528
1529 [FILE:493:patches/patch-storage_rocksdb_ut0counter.h]
1530 --- storage/rocksdb/ut0counter.h.orig   2023-10-30 12:36:21 UTC
1531 +++ storage/rocksdb/ut0counter.h
1532 @@ -30,6 +30,12 @@ Created 2012/04/12 by Sunny Bains
1533  
1534  #ifdef __WIN__
1535  #define get_curr_thread_id() GetCurrentThreadId()
1536 +#elif defined __FreeBSD__
1537 +#include <pthread_np.h>
1538 +#define get_curr_thread_id() pthread_getthreadid_np()
1539 +#elif defined __DragonFly__
1540 +#include <sys/syscall.h>
1541 +#define get_curr_thread_id() syscall(SYS_lwp_gettid)
1542  #else
1543  #define get_curr_thread_id() pthread_self()
1544  #endif
1545