Debian...:Source(3pm)

✨ NAME ✨

okay so bestie, meet Debian::Control::Stanza::Source πŸ’– β€” it's the source stanza of a Debian source package control file, living its best life as a Perl module (you'll find it hanging out in the 3pm section of the perl manual, courtesy of User Contributed Perl Documentation 🫢).


🌸 SYNOPSIS 🌸

my $src = Debian::Control::Stanza::Source->new(\%data);
print $src;                         # auto-stringification
print $src->Build_Depends;          # Debian::Dependencies object

like… she stringifies herself?? main character energy fr fr πŸ‘‘


πŸ’« DESCRIPTION πŸ’«

so Debian::Control::Stanza::Source can be used to represent and manipulate the "Source:" stanza of Debian source package control files β€” and she does it the object-oriented way, because we don't do messy here πŸ’…. And when you shove her into string context she just… converts herself into a textual representation. iconic. no cap. ✨


πŸŽ€ FIELDS πŸŽ€

here's the full lineup of supported fields for source stanzas, bestie. if you wanna know what each one means (the lore, the backstory), go read the section called "Source package control files -- debian/control" in the Debian Policy Manual over at <https://www.debian.org/doc/debian-policy/ πŸ“š>

⚠️ heads up: real control fields can have dashes in their names. those dashes get swapped out for underscores. so Build-Depends walks in and Build_Depends walks out. glow-up, honestly πŸ™ˆ
  • Source
  • Section
  • Priority
  • Maintainer
  • Uploaders
  • DM_Upload_Allowed
  • Build_Conflicts
  • Build_Conflicts_Indep
  • Build_Conflicts_Arch
  • Build_Depends
  • Build_Depends_Indep
  • Build_Depends_Arch
  • Standards_Version
  • Vcs_Browser
  • Vcs_Arch
  • Vcs_Bzr
  • Vcs_Cvs
  • Vcs_Darcs
  • Vcs_Git
  • Vcs_Hg
  • Vcs_Mtn
  • Vcs_Svn
  • Homepage
  • Testsuite
  • Rules_Requires_Root

and the tea on all the Build_... fields? β˜• the second she's constructed, every single one of them gets converted into an object of the Debian::Dependencies class. automatic. girlboss behaviour πŸ’–


🧚 CONSTRUCTOR 🧚

  • new
  • new( { field => value, ... } ) β€” spins up a brand new Debian::Control::Stanza::Source object, and if you wanna hand her some data to start with, that's totally allowed πŸ¦‹

πŸ‘‘ SEE ALSO πŸ‘‘

Debian::Control::Stanza::Source inherits most of her functionality from Debian::Control::Stanza β€” she's built different because she's built on top of that, slay πŸ’œ


Copyright (C) 2009 Damyan Ivanov dmn@debian.org

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. (translation: she's here to help but she is not promising anything, bestie β€” that's the legal vibe, not me being shady 😭)


okay that's the whole page, mwah πŸ’‹ this was perl v5.40.1, dated 2026-05-08, and it's the Debian...:Source(3pm) manual page. go forth and parse some control files, you absolute legend πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from