On 2020-01-01 00:14 +0000, Ken Moffat via blfs-dev wrote: > On Wed, Jan 01, 2020 at 03:20:33AM +0800, Xi Ruoyao via blfs-dev wrote: > > Hi: > > > > Now most of our meson commands contains a '..' but a few does not. Maybe we > > should remove all '..' in meson commands. Reasons: > > > > (1) '..' is unnecessary in meson command, with "mkdir build; cd build". > > (2) Sometimes we forgot to "mkdir build; cd build" and type the meson > > command > > in the source code directory, mistakenly. With a '..' meson will believe > > '..' > > is the building directory and produce build.ninja and many other files in > > '..'. > > It's hard to clean them because BLFS source code directory (/usr/src or > > $HOME/src) contains lots of tarballs. However, without '..' if we forgot to > > type "mkdir build; cd build" meson would complain and exit, instead of > > producing > > the files. > > > > Any thoughts? > > While I'm still maybe sober - I've seen both. The scattering of > files around .. is certainly painful to clear up, and the exit if > not in a build directory is useful.
I just done it again :(. > But I see Bruce prefers to be explicit. Dunno about that, in > ./configure scripts we usually ignore options which are the defaults > (compare various builds in AUR and gentoo). Well we are already relying on the implicit behaviors a lot. For example, "--buildtype=debugoptimized" (I almost always override it with "--buildtype=release"). -- Xi Ruoyao <[email protected]> School of Aerospace Science and Technology, Xidian University -- http://lists.linuxfromscratch.org/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
