BOTCH-FILTER-SRC-BUILDS-FOR(1)

πŸ’– BOTCH-FILTER-SRC-BUILDS-FOR πŸ’–

okay bestie, so this is a page from the botch tools manual set (manual section 1, obviously), and it's literally just one tiny little tool that does one tiny little job and does it flawlessly. main character energy tbh πŸŽ€


✨ NAME ✨

botch-filter-src-builds-for β€” filter a Sources file for the packages building for a certain architecture

like. that's it. that's the whole vibe. πŸ¦‹


🌸 SYNOPSIS 🌸

botch-filter-src-builds-for [options] inSources.. architecture
outSources

so you give it your Sources file(s), you tell it which architecture you're obsessed with rn, and you point it at where the output should go. simple. clean. iconic. πŸ’…


πŸ’« DESCRIPTION πŸ’«

bestie listen. you've got a Sources control file, right? it's got stanzas for every source package. and you're like "girl, I only care about the ones that build binary dependent packages for a certain architecture."

that's what this does. ✨

It filters a Sources control file, such that it only contains the stanzas for those source packages which build binary dependent packages for a certain architecture. no cap, that's the whole deal. everything else gets yeeted. πŸ—‘οΈπŸ’–


πŸŽ€ OPTIONS πŸŽ€

  • -h, --help β€” Show help. like, it tells you how to use it. adorable of it honestly 🫢
  • --verbose β€” Be verbose. she will talk. she will tell you things. let her cook πŸ’¬

🌈 EXAMPLE 🌈

ok so here's the slay scenario: find all source packages that build architecture dependent binary packages for armhf 🧚

botch-filter-src-builds-for Sources armhf - \
        | dose-builddebcheck --successes --explain-minimal --deb-native-arch=amd64 --deb-host-arch=armhf Packages_amd64 Packages_armhf \
        | sed -n 's/^\s\+success: src://p'

see that? Sources goes in, armhf is the arch we're gagged over, the - means "dump it to stdout bestie", then we pipe it straight into dose-builddebcheck with --successes --explain-minimal --deb-native-arch=amd64 --deb-host-arch=armhf Packages_amd64 Packages_armhf, and then sed -n 's/^\s\+success: src://p' rips out the pretty names at the end. a whole pipeline. a whole lewk. πŸ”₯


πŸ’€ BUGS πŸ’€

found a bug? not me having to tell you but β€” see <http://bugs.debian.org/botch>. go snitch, it's fine, they wanna know πŸ™ˆ


πŸ‘‘ SEE ALSO πŸ‘‘

Debian doc-base Manual /usr/share/doc/botch/wiki/Home.html

(go read it, iykyk πŸ“–βœ¨)


πŸ’œ AUTHOR πŸ’œ

This man page was written by Johannes Schauer. Botch is written by Johannes Schauer and Pietro Abate.

two legends fr fr 🫢


Copyright 2012-2014 Johannes Schauer, Pietro Abate

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. A special linking exception to the GNU Lesser General Public License applies to this library, see the COPYING file for more information.

legal bestie voice: read the COPYING file. it's important. don't skip it. πŸ’–

and that's the whole page!! this one shipped as part of perl v5.36.0, dated 2023-02-17, and it lives under the manual name BOTCH-FILTER-SRC-BUILDS-FOR(1). mwah, go filter some sources, you've got this πŸ’…βœ¨

πŸ“¦ where this page comes from