Opened 5 years ago

Last modified 5 years ago

#11071 new bug

[Package Kit] can't install some packages

Reported by: diver Owned by: bonefish
Priority: normal Milestone: R1
Component: Kits/Package Kit Version: R1/Development
Keywords: Cc: 3dEyes
Blocked By: Blocking:
Has a Patch: no Platform: All

Description (last modified by diver)

hrev47569.

~> pkgman list
        Haiku
                base-url:  http://download.haiku-os.org/haiku-repositories/master/x86_gcc2/current/
                priority:  1
        HaikuPorts
                base-url:  http://packages.haiku-os.org/haikuports/master/repo/x86_gcc2/current
                priority:  1

~> pkgman search openjdk_x86
Status  Name                 Description                                        
--------------------------------------------------------------------------------
        openjdk_x86          Open-source implementation of the Java Platform, SE

~> pkgman install openjdk_x86
Downloading repochecksum-1...
##################################################
Finished downloading repochecksum-1.
Validating checksum for Haiku...
Validating checksum for Haiku complete.
Downloading repochecksum-1...
##################################################
Finished downloading repochecksum-1.
Validating checksum for HaikuPorts...
Validating checksum for HaikuPorts complete.
*** failed to find a match for "openjdk_x86": Name not found

Change History (4)

comment:1 Changed 5 years ago by pulkomandy

Description: modified (diff)

It's actually an issue with the package, the provides entry in the package is "openjdk" instead of "openjdk_x86". So, to install it, you need to do pkgman install openjdk

We must fix the package, but maybe pkgman could be made more user friendly, or maybe haikuporter should prevent this from happening.

Last edited 5 years ago by korli (previous) (diff)

comment:2 Changed 5 years ago by diver

Description: modified (diff)

Other packages that won't currently install are avrdude_x86 and sdl_mixer_devel

comment:3 Changed 5 years ago by zooey

I have just had a cursory look at avrdude_x86 and sdl_mixer_devel and both packages are missing a provides entry that matches the package name.

Creating such a package should not be possible with haikuporter and/or package. I suppose haikuporter should disallow that completely and package should at least print a warning.

comment:4 Changed 5 years ago by bonefish

In principle there is no requirement to include a provides entry matching the package name. We just use that as a convention/policy for the HaikuPorts packages. It should be possible to refer to any package via "pkg:<package name>" and also install the above packages this way. We could make pkgman more clever and try "pkg:..." for the given names (first?).

That being said, we certainly should enforce the policy at least via haikuporter.

Note: See TracTickets for help on using tickets.