aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/pciutils.scm
blob: a5ed121c85f243ac5c1a2494b728e021037b3d92 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014, 2015, 2017 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU 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.
;;;
;;; GNU 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 GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (gnu packages pciutils)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix utils)
  #:use-module (guix build-system gnu)
  #:use-module (gnu packages)
  #:use-module (gnu packages compression)
  #:use-module (gnu packages pkg-config)
  #:use-module (gnu packages hurd)
  #:use-module (gnu packages linux)
  #:use-module (gnu packages base))

(define-public pciutils
  (package
    (name "pciutils")
    (version "3.7.0")
    (source (origin
              (method url-fetch)
              (uri (string-append
                    "mirror://kernel.org/software/utils/pciutils/pciutils-"
                    version ".tar.xz"))
              (patches (search-patches "pciutils-hurd-configure.patch"))
              (sha256
               (base32
                "1ss0rnfsx8gvqjxaji4mvbhf9xyih4cadmgadbwwv8mnx1xvjh4x"))))
    (build-system gnu-build-system)
    (arguments
     `(#:phases
       (modify-phases %standard-phases
         (replace 'configure
           (lambda* (#:key outputs #:allow-other-keys)
             ;; There's no 'configure' script, just a raw makefile.
             (substitute* "Makefile"
               ,@(if (%current-target-system)
                     `((("^CROSS_COMPILE=.*$")
                        (string-append "CROSS_COMPILE="
                                       ,(%current-target-system) "-"
                                       "\n"))
                       (("^HOST=.*$")
                        (string-append "HOST="
                                       ,(gnu-triplet->nix-system
                                         (%current-target-system)) "\n"))
                       ;; Disable 'install' strip option, that would fail when
                       ;; we are cross-compiling.
                       (("^STRIP=.*$")
                        "STRIP=\n"))
                     '())
               (("^PREFIX=.*$")
                (string-append "PREFIX := " (assoc-ref outputs "out")
                               "\n"))
               (("^MANDIR:=.*$")
                 ;; By default the thing tries to automatically
                 ;; determine whether to use $prefix/man or
                 ;; $prefix/share/man, and wrongly so.
                (string-append "MANDIR := " (assoc-ref outputs "out")
                               "/share/man\n"))

               (("^SHARED=.*$")
                ;; Build libpciutils.so.
                "SHARED := yes\n")
               (("^ZLIB=.*$")
                ;; Ask for zlib support, for 'pci.ids.gz' decompression.
                "ZLIB := yes\n")

               (("^IDSDIR=.*$")
                ;; Installation directory of 'pci.ids.gz'.
                "IDSDIR = $(SHAREDIR)/hwdata\n"))
             #t))
         (replace 'install
           (lambda* (#:key outputs #:allow-other-keys)
             ;; Install the commands, library, and .pc files.
             (invoke "make" "install" "install-lib"))))

       ;; Make sure programs have an RPATH so they can find libpciutils.so.
       #:make-flags (list (string-append "LDFLAGS=-Wl,-rpath="
                                         (assoc-ref %outputs "out") "/lib"))

       ;; No test suite.
       #:tests? #f))
    (native-inputs
     `(("which" ,which)
       ("pkg-config" ,pkg-config)))
    (inputs
     `(,@(if (member (or (%current-target-system)
                         (%current-system))
                     (package-supported-systems kmod))
             `(("kmod" ,kmod))
             '())
       ("zlib" ,zlib)))
    (home-page "https://mj.ucw.cz/sw/pciutils/")
    (synopsis "Programs for inspecting and manipulating PCI devices")
    (description
     "The PCI Utilities are a collection of programs for inspecting and
manipulating configuration of PCI devices, all based on a common portable
library libpci which offers access to the PCI configuration space on a variety
of operating systems.  This includes the @command{lspci} and @command{setpci}
commands.")
    (license license:gpl2+)))
¨s 2023-05-06gnu: guix-data-service: Update to 0.0.1-40.3734a85...* gnu/packages/web.scm (guix-data-service): Update to 0.0.1-40.3734a85. Christopher Baines 2023-04-30gnu: mod-wsgi: Make sure not to keep a store reference to HTTPD....* gnu/packages/web.scm (mod-wsgi)[inputs]: Move httpd ... [native-inputs]: ... to here. [arguments]: Forbid keeping a reference to httpd. Leo Famulari 2023-04-30gnu: httpd: Update to 2.4.57 [security fixes]....Fixes CVE-2023-27522, CVE-2023-25690, CVE-2022-37436, CVE-2022-36760, CVE-2006-20001, CVE-2022-31813, CVE-2022-30556, CVE-2022-30522, CVE-2022-29404, CVE-2022-28615, CVE-2022-28614, CVE-2022-28330, CVE-2022-26377, CVE-2022-23943, CVE-2022-22721, CVE-2022-22720, and CVE-2022-22719. * gnu/packages/web.scm (httpd): Update to 2.4.57. (httpd/pinned): New variable. * gnu/packages/gnome.scm (libsoup-minimal): Replace httpd with httpd/pinned. Leo Famulari 2023-04-27gnu: libwebsockets: Update to 4.3.2....* gnu/packages/web.scm (libwebsockets): Update to 4.3.2. [arguments]: Remove. [source]: Use GIT-FILE-NAME. Ricardo Wurmus 2023-04-26gnu: rapidjson: Update to 1.1.0-1.949c771....* gnu/packages/patches/rapidjson-gcc-compat.patch: Remove file. * gnu/local.mk (dist_patch_DATA): Remove it. * gnu/packages/web.scm (rapidjson): Update to 1.1.0-1.949c771. [source]: Remove obsolete patch. Ricardo Wurmus 2023-04-22Merge remote-tracking branch 'origin/master' into core-updatesAndreas Enge 2023-04-22gnu: Add binaryen....* gnu/packages/web.scm (binaryen): New variable. Ricardo Wurmus 2023-04-22gnu: wabt: Update to 1.0.32....* gnu/packages/web.scm (wabt): Update to 1.0.32. [source]: Fetch sources recursively; delete bundled gtest sources. [arguments]: Do build and run tests; add phase to set CC variable, and another phase to delete a broken test. [native-inputs]: Add python and googletest. [inputs]: Remove. Ricardo Wurmus 2023-04-14Merge branch 'master' into core-updates....Conflicts: gnu/local.mk gnu/packages/build-tools.scm gnu/packages/certs.scm gnu/packages/check.scm gnu/packages/compression.scm gnu/packages/cups.scm gnu/packages/fontutils.scm gnu/packages/gnuzilla.scm gnu/packages/guile.scm gnu/packages/ibus.scm gnu/packages/image-processing.scm gnu/packages/linux.scm gnu/packages/music.scm gnu/packages/nss.scm gnu/packages/pdf.scm gnu/packages/python-xyz.scm gnu/packages/qt.scm gnu/packages/ruby.scm gnu/packages/shells.scm gnu/packages/tex.scm gnu/packages/video.scm gnu/packages/vulkan.scm gnu/packages/web.scm gnu/packages/webkit.scm gnu/packages/wm.scm Maxim Cournoyer 2023-04-14gnu: perl-io-socket-ssl: Update to 2.081....* gnu/packages/web.scm (perl-io-socket-ssl): Update to 2.081. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Bruno Victal 2023-04-14gnu: perl-io-socket-ssl: Update to 2.075....* gnu/packages/web.scm (perl-io-socket-ssl): Update to 2.075. Marius Bakke 2023-04-14gnu: perl-http-daemon: Update to 6.14....* gnu/packages/web.scm (perl-http-daemon): Update to 6.14. [native-inputs]: Add PERL-MODULE-BUILD and PERL-TEST-NEEDS. Marius Bakke 2023-04-14gnu: perl-http-message: Update to 6.37....* gnu/packages/web.scm (perl-http-message): Update to 6.37. [native-inputs]: Add PERL-TEST-NEEDS. Marius Bakke 2023-04-12gnu: Add nntpit....* gnu/packages/web.scm (nntpit): New variable. Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr> James 2023-04-02gnu: Add nntpit....* gnu/packages/web.scm (nntpit): New variable. Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr> James 2023-03-31gnu: Replace all uses of atk by at-spi2-core....* gnu/packages/animation.scm (gnash) * gnu/packages/chromium.scm (ungoogled-chromium) * gnu/packages/crates-gtk.scm (rust-atk-sys-0.14, rust-atk-sys-0.10, rust-atk-0.14, rust-gtk-0.14) * gnu/packages/gimp.scm (gimp) * gnu/packages/gnome.scm (evince, glade3, clutter, totem, rhythmbox, mutter, ghex): * gnu/packages/graphviz.scm (xdot) * gnu/packages/gtk.scm (gtk+-2, gtk+, guile-gnome, atkmm) * gnu/packages/mate.scm (mate-applets, atril, mate-control-center, mate-calc, mate-utils, eom, pluma) * gnu/packages/messaging.scm (dino) * gnu/packages/qt.scm (qtwebengine-5) * gnu/packages/rust-apps.scm (alfis) * gnu/packages/vim.scm (vim-full) * gnu/packages/vnc.scm (remmina) * gnu/packages/web.scm (castor): Replace atk by at-spi2-core. Signed-off-by: Guillaume Le Vaillant <glv@posteo.net> Josselin Poiret 2023-03-30gnu: perl-io-socket-ssl: Update to 2.081....* gnu/packages/web.scm (perl-io-socket-ssl): Update to 2.081. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Bruno Victal 2023-03-23Merge remote-tracking branch 'origin/master' into staging....With resolved conflicts in: gnu/packages/ibus.scm gnu/packages/image.scm gnu/packages/lisp.scm gnu/packages/virtualization.scm Maxim Cournoyer 2023-03-20Merge remote-tracking branch 'origin/master' into core-updatesAndreas Enge 2023-03-18gnu: Add tissue....* gnu/packages/web.scm (tissue): New variable. Arun Isaac 2023-03-18gnu: python-feedparser: Add Python >=3.9 compatibility....* gnu/packages/patches/python-feedparser-missing-import.patch: New file. * gnu/local.mk: Add it. * gnu/packages/web.scm (python-feedparser): Use it. Lars-Dominik Braun 2023-03-16gnu: cat-avatar-generator: Update to 1-1.9360ea3....* gnu/packages/web.scm (cat-avatar-generator): Update to 1-1.9360ea3. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Evgeny Pisemsky 2023-03-11gnu: python-feedparser: Update to 6.0.10....* gnu/packages/web.scm (python-feedparser): Update to 6.0.10. Andreas Enge 2023-03-10gnu: Add kiln....* gnu/packages/web.scm (kiln): New variable. Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr> Nikolay Korotkiy 2023-03-02Merge remote-tracking branch 'savannah/master' into core-updates...Conflicts: gnu/local.mk gnu/packages/autotools.scm gnu/packages/cmake.scm gnu/packages/gnuzilla.scm gnu/packages/haskell.scm gnu/packages/pdf.scm gnu/packages/python-xyz.scm gnu/packages/samba.scm gnu/packages/tex.scm gnu/packages/tls.scm gnu/packages/wxwidgets.scm Christopher Baines 2023-03-04gnu: Remove and deprecate tidy for tidy-html...* gnu/packages/web.scm (tidy): Change to deprecated alias for tidy-html * gnu/packages/pumpio.scm (pumpa): Use tidy-html instead of tidy and correct header name. * gnu/packages/markup.scm (hoedown): * gnu/packages/photo.scm (enblend-enfuse): * gnu/packages/php.scm (php): * gnu/packages/python-xyz.scm (python-pytidylib): Use tidy-html instead of tidy. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Morgan Smith 2023-02-19gnu: perl-cgi: Update to 4.55...* gnu/packages/web.scm (perl-cgi): Update to 4.55. [native-inputs]: Remove perl-test-deep. Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr> Vasile Dumitrascu via Guix-patches via