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

Re: mk-build-deps cannot install particular version of Build-Depends packages



On 2016-08-25 at 09:04, Adam D. Barratt wrote:

> On 2016-08-25 10:44, Исаев Виталий wrote:
>
>> Build-Depends: debhelper (>= 9), cmake,
>>     flatbuffers (= 1.2.0-1),
> 
> This has nothing to do with mk-build-deps. Given this:
> 
>>  ➜ apt-cache policy flatbuffers
>> flatbuffers:
>> Installed: (none)
>> Candidate: 1.4.0-17
>> Version table:
>> 1.4.0-17 500
>> 500 http://repo12.mailbuild-2.embarce.ro xenial/local amd64 Packages
>> 1.2.0-1 500
>> 500 http://repo12.mailbuild-2.embarce.ro xenial/local amd64 Packages
> 
> apt will prefer to install the latest available version, as listed in 
> the candidate field, as demonstrated in:
> 
>> Starting 2 pkgProblemResolver with broken count: 1
>> Investigating (0) libhole-cpp-build-deps [ amd64 ] < 1.0.1ubuntu1 > (
>> devel )
>> Broken libhole-cpp-build-deps:amd64 Depends on flatbuffers [ amd64 ] <
>> none -> 1.4.0-17 > ( devel ) (= 1.2.0-1)
>>   Considering flatbuffers:amd64 0 as a solution to
>> libhole-cpp-build-deps:amd64 -2
>>   Removing libhole-cpp-build-deps:amd64 rather than change
>> flatbuffers:amd64

In other words: the problem here is the fact that apt's priorities in
this regard are messed up.

If there exists a dependency solution which will achieve the result
requested on the command line (here, installing the lower version of the
depended-on package), that solution should be chosen over any which do
not achieve that result; if that solution involves removing or
downgrading packages, it should be presented for confirmation before
proceeding.

If - as is apparently the case - apt does not presently do that, that
should IMO be considered a bug.

-- 
   The Wanderer

The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man.         -- George Bernard Shaw

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: