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