Opened 11 years ago

Closed 11 years ago

#9923 closed bug (fixed)

Package dependency issue with OpenSSL

Reported by: anevilyak Owned by: bonefish
Priority: normal Milestone: R1
Component: Build System Version: R1/Package Management
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

If I include the package for openssl in my build profile in order for e.g. wget to be built with SSL support, I cannot successfully build an image. At the Resolving dependencies stage, I get "Error: would need to uninstall package openssl-1.0.0j-3" , with no further explanation or culprit. Removing openssl from the list of packages in the profile works, but then neither wget nor mail have SSL support.

Change History (3)

comment:1 by anevilyak, 11 years ago

Apparently, specifically adding openssl with : system resolves this, though it'd be nice if the error message could be a bit more verbose as to what went wrong.

comment:2 by bonefish, 11 years ago

The immediate issue is that the package has been added to both system and common. To common explicitly by your AddHaikuImagePackages invocation, to system implicitly when the dependencies for system have been resolved (there's probably another package requiring it). The build tool that resolves the dependencies (get_package_dependencies) has no clue what's going on. It gets a list of all packages to be installed in system (already with resolved dependencies added) and common and asks the dependency solver to compute a consistent state. Since there's a duplicate in the list, the solver suggests to remove one instance. Since the code expects only additional packages to be installed, it treats the uninstall suggestion as an error. I guess the best solution would be to simply filter the package list for common beforehand.

comment:3 by bonefish, 11 years ago

Resolution: fixed
Status: newclosed

Implemented in 37cfff1.

Note: See TracTickets for help on using tickets.