aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/attr.scm
blob: 8c1a4aca7c539cfcf05d275e88dcfcb67b762862 (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
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org>
;;; Copyright © 2012, 2013, 2016, 2021 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2018 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2019 Marius Bakke <mbakke@fastmail.com>
;;;
;;; 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 attr)
  #:use-module (guix licenses)
  #:use-module (gnu packages perl)
  #:use-module (gnu packages gettext)
  #:use-module (gnu packages hurd)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix build-system gnu))

(define-public attr
  (package
    (name "attr")
    (version "2.5.1")
    (source (origin
              (method url-fetch)
              (uri (string-append "mirror://savannah/attr/attr-"
                                  version ".tar.gz"))
              (sha256
               (base32
                "1y6sibbkrcjygv8naadnsg6xmsqwfh6cwrqk01l0v2i5kfacdqds"))))
    (build-system gnu-build-system)
    (arguments
     `(#:phases
       (modify-phases %standard-phases
         ,@(if (hurd-target?)
               `((add-before 'configure 'skip-linux-syscalls
                   (lambda _
                     ;; Starting from 2.5.1, libattr includes Linux-specific
                     ;; calls to syscall(2).  Comment them out for GNU/Hurd
                     ;; and instead use the glibc-provided wrappers.
                     (substitute* "Makefile.in"
                       (("libattr/syscalls\\.c") "")
                       (("\tlibattr/la-syscalls\\.lo") "")
                       (("-Wl,[[:graph:]]+/libattr\\.lds") "")))))
               '())
         (replace 'check
           (lambda* (#:key target #:allow-other-keys)
             ;; Use the right shell.
             (substitute* "test/run"
               (("/bin/sh")
                (which "sh")))

             ;; When building natively, run the tests.
             ;;
             ;; Note that we use system* and unconditionally return #t here
             ;; to ignore the test result, because the tests will fail when
             ;; the build is performed on a file system without support for
             ;; extended attributes, and we wish to allow Guix to be built
             ;; on such systems.
             (unless target
               (system* "make" "tests" "-C" "test")))))))
    (inputs
     ;; Perl is needed to run tests; remove it from cross builds.
     (if (%current-target-system)
         '()
         `(("perl" ,perl))))
    (native-inputs
     `(("gettext" ,gettext-minimal)))

    (home-page "https://savannah.nongnu.org/projects/attr/")
    (synopsis "Library and tools for manipulating extended attributes")
    (description
     "Portable library and tools for manipulating extended attributes.")
    (license lgpl2.1+)))
ments]: Rewrite with gexp and remove inputs labels. Do a "manual" PEP517-style build. [native-inputs]: Remove PYTHON-MOCK. Change from OPENLDAP to OPENLDAP-2.6. Add PYTHON-PYPA-BUILD, PYTHON-PIP, PYTHON-SETUPTOOLS-SCM, PYTHON-TOML, and PYTHON-WHEEL. Marius Bakke 2022-01-21gnu: python-django: Add a native search path for TZDIR....* gnu/packages/django.scm (python-django-4.0)[native-search-paths]: Add TZDIR specification. (django-3.2)[native-search-paths]: Don't inherit. (python-django-rest-framework): Don't set TZDIR directly. Marius Bakke 2022-01-21gnu: python-django-url-filter: Patch for Django 4.0 compatibility....* gnu/packages/django.scm (python-django-url-filter)[source](modules, snippet): New fields. Marius Bakke 2022-01-05gnu: python-django@2.2: Update hash....PyPI is serving a different tarball from the official home page, where this packager had downloaded it: <https://code.djangoproject.com/ticket/33411>. This is a follow-up to commit ad35d8c017fe5ddfb05341a90e171f36e9785526. * gnu/packages/django.scm (python-django-2.2)[source]: Update checksum. Marius Bakke 2022-01-05gnu: python-django@2.2: Update to 2.2.26 [security fixes]....This release fixes CVE-2021-45115, CVE-2021-45116, and CVE-2021-45452. * gnu/packages/django.scm (python-django-2.2): Update to 2.2.26. Marius Bakke 2022-01-05gnu: python-django@3.2: Update to 3.2.11 [security fixes]....This release fixes CVE-2021-45115, CVE-2021-45116, and CVE-2021-45452. * gnu/packages/django.scm (python-django-3.2): Update to 3.2.11. Marius Bakke 2022-01-05gnu: python-django: Update to 4.0.1 [security fixes]....This release fixes CVE-2021-45115, CVE-2021-45116, and CVE-2021-45452. * gnu/packages/django.scm (python-django-4.0): Update to 4.0.1. Marius Bakke 2021-12-17gnu: python-djangorestframework: Rename to python-django-rest-framework....* gnu/packages/django.scm (python-djangorestframework): Define as deprecated alias for ... (python-django-rest-framework): ... this new variable. (python-django-filter)[native-inputs]: Adjust accordingly. * gnu/packages/mail.scm (python-hyperkitty)[propagated-inputs]: Likewise. * gnu/packages/patchutils.scm (patchwork)[propagated-inputs]: Likewise. Marius Bakke 2021-12-17gnu: python-django-rest-framework: Update to 3.13.1....* gnu/packages/django.scm (python-djangorestframework): Update to 3.13.1. [arguments]: Remove obsolete workarounds. Set TZDIR in check phase. [native-inputs]: Add TZDATA-FOR-TESTS. [propagated-inputs]: Add PYTHON-PYTZ. Marius Bakke 2021-12-17gnu: python-django: Add 4.0....* gnu/packages/django.scm (python-django): Rename to ... (python-django-4.0): ... this. Update to 4.0. [propagated-inputs]: Remove PYTHON-PYTZ. (python-django-3.2): New variable. (python-django-2.2): Inherit from it. (python-django): Define as alias for PYTHON-DJANGO-3.2. Marius Bakke 2021-12-13gnu: Simplify package inputs....This commit was obtained by running: ./pre-inst-env guix style without any additional argument. Ludovic Courtès 2021-12-10Merge remote-tracking branch 'signed/master' into core-updatesMathieu Othacehe 2021-12-08gnu: python-django: Update to 3.2.10 [fixes CVE-2021-4442]....* gnu/packages/django.scm (python-django): Update to 3.2.10. Marius Bakke 2021-12-08gnu: python-django@2.2: Update to 2.2.25 [fixes CVE-2021-4442]....* gnu/packages/django.scm (python-django-2.2): Update to 2.2.25. Marius Bakke 2021-12-05gnu: Add python-django-svg-image-form-field....* gnu/packages/django.scm (python-django-svg-image-form-field): New variable. Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr> Luis Felipe 2021-12-05Merge remote-tracking branch 'origin/master' into core-updates-frozenRicardo Wurmus 2021-12-05gnu: python-django-netfields: Update to 1.2.4....* gnu/packages/django.scm (python-django-netfields): Update to 1.2.4. Marius Bakke 2021-12-05gnu: python-django: Update to 3.2.9....* gnu/packages/django.scm (python-django): Update to 3.2.9. Marius Bakke 2021-12-05gnu: python-django-haystack: Update to 3.1.1....* gnu/packages/django.scm (python-django-haystack): Update to 3.1.1. [arguments]: Adjust substitution. Marius Bakke 2021-12-05gnu: python-django-url-filter: Adjust phase order....* gnu/packages/django.scm (python-django-url-filter)[arguments]: Move substitution to after the unpack phase, so that it does not end up in the egg info. Marius Bakke 2021-12-05gnu: python-django-netfields: Propagate psycopg2....* gnu/packages/django.scm (python-django-netfields)[propagated-inputs]: Add PYTHON-PSYCOPG2. Marius Bakke 2021-12-05gnu: python-django-logging-json: Disable sanity check....* gnu/packages/django.scm (python-django-logging-json)[arguments]: Add #:phases. Marius Bakke 2021-12-05gnu: python-django-appconf: Fix tests....* gnu/packages/django.scm (python-django-appconf): Invoke django-admin with custom pythonpath. Marius Bakke 2021-12-05gnu: python-django-pipeline: Fix tests....* gnu/packages/django.scm (python-django-pipeline): Provide pythonpath to django-admin. Marius Bakke 2021-12-05gnu: python-django-sortedm2m: Fix tests....This is a follow-up to commit 283d5ac97f2f7663b788bd2fc3b9a27a3d82c7d5. * gnu/packages/django.scm (python-django-sortedm2m): Invoke django-admin with pythonpath and test settings. Marius Bakke 2021-12-05gnu: python-django-contact-form: Update to 1.9....* gnu/packages/django.scm (python-django-contact-form): Update to 1.9. Marius Bakke 2021-12-05gnu: python-django-jinja: Update to 2.9.1....* gnu/packages/django.scm (python-django-jinja): Update to 2.9.1. Marius Bakke 2021-12-05gnu: python-django-haystack: Disable sanity check....* gnu/packages/django.scm (python-django-haystack)[arguments]: Delete one phase. While at it, remove trailing #t's. Marius Bakke 2021-12-05gnu: Django packages propagate Django, after all....This reverts commit d7922f488b658b1adb5aff09f04a9bed0221aee1. Mainly to placate the new 'sanity-check' phase, and because --with-input and friends makes it easy to override. * gnu/packages/django.scm (python-django-extensions, python-django-simple-math-captcha, python-django-taggit, python-easy-thumbnails, python-django-haystack, python-django-allauth, python-django-debug-toolbar, python-django-debug-toolbar-alchemy, python-django-assets, python-django-jinja, python-django-picklefield, python-django-bulk-update, python-django-contact-form, python-django-contrib-comments, python-django-pipeline, python-django-redis, python-django-rq, python-django-q, python-django-sortedm2m, python-django-appconf, python-django-statici18n, python-djangorestframework, python-django-sekizai, python-django-crispy-forms, python-django-override-storage, python-django-auth-ldap, python-django-logging-json, python-django-netfields, python-django-url-filter)[propagated-inputs]: Add PYTHON-DJANGO. [native-inputs]: Remove it. Marius Bakke 2021-11-21gnu: python-django-localflavor: Use GUIX_PYTHONPATH....* gnu/packages/django.scm (python-django-localflavor)[arguments]: Use GUIX_PYTHONPATH. Ricardo Wurmus