noc.social is part of the decentralized social network powered by Mastodon.
This instance is focused on technology, networking, linux, privacy, security, infosec, engineering, but open to anyone. Civil discourse, polite and open. Managed by the noc.org / trunc.org team.

Administered by:

Server stats:

674
active users

Learn more

argv minus one<p>It's been a while since I ran a build with <a href="https://mastodon.sdf.org/tags/autoconf" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>autoconf</span></a> / <a href="https://mastodon.sdf.org/tags/autotools" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>autotools</span></a>. I had forgotten just how many different little things it checks for.</p><p>One of the main things it's checking for is whether certain headers and functions exist. That reminds me: <a href="https://mastodon.sdf.org/tags/Rust" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Rust</span></a> `cfg` directives really ought to allow a predicate of “such-and-such function/type/whatever exists”. Then you can, for example, call a libc function that exists only on platforms that have it, with fallback on platforms that don't.</p>
Abbie Normal<p>say I need a build system for a project</p><p>such build system needs to be able to check if some libraries/features are available on the target OS</p><p>my project is written in an interpeted high level language but it calls some C libs</p><p>say I don't want to use the autotools </p><p>but I'd like my build system to be FLOSS</p><p>what are my options ?</p><p><a href="https://floss.social/tags/buildsystem" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>buildsystem</span></a> <br><a href="https://floss.social/tags/Autotools" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Autotools</span></a></p>
:rss: Qiita - 人気の記事<p>XZ Utils backdoor (CVE-2024-3094) 解説<br><a href="https://qiita.com/naokiwa/items/203f558f5dd2a999b862?utm_campaign=popular_items&amp;utm_medium=feed&amp;utm_source=popular_items" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">qiita.com/naokiwa/items/203f55</span><span class="invisible">8f5dd2a999b862?utm_campaign=popular_items&amp;utm_medium=feed&amp;utm_source=popular_items</span></a></p><p><a href="https://rss-mstdn.studiofreesia.com/tags/qiita" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>qiita</span></a> <a href="https://rss-mstdn.studiofreesia.com/tags/Linux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Linux</span></a> <a href="https://rss-mstdn.studiofreesia.com/tags/xz" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>xz</span></a> <a href="https://rss-mstdn.studiofreesia.com/tags/sshd" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>sshd</span></a> <a href="https://rss-mstdn.studiofreesia.com/tags/autotools" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>autotools</span></a> <a href="https://rss-mstdn.studiofreesia.com/tags/lzma" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>lzma</span></a></p>
0xC0DEC0DE07E9<p>So, if my goal is just to restore autotools happy-path of `./configure &amp;&amp; make &amp;&amp; make install` I need maybe ten lines of shell including the explainer blurb. If my goal is to create the best and universally-loved and appreciated one true CMake wrapper - a thing that is both normal to want and possible to achieve - then I need Python with custom `argparse.Action`s and some sort of reality-distortion field to avoid bike-shedding and yak-shaving.<br><a href="https://hachyderm.io/tags/CMake" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CMake</span></a> <a href="https://hachyderm.io/tags/autotools" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>autotools</span></a></p>
0xC0DEC0DE07E9<p>Autotools-skeuomorphic Makefile is super easy. Corresponding configure script still in progress; doing that in Python.<br>Then it finally occurred to me that one of the stumbling blocks is that autotools configure is stateless - it blows away the old configuration every time - where CMake keeps its configuration state and lets you mutate it incrementally. Now I need to wonder if my skeuomorphic configure script should blow away the build/binary directory each run…<br><a href="https://hachyderm.io/tags/CMake" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CMake</span></a> <a href="https://hachyderm.io/tags/autotools" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>autotools</span></a></p>
dstu<p>Got side-tracked on a project where step 1 is converting something from Autotools to Bazel. The lack of a sufficiently functional "make install" in Bazel is disappointing but not surprising, and I'll just live with that for now. Shell scripts won't save us, but they'll get us where we want to go until there's time to build something better. (Writing Starlark rules is not very fun.)</p><p><a href="https://mastodon.sdf.org/tags/autotools" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>autotools</span></a> <a href="https://mastodon.sdf.org/tags/make" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>make</span></a> <a href="https://mastodon.sdf.org/tags/bazel" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bazel</span></a> <a href="https://mastodon.sdf.org/tags/rust" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rust</span></a> <a href="https://mastodon.sdf.org/tags/clang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>clang</span></a></p>
LY<p>我在想,花在 <a href="https://infosec.exchange/tags/Autotools" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Autotools</span></a> 上的碳排放是多少…一次 ./configure都能花五分钟……</p>
Michal Vyskočil<p>Me (being a smart ass): you know <a href="https://witter.cz/tags/autotools" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>autotools</span></a> is an obsolete horrible mess of M4 and shell</p><p>&gt; This works, because the ./dev.sh build command downloads all the major dependencies of <a href="https://witter.cz/tags/kitty" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>kitty</span></a> as pre-built binaries for your platform and builds kitty to use these rather than system libraries.</p><p>Me (a humble version): that's worse somehow ... can I try to turn it off and on again?</p><p><a href="https://witter.cz/tags/itcrowd" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>itcrowd</span></a></p>
David Runge<p><a href="https://chaos.social/tags/autofools" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>autofools</span></a> is when you can't install files because of concurrency issues 👌</p><p>Please.... **please** just stop using <a href="https://chaos.social/tags/autotools" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>autotools</span></a> 🥺 </p><p><a href="https://chaos.social/tags/ArchLinux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ArchLinux</span></a> <a href="https://chaos.social/tags/PackagerLife" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PackagerLife</span></a></p>
रञ्जित (Ranjit Mathew)<p>Sure, but <a href="https://mastodon.social/tags/Windows" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Windows</span></a> is still an Achilles Heal for the <a href="https://mastodon.social/tags/AutoTools" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>AutoTools</span></a>, unless you use <a href="https://mastodon.social/tags/MinGW" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>MinGW</span></a> &amp; <a href="https://mastodon.social/tags/MSYS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>MSYS</span></a>:</p><p>“What Autoconf Got Right”, Leah Neukirchen (<a href="https://leahneukirchen.org/blog/archive/2024/04/what-autoconf-got-right.html" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">leahneukirchen.org/blog/archiv</span><span class="invisible">e/2024/04/what-autoconf-got-right.html</span></a>).</p><p>Via HN: <a href="https://news.ycombinator.com/item?id=40544336" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">news.ycombinator.com/item?id=4</span><span class="invisible">0544336</span></a></p><p>On Lobsters: <a href="https://lobste.rs/s/ebnqzl/what_autoconf_got_right" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">lobste.rs/s/ebnqzl/what_autoco</span><span class="invisible">nf_got_right</span></a></p><p><a href="https://mastodon.social/tags/Unix" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Unix</span></a> <a href="https://mastodon.social/tags/Autoconf" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Autoconf</span></a> <a href="https://mastodon.social/tags/Build" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Build</span></a> <a href="https://mastodon.social/tags/Configure" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Configure</span></a></p>
Ada Stevenson<p>Trying to wrap my head around the <a href="https://mastodon.social/tags/libtool" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>libtool</span></a> and <a href="https://mastodon.social/tags/pkgconf" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pkgconf</span></a> vs pkg-config situation. What is going on?<br>Why is libtool bad, what is wrong with .la files, what does libtool do that pkgconf doesn't, and what does pkg-config do that neither of them do??<br>If anyone seeing this has dealt/is dealing with this linking/tooling situation I'd love to hear your thoughts :) Very curious.</p><p><a href="https://mastodon.social/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programming</span></a> <a href="https://mastodon.social/tags/freedesktop" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>freedesktop</span></a> <a href="https://mastodon.social/tags/autotools" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>autotools</span></a> <a href="https://mastodon.social/tags/dependencies" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>dependencies</span></a></p>
mofosyne<p>Made a post about setting up an autotool based project via a bash script I written </p><p><a href="https://briankhuu.com/blog/2024/04/11/initialise-minimal-autotools-script/" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">briankhuu.com/blog/2024/04/11/</span><span class="invisible">initialise-minimal-autotools-script/</span></a></p><p><a href="https://mastodon.social/tags/bash" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bash</span></a> <a href="https://mastodon.social/tags/autotools" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>autotools</span></a> <a href="https://mastodon.social/tags/build" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>build</span></a> <a href="https://mastodon.social/tags/make" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>make</span></a> <a href="https://mastodon.social/tags/makefile" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>makefile</span></a> <a href="https://mastodon.social/tags/C99" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>C99</span></a> <a href="https://mastodon.social/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programming</span></a></p>
T_X<p>Better late than never, but I think I was now able to create a C library via <a href="https://chaos.social/tags/autotools" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>autotools</span></a> thanks to David Wheeler's great tutorial and introduction on YouTube: <a href="https://www.youtube.com/watch?v=4q_inV9M_us&amp;list=PL1jSu6GGefBlGgdOeDpsKuCEy1ERNyCUZ" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">youtube.com/watch?v=4q_inV9M_u</span><span class="invisible">s&amp;list=PL1jSu6GGefBlGgdOeDpsKuCEy1ERNyCUZ</span></a>. All a lot easier than I had expected! I think all these noisy extra files with autotools and blown up configure.ac/Makefile.am files in other projects scared me off in the past. But actually it's now easier than writing a Makefile by hand, imo.<br>Many thanks <span class="h-card"><a href="https://infosec.exchange/@davidawheeler" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>davidawheeler</span></a></span>!</p>
JdeBP<p><span class="h-card"><a href="https://mastodon.social/@cks" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>cks</span></a></span> </p><p>I'm thinking more on the lines of educating programmers that it is not 1995, and just replacing these conditionals with <a href="https://tty0.social/tags/include" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>include</span></a> &lt;stdio.h&gt; and the like. It's making hundreds of thousands of programs (going by the GitHub search results alone) look far more complex in the portability arena than they truly are.</p><p>And this is, of course, a maintenance burden. Any future maintainer has to learn something that has been obsolete for 1/4 of a century. Whereas reality is simple.</p><p><a href="https://tty0.social/tags/autotools" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>autotools</span></a></p>
Termux<p>We're migrating one of our projects from <a href="https://fosstodon.org/tags/autotools" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>autotools</span></a> to <a href="https://fosstodon.org/tags/cmake" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cmake</span></a> after the <a href="https://fosstodon.org/tags/xz" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>xz</span></a> incident. Although we aren't distributing any release tarballs with the generated 'configure' and other scripts, we still think this should improve the overall readability of the build scripts.</p><p><a href="https://github.com/termux/termux-elf-cleaner/pull/31" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/termux/termux-elf-c</span><span class="invisible">leaner/pull/31</span></a></p>
JdeBP<p><span class="h-card"><a href="https://mastodon.social/@cks" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>cks</span></a></span> </p><p>It's not even the major step of conversion away, but just getting rid of the stuff that doesn't apply in 2024, and really last applied back in the 1990s, like the tests for &lt;string.h&gt;, &lt;stdio.h&gt;, &lt;errno.h&gt;, and so forth.</p><p>It's a fair bet that the overwhelming majority of programs that have all of the <a href="https://tty0.social/tags/autotools" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>autotools</span></a>-driven conditional tests for these things have no "else" code for the case where the detection fails.</p>
JdeBP<p><span class="h-card"><a href="https://mastodon.social/@cks" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>cks</span></a></span> </p><p>Counterpoint: Why do so many ./configure scripts still perform tests for &lt;string.h&gt; and suchlike? How many programs would genuinely compile and work without the Standard C library stuff that still gets checked for in 2024?</p><p><a href="https://tty0.social/tags/autotools" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>autotools</span></a></p>
argv minus one<p><span class="h-card"><a href="https://infosec.exchange/@malwareminigun" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>malwareminigun</span></a></span> <span class="h-card"><a href="https://infosec.exchange/@lcamtuf" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>lcamtuf</span></a></span> </p><p>Let this be a lesson to basically everyone: boilerplate is a security threat. It conceals malicious code. Come up with better languages, better libraries, macros, whatever. But boilerplate is evil and must be exterminated.</p><p><span class="h-card"><a href="https://cybervillains.com/@djm" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>djm</span></a></span> </p><p><a href="https://mstdn.party/tags/xz" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>xz</span></a> <a href="https://mstdn.party/tags/cybersecurity" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cybersecurity</span></a> <a href="https://mstdn.party/tags/autotools" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>autotools</span></a></p>
Diego Elio Pettenò<p>For many years I have been one of the prominent experts in <a href="https://mastodon.social/tags/Autotools" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Autotools</span></a>. If you think I'd recommend using them for modern software, you're mistaken.</p><p>Start with <a href="https://flameeyes.blog/2009/05/01/the-long-awaited-build-systems-post-part-1-maybe/?mtm_campaign=social&amp;mtm_kwd=mastodon" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">flameeyes.blog/2009/05/01/the-</span><span class="invisible">long-awaited-build-systems-post-part-1-maybe/?mtm_campaign=social&amp;mtm_kwd=mastodon</span></a></p>
Kornel<p>Seriously, in retrospect, <a href="https://mastodon.social/tags/autotools" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>autotools</span></a> itself is a massive supply-chain security risk.</p><p>It has normalized shipping and running tens of thousands of lines of arbitrary executable code without any safeguards.</p><p>Code that is so mind-numbingly awful that nobody will review it, and written in a language that is full of gotchas that are sneaky eval gadgets.</p>