On Mon, 17 Oct 2011 14:53:40 +0300 Eugene V. Lyubimkin wrote: > On 2011-10-17 00:40, Francesco Poli wrote: > > I still have to carefully read the rest of the your reply, but, first, > > I have to ask a question about this workaround: I am considering using > > a Pin-Priority of -30000 (which has the advantage of being > > representable as a 16-bit signed integer, just in case some tool is > > going to read it using such a small data type...). > > > > Do you think it can be sufficiently low? > > Yes, it's sufficiently low for most cases, which I think is enough for a > workaround.
I am testing this modification. It does not seem to cause any problems to apt-get or to aptitude, but please note that cupt still behaves differently. # cat /etc/apt/preferences Explanation: Pinned by apt-listbugs at Mon Oct 17 20:51:13 +0000 2011 Explanation: #615671: derivations: ftbfs with gcc-4.5 Package: derivations Pin: version * Pin-Priority: -30000 This prevents the installation of the derivations package, when using apt-get or aptitude: # aptitude install derivations No candidate version found for derivations No candidate version found for derivations No packages will be installed, upgraded, or removed. 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B of archives. After unpacking 0 B will be used. # apt-get install derivations Reading package lists... Done Building dependency tree Reading state information... Done Package derivations is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'derivations' has no installation candidate However, cupt happily goes on and attempts to install derivations, until apt-listbugs kicks in and warns the user (again!) that there's a bug: # cupt install derivations Building the package cache... Initializing package resolver and worker... Scheduling requested actions... Resolving possible unmet dependencies... The following 1 packages will be INSTALLED: derivations The following 5 packages will be REMOVED: libcloog-ppl0(a) libgmpxx4ldbl(a) libppl-c4(a) libppl9(a) libpwl5(a) Need to get 0B/3953KiB of archives. After unpacking 1205KiB will be freed. Do you want to continue? [y/N/q/a/?] y Performing requested actions: Retrieving bug reports... Done Parsing Found/Fixed information... Done serious bugs of derivations (-> 0.52.20100310-1) <unfixed> #615671 - derivations: ftbfs with gcc-4.5 Summary: derivations(1 bug) Are you sure you want to install/upgrade the above packages? [Y/n/?/...] If I recall correctly one conversation I had with you (Eugene) back on January 2010, this behavior is intentional. Only automatic installations of the low Pin-Priority package (as recommendations, or dependencies with alternatives, for instance) are prevented by cupt. The explicit request to install the low Pin-Priority package will be honored, no matter how low the Pin-Priority is. Assuming that this is true and confirmed, is the modification of apt-listbugs (so that it uses -30000 instead of -40 as Pin-Priority to prevent the installation of a package) still useful? -- http://www.inventati.org/frx/frx-gpg-key-transition-2010.txt New GnuPG key, see the transition document! ..................................................... Francesco Poli . GnuPG key fpr == CA01 1147 9CD2 EFDF FB82 3925 3E1C 27E1 1F69 BFFE
pgpGVWGEwPd1y.pgp
Description: PGP signature