Commit graph

96 commits

Author SHA1 Message Date
grant
89fc767259 disable TCP wrapper support on Linux and Solaris to work around
mysql bug #599, http://bugs.mysql.com/bug.php?id=599.
2004-05-14 11:09:56 +00:00
grant
200aaa1255 distinguish between mysql 3 and 4 in COMMENT. 2004-05-14 10:53:29 +00:00
reed
9c790735db mk/bsd.pkg.install.mk now automatically registers
the RCD_SCRIPTS rc.d script(s) to the PLIST.

This GENERATE_PLIST idea is part of Greg A. Woods'
PR #22954.

This helps when the RC_SCRIPTS are installed to
a different ${RCD_SCRIPTS_EXAMPLEDIR}. (Later,
the default RCD_SCRIPTS_EXAMPLEDIR will be changed
to be more clear that they are the examples.)

These patches also remove the etc/rc.d/ scripts from PLISTs
(of packages that use RCD_SCRIPTS). (This also removes
now unused references from openssh* makefiles. Note that
qmail package has not been changed yet.)

I have been doing automatic PLIST registration for RC_SCRIPTS
for over a year. Not all of these packages have been tested,
but many have been tested and used.

Somethings maybe to do:
- a few packages still manually install the rc.d scripts to
  hard-coded etc/rc.d. These need to be fixed.
- maybe  remove from mk/${OPSYS}.pkg.dist mtree specifications too.
2004-04-23 22:07:52 +00:00
schmonz
61d42de13d USE_BUILTIN.zlib wasn't being set, resulting in missing symbols
for "compress" and "uncompress". Convert to bl3 to fix build.
2004-04-03 16:06:16 +00:00
grant
c044c82d67 replace deprecated USE_GMAKE with USE_GNU_TOOLS+=make. 2004-01-22 08:02:15 +00:00
cube
d240511f8d Rework patch-al to let it compile on !NetBSD platforms. 2004-01-07 08:02:18 +00:00
martti
2a4913199e Updated mysql-server to 3.23.58
A lot of bug and security fixes since 3.23.51...
2003-10-05 17:55:34 +00:00
jdolecek
b35037fad5 make mysql 3.23.51 compile on 1.6.x, which uses bundled mit-pthreads
fixes PR pkg/22988 by Adrian Portelli
2003-09-28 15:09:48 +00:00
jdolecek
1ca8ad6f23 Update mysql-client and mysql-server to 3.23.51nb1 - pkg revision kept
set, the packages contain extra security fixes, which are not part
of 3.23.51 distribution

NOTE: this is the last 3.23.x version with bundled mit-pthreads package;
any further upgrade would need some additional efford to keep the package
usable on NetBSD 1.6.x and older

Highlights of changes:
* Add missing <row> tags for mysqldump XML output.
* SHOW VARIABLES LIKE 'xxx' is now case-insensitive
* InnoDB now allows foreign key constraints to be added through the
  ALTER TABLE syntax.
* InnoDB tables can now be set to automatically grow in size (autoextend).
* Changed name of server variables Com_show_master_stat to
  Com_show_master_status and Com_show_slave_stat to Com_show_slave_status.
* Changed handling of gethostbyname() to make the client library thread-safe
  even if gethostbyname_r doesn't exist.
* If we get an overflow when inserting '+11111' for DECIMAL(5,0) UNSIGNED
  columns, we will just drop the sign.
* many bugfixes

Full list of changes:

3.23.50:
* Fixed buffer overflow problem if someone specified a too long datadir
  parameter to mysqld
* Add missing <row> tags for mysqldump XML output.
* Fixed problem with crash-me and gcc 3.0.4.
* Fixed that @@unknown_variable doesn't hang server.
* Added @@VERSION as a synonym for VERSION().
* SHOW VARIABLES LIKE 'xxx' is now case-insensitive.
* Fixed timeout for GET_LOCK() on HP-UX with DCE threads.
* Fixed memory allocation bug in the glibc library used to build Linux
  binaries, which caused mysqld to die in 'free()'.
* Fixed SIGINT and SIGQUIT problems in mysql.
* Fixed bug in character table converts when used with big ( > 64K) strings.
* InnoDB now retains foreign key constraints through ALTER TABLE and
  CREATE/DROP INDEX.
* InnoDB now allows foreign key constraints to be added through the
  ALTER TABLE syntax.
* InnoDB tables can now be set to automatically grow in size (autoextend).
* Our Linux RPMS and binaries are now compiled with gcc 3.0.4, which should
  make them a bit faster.
* Fixed some buffer overflow problems when reading startup parameters.
* Because of problems on shutdown we have now disabled named pipes on Windows
  by default. One can enable named pipes by starting mysqld
  with --enable-named-pipe.
* Fixed bug when using WHERE key_column = 'J' or key_column='j'.
* Fixed core-dump bug when using --log-bin with LOAD DATA INFILE without
  an active database.
* Fixed bug in RENAME TABLE when used with lower_case_table_names=1 (default
  on Windows).
* Fixed unlikely core-dump bug when using DROP TABLE on a table that was
  in use by a thread that also used queries on only temporary tables.
* Fixed problem with SHOW CREATE TABLE and PRIMARY KEY when using 32 indexes.
* Fixed that one can use SET PASSWORD for the anonymous user.
* Fixed core dump bug when reading client groups from option files using
  mysql_options().
* Memory leak (16 bytes per every corrupted table) closed.
* Fixed binary builds to use --enable-local-infile.
* Update source to work with new version of bison.
* Updated shell scripts to now agree with new POSIX standard.
* Fixed bug where DATE_FORMAT() returned empty string when used with GROUP BY.

3.23.51:
* Fix bug with closing tags missing slash for mysqldump XML output.
* Remove end space from ENUM values. (This fixed a problem with SHOW CREATE
  TABLE.)
* Fixed bug in CONCAT_WS() that cut the result.
* Changed name of server variables Com_show_master_stat to
  Com_show_master_status and Com_show_slave_stat to Com_show_slave_status.
* Changed handling of gethostbyname() to make the client library thread-safe
  even if gethostbyname_r doesn't exist.
* Fixed core-dump problem when giving a wrong password string to GRANT.
* Fixed bug in DROP DATABASE with symlinked directory.
* Fixed optimisation problem with DATETIME and value outside DATETIME range.
* Removed Sleepycat's BDB doc files from the source tree, as they're not needed
  (MySQL covers BDB in its own documentation).
* Fixed MIT-pthreads to compile with glibc 2.2 (needed for make dist).
* Fixed the FLOAT(X+1,X) is not converted to FLOAT(X+2,X). (This also affected
  DECIMAL, DOUBLE and REAL types)
* Fixed the result from IF() is case in-sensitive if the second and third
  arguments are case sensitive.
* Fixed core dump problem on OSF/1 in gethostbyname_r.
* Fixed that underflowed decimal fields are not zero filled.
* If we get an overflow when inserting '+11111' for DECIMAL(5,0) UNSIGNED
  columns, we will just drop the sign.
* Fixed optimisation bug with ISNULL(expression_which_cannot_be_null) and
  ISNULL(constant_expression).
* Fixed host lookup bug in the glibc library that we used with the 3.23.50
  Linux-x86 binaries.
2003-09-28 09:03:52 +00:00
wiz
be24302610 Bumping once is enough, oops. 2003-09-19 14:36:51 +00:00
wiz
418c636370 Do the chown of MYSQL_DATADIR to MYSQL_USER:MYSQL_GROUP automatically in
the install file instead of only mentioning it in MESSAGE.
Closes PR 22197. tron says ok.
2003-09-19 14:35:18 +00:00
wiz
eda9b14404 Do the chown of MYSQL_DATADIR to MYSQL_USER:MYSQL_GROUP automatically in
the install file instead of only mentioning it in MESSAGE.
Closes PR 22197. tron says ok.
Bump PKGREVISION.
2003-09-19 14:34:57 +00:00
wiz
34ee932d1e Add missing ../ in path to included file. 2003-09-18 17:51:45 +00:00
jmmv
6d9ccf016f Specify the category when including other files and when depending on other
packages.  From PR pkg/21864 by ccatrian at eml.cc.
2003-09-18 16:25:08 +00:00
wiz
50f5b84362 Update to nb5: Add patch from
http://lists.netsys.com/pipermail/full-disclosure/2003-September/009819.html
against a vulnerability.
2003-09-17 21:03:07 +00:00
seb
56b7fb6d2a DEINSTALL script was removed. 2003-09-01 12:00:26 +00:00
jlam
b2677a2cb0 Add definitions for DEINSTALL_EXTRA_TMPL and INSTALL_EXTRA_TMPL if
USE_PKGINSTALL is "YES".  bsd.pkg.install.mk will no longer automatically
pick up a INSTALL/DEINSTALL script in the package directory and assume that
you want it for the corresponding *_EXTRA_TMPL variable.
2003-08-30 22:51:11 +00:00
seb
040279ea27 We don't need it anymore, really, the usage of OWNS_DIRS_PERMS
take care of signaling the user deleting the pkg...
2003-08-30 20:30:19 +00:00
jlam
2920a32c71 Prepare for pkgviews by making sure that passing VIEW-INSTALL or
VIEW-DEINSTALL to the INSTALL/DEINSTALL scripts don't cause errors.
2003-08-30 20:22:49 +00:00
seb
2ebf5a7dc8 Use the potential of bsd.pkg.install.mk:
- Remove extraneous bits in the INSTALL script snippet and let the
  framework execute the script at post-install time.
- Use OWN_DIRS_PERMS instead of MAKE_DIRS_PERMS for ${MYSQL_DATADIR} thus
  save a DEINSTALL script snippet and its handling.
2003-08-30 20:05:13 +00:00
taca
c923b0db49 Bump package revision of mysql-client and mysql-server with
introducing MYSQL_CHARSET and MYSQL_EXTRA_CHARSET.
2003-08-24 02:00:58 +00:00
abs
1f51653469 Fix typo in ONLY_FOR_PLATFORM: s/NetBSD-arm/NetBSD-*-arm/ 2003-06-13 09:35:47 +00:00
abs
fb6c29f8bf Update for the fact that 'arm' ports have been called NetBSD-*-arm for a while
now and not NetBSD-*-arm32. Changes include one or more of:
    - Change MACHINE_ARCH == arm32 to also match arm
    - Where ONLY_FOR_PLATFORM includes NetBSD-*-arm32, add NetBSD-*-arm
    - Where BROKEN or worked around for arm gcc bugs, set USE_GCC3
The last may shake out a few more broken packages the next bulk build.
2003-06-11 20:50:50 +00:00
jmmv
f1446ddf2b Drop trailing whitespace. Ok'ed by wiz. 2003-05-06 17:40:18 +00:00
cjep
868be49d44 lint 2003-04-21 20:21:45 +00:00
grant
499e3d864f remove unnecessary parens and indent some conditionals for
readability purposes.
whitespace police.
2003-03-24 03:06:34 +00:00
lukem
2f9dbad830 attempt to clarify password instructions 2003-02-09 08:18:58 +00:00
lukem
4c7340ca60 oops, share/mysql/mysql.server was missing 2003-01-31 02:28:34 +00:00
lukem
20cf1f2d1b add explicit reminder about ${MYSQL_DATADIR} ownership 2003-01-29 22:17:06 +00:00
jlam
d7f69e47ce Instead of including bsd.pkg.install.mk directly in a package Makefile,
have it be automatically included by bsd.pkg.mk if USE_PKGINSTALL is set
to "YES".  This enforces the requirement that bsd.pkg.install.mk be
included at the end of a package Makefile.  Idea suggested by Julio M.
Merino Vidal <jmmv at menta.net>.
2003-01-28 22:03:00 +00:00
lukem
06c4d06a95 also need to set the "mysql root" password on -h hostname 2003-01-21 11:49:03 +00:00
lukem
b4603d7970 install bin/mysql.server for people who won't or can't use etc/rc.d/mysqld.
fixes rest of [pkg/19936].
2003-01-21 08:13:18 +00:00
lukem
399ea1cba4 - add rc.d script; based on [pkg/19055], with rework by me.
- add support for MYSQL_USER and MYSQL_GROUP (user & group to run database as)
- change ownership of $MYSQL_DATADIR to ${MYSQL_USER}:${MYSQL_GROUP} 700
- fix safe_mysqld to send all output to the error log and to NOT output
  random messages to the tty it was started on.
- display a MESSAGE reminding people to change the password of the
  mysql 'root' user.
- bump PKGREVISION (to 3.23.49nb2)
2003-01-21 06:02:41 +00:00
jdolecek
df41d58819 use native pthreads on NetBSD, if available
the explicit exits(/usr/include/pthread.h) here is not ideal, but this
pkg didn't use pthread.buildlink2.mk before
2003-01-20 18:09:08 +00:00
jdolecek
b9e5235bd4 need to include <signal.h> in my_pthread.h to be compilable
with native NetBSD threads - header uses sigset_t and not all sources
pulling the header pull <signal.h> before my_pthread.h
2003-01-20 17:48:45 +00:00
lukem
afe01dffe4 this needs gmake to build... 2003-01-03 00:38:31 +00:00
tron
b0ff42ef18 Fix security problem in MySQL client library and server which were
recently discovered by e-matters.
2002-12-13 14:19:54 +00:00
jlam
5fac8f7d24 buildlink1 -> buildlink2 and move the USE_BUILDLINK2 definition to the
common Makefile.
2002-09-20 10:39:06 +00:00
jschauma
e41bbe63a1 databases/myslq-server appears to work fine on Linux as well, so add
Linux-*-* to the list of ONLY_FOR_PLATFORMs.
2002-08-23 03:34:41 +00:00
wiz
ec5a863a37 Depend on mysql-client>=3.23.49. 2002-06-16 21:46:17 +00:00
tron
c92b355283 Make included MIT pthread library build under NetBSD 1.6. 2002-06-03 14:08:27 +00:00
veego
de20d1aaa1 Now, fix PR pkg/16038 for real. Remember to do a clean build after adding
a patch, a Makefile could be overwritten by a Makefile.in.

So we have to patch Makefile.in and not the Makefile.
2002-04-14 13:32:36 +00:00
fredb
ba41f8ec1e Ahh, the pitfalls of including bsd.*.mk. Keep up with NetBSD-1.5ZC, and
don't install libpthread.a there, either. Closes PR pkg/16038.
2002-04-11 16:16:48 +00:00
fredb
c1136110cc Prefix register names with '%' in included mit-pthreads to let this build
on current/m68k (plus minor clean-ups: a paste-o and whitespace).
2002-04-11 13:45:24 +00:00
briggs
d58d53e602 Adjust syscalls-powerpc-netbsd.S so it will build correctly again.
Problem reported on port-macppc by Ryan La Riviere <larz@cbis.ece.drexel.edu>.
2002-03-25 15:19:30 +00:00
martti
17885721f4 Updated mysql-server to 3.23.49
* Don't give warning for statement that is only a comment; This is
  needed for mysqldump --disable-keys to work.
* Fixed unlikely caching bug when doing a join without keys. In this case
  the last used field for a table always returned NULL.
* Added options to make LOAD DATA LOCAL INFILE more secure.
* Added --xml option to mysqldump for producing XML output.
* Changed to use autoconf 2.52 (from autoconf 2.13)
* Fixed bug in complicated join with const tables.
* Added internal safety checks for InnoDB.
* Some InnoDB variables was always shown in SHOW VARIABLES as OFF on
  high-byte-first systems (like sparc).
* Fixed problem with one thread using an InnoDB table and another thread
  doing an ALTER TABLE on the same table. Before that, mysqld could crash
  with an assertion failure in row0row.c, line 474.
* Tuned the InnoDB SQL optimizer to favor more often index searches over
  table scans. SELECT queries will now also generally run faster on all
  platforms.
* If MySQL binlogging is used, InnoDB now prints after crash recovery the
  latest MySQL binlog name and the offset InnoDB was able to recover to.
  This is useful, for example, when resynchronizing a master and a slave
  database in replication.
* Added better error messages to help in installation problems of
  InnoDB tables.
* One can now recover also MySQL temporary tables which have become
  orphaned inside the InnoDB tablespace.
* InnoDB now prevents a FOREIGN KEY declaration where the signedness is
  not the same in the referencing and referenced integer columns.
* Calling SHOW CREATE TABLE or SHOW TABLE STATUS could cause memory
  corruption and make mysqld to crash. Especially at risk was mysqldump,
  because it calls frequently SHOW CREATE TABLE.
* If inserts to several tables containing an auto-inc column were wrapped
  inside one LOCK TABLES, InnoDB asserted in lock0lock.c.
* In 3.23.47 we allowed several NULLS in a UNIQUE secondary index for an
  InnoDB table. But CHECK TABLE was not relaxed: it reports the table as
  corrupt. CHECK TABLE no longer complains in this situation.
* SHOW GRANTS now shows REFERENCES instead of REFERENCE.
2002-03-18 14:17:43 +00:00
martti
b76b9b039d Updated mysql-{client,server} to 3.23.47. This is a bug-fix release, a
complete (and a too-long to be included here) ChangeLog can be found at:

http://www.mysql.com/documentation/mysql/bychapter/manual_News.html#News-3.23.x
2002-01-08 14:09:37 +00:00
jlam
6091f731ba Strongly buildlinkify. Note dependency on tcp_wrappers for platforms
without -lwrap.  Also prevent finding any existing Berkeley DB 3.x in
/usr/local.
2001-11-02 02:59:28 +00:00
zuntum
43f3055962 Oops, back out previous. This locally modified file wasn't supposed
to be checked in.
2001-11-01 00:17:42 +00:00
zuntum
0ca28723fb Move pkg/ files into package's toplevel directory 2001-11-01 00:11:36 +00:00