* How to adjust PKG_CONFIG_PATH?
@ 2012-12-19 3:05 Nikita Karetnikov
2012-12-19 12:26 ` Ludovic Courtès
0 siblings, 1 reply; 5+ messages in thread
From: Nikita Karetnikov @ 2012-12-19 3:05 UTC (permalink / raw
To: bug-guix
[-- Attachment #1.1: Type: text/plain, Size: 551 bytes --]
Hi,
I'm packaging 'udev'. It fails with the following error:
checking for USBUTILS... no
configure: error: Package requirements (usbutils >= 0.82) were not met:
No package 'usbutils' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables USBUTILS_CFLAGS
and USBUTILS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Can I use 'set-path-environment-variable' for this purpose? How?
Nikita
[-- Attachment #1.2: udev.scm --]
[-- Type: text/plain, Size: 2194 bytes --]
;;; Guix --- Nix package management from Guile. -*- coding: utf-8 -*-
;;; Copyright (C) 2012 Nikita Karetnikov <nikita@karetnikov.org>
;;;
;;; This file is part of Guix.
;;;
;;; Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (distro packages udev)
#:use-module (guix licenses)
#:use-module (distro packages acl)
#:use-module (distro packages base)
#:use-module (distro packages gperf)
#:use-module (distro packages libusb)
#:use-module (distro packages linux)
#:use-module (distro packages pkg-config)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix build-system gnu))
(define-public udev
(package
(name "udev")
(version "182")
(source
(origin
(method url-fetch)
(uri (string-append "mirror://kernel.org/linux/utils/kernel/hotplug/udev-"
version ".tar.xz"))
(sha256
(base32
"1awp7p07gi083w0dwqhhbbas68a7fx2sbm1yf1ip2jwf7cpqkf5d"))))
(build-system gnu-build-system)
(inputs
`(("util-linux" ,util-linux)
("usbutils" ,usbutils)
("kmod" ,kmod)
("libusb" ,libusb)
("acl" ,acl)
("libc" ,glibc)
("pkg-config" ,pkg-config)
("gperf" ,gperf)))
(home-page
"https://www.kernel.org/pub/linux/utils/kernel/hotplug/udev/udev.html")
(synopsis "Udev manages the /dev filesystem")
(description
"Udev is a device manager for the Linux kernel. It manages device
nodes in /dev. It also handles all user space actions connected with
adding and removing devices.")
(license '(gpl2+ lgpl2.1+))))
[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to adjust PKG_CONFIG_PATH?
2012-12-19 3:05 How to adjust PKG_CONFIG_PATH? Nikita Karetnikov
@ 2012-12-19 12:26 ` Ludovic Courtès
2012-12-21 13:08 ` Nikita Karetnikov
0 siblings, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2012-12-19 12:26 UTC (permalink / raw
To: Nikita Karetnikov; +Cc: bug-guix
Hi,
Nikita Karetnikov <nikita@karetnikov.org> skribis:
> checking for USBUTILS... no
> configure: error: Package requirements (usbutils >= 0.82) were not met:
Does /nix/store/*-usbutils/lib/pkgconfig/usbutils.pc exist? If it does,
is it version >= 0.82?
What’s the value of PKG_CONFIG_PATH in the ‘environment-variables’ file
of the build tree of the udev?
The procedure ‘set-paths’ in gnu-build-system.scm adds any input that
has a lib/pkgconfig sub-directory to $PKG_CONFIG_PATH. You can see it
in ‘environment-variables’, or at the beginning of the build log:
--8<---------------cut here---------------start------------->8---
starting phase `set-paths'
environment variable `PATH' set to `...'
environment variable `CPATH' set to `...'
environment variable `LIBRARY_PATH' set to `...'
environment variable `PKG_CONFIG_PATH' set to `/nix/store/0s3wsb0dbw17pwyzm19kwssl4qfiyz9j-libffi-3.0.9/lib/pkgconfig:/nix/store/yn0npyhlff8m5vm278sxxfw4n40vmfdd-libgc-7.2alpha6/lib/pkgconfig:/nix/store/hbvm6c849x9cxhrq912ywg2nm8yhjjig-xz-5.0.4/lib/pkgconfig'
--8<---------------cut here---------------end--------------->8---
HTH,
Ludo’.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to adjust PKG_CONFIG_PATH?
2012-12-19 12:26 ` Ludovic Courtès
@ 2012-12-21 13:08 ` Nikita Karetnikov
2012-12-21 13:26 ` Ludovic Courtès
0 siblings, 1 reply; 5+ messages in thread
From: Nikita Karetnikov @ 2012-12-21 13:08 UTC (permalink / raw
To: Ludovic Courtès; +Cc: bug-guix
[-- Attachment #1: Type: text/plain, Size: 566 bytes --]
> Does /nix/store/*-usbutils/lib/pkgconfig/usbutils.pc exist? If it does,
> is it version >= 0.82?
There is no 'lib' at all.
> What’s the value of PKG_CONFIG_PATH in the ‘environment-variables’ file
> of the build tree of the udev?
export PKG_CONFIG_PATH="/nix/store/1qbbjlk4y0x4284rslawk6mxn93wvdba-util-linux-2.21/lib/pkgconfig:/nix/store/qwd8kh9mkpq3jmn92yhcw95d9c26azv2-kmod-12/lib/pkgconfig:/nix/store/1x3fy2fs9p4k80asqcasji82lhhfb5hp-libusb-1.0.9/lib/pkgconfig:/nix/store/5z1yxm70zcsgkmdshg8xg8gpzkpwg48c-xz-5.0.4/lib/pkgconfig"
Nikita
[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to adjust PKG_CONFIG_PATH?
2012-12-21 13:08 ` Nikita Karetnikov
@ 2012-12-21 13:26 ` Ludovic Courtès
2012-12-24 19:03 ` Nikita Karetnikov
0 siblings, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2012-12-21 13:26 UTC (permalink / raw
To: Nikita Karetnikov; +Cc: bug-guix
Nikita Karetnikov <nikita@karetnikov.org> skribis:
>> Does /nix/store/*-usbutils/lib/pkgconfig/usbutils.pc exist? If it does,
>> is it version >= 0.82?
>
> There is no 'lib' at all.
Hmm. I just checked and usbutils in Nixpkgs doesn’t have ‘lib’ either.
Can you check how udev in Nixpkgs works around the issue?
TIA,
Ludo’.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to adjust PKG_CONFIG_PATH?
2012-12-21 13:26 ` Ludovic Courtès
@ 2012-12-24 19:03 ` Nikita Karetnikov
0 siblings, 0 replies; 5+ messages in thread
From: Nikita Karetnikov @ 2012-12-24 19:03 UTC (permalink / raw
To: Ludovic Courtès; +Cc: bug-guix
[-- Attachment #1: Type: text/plain, Size: 135 bytes --]
> Can you check how udev in Nixpkgs works around the issue?
There are previous versions. I don't see anything relevant there.
Nikita
[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-12-24 19:03 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-19 3:05 How to adjust PKG_CONFIG_PATH? Nikita Karetnikov
2012-12-19 12:26 ` Ludovic Courtès
2012-12-21 13:08 ` Nikita Karetnikov
2012-12-21 13:26 ` Ludovic Courtès
2012-12-24 19:03 ` Nikita Karetnikov
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).