Package: dpkg
Version: 1.21.22
Severity: minor
X-Debbugs-Cc: niels@thykier.net
I was playing around with doing a custom name space for Rules-Requires-Root, and then dpkg said it owned the namespace:
```
$ grep Rules-Requires-Root debian/control
Rules-Requires-Root: debputy/deb-assembly
$ dpkg-buildpackage -us -uc -nc -B -Pnoudeb
dpkg-buildpackage: error: Rules-Requires-Root field keyword "debputy/deb-assembly" is unknown in dpkg namespace
```
Personally, I was a bit surprised because I did not feel like dpkg has a claim on this namespace. It turns out that dpkg currently believes it owns *all* namespaces:
```
$ grep Rules-Requires-Root debian/control
Rules-Requires-Root: foo/bar
$ dpkg-buildpackage -us -uc -nc -B -Pnoudeb
dpkg-buildpackage: error: Rules-Requires-Root field keyword "foo/bar" is unknown in dpkg namespace
```
Please review the namespace check. Behaviour-wise there is a bug in it somewhere.
Hi!
[...]
Ugh, so from code staring and git log, it seems this has not worked since
the code got added. Which should also mean the debhelper namespace which
is documented in the spec does not work either. :/
I've prepared the attached patch which I think should be fixing this,
but will test and add some functional tests to check for this to make
sure and avoid regressions.
I might look into whether to target stable releases too given that
it's a small fix (although no one else reported this until now, but
that might only mean people thought this was allowed…).
Thanks,
Guillem
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 33:02:34 |
Calls: | 10,391 |
Calls today: | 2 |
Files: | 14,064 |
Messages: | 6,417,127 |