diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2015-06-04 12:49:43 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2015-06-04 12:49:43 +0200 |
| commit | 67dfa1986d7e8af9a42ffa7c9d2b40599857cf19 (patch) | |
| tree | 87364788f14fbf9ade52e18de680d80fcf535c97 | |
| parent | 696062b1f06194f6c276ff6889ce2f19b1755eaf (diff) | |
gnu: findutils: Use /var as the localstatedir, for 'updatedb'.
* gnu/packages/patches/findutils-localstatedir.patch: New file.
* gnu-system.am (dist_patch_DATA): Add it.
* gnu/packages/base.scm (findutils)[source]: Use it.
[arguments]: Pass --localstatedir=/var.
| -rw-r--r-- | gnu-system.am | 1 | ||||
| -rw-r--r-- | gnu/packages/base.scm | 18 | ||||
| -rw-r--r-- | gnu/packages/patches/findutils-localstatedir.patch | 14 |
3 files changed, 27 insertions, 6 deletions
diff --git a/gnu-system.am b/gnu-system.am index 2641b9a3c58..6b2b1c7bf38 100644 --- a/gnu-system.am +++ b/gnu-system.am | |||
| @@ -416,6 +416,7 @@ dist_patch_DATA = \ | |||
| 416 | gnu/packages/patches/emacs-exec-path.patch \ | 416 | gnu/packages/patches/emacs-exec-path.patch \ |
| 417 | gnu/packages/patches/eudev-rules-directory.patch \ | 417 | gnu/packages/patches/eudev-rules-directory.patch \ |
| 418 | gnu/packages/patches/findutils-absolute-paths.patch \ | 418 | gnu/packages/patches/findutils-absolute-paths.patch \ |
| 419 | gnu/packages/patches/findutils-localstatedir.patch \ | ||
| 419 | gnu/packages/patches/flashrom-use-libftdi1.patch \ | 420 | gnu/packages/patches/flashrom-use-libftdi1.patch \ |
| 420 | gnu/packages/patches/flex-bison-tests.patch \ | 421 | gnu/packages/patches/flex-bison-tests.patch \ |
| 421 | gnu/packages/patches/gawk-shell.patch \ | 422 | gnu/packages/patches/gawk-shell.patch \ |
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm index 0a270939669..e59abd035c2 100644 --- a/gnu/packages/base.scm +++ b/gnu/packages/base.scm | |||
| @@ -206,14 +206,20 @@ interactive means to merge two files.") | |||
| 206 | (sha256 | 206 | (sha256 |
| 207 | (base32 | 207 | (base32 |
| 208 | "0amn0bbwqvsvvsh6drfwz20ydc2czk374lzw5kksbh6bf78k4ks3")) | 208 | "0amn0bbwqvsvvsh6drfwz20ydc2czk374lzw5kksbh6bf78k4ks3")) |
| 209 | (patches (list (search-patch "findutils-absolute-paths.patch"))))) | 209 | (patches (map search-patch |
| 210 | '("findutils-absolute-paths.patch" | ||
| 211 | "findutils-localstatedir.patch"))))) | ||
| 210 | (build-system gnu-build-system) | 212 | (build-system gnu-build-system) |
| 211 | (arguments | 213 | (arguments |
| 212 | ;; Work around cross-compilation failure. | 214 | `(#:configure-flags (list |
| 213 | ;; See <http://savannah.gnu.org/bugs/?27299#comment1>. | 215 | ;; Tell 'updatedb' to write to /var. |
| 214 | (if (%current-target-system) | 216 | "--localstatedir=/var" |
| 215 | '(#:configure-flags '("gl_cv_func_wcwidth_works=yes")) | 217 | |
| 216 | '())) | 218 | ;; Work around cross-compilation failure. See |
| 219 | ;; <http://savannah.gnu.org/bugs/?27299#comment1>. | ||
| 220 | ,@(if (%current-target-system) | ||
| 221 | '("gl_cv_func_wcwidth_works=yes") | ||
| 222 | '())))) | ||
| 217 | (synopsis "Operating on files matching given criteria") | 223 | (synopsis "Operating on files matching given criteria") |
| 218 | (description | 224 | (description |
| 219 | "Findutils supplies the basic file directory searching utilities of the | 225 | "Findutils supplies the basic file directory searching utilities of the |
diff --git a/gnu/packages/patches/findutils-localstatedir.patch b/gnu/packages/patches/findutils-localstatedir.patch new file mode 100644 index 00000000000..c774303cf15 --- /dev/null +++ b/gnu/packages/patches/findutils-localstatedir.patch | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | Do not try to create $localstatedir (aka. /var) since we don't have | ||
| 2 | write access. | ||
| 3 | |||
| 4 | --- findutils-4.4.2/locate/Makefile.in 2015-06-04 12:40:52.690935795 +0200 | ||
| 5 | +++ findutils-4.4.2/locate/Makefile.in 2015-06-04 12:41:32.087286685 +0200 | ||
| 6 | @@ -1212,7 +1212,7 @@ updatedb: updatedb.sh Makefile | ||
| 7 | chmod +x $@ | ||
| 8 | |||
| 9 | install-data-hook: | ||
| 10 | - $(top_srcdir)/build-aux/mkinstalldirs $(DESTDIR)$(localstatedir) | ||
| 11 | + true | ||
| 12 | |||
| 13 | dblocation.texi: Makefile | ||
| 14 | echo '@set LOCATE_DB $(LOCATE_DB)' > $@ | ||
