[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#999826: marked as done (debian-policy: fix Build-Depends footnote)



Your message dated Wed, 11 May 2022 18:34:42 +0000
with message-id <E1norAY-000Hgy-4X@fasolo.debian.org>
and subject line Bug#999826: fixed in debian-policy 4.6.1.0
has caused the Debian Bug report #999826,
regarding debian-policy: fix Build-Depends footnote
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
999826: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=999826
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: debian-policy
Version: 4.6.0.1
Severity: normal
X-Debbugs-Cc: josch@debian.org

Hi,

currently, footnote [1] of §7 states:

> While Build-Depends, Build-Depends-Indep and Build-Depends-Arch permit
> the use of alternative dependencies, these are not normally used by the
> Debian autobuilders. To avoid inconsistency between repeated builds of a
> package, the autobuilders will default to selecting the first
> alternative, after reducing any architecture-specific restrictions for
> the build architecture in question. While this may limit the usefulness
> of alternatives in a single release, they can still be used to provide
> flexibility in building the same package across multiple distributions
> or releases, where a particular dependency is met by differently named
> packages.

There are multiple problems with this footnote:

1. "they are not normally used by the Debian autobuilders" should
   instead be "they are never used by the Debian autobuilders" or it
   should state when they are used and when they are not

2. the above also omits that they are used in situations where an
   alternative has the form pkgA (rel ver1) | pkgA (rel ver2)

3. "To avoid inconsistency between repeated builds" suggests that this
   measure avoids inconsistency. It does avoid some but since it doesn't
   avoid all, it's wrong to say that it does avoid consistency.
   Inconsistency is still created by alternatives of binary packages and
   by virtual packages.

So maybe the above can be improved? Here is a suggested new wording for
the first part of the footnote:

> While Build-Depends, Build-Depends-Indep and Build-Depends-Arch permit
> the use of alternative dependencies, these are discarded by the Debian
> autobuilders, after reducing any architecture-specific restrictions for
> the build architecture in question, except when the later alternative
> has the same package name as the first alternative. This is to improve
> consistency between repeated builds of a package while still allowing
> version ranges of the same package.

This is the relevant code in sbuild for reference:

https://sources.debian.org/src/sbuild/0.81.2/lib/Sbuild/ResolverBase.pm/?hl=1128#L1167

Thanks!

cheers, josch

--- End Message ---
--- Begin Message ---
Source: debian-policy
Source-Version: 4.6.1.0
Done: Sean Whitton <spwhitton@spwhitton.name>

We believe that the bug you reported is fixed in the latest version of
debian-policy, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 999826@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sean Whitton <spwhitton@spwhitton.name> (supplier of updated debian-policy package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 11 May 2022 11:02:59 -0700
Source: debian-policy
Architecture: source
Version: 4.6.1.0
Distribution: unstable
Urgency: medium
Maintainer: Debian Policy Editors <debian-policy@lists.debian.org>
Changed-By: Sean Whitton <spwhitton@spwhitton.name>
Closes: 542288 850729 992601 998063 999566 999826 1008480
Changes:
 debian-policy (4.6.1.0) unstable; urgency=medium
 .
   * Policy: Allow non-64-bit packages to install to /usr/lib64
     Wording: Sean Whitton <spwhitton@spwhitton.name>
     Seconded: Simon McVittie <smcv@debian.org>
     Seconded: Russ Allbery <rra@debian.org>
     Closes: #992601
   * Policy: Define 'upstream' & document several version conventions
     Wording: Russ Allbery <rra@debian.org>
     Seconded: Sam Hartman <hartmans@debian.org>
     Seconded: Sean Whitton <spwhitton@spwhitton.name>
     Closes: #542288, #850729
   * virtual-package-names-list: Add {default,}dbus-system-bus (Closes: #998063).
     Thanks to Simon McVittie for the patch.
   * Update 9.7.2 and 9.7.3 for package split of bin:mime-support into
     bin:media-types and bin:mailcap (Closes: #1008480).
     Thanks to Charles Plessy for the patch.
 .
   * Fix several problems with footnote regarding the autobuilders and
     build dependency alternatives (Closes: #999826).
     Thanks to Johannes Schauer Marin Rodrigues for the report and patch.
   * Use syntax highlighting for some source code blocks (Closes: #999566).
     Thanks to Stéphane Blondon for the patch.
Checksums-Sha1:
 b5b8adf3e63f837bd4e7f10966ea628804945523 2052 debian-policy_4.6.1.0.dsc
 b3e6266ce34faad023c9d9b49f3228c46fc83588 550664 debian-policy_4.6.1.0.tar.xz
Checksums-Sha256:
 185cf49f72fe10b84910d71fa58bd0c68d513e530deca11fcce3cb7a5533a852 2052 debian-policy_4.6.1.0.dsc
 144dfe25e5f519c9855f52934a46e26e46b5fd818a8e45c6debf605a0a87b323 550664 debian-policy_4.6.1.0.tar.xz
Files:
 776ca729f5aadaa9e413daa6a7afc80b 2052 doc optional debian-policy_4.6.1.0.dsc
 0d0d9cad654b4a67eb059b268ace0b9b 550664 doc optional debian-policy_4.6.1.0.tar.xz

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

iQIzBAEBCgAdFiEEm5FwB64DDjbk/CSLaVt65L8GYkAFAmJ7/L0ACgkQaVt65L8G
YkCpXhAAjc79jrGUfPW/b7zN5e0yqKZ88saXAEMOR+pclGFrP0og5n9F77YWfBjQ
H7y8darnOwnFcYONYawAMxYzdHKKTJwYuQpZk8rfsfrSLXbK0keoI4Wl1L7hFSGZ
q3g58gDLvVIgaT+kCfS/biyD7B6sf2UyOy/E8pg1Y/8HAf/oTM1yxXlbM5X73uzy
bGSSWslurDnZKsMgyYR2RsWBcAqkvCqGuIUll0vOamznMExd0o7Q3Z/gAarnT7p0
p8w6TY+tFVdyXk1ZkkXnzJMonJednIdjF9lfyKDoxu9e24RUVn4Pf0ZFHG5HDLug
aSqC9nsPT0XTvs5s9OpRY3YHlTf8RnC2MLSneop05gCGs8mOP/EyyfrUz/CERzv2
j4BjydCX5zQK+Jk2TADnnEHYrmeLvMqQXQHn0AmwDJRtZE07XZ3JLrwtUbckYBZk
5ApmXIFGxE5upGj7kKuixX+235DHzvXvasa4mcKmTpldlk5KdbNeSwBuSf6lQX3Z
Vh8rfLSCMvO64KZTijPSNj1sbDmqQ5vkzMp3bzCUYL22qE3T8jRqSwaSZ7cAni7G
KaDqq5wPotK6N1GqeGHGT24wVDIDfJT159li7eyNoSIElXLdNeKqaEMxGspw9yWJ
ew/mCHDoLkNNRRuwg8ei90Whl50qQenbDyG14PLXy8JbKzM+tmM=
=reXG
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: