swm_version: 1 base: distro_version: dev pins: {} mutations: - type: source_patch tarball: https://www.kernel.org/pub/linux/utils/util-linux/v2.42/util-linux-2.42.2.tar.xz sha256: 03a05d3adf9602ef128f2da05b84b3205ce60c351e5737c0370f74000679ce8a build: compiler: zig-cc target: x86_64-linux-musl link: static flags: [] phases: configure: "./configure \\\n\t--build=$CBUILD \\\n\t--host=$CHOST \\\n\t--prefix=/usr \\\n\t--localstatedir=/var \\\n\t--sysconfdir=/etc \\\n\t--disable-shared \\\n\t--enable-static \\\n\t--enable-static-programs=blkid,fdisk,mount,umount \\\n\t--disable-nls \\\n\t--disable-rpath \\\n\t--disable-liblastlog2 \\\n\t--disable-pylibmount \\\n\t--disable-makeinstall-setuid \\\n\t--disable-makeinstall-chown \\\n\t--without-python \\\n\t--without-systemd \\\n\t--without-systemdsystemunitdir \\\n\t--without-udev \\\n\t--without-cryptsetup \\\n\t--without-ncursesw \\\n\t--without-ncurses \\\n\t--without-tinfo \\\n\t--without-readline \\\n\t--without-libz \\\n\t--without-selinux \\\n\t--without-audit \\\n\t--without-econf\n" compile: "# zig cc traduce `-mcpu=baseline` a un `-mcpu=` VACÍO en modo preprocesador\n# (`-dM -E -`), que zig rechaza. Los generadores errnos.h/syscalls.h de\n# util-linux invocan `$(CC) -dM -E -` ⇒ filtramos ese flag (irrelevante para\n# extraer #defines) sólo en esos dos scripts; el resto del build lo conserva.\nfor f in tools/all_errnos tools/all_syscalls; do\n\tsed -i 's#^\"$@\" -MD#a=(); for x in \"$@\"; do [ \"$x\" = \"-mcpu=baseline\" ] || a+=(\"$x\"); done\\n\"${a[@]}\" -MD#' \"$f\"\ndone\nmake LDFLAGS=\"-all-static -no-pie\"\n" install: | make DESTDIR="/out" install LDFLAGS="-all-static -no-pie" target_bin: /usr/bin/util-linux expected_hash: b3:882b08b832f23a914499f8d5a37492bdeeec5416ebcc16adebd63098c71c3a2b deps: build: - linux-headers - make runtime: []