public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/kst] pr1: Try and fix the cfitsio require a bit more
@ 2026-10-06 19:30 Adam Williamson
  0 siblings, 0 replies; only message in thread
From: Adam Williamson @ 2026-10-06 19:30 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/kst
            Branch : pr1
            Commit : f079fae4553a9e8287f8e6553982c25b40505654
            Author : Adam Williamson <awilliam@redhat.com>
            Date   : 2023-08-30T14:15:54-07:00
            Stats  : +2/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/kst/c/f079fae4553a9e8287f8e6553982c25b40505654?branch=pr1

            Log:
            Try and fix the cfitsio require a bit more

This doesn't work when pkgconf isn't installed, and with the
current build system, we do try to parse it before installing
the buildrequires. So, do three things:

* Use pkgconf instead of pkg-config
* BuildRequires pkgconf
* Fall back to a dummy version if pkgconf isn't there

Hopefully this will let me get a build through...

---
diff --git a/kst.spec b/kst.spec
index 41a2df3..30ed0a9 100644
--- a/kst.spec
+++ b/kst.spec
@@ -18,6 +18,7 @@ Patch3:     nest.patch
 
 BuildRequires: gsl-devel cmake
 BuildRequires: cfitsio-devel
+BuildRequires: pkgconf
 %if 0%{?fedora} >= 17
 BuildRequires:  netcdf-cxx-devel
 %else
@@ -75,7 +76,7 @@ Requires:   %{name}%{?_isa} = %{version}-%{release}
 # Hack because cfitsio won't run if it's internal library version
 # doesn't perfectly match between installed library and compiled
 # against library.  Meh.
-Requires:   cfitsio = %(pkg-config --modversion cfitsio 2>/dev/null)
+Requires:   cfitsio = %(pkgconf --modversion cfitsio 2>/dev/null || echo "0")
 
 %description fits
 A plugin allowing kst to open and read data and images contained within 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-06 19:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-06 19:30 [rpms/kst] pr1: Try and fix the cfitsio require a bit more Adam Williamson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox