There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

dhork ,

Hey Torquemada, whaddya say?

I just got back from the auto-de-fe

Auto-de-fe? What’s an auto-de-fe?

It’s what you oughtn’t to do but you do anyway…

umbraroze ,

converting an autotools build recipe

Oh yes!

to a bare makefile

Oh no!

7heo OP ,

Honestly, if the makefile is well written, I will take that any day. Good makefiles are 😙👌.

They are extremely rare, tho…

I guess the solution would be a declarative language that compiles to makefiles. So that people don’t have to know the nitty gritty of writing good makefiles, and can just maintain a file of their dependencies and settings…

flying_sheep ,
@flying_sheep@lemmy.ml avatar

Why compile to a Makefile? You’d end up with automake gunk all over again. Just use cmake or so, where the declarative language replaces the Makefile entirely

Corngood ,

cmake compiles to makefiles as well (it just also supports some other backends). I’m not sure why that matters though. In both cases the makefile is generated.

flying_sheep ,
@flying_sheep@lemmy.ml avatar

It does? I guess I never looked inside that build directory.

addie ,
@addie@feddit.uk avatar

Not that I’m the biggest fan of CMake’s syntax, but they are fairly concise and standardised. The XZ backdoor hid in amongst thousands of lines of autotools jank that very few people would be able to audit. A short CMakeList that generates a Makefile is a much harder place to hide something nefarious.

Corngood ,

There’s actually not that much autotools jank, really. There’s configure.ac and a few Makefile.am. The CMakeLists.txt in the root is bigger than any of those files.

There’s also some stuff from autotools archive in m4/. IMO that’s a bad practice and we should instead be referencing them as a build dependencies.

I’m not convinced this backdoor would have been significantly more difficult to hide in the cmake code.

flying_sheep ,
@flying_sheep@lemmy.ml avatar

My point was that packagers should use straight up VCS and run all build tools instead of relying on partially pre-built tarballs uploaded by the upstream maintainers.

Corngood ,

Oh yeah, that was pretty much the point I was trying to make too.

HelloHotel ,
@HelloHotel@lemmy.world avatar

Its a good practice to make the auto generated code a part of the .gitignore list. Any language installable on peoples machines can be used to build these makefiles. Ya know a language is on that list? Makefile!

Bogasse ,
@Bogasse@lemmy.ml avatar

I’ve always conjectured that good Makefiles existed but never seen one (or only for tiny projects). The core semantic of Makefiles is clear and straight to the point, I think the issue is in all the magic that was added to that to spare a few lines.

PsychedSy ,

Perl? I had fun compiling perl from source back in the day.

7heo OP ,

IMHO the issue is two folds:

  1. The makefile were never supposed to do more than determine which build tools to call (and how) for a given target. Meaning that in very many cases, makefile are abused to do way too much. I’d argue that you should try to keep your make targets only one line long. Anything bigger and you’re likely doing it wrong (and ought to move it in a shell script, that gets called from the makefile).
  2. It is really challenging to write portable makefiles. There’s BSD make and GNU make, and then there are different tools on different systems. Different dependencies. Different libs. Etc. Not easy.
richieadler ,

I prefer justfiles these days.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines