all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nathan Dehnel <ncdehnel@gmail.com>
To: guix-devel@gnu.org
Subject: gnu-build-system not handling pkg-config properly in package definition
Date: Wed, 23 Dec 2020 23:33:30 -0600	[thread overview]
Message-ID: <CAEEhgEse6yitUTNNM3NDA4pAxF-MG=fwSbA1jDVx=HkszOoTzg@mail.gmail.com> (raw)

https://www.mail-archive.com/bug-guix@gnu.org/msg00180.html
According to this,  if you use gnu-build-system, all packages added to
inputs get added to PKG_CONFIG_PATH, but for some reason it's not
happening for util-linux, which causes a build error. During the build
PKG_CONFIG_PATH ends up not containing any of the util-linux packages.
Does anyone know how to fix this? Package below:

(define-module (gooby-channel packages bcache-tools)
  #:use-module (guix licenses)
  #:use-module (guix packages)
  #:use-module (gnu packages)
  #:use-module (guix build-system gnu)
  #:use-module (guix git-download)
  #:use-module (gnu packages linux)
  #:use-module (gnu packages pkg-config))

(define-public bcache-tools
  (package
    (name "bcache-tools")
    (version "1.1")
    (source
     (origin
       (method git-fetch)
       (uri
        (git-reference
         (url (string-append
"https://git.kernel.org/pub/scm/linux/kernel/git/colyli/" name
".git"))
         (commit (string-append name "-" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32
         "1vfqm3asx7h1sjwyq45dki4wk7lkipqrx2pw2hnqm4xir85qf67h"))
       (patches (search-patches "bcache-tools-noprobe.patch"))))
    (build-system gnu-build-system)
    (arguments
     `(;;#:tests? #f                      ; no "check" target
       #:make-flags
         (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
       #:phases
         (modify-phases %standard-phases
          (delete 'configure))))
    (inputs
     `(("util-linux" ,util-linux)))
    (native-inputs
     `(("pkg-config" ,pkg-config)))
    (home-page "https://bcache.evilpiepirate.org/")
    (synopsis "These are the userspace tools required for bcache.")
    (description "Bcache patches for the Linux kernel allow one to use
SSDs to cache other block devices. It's analogous to L2Arc for ZFS,
but Bcache also does writeback caching (besides just write through
caching), and it's filesystem agnostic. ")
    (license gpl2)))


             reply	other threads:[~2020-12-24  5:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-24  5:33 Nathan Dehnel [this message]
2020-12-24 12:59 ` gnu-build-system not handling pkg-config properly in package definition Danny Milosavljevic
2020-12-24 14:19 ` Tobias Geerinckx-Rice
2020-12-24 15:30   ` Tobias Geerinckx-Rice
2020-12-27  5:27   ` Nathan Dehnel

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='CAEEhgEse6yitUTNNM3NDA4pAxF-MG=fwSbA1jDVx=HkszOoTzg@mail.gmail.com' \
    --to=ncdehnel@gmail.com \
    --cc=guix-devel@gnu.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.