BOTCH-ADD-ARCH(1)

πŸ’– BOTCH-ADD-ARCH πŸ’–

okay bestie, welcome to the botch tools manual, and specifically to botch-add-arch β€” the little guy who slides a whole new architecture into your source packages' vibe. πŸ¦‹


✨ NAME ✨

botch-add-arch β€” add architecture to source packages


🌸 SYNOPSIS 🌸

botch-add-arch [-h] [-v] toarch inSources outSources

πŸ’… DESCRIPTION πŸ’…

So here's the tea, bestie: this tool adds the architecture toarch to the "Architecture" field of all source packages in inSources whose "Architecture" field does not already match toarch. Like, if it's already matching, we leave it alone, we're not doing unnecessary work here. πŸ’…

And the way it figures out whether any architecture in a source package's "Architecture" field matches toarch? It calls up the system's "dpkg-architecture" program. That's the plug. πŸ”Œ

The files inSources and outSources are control files in deb822 format β€” same energy as the ones chilling on archive mirrors and locally under /var/lib/apt/lists. iykyk. πŸ’–

Now, inSources and outSources can totally point to the same file name for in-place operation. No drama, no temp-file nonsense (well, that's the vibe anyway). Compressed inSources files get decompressed on the fly β€” independent of their filename extension, so don't worry about what it's called. And the output? It gets compressed as determined by the filename extension of outSources. The extension is the main character here. πŸ‘‘

Also, if inSources is equal to a single hyphen-minus (-), then its content gets read from standard input. And if outSources is equal to a single hyphen-minus (-), then the output goes to standard output. Pipes, bestie. Pipes. 🌈


πŸŽ€ OPTIONS πŸŽ€

  • -v, --verbose β€” Be verbose. Spill the details, we're listening. πŸ‘€
  • -h, --help β€” Print help message. The classic. πŸ’–

⭐ EXAMPLE ⭐

Wanna make all source packages compilable on arm64? Say less:

botch-add-arch arm64 inSources outSources

ate. no crumbs. πŸ”₯


πŸ’€ BUGS πŸ’€

See <http://bugs.debian.org/botch>.

go bother the bug tracker, not me, bestie πŸ™ˆ

🌈 SEE ALSO 🌈

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


πŸ‘‘ AUTHOR πŸ‘‘

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


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.


and that's the whole page, bestie!! 🫢 this was botch-add-arch(1) from the botch tools set, shipped with perl v5.36.0 and dated 2023-02-17. go forth and add architectures, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from