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. soBuild-Dependswalks in andBuild_Dependswalks out. glow-up, honestly π
SourceSectionPriorityMaintainerUploadersDM_Upload_AllowedBuild_ConflictsBuild_Conflicts_IndepBuild_Conflicts_ArchBuild_DependsBuild_Depends_IndepBuild_Depends_ArchStandards_VersionVcs_BrowserVcs_ArchVcs_BzrVcs_CvsVcs_DarcsVcs_GitVcs_HgVcs_MtnVcs_SvnHomepageTestsuiteRules_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 π§
newnew( { field => value, ... } )β spins up a brand newDebian::Control::Stanza::Sourceobject, 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 & LICENSE π
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
- ubuntu stonking: libdebian-source-perl 0.133 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms