• rules-needs-root: yes (Was: popularity-contest: support for XB-Popcon-R

    From Andreas Tille@21:1/5 to All on Thu May 5 11:40:01 2022
    Hi,

    Am Wed, May 04, 2022 at 07:23:43PM +0200 schrieb julien.puydt@gmail.com:
    If there's a growing list of boolean control fields, isn't it the
    indication that some sort of tagging system might make more sense?

    Instead of three lines:

    XB-Popcon-Reports: no
    Rules-Requires-Root: yes
    Pants-Need-Washing: yes

    The same package could use a single line:

    Tags: no-popcon-reports, rules-needs-root, pants-need-washing

    ACK.

    (aside: by default rules doesn't need root... that would make one not- very-useful line less in so many packages!)

    I'd like to stress this! If "rules-needs-root: no" would be default
    the majority of packages could be build. So why not making this the
    default and just specify
    rules-needs-root: yes
    if needed?

    Some of our tools might provide easy queries to the feature:

    $ apt-cache has-tag rules-needs-root my-beautiful-package

    $ apt-cache list-tags my-beautiful-package

    Makes sense.

    Kind regards
    Andreas.

    --
    http://fam-tille.de

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrey Rahmatullin@21:1/5 to Andreas Tille on Thu May 5 12:00:02 2022
    On Thu, May 05, 2022 at 11:31:37AM +0200, Andreas Tille wrote:
    If there's a growing list of boolean control fields, isn't it the indication that some sort of tagging system might make more sense?

    Instead of three lines:

    XB-Popcon-Reports: no
    Rules-Requires-Root: yes
    Pants-Need-Washing: yes

    The same package could use a single line:

    Tags: no-popcon-reports, rules-needs-root, pants-need-washing

    ACK.

    (aside: by default rules doesn't need root... that would make one not- very-useful line less in so many packages!)

    I'd like to stress this! If "rules-needs-root: no" would be default
    the majority of packages could be build. So why not making this the
    default and just specify
    rules-needs-root: yes
    if needed?
    First, strictly speaking it's not boolean, at least until #975637 is implemented.
    Second, changing the default is a breaking change. Is there any statistics
    how many of the packages not already having a Rules-Requires-Root field
    (which are a half of them according to trends.d.n) are working fine with Rules-Requires-Root: no?
    Also note that "yes" doesn't exist, the correct value for the current
    default is "binary-targets".

    --
    WBR, wRAR

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

    iQJhBAABCgBLFiEEolIP6gqGcKZh3YxVM2L3AxpJkuEFAmJznsstFIAAAAAAFQAP cGthLWFkZHJlc3NAZ251cGcub3Jnd3JhckBkZWJpYW4ub3JnAAoJEDNi9wMaSZLh fIIQAIeLHDwFifJpOwy6mELCMafHd102csSiymvyEne3NYlbS24B1jhqb6D/Qh7h Pj5LaEpsXzRsamRpr+NQXDq63q/Ca+kIUDu/TblbxZ49cyTNH7UtxXZPqy3DsFnC NCnPwh7ypZmQxUSP5XQrN8PixsCCxBAPBTfyqhHtqwkjV2wnI1l1s4/j6NmSlth9 8gM+5GZmiznel2HS1kPDj8Aau08RyrAUgQMO0gl7l+xMfmb69P60V/6PKdyZmNW5 qDLsapUHUWz07lVVUOAsdAVevgTYDc2G24wvAhFzrqSPoru4Pu2rMQEU9GEl8odO M9JdzatYXEvQk+Q6OGGBumNpiAkfoUbUp38HTEqWiTIplDtjfU9AXeMmYbvoqKmT 5I1pGMGrKV8Hs4GstQS8qWUO18Kti3KdZfkJOZE1hGUelPWZoVDDHWP7oUJC8CO/ sSluk+G5xdgW20EwdgV4VjXHfOh4BVN6FPLNgvEyjFsJl0pmcyNB8O49qjO9yuBx tF7JN/M8EAS6U5BvdHSuDJD3ZPEa4KmdbLHTz/T7KN7Z09XM//oTK5LTMHtY8Fni nBtNPxOGJJ2C6R27OvrKx3Hh5ZwLeQskdY34vIsioEQdF9KdTZW8CQjNHxtabT5J CS+KoyN6KhVk/EKAn8tdEzKZ2Hl4+4P1UGrrZUWHYPmsuDOl
    =aC6c
    -----END PGP SIGNATURE-----

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