• Re: Proposal: Optional `Priority: optional` and changed `Section` fall-

    From Daniel Baumann@21:1/5 to All on Sun Dec 15 10:10:01 2024
    XPost: linux.debian.maint.dpkg

    Hi,

    both sound good (dropping mandatory priority is nice and consistent,
    fixing unknown section behaviour too), thanks!

    ideally these changes would be in dpkg in trixie, but maintainers would
    start dropping priority fields *after* trixie so that for backports we
    woudn't need to add it back en masse.

    Regards,
    Daniel

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Holger Levsen@21:1/5 to Daniel Baumann on Sun Dec 15 10:30:01 2024
    On Sun, Dec 15, 2024 at 09:50:17AM +0100, Daniel Baumann wrote:
    both sound good (dropping mandatory priority is nice and consistent,
    fixing unknown section behaviour too), thanks!

    indeed! thank you both!

    ideally these changes would be in dpkg in trixie, but maintainers would
    start dropping priority fields *after* trixie so that for backports we woudn't need to add it back en masse.

    indeed.


    --
    cheers,
    Holger

    ⢀⣴⠾⠻⢶⣦⠀
    ⣾⠁⢠⠒⠀⣿⡁ holger@(debian|reproducible-builds|layer-acht).org
    ⢿⡄⠘⠷⠚⠋⠀ OpenPGP: B8BF54137B09D35CF026FE9D 091AB856069AAA1C
    ⠈⠳⣄

    Very hard to relate to those who think the first three years of the pandemic were bad because they couldn’t go to bars for a while, as opposed to because 25 million people died, 400 million were disabled, and many more continue to
    be unable to access public space.

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEuL9UE3sJ01zwJv6dCRq4VgaaqhwFAmdeoXEACgkQCRq4Vgaa qhzkhg/+NFoeZUVAF2f3Vk4mU9yLhWr7nCqIBKTbLAwsiaLeSJtwZdQvZydX0ZPc PhEX9Ke0aPAJVA3UFa5gRWu5A35J/OP3eeSanuz0KCMPw/o4vVkQwb4DefTCCDtz F1KgAOIYZC9RNqUHIevcpF5eUwGwwr+EU9cfeSbi2T/ucyGt20AsIDG03+Q2hBPY 2w5rgQS9l7f4d5bm/pixKw0hIYMEMMbb1onG4/RpfzgOAPiCtFLwkVGoi0qkjbS2 jKPxYjzUOJcflUV53ZoSI3GQpYw08Kmf5c3U3Hx3XyIcrVxZSFfgfvSf4JA8rY12 Gi/dIauGsYTzKUEn+ISTAsj5ABKo0rO9Cfq0KJX3vgsIc5vYCEtoJKGRpUX8g8XW ZvxtYc0VDiGF7r+TCxLN11cWXSWuystq0E9F/D5R4
  • From Charles Plessy@21:1/5 to All on Sun Dec 15 14:00:01 2024
    Le Sun, Dec 15, 2024 at 09:27:06AM +0100, Niels Thykier a Θcrit :
    We would like [...] that `dpkg` provides defaults [...] if the fields
    are omitted from `debian/control`, you get `Priority: optional` and
    `Section: unknown` as default in all artifacts (`.dsc`, `.changes`,
    and in the `.deb`).

    Hi Niels and Guillem,

    that sounds good, thank you for proposing it. Can I ask you to expand a
    bit on how you envision how it plays with the archive overrides system (https://wiki.debian.org/FtpMaster/Override) and why it is better that a default for missing values is provided by dpkg rather by the archive?

    Have a nice day,

    Charles

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Niels Thykier@21:1/5 to All on Sun Dec 15 14:40:09 2024
    This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------KTY98DUi3Tg6tnZ65Y5tQH9l
    Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64

    Q2hhcmxlcyBQbGVzc3k6DQo+IExlIFN1biwgRGVjIDE1LCAyMDI0IGF0IDA5OjI3OjA2QU0g KzAxMDAsIE5pZWxzIFRoeWtpZXIgYSDDqWNyaXQgOg0KPj4gV2Ugd291bGQgbGlrZSBbLi4u XSB0aGF0IGBkcGtnYCBwcm92aWRlcyBkZWZhdWx0cyBbLi4uXSBpZiB0aGUgZmllbGRzDQo+ PiBhcmUgb21pdHRlZCBmcm9tIGBkZWJpYW4vY29udHJvbGAsIHlvdSBnZXQgYFByaW9yaXR5 OiBvcHRpb25hbGAgYW5kDQo+PiBgU2VjdGlvbjogdW5rbm93bmAgYXMgZGVmYXVsdCBpbiBh b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nIHByYWN0aWNlLCB0aGVyZSB3aWxsIG5vdCBiZSBh IHZpc2libGUgZWZmZWN0DQogICAgIHJpZ2h0IG5vdy4gT25seSBpZiB5b3Ugd2VyZSB0byBz dGFydCBvbWl0dGluZyBmaWVsZHMgd291bGQgeW91IHNlZQ0KICAgICBhIGRpZmZlcmVuY2Ug YmV0d2VlbiAib2xkIGRwa2ciIGFuZCAibmV3IGRwa2ciLg0KDQpCZXN0IHJlZ2FyZHMsDQpO aWVscw0KDQo=

    --------------KTY98DUi3Tg6tnZ65Y5tQH9l--

    -----BEGIN PGP SIGNATURE-----

    iQEzBAEBCgAdFiEE9ecZmu9eXGflVYc/dA1oiINl0okFAmde2o4ACgkQdA1oiINl 0olPXggApV/XrVL7LPKS019O2f/wIl65E4dYMnI+HAqV2ACuu2CqxUY91U9dZ9WP FxnVQf2dYDmB85MDWLDlAhFeCPfGVZUN/UaaTxa3E0kyJxP70bdTQBAO7uxF+n04 S/USuqcSlFAxVYVrDa7Z2gA87FTIBAf653aL8W4SSlS+w18iZLHevV/kP/BuEZ9J IncdrS+iPMxdrB2V9DpghnjFoLFvWYpMsNlQ1jj3M+0bPXIkis4FnQVNzeiE/bnG sDOR/j+LN4J3Scz3fuxsIR6iFVkc1f/NQsBJU99TebfqQkFgQQYVm/nxg6fsGwbM H+2NjLcUmUBtYU65Tyl4Z9YpIfaO9A==
    =h5R2
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andreas Tille@21:1/5 to All on Sat Dec 21 08:40:01 2024
    Hi,

    since feedback was requested the normally unwanted +1 ...

    Am Sun, Dec 15, 2024 at 09:29:26AM +0000 schrieb Holger Levsen:
    On Sun, Dec 15, 2024 at 09:50:17AM +0100, Daniel Baumann wrote:
    both sound good (dropping mandatory priority is nice and consistent,
    fixing unknown section behaviour too), thanks!

    indeed! thank you both!

    Sounds good to me

    ideally these changes would be in dpkg in trixie, but maintainers would start dropping priority fields *after* trixie so that for backports we woudn't need to add it back en masse.

    indeed.

    ACK

    Thank you for the suggestion, Niels
    Andreas.

    --
    https://fam-tille.de

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Guillem Jover@21:1/5 to Niels Thykier on Tue Dec 31 18:50:01 2024
    XPost: linux.debian.maint.dpkg

    Hi!

    On Sun, 2024-12-15 at 09:27:06 +0100, Niels Thykier wrote:
    Historically, if you omitted `Priority` and `Section` from your
    package, `dpkg` would warn and use `-` or `unknown` as placeholder
    when it absolutely needed a value for these fields in the `.dsc` and
    the `.changes` file. The resulting `.deb` would omit the field.

    We would like to change this behavior such that `dpkg` provides
    defaults for these fields. That is, if the fields are omitted from `debian/control`, you get `Priority: optional` and `Section: unknown`
    as default in all artifacts (`.dsc`, `.changes`, and in the `.deb`).

    Given the type of change, which seems rather safe and unobtrusive, and
    with no concerns raised…

    # The affected tools

    Here are the tools that we are aware of that is or might be affected.

    * `dpkg` (such as `dpkg-source`, `dpkg-genchanges`, and
    `dpkg-gencontrol`) will need to be updated to implement
    the change.

    …I'm going to merge the changes I had queued implementing this,
    targeting dpkg 1.22.12, which should get uploaded today/tomorrow.

    * Maintainer tools such as `lintian`, `debputy [lint|lsp server]`,
    etc. should stop warning about missing `Priority` field for
    unstable. Most other maintainer facing tools should not care at
    all, since the `Priority` field is mostly for d-i.

    With `Section` being de facto mandatory, nothing major changes here
    for that field.

    I think these are pending, I guess once dpkg is in unstable, then
    these can be filed/implemented.

    * `dak` and other archive processing may need tweaking as `-` will
    disappear (we can assume all uploads will come from a `dpkg`
    version that has these features). Concretely, any special casing
    of `-` for `Priority` will be redundant, and any special case
    for `-` should apply equally to `unknown` for `Section`.

    Though, our understanding is that `dak` likely only uses the cases
    where `dpkg` used `unknown` consistently (such the `Package-List`
    in the `.dsc`). Accordingly, we suspect it might not need any
    changes other than a review to be sure.

    As mentioned in the thread, an MR was sent by Niels and has already
    been merged.

    Thanks,
    Guillem

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)