RE: Removal of the autotools-based build system
"Vladislav Vaintroub" <[email protected]>
| Newsgroups | gmane.comp.db.mysql.devel,gmane.comp.db.mysql.packagers |
|---|---|
| Message-ID | <[email protected]> |
> -----Original Message----- > From: Davi Arnaut [mailto:[email protected]] > Sent: Friday, November 05, 2010 5:30 PM > To: Kristian Nielsen > Cc: MySQL Internal; [email protected] > Subject: Re: Removal of the autotools-based build system > > On 11/5/10 11:42 AM, Kristian Nielsen wrote: > > Davi Arnaut<[email protected]> writes: > > > >> - Do you maintain tools/scripts that rely on autotools-specific files? > > > > In MariaDB, we have an extra makefile target: > > > > $ make show-dist-name > > mysql-5.1.51-MariaDB > > > > (This is used eg. by packaging scripts so they don't have to guess the name of > > source tarballs or try to parse configure.in etc). > > > >> - If yes, which files and what kind of information is being extracted? > > > > This is done in Makefile.am as follows: > > > > show-dist-name: > > @echo "$(PACKAGE)-$(VERSION)" > > > > Probably there is a way to do something similar for CMake. In any case, some > > easy way to extract this would be useful, probably also apart from MariaDB. This will emulate it pretty closely ADD_CUSTOM_TARGET(show-dist-name COMMAND ${CMAKE_COMMAND} -E echo "${CPACK_PACKAGE_FILE_NAME}" ) > Good idea, although I think some of the tools need the version string > before the make files are generated. Nonetheless, I've added this to the > worklog task. > >> One important aspect is that this removal will break third-party tools > > > > I suppose the main breakage will be all the distros that package mysql. Unless > > there is ./configure emulation that is sufficiently good for package scripts > > not to notice? > > There is a ./configure emulation already, but its not perfect and I'm > inclined to remove it. Package related scripts should definitely be made > aware of cmake in order to fully exploit it. Also, otherwise, we would > need to keep updating the emulation script. Another point is that with > cmake there was also a change of install layout, so intervention will be > necessary in any case. > > What do you think? Keep or remove? I can't make my mind about this one, but tend to think retain for now (and declare deprecated), and completely remove with say 5.6 . Much do I dislike this emulation , but I'm afraid it will create some noise if BUILD/autorun.sh; ./configure;make don't work the same as they did 15 years ago (yeah, there are people who believe that typing "cmake .." on the command line is unnatural and perverse act, while typing " ./configure" follows the good old Unix tradition;) > Regards, > > Davi Wlad > -- > MySQL Internals Mailing List > For list archives: http://lists.mysql.com/internals > To unsubscribe: http://lists.mysql.com/[email protected] -- MySQL Internals Mailing List For list archives: http://lists.mysql.com/internals To unsubscribe: http://lists.mysql.com/[email protected]