Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

50%
+0 −0
Q&A <!nocheck> meaning in Build-Depends

So <!nocheck> is the negation of <nocheck>. This is, unfortunately, not true: the negation is within the term. !nocheck is the negation of nocheck but both are build profile specs....

posted 7mo ago by mirabilos‭

Answer
#1: Initial revision by user avatar mirabilos‭ · 2024-05-07T20:37:35Z (7 months ago)
> So `<!nocheck>` is the negation of `<nocheck>`.

This is, unfortunately, not true: the negation is within the term. `!nocheck` is the negation of `nocheck` but both are build profile specs.

The default is “no build profile”. This means anything that uses `<someterm>` is ignored and anything that uses `<!someterm>` (or no `<…>` at all) is honoured.

If you set a build profile, e.g. `-Pnocheck` at the `dpkg-buildpackage` command line, then `<nocheck>` (and no `<…>` at all) are honoured and `<!nocheck>` is ignored.

The extra descriptions there about how terms are combined apply if you have more than one profile, but for just one like `nocheck`, it works like this:

| `Build-Depends` \\ `-P` | `""` | `-Pnocheck` |
| --- | --- | --- |
| `somepkg` | used | used |
| `somepkg <nocheck>` | skipped | used |
| `somepkg <!nocheck>` | used | skipped |