Ticket #1112 (accepted defect)

Opened 11 years ago

Last modified 10 years ago

Packages Doesn't Handle Dependencies for Multiple Repositories Correctly

Reported by: Owned by:
Priority: minor Milestone: Bcfg2 1.4.0 Release
Component: bcfg2-server Version: 1.0
Keywords: Cc:


If you backport a package into a custom repository that changes dependencies of release software the dependencies are not handled properly. It's a total edge case, but I'm going to try and give a reasonable example.

In lucid unixodbc depends on odbcinst1debian1. In precise unixodbc depends on odbcinst1debian2 which breaks odbcinst1debian1. If you have 2 repositories setup for Packages:

deb lucid deb lucid

and has a backported unixodbc bcfg2 will think unixodbc depends on both odbcinst1debian1 and odbcinst1debian2 and apt will always fail miserably. This blocks other packages from being installed by bcfg2.


Change History

comment:1 Changed 11 years ago by

  • Owner changed from desai to
  • Status changed from new to accepted

To elaborate:

This issue is not specific to the Apt driver, but is built in to Packages itself. Packages only resolves dependencies by package name, not by version, so if you specify a particular version of a package in your bundle, Packages only ever sees the name, and will potentially resolve dependencies incorrectly.

There is a related issue, as well, which is that Packages only produces a list of package names that it has resolved, not versions, so it might potentially produce an incorrect list of dependencies. For instance, if the package "foo" required bar-1.1, but bar-1.2 was available, Bcfg2 would complain because the latest available package was not installed.

In summary: Packages needs to understand package versions, not just names. This is a monstrous change, but still needs to be done.

comment:2 Changed 11 years ago by

Fixed for yum in

I lack the expertise to fix this for Apt or Pacman, so someone else will have to take that on.

comment:3 Changed 10 years ago by solj

  • Milestone changed from Bcfg2 1.3.0 Release to Bcfg2 1.4.0 Release

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.


Add a comment

Modify Ticket

Change Properties
<Author field>
as accepted

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.