{
    "content": [
        {
            "type": "text",
            "text": "# deb-src-control (man)\n\n## NAME\n\ndeb-src-control - Debian source packages' master control file format\n\n## DESCRIPTION\n\nEach Debian source package contains the master «debian/control» file, and its deb822(5)\nformat is a superset of the control file shipped in Debian binary packages, see deb-\ncontrol(5).\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS** (1 subsections)\n- **DESCRIPTION**\n- **SOURCE FIELDS**\n- **BINARY FIELDS**\n- **USER-DEFINED FIELDS**\n- **EXAMPLE**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "deb-src-control",
        "section": "",
        "mode": "man",
        "summary": "deb-src-control - Debian source packages' master control file format",
        "synopsis": "",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [
            "# Comment",
            "Source: dpkg",
            "Section: admin",
            "Priority: required",
            "Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org>",
            "# this field is copied to the binary and source packages",
            "XBS-Upstream-Release-Status: stable",
            "Homepage: https://wiki.debian.org/Teams/Dpkg",
            "Vcs-Browser: https://git.dpkg.org/cgit/dpkg/dpkg.git",
            "Vcs-Git: https://git.dpkg.org/git/dpkg/dpkg.git",
            "Standards-Version: 3.7.3",
            "Build-Depends: pkg-config, debhelper (>= 4.1.81),",
            "libselinux1-dev (>= 1.28-4) [!linux-any]",
            "Package: dpkg-dev",
            "Section: utils",
            "Priority: optional",
            "Architecture: all",
            "# this is a custom field in the binary package",
            "XB-Mentoring-Contact: Raphael Hertzog <hertzog@debian.org>",
            "Depends: dpkg (>= 1.14.6), perl5, perl-modules, cpio (>= 2.4.2-2),",
            "bzip2, lzma, patch (>= 2.2-1), make, binutils, libtimedate-perl",
            "Recommends: gcc | c-compiler, build-essential",
            "Suggests: gnupg, debian-keyring",
            "Conflicts: dpkg-cross (<< 2.0.0), devscripts (<< 2.10.26)",
            "Replaces: manpages-pl (<= 20051117-1)",
            "Description: Debian package development tools",
            "This package provides the development tools (including dpkg-source)",
            "required to unpack, build and upload Debian source packages.",
            "Most Debian source packages will require additional tools to build;",
            "for example, most packages need make and the C compiler gcc."
        ],
        "see_also": [
            {
                "name": "deb822",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/deb822/5/json"
            },
            {
                "name": "deb-control",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/deb-control/5/json"
            },
            {
                "name": "deb-version",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/deb-version/7/json"
            },
            {
                "name": "dpkg-source",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/dpkg-source/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "debian/control",
                        "lines": 1
                    }
                ]
            },
            {
                "name": "DESCRIPTION",
                "lines": 15,
                "subsections": []
            },
            {
                "name": "SOURCE FIELDS",
                "lines": 173,
                "subsections": []
            },
            {
                "name": "BINARY FIELDS",
                "lines": 63,
                "subsections": []
            },
            {
                "name": "USER-DEFINED FIELDS",
                "lines": 19,
                "subsections": []
            },
            {
                "name": "EXAMPLE",
                "lines": 33,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "deb-src-control - Debian source packages' master control file format\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "",
                "subsections": [
                    {
                        "name": "debian/control",
                        "content": ""
                    }
                ]
            },
            "DESCRIPTION": {
                "content": "Each Debian source package contains the master «debian/control» file, and its deb822(5)\nformat is a superset of the control file shipped in Debian binary packages, see deb-\ncontrol(5).\n\nThis file contains at least 2 paragraphs, separated by a blank line.  The first paragraph\nlists all information about the source package in general, while each following paragraph\ndescribes exactly one binary package. Each paragraph consists of at least one field. A field\nstarts with a fieldname, such as Package or Section (case insensitive), followed by a colon,\nthe body of the field (case sensitive unless stated otherwise) and a newline.  Multi-line\nfields are also allowed, but each supplementary line, without a fieldname, should start with\nat least one space. The content of the multi-line fields is generally joined to a single line\nby the tools (except in the case of the Description field, see below). To insert empty lines\ninto a multi-line field, insert a dot after the space.  Lines starting with a ‘#’ are treated\nas comments.\n",
                "subsections": []
            },
            "SOURCE FIELDS": {
                "content": "Source: source-package-name (required)\nThe value of this field is the name of the source package, and should match the name of\nthe source package in the debian/changelog file. A package name must consist only of\nlowercase letters (a-z), digits (0-9), plus (+) and minus (-) signs, and periods (.).\nPackage names must be at least two characters long and must start with a lowercase\nalphanumeric character (a-z0-9).\n\nMaintainer: fullname-email (recommended)\nShould be in the format «Joe Bloggs <jbloggs@foo.com>», and references the person who\ncurrently maintains the package, as opposed to the author of the software or the original\npackager.\n\nUploaders: fullname-email\nLists all the names and email addresses of co-maintainers of the package, in the same\nformat as the Maintainer field.  Multiple co-maintainers should be separated by a comma.\n\nStandards-Version: version-string\nThis documents the most recent version of the distribution policy standards this package\ncomplies with.\n\nDescription short-description\nlong-description\nThe format for the source package description is a short brief summary on the first line\n(after the Description field).  The following lines should be used as a longer, more\ndetailed description.  Each line of the long description must be preceded by a space, and\nblank lines in the long description must contain a single ‘.’ following the preceding\nspace.\n\nHomepage: url\nThe upstream project home page URL.\n\nBugs: url\nThe url of the bug tracking system for this package. The current used format is bts-\ntype://bts-address, like debbugs://bugs.debian.org. This field is usually not needed.\n\nRules-Requires-Root: no|binary-targets|impl-keywords\nThis field is used to indicate whether the debian/rules file requires (fake)root\nprivileges to run some of its targets, and if so when.\n\nno  The binary targets will not require (fake)root at all.\n\nbinary-targets\nThe binary targets must always be run under (fake)root.  This value is the default\nwhen the field is omitted; adding the field with an explicit binary-targets while not\nstrictly needed, marks it as having been analyzed for this requirement.\n\nimpl-keywords\nThis is a space-separated list of keywords which define when (fake)root is required.\n\nKeywords consist of namespace/cases.  The namespace part cannot contain \"/\" or\nwhitespace.  The cases part cannot contain whitespace.  Furthermore, both parts must\nconsist entirely of printable ASCII characters.\n\nEach tool/package will define a namespace named after itself and provide a number of\ncases where (fake)root is required.  (See \"Implementation provided keywords\" in\nrootless-builds.txt).\n\nWhen the field is set to one of the impl-keywords, the builder will expose an\ninterface that is used to run a command under (fake)root.  (See \"Gain Root API\" in\nrootless-builds.txt.)\n\nTestsuite: name-list\nTestsuite-Triggers: package-list\nThese fields are described in the dsc(5) manual page, as they are generated from\ninformation inferred from debian/tests/control or copied literally to the source control\nfile.\n\nVcs-Arch: url\nVcs-Bzr: url\nVcs-Cvs: url\nVcs-Darcs: url\nVcs-Git: url\nVcs-Hg: url\nVcs-Mtn: url\nVcs-Svn: url\nThe url of the Version Control System repository used to maintain this package. Currently\nsupported are Arch, Bzr (Bazaar), Cvs, Darcs, Git, Hg (Mercurial), Mtn (Monotone) and Svn\n(Subversion). Usually this field points to the latest version of the package, such as the\nmain branch or the trunk.\n\nVcs-Browser: url\nThe url of a webinterface to browse the Version Control System repository.\n\nOrigin: name\nThe name of the distribution this package is originating from. This field is usually not\nneeded.\n\nSection: section\nThis is a general field that gives the package a category based on the software that it\ninstalls.  Some common sections are utils, net, mail, text, x11, etc.\n\nPriority: priority\nSets the importance of this package in relation to the system as a whole.  Common\npriorities are required, standard, optional, extra, etc.\n\nThe Section and Priority fields usually have a defined set of accepted values based on\nthe specific distribution policy.\n\nBuild-Depends: package-list\nA list of packages that need to be installed and configured to be able to build from\nsource package.  These dependencies need to be satisfied when building binary\narchitecture dependent or independent packages and source packages.  Including a\ndependency in this field does not have the exact same effect as including it in both\nBuild-Depends-Arch and Build-Depends-Indep, because the dependency also needs to be\nsatisfied when building the source package.\n\nBuild-Depends-Arch: package-list\nSame as Build-Depends, but they are only needed when building the architecture dependent\npackages. The Build-Depends are also installed in this case. This field is supported\nsince dpkg 1.16.4; in order to build with older dpkg versions, Build-Depends should be\nused instead.\n\nBuild-Depends-Indep: package-list\nSame as Build-Depends, but they are only needed when building the architecture\nindependent packages. The Build-Depends are also installed in this case.\n\nBuild-Conflicts: package-list\nA list of packages that should not be installed when the package is built, for example\nbecause they interfere with the build system used.  Including a dependency in this list\nhas the same effect as including it in both Build-Conflicts-Arch and Build-Conflicts-\nIndep, with the additional effect of being used for source-only builds.\n\nBuild-Conflicts-Arch: package-list\nSame as Build-Conflicts, but only when building the architecture dependent packages. This\nfield is supported since dpkg 1.16.4; in order to build with older dpkg versions, Build-\nConflicts should be used instead.\n\nBuild-Conflicts-Indep: package-list\nSame as Build-Conflicts, but only when building the architecture independent packages.\n\nThe syntax of the Build-Depends, Build-Depends-Arch and Build-Depends-Indep fields is a list\nof groups of alternative packages.  Each group is a list of packages separated by vertical\nbar (or “pipe”) symbols, ‘|’.  The groups are separated by commas ‘,’, and can end with a\ntrailing comma that will be eliminated when generating the fields for deb-control(5) (since\ndpkg 1.10.14).  Commas are to be read as “AND”, and pipes as “OR”, with pipes binding more\ntightly.  Each package name is optionally followed by an architecture qualifier appended\nafter a colon ‘:’, optionally followed by a version number specification in parentheses ‘(’\nand ‘)’, an architecture specification in square brackets ‘[’ and ‘]’, and a restriction\nformula consisting of one or more lists of profile names in angle brackets ‘<’ and ‘>’.\n\nThe syntax of the Build-Conflicts, Build-Conflicts-Arch and Build-Conflicts-Indep fields is a\nlist of comma-separated package names, where the comma is read as an “AND”, and where the\nlist can end with a trailing comma that will be eliminated when generating the fields for\ndeb-control(5) (since dpkg 1.10.14).  Specifying alternative packages using a “pipe” is not\nsupported.  Each package name is optionally followed by a version number specification in\nparentheses, an architecture specification in square brackets, and a restriction formula\nconsisting of one or more lists of profile names in angle brackets.\n\nAn architecture qualifier name can be a real Debian architecture name (since dpkg 1.16.5),\nany (since dpkg 1.16.2) or native (since dpkg 1.16.5).  If omitted, the default for Build-\nDepends fields is the current host architecture, the default for Build-Conflicts fields is\nany.  A real Debian architecture name will match exactly that architecture for that package\nname, any will match any architecture for that package name if the package is marked with\nMulti-Arch: allowed, and native will match the current build architecture if the package is\nnot marked with Multi-Arch: foreign.\n\nA version number may start with a ‘>>’, in which case any later version will match, and may\nspecify or omit the Debian packaging revision (separated by a hyphen).  Accepted version\nrelationships are ‘>>’ for greater than, ‘<<’ for less than, ‘>=’ for greater than or equal\nto, ‘<=’ for less than or equal to, and ‘=’ for equal to.\n\nAn architecture specification consists of one or more architecture names, separated by\nwhitespace. Exclamation marks may be prepended to each of the names, meaning “NOT”.\n\nA restriction formula consists of one or more restriction lists, separated by whitespace.\nEach restriction list is enclosed in angle brackets. Items in the restriction list are build\nprofile names, separated by whitespace and can be prefixed with an exclamation mark, meaning\n“NOT”.  A restriction formula represents a disjunctive normal form expression.\n\nNote that dependencies on packages in the build-essential set can be omitted and that\ndeclaring build conflicts against them is impossible. A list of these packages is in the\nbuild-essential package.\n",
                "subsections": []
            },
            "BINARY FIELDS": {
                "content": "Note that the Priority, Section and Homepage fields can also be in a binary paragraph to\noverride the global value from the source package.\n\nPackage: binary-package-name (required)\nThis field is used to name the binary package name. The same restrictions as to a source\npackage name apply.\n\nPackage-Type: deb|udeb|type\nThis field defines the type of the package.  udeb is for size-constrained packages used\nby the debian installer.  deb is the default value, it is assumed if the field is absent.\nMore types might be added in the future.\n\nArchitecture: arch|all|any (required)\nThe architecture specifies on which type of hardware this package runs. For packages that\nrun on all architectures, use the any value. For packages that are architecture\nindependent, such as shell and Perl scripts or documentation, use the all value. To\nrestrict the packages to a certain set of architectures, specify the architecture names,\nseparated by a space. It's also possible to put architecture wildcards in that list (see\ndpkg-architecture(1) for more information about them).\n\nBuild-Profiles: restriction-formula\nThis field specifies the conditions for which this binary package does or does not build.\nTo express that condition, the same restriction formula syntax from the Build-Depends\nfield is used.\n\nIf a binary package paragraph does not contain this field, then it implicitly means that\nit builds with all build profiles (including none at all).\n\nIn other words, if a binary package paragraph is annotated with a non-empty Build-\nProfiles field, then this binary package is generated if and only if the condition\nexpressed by the conjunctive normal form expression evaluates to true.\n\nProtected: Byes|no\nEssential: yes|no\nBuild-Essential: yes|no\nMulti-Arch: same|foreign|allowed|no\nTag: tag-list\nDescription: short-description (recommended)\nThese fields are described in the deb-control(5) manual page, as they are copied\nliterally to the control file of the binary package.\n\nDepends: package-list\nPre-Depends: package-list\nRecommends: package-list\nSuggests: package-list\nBreaks: package-list\nEnhances: package-list\nReplaces: package-list\nConflicts: package-list\nProvides: package-list\nBuilt-Using: package-list\nThese fields declare relationships between packages. They are discussed in the deb-\ncontrol(5) manpage.  When these fields are found in debian/control they can also end with\na trailing comma (since dpkg 1.10.14), have architecture specifications and restriction\nformulas which will all get reduced when generating the fields for deb-control(5).\n\nSubarchitecture: value\nKernel-Version: value\nInstaller-Menu-Item: value\nThese fields are used by the debian-installer in udebs and are usually not needed.  See\n/usr/share/doc/debian-installer/devel/modules.txt from the debian-installer package for\nmore details about them.\n",
                "subsections": []
            },
            "USER-DEFINED FIELDS": {
                "content": "It is allowed to add additional user-defined fields to the control file. The tools will\nignore these fields. If you want the fields to be copied over to the output files, such as\nthe binary packages, you need to use a custom naming scheme: the fields should start with an\nX, followed by zero or more of the letters SBC and a hyphen.\n\nS   The field will appear in the source package control file, see dsc(5).\n\nB   The field will appear in the control file in the binary package, see deb-control(5).\n\nC   The field will appear in the upload control (.changes) file, see deb-changes(5).\n\nNote that the X[SBC]- prefixes are stripped when the fields are copied over to the output\nfiles. A field XC-Approved-By will appear as Approved-By in the changes file and will not\nappear in the binary or source package control files.\n\nTake into account that these user-defined fields will be using the global namespace, which\nmight at some point in the future collide with officially recognized fields. To avoid such\npotential situation you can prefix those fields with Private-, such as XB-Private-New-Field.\n",
                "subsections": []
            },
            "EXAMPLE": {
                "content": "# Comment\nSource: dpkg\nSection: admin\nPriority: required\nMaintainer: Dpkg Developers <debian-dpkg@lists.debian.org>\n# this field is copied to the binary and source packages\nXBS-Upstream-Release-Status: stable\nHomepage: https://wiki.debian.org/Teams/Dpkg\nVcs-Browser: https://git.dpkg.org/cgit/dpkg/dpkg.git\nVcs-Git: https://git.dpkg.org/git/dpkg/dpkg.git\nStandards-Version: 3.7.3\nBuild-Depends: pkg-config, debhelper (>= 4.1.81),\nlibselinux1-dev (>= 1.28-4) [!linux-any]\n\nPackage: dpkg-dev\nSection: utils\nPriority: optional\nArchitecture: all\n# this is a custom field in the binary package\nXB-Mentoring-Contact: Raphael Hertzog <hertzog@debian.org>\nDepends: dpkg (>= 1.14.6), perl5, perl-modules, cpio (>= 2.4.2-2),\nbzip2, lzma, patch (>= 2.2-1), make, binutils, libtimedate-perl\nRecommends: gcc | c-compiler, build-essential\nSuggests: gnupg, debian-keyring\nConflicts: dpkg-cross (<< 2.0.0), devscripts (<< 2.10.26)\nReplaces: manpages-pl (<= 20051117-1)\nDescription: Debian package development tools\nThis package provides the development tools (including dpkg-source)\nrequired to unpack, build and upload Debian source packages.\n.\nMost Debian source packages will require additional tools to build;\nfor example, most packages need make and the C compiler gcc.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "deb822(5), deb-control(5), deb-version(7), dpkg-source(1)\n\n\n\n1.21.1                                       2025-09-09                           deb-src-control(5)",
                "subsections": []
            }
        }
    }
}