juhp / cabal-rpm

Haskell Cabal RPM packaging tool
https://hackage.haskell.org/package/cabal-rpm
GNU General Public License v3.0
25 stars 8 forks source link

handling missing haskell system packages #67

Closed mikelpr closed 2 years ago

mikelpr commented 2 years ago

happens with my project that depends on gi-gst that dnf builddep *.spec coughs up:

[1/2] STEP 10/15: RUN dnf builddep *.spec
Last metadata expiration check: 0:57:18 ago on Fri Mar 25 06:59:31 2022.
Package ghc-Cabal-devel-3.2.1.0-117.fc36.x86_64 is already installed.
No matching package to install: 'ghc-gi-gst-prof'
Package ghc-rpm-macros-2.3.15-1.fc36.noarch is already installed.
Not all dependencies satisfied
Error: Some packages could not be found.
mikelpr commented 2 years ago

okay so, ghc-gi-gst* doesn't exist at all on fedora's repos. is there a way for cabal-rpm to fall back on hackage when a package is missing from the repos?

juhp commented 2 years ago

Well you can use cabal-rpm install to generate them on the fly.

You can also submit the packages for review to be included in Fedora. :-)

((It is actually also true though there are some exceptional packages that do not have prof: mostly meta-packages.))

juhp commented 2 years ago

Alternatively there is also --standalone: it really depends on your needs, etc.

juhp commented 2 years ago

(Are you trying to build with gi-gtk-4? :-)

I'd like to get that into Fedora 37 at least.