2 messages in com.mysql.lists.bugsProblems with make distclean
FromSent OnAttachments
Shane Wegner13 Sep 2000 21:56 
Michael Widenius14 Sep 2000 02:09 
Subject:Problems with make distclean
From:Michael Widenius (mon@mysql.com)
Date:09/14/2000 02:09:26 AM
List:com.mysql.lists.bugs

Hi!

"Shane" == Shane Wegner <sha@cm.nu> writes:

Shane> Hi, Shane> While tweeking the Debian patches for mysql, I have found the following Shane> problems with mysql's autoconf.

Shane> As a test case, I took a mysql source, ./configure Shane> --without-readline;make;make distclean

Shane> The following results were observed. Shane> continuum:~/outgoing/mysql$ diff -aurN mysql-3.23.24-beta.orig Shane> mysql-3.23.24-beta |diffstat Shane> Docs/manual.ps | 3 Shane> include/my_config.h | 708 +++++++++++++++++++++++++++++ Shane> libmysql/my_static.h | 72 +++ Shane> libmysql/mysys_priv.h | 31 + Shane> libmysql_r/Makefile | 977 Shane> +++++++++++++++++++++++++++++++++++++++++ Shane> readline/Makefile | 461 +++++++++++++++++++ Shane> scripts/mysql_config | 74 +++ Shane> scripts/mysqlbug | 4 Shane> scripts/mysqlhotcopy | 593 ++++++++++++++++++++++++ Shane> sql/lex_hash.h | 430 ++++++++++++++++++ Shane> support-files/binary-configure | 16 Shane> support-files/mysql-log-rotate | 29 + Shane> 12 files changed, 3393 insertions, 5 deletions

Shane> There seem to be several issues here. I assume that make distclean
should Shane> yield the exact same tree as the original tarball.

Shane> 1) configure.in is including All subdirectories in AC_OUTPUT even if they Shane> are excluded. For example, if I specify --without-readline, it still Shane> generates readline/Makefile. A make distclean then doesn't know about
those Shane> subdirectories as they've been disabled.

Tim, can you take a look at fixing the this.

Shane> I think the rest are just stuff which make distclean forgets to remove.

I should now have removed the following files:

Docs/manual.ps | 3 include/my_config.h | 708 +++++++++++++++++++++++++++++ libmysql/my_static.h | 72 +++ libmysql/mysys_priv.h | 31 + scripts/mysql_config | 74 +++ scripts/mysqlhotcopy | 593 ++++++++++++++++++++++++ support-files/binary-configure | 16 support-files/mysql-log-rotate | 29 +

The following files are included in the distribution by design:

sql/lex_hash.h scripts/mysqlbug

The first one is like sql_yacc.cc, something that may be hard for the end user to generate.

The second file is needed so that the user can generate a bug report with mysqlbug, even if configure doesn't work for him! (It should only be generated when the user has successfully been able to configure MySQL).

Shane> Cheers, Shane> Shane

Thanks for the help !

Regards, Monty