News for hackers. Stuff that matters.
Re:What's in a Build Tool? by Ace17 on Saturday March 05, 2016 @04:30AM (#11228972)
I'm curious about this shell script ; this looks to good to be true!

Having automated the build of dozens of FOSS packages, I can definitely say that autoconf-based packages are _by far_ the easiest ones to build ; especially if you want to do funny stuff like out-of-tree builds or cross-compilation (can your 186-line script do this?).

Some projects (x264, ffmpeg) provide 'configure'-like custom scripts, trying to imitate what autoconf does ; but in practise you can't automate their build the same way you did with autoconf-based projects.

Re:What's in a Build Tool? by bhaak on Saturday March 05, 2016 @06:16AM (#11229169)
I see where the hate for autoconf comes from.

Properly done autoconf is very developer-friendly for building but if you have to maintain it, it can be a nightmare.

OTOH, because you can always escape to shell scripts, I usually can fix any issue that crops up.

With cmake, I regularly fail, e.g. configuring succeeds but building fails because of a missing library and because I actually have no clue what the standard approach should be (online documentation is abysmal with cmake).

Re:What's in a Build Tool? by atilaneves on Saturday March 05, 2016 @06:46AM (#11229225)
Have you tried CMake?
Re:What's in a Build Tool? by Ace17 on Saturday March 05, 2016 @01:16PM (#11230286)
Yes.

Cross-compilation of existing packets has proven to be a nightmare with cmake. I have to override manually CMAKE_C_COMPILER, CMAKE_CXX_COMPILER ...

Have a look at zenbuild, which is a toy-project of mine trying to homogeneize the build interface of many FOSS projects. Each packet get its script (ala PKGBUILD), it can be seen as a list of hacks around the quirks of each project's build system.

Projects using autoconf are a breeze to build: https://github.com/Ace17/zenbuild/blob/master/zen-libxau.sh

But projects using cmake are another story: https://github.com/Ace17/zenbuild/blob/master/zen-x265.sh

Re:What's in a Build Tool? by abiox on Saturday March 05, 2016 @02:10PM (#11230567)
i like the idea of cmake, but i thoroughly despise the pseudo-language.

i haven't used it in some time, so perhaps it's improved; but the ergonomics, documentation and developer-friendliness of it was absolutely dreadful.