Originally posted by mathletic
View Post
Announcement
Collapse
No announcement yet.
Autodafe 0.2 Released For Freeing Your Project From Autotools
Collapse
X
-
This is a good idea. Usually when I am brought in to maintain or bring up some old crusty project for modern platforms, autotools is typically present somewhere in the muddy puddle.
My current approach is just to build it on a known working (usually ancient) platform, copy the compile log and the generated config.h and start a new build setup from scratch, partially generated using a collection of homegrown scripts that scrape the compile log. I usually migrate to Makefiles for weird stuff (i.e vendor compilers, lots of domain specific scripts, stupid amounts of dependencies etc) but try to use homogenous CMake when possible since I am happy to help push this as the industry standard, even if it does have limitations. Its better than nothing.
autodafe looks to currently work on only a fairly small subset of autotools (which if a project was that simple in the first place, questions the dumb dependence on autotools). However I am interested to see how this grows.Last edited by kpedersen; 18 April 2024, 09:19 AM.
- Likes 6
Comment
-
Originally posted by mathletic View PostOn the other hand, ESR proposing to switch to plain Makefiles is ill-advised: No easy detection of the build environment, detection of available dependencies, altering configuration flags, abstraction of C++-specific fiddling, and a high level abstraction.
Comment
-
Originally posted by jeisom View PostAlso, as suggested above, could be useful for older source trees and additionally useful for switching to meson or cmake as a makefile is generally easier to read than autotools.
- Likes 2
Comment
-
Originally posted by spicfoo View PostThat links suggests that it is a question of funding rather than lack of understanding.
+ understand that we don’t want to drop something that works already
[..]
+ what problem does this solve?
[..]
+ sitting on the fence (Thorsten)
One optinion is about a potential external developer that might be paid.
+ would not be great to pay some external developers to do the migration and then let us maintain it
Originally posted by spicfoo View PostIf anyone or likely a vendor wants to sponsor that work, I bet it can be done before the next release.
- Likes 2
Comment
-
Originally posted by mathletic View Post
I doubt that. The inventor of Meson provided a prototype. This should be picked up! Instead it is let bit-rod. Migrate the build-system of such a huge code base will take at least a year and take at least two years to finally remove the old one.
- Likes 3
Comment
-
Originally posted by mathletic View PostNo easy detection of the build environment, detection of available dependencies, altering configuration flags, abstraction of C++-specific fiddling, and a high level abstraction.
The reason that reproducible builds and cross compilation are so painful is because of pushing of these packaging concerns to individual builds. It's not every developer's job to figure out what's present or absent on the target system. The autotools approach is from the stone age period of dependency management, and we have better tools now.
- Likes 5
Comment
-
Originally posted by ziguana View Post
There should not be any detection of the build environment, which every package would do in a subtly different way. It is the job of the package manager to provide a build environment with all the dependencies and flags.
Now go play with JavaScript, Python, or whatever toy you prefer.
- Likes 2
Comment
-
Originally posted by mathletic View PostNow go play with JavaScript, Python, or whatever toy you prefer.
- Likes 3
Comment
Comment