public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Adam Williamson <awilliam@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/kst] pr1: Try and fix the cfitsio require a bit more
Date: Tue, 06 Oct 2026 19:30:21 GMT	[thread overview]
Message-ID: <179131502128.1.5829139987842395050.rpms-kst-f079fae4553a@fedoraproject.org> (raw)

            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 

                 reply	other threads:[~2026-10-06 19:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179131502128.1.5829139987842395050.rpms-kst-f079fae4553a@fedoraproject.org \
    --to=awilliam@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox