summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2013-10-09 00:09:04 +0200
committerLudovic Courtès <ludo@gnu.org>2013-10-09 00:11:34 +0200
commit01eafd38fbeb49d8167d99569eb624ab404bbeb2 (patch)
treecfbde1f3b011ee586bf4ce45b7f83d10fc28e2f4 /gnu
parentac10e0e17e366d354ad8b3f91e03c1bdeddc7632 (diff)
gnu: Use the 'patches' field of <origin>.
* gnu/packages/apr.scm, gnu/packages/autotools.scm, gnu/packages/avahi.scm, gnu/packages/cdrom.scm, gnu/packages/cmake.scm, gnu/packages/cpio.scm, gnu/packages/cross-base.scm, gnu/packages/emacs.scm, gnu/packages/flex.scm, gnu/packages/fontutils.scm, gnu/packages/glib.scm, gnu/packages/grub.scm, gnu/packages/guile.scm, gnu/packages/idutils.scm, gnu/packages/libevent.scm, gnu/packages/linux.scm, gnu/packages/mail.scm, gnu/packages/make-bootstrap.scm, gnu/packages/mp3.scm, gnu/packages/oggvorbis.scm, gnu/packages/pdf.scm, gnu/packages/plotutils.scm, gnu/packages/qemu.scm, gnu/packages/recutils.scm, gnu/packages/rush.scm, gnu/packages/scheme.scm, gnu/packages/system.scm, gnu/packages/tcsh.scm, gnu/packages/valgrind.scm, gnu/packages/vpn.scm, gnu/packages/w3m: Use the 'patches' field of <origin> instead of adding a patch as input plus using #:patches.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/apr.scm13
-rw-r--r--gnu/packages/autotools.scm11
-rw-r--r--gnu/packages/avahi.scm11
-rw-r--r--gnu/packages/cdrom.scm7
-rw-r--r--gnu/packages/cmake.scm7
-rw-r--r--gnu/packages/cpio.scm21
-rw-r--r--gnu/packages/cross-base.scm9
-rw-r--r--gnu/packages/emacs.scm9
-rw-r--r--gnu/packages/flex.scm8
-rw-r--r--gnu/packages/fontutils.scm8
-rw-r--r--gnu/packages/glib.scm26
-rw-r--r--gnu/packages/grub.scm10
-rw-r--r--gnu/packages/guile.scm15
-rw-r--r--gnu/packages/idutils.scm23
-rw-r--r--gnu/packages/libevent.scm9
-rw-r--r--gnu/packages/linux.scm9
-rw-r--r--gnu/packages/mail.scm9
-rw-r--r--gnu/packages/make-bootstrap.scm49
-rw-r--r--gnu/packages/mp3.scm12
-rw-r--r--gnu/packages/oggvorbis.scm12
-rw-r--r--gnu/packages/pdf.scm9
-rw-r--r--gnu/packages/plotutils.scm8
-rw-r--r--gnu/packages/qemu.scm8
-rw-r--r--gnu/packages/recutils.scm9
-rw-r--r--gnu/packages/rush.scm7
-rw-r--r--gnu/packages/scheme.scm21
-rw-r--r--gnu/packages/system.scm24
-rw-r--r--gnu/packages/tcsh.scm12
-rw-r--r--gnu/packages/valgrind.scm11
-rw-r--r--gnu/packages/vpn.scm9
-rw-r--r--gnu/packages/w3m.scm28
31 files changed, 169 insertions, 255 deletions
diff --git a/gnu/packages/apr.scm b/gnu/packages/apr.scm
index 01a4e6c2bab..cfb3b6acd5f 100644
--- a/gnu/packages/apr.scm
+++ b/gnu/packages/apr.scm
@@ -35,16 +35,13 @@
35 version ".tar.bz2")) 35 version ".tar.bz2"))
36 (sha256 36 (sha256
37 (base32 37 (base32
38 "0884csfk3f530yscak0jlr6w929s3ys0n7fpwdg3dii1sgwd5f31")))) 38 "0884csfk3f530yscak0jlr6w929s3ys0n7fpwdg3dii1sgwd5f31"))
39 (patches
40 (list (search-patch "apr-skip-getservbyname-test.patch")))
41 (patch-flags '("-p0"))))
39 (build-system gnu-build-system) 42 (build-system gnu-build-system)
40 (arguments
41 `(#:patches (list (assoc-ref %build-inputs
42 "patch/skip-test"))
43 #:patch-flags '("-p0")))
44 (inputs `(("perl" ,perl) 43 (inputs `(("perl" ,perl)
45 ("libtool" ,libtool) 44 ("libtool" ,libtool)))
46 ("patch/skip-test"
47 ,(search-patch "apr-skip-getservbyname-test.patch"))))
48 (home-page "http://apr.apache.org/") 45 (home-page "http://apr.apache.org/")
49 (synopsis "The Apache Portable Runtime Library") 46 (synopsis "The Apache Portable Runtime Library")
50 (description 47 (description
diff --git a/gnu/packages/autotools.scm b/gnu/packages/autotools.scm
index d32de8dcbd7..580e43eff30 100644
--- a/gnu/packages/autotools.scm
+++ b/gnu/packages/autotools.scm
@@ -141,20 +141,19 @@ exec ~a --no-auto-compile \"$0\" \"$@\"
141 version ".tar.xz")) 141 version ".tar.xz"))
142 (sha256 142 (sha256
143 (base32 143 (base32
144 "0nc0zqq8j336kamizzd86wb19vhbwywv5avcjh3cyx230xfqy671")))) 144 "0nc0zqq8j336kamizzd86wb19vhbwywv5avcjh3cyx230xfqy671"))
145 (patches
146 (list (search-patch "automake-skip-amhello-tests.patch")))))
145 (build-system gnu-build-system) 147 (build-system gnu-build-system)
146 (inputs 148 (inputs
147 `(("autoconf" ,autoconf-wrapper) 149 `(("autoconf" ,autoconf-wrapper)
148 ("perl" ,perl) 150 ("perl" ,perl)))
149 ("patch/skip-amhello"
150 ,(search-patch "automake-skip-amhello-tests.patch"))))
151 (native-search-paths 151 (native-search-paths
152 (list (search-path-specification 152 (list (search-path-specification
153 (variable "ACLOCAL_PATH") 153 (variable "ACLOCAL_PATH")
154 (directories '("share/aclocal"))))) 154 (directories '("share/aclocal")))))
155 (arguments 155 (arguments
156 '(#:patches (list (assoc-ref %build-inputs "patch/skip-amhello")) 156 '(#:modules ((guix build gnu-build-system)
157 #:modules ((guix build gnu-build-system)
158 (guix build utils) 157 (guix build utils)
159 (srfi srfi-1) 158 (srfi srfi-1)
160 (srfi srfi-26) 159 (srfi srfi-26)
diff --git a/gnu/packages/avahi.scm b/gnu/packages/avahi.scm
index 14073b32a0f..2d2a4a43c12 100644
--- a/gnu/packages/avahi.scm
+++ b/gnu/packages/avahi.scm
@@ -39,7 +39,8 @@
39 version ".tar.gz")) 39 version ".tar.gz"))
40 (sha256 40 (sha256
41 (base32 41 (base32
42 "0j5b5ld6bjyh3qhd2nw0jb84znq0wqai7fsrdzg7bpg24jdp2wl3")))) 42 "0j5b5ld6bjyh3qhd2nw0jb84znq0wqai7fsrdzg7bpg24jdp2wl3"))
43 (patches (list (search-patch "avahi-localstatedir.patch")))))
43 (build-system gnu-build-system) 44 (build-system gnu-build-system)
44 (arguments 45 (arguments
45 '(#:configure-flags '("--with-distro=none" 46 '(#:configure-flags '("--with-distro=none"
@@ -50,8 +51,7 @@
50 "--disable-xmltoman" 51 "--disable-xmltoman"
51 "--enable-tests" 52 "--enable-tests"
52 "--disable-qt3" "--disable-qt4" 53 "--disable-qt3" "--disable-qt4"
53 "--disable-gtk" "--disable-gtk3") 54 "--disable-gtk" "--disable-gtk3")))
54 #:patches (list (assoc-ref %build-inputs "patch/localstatedir"))))
55 (inputs 55 (inputs
56 `(("expat" ,expat) 56 `(("expat" ,expat)
57 ("glib" ,glib) 57 ("glib" ,glib)
@@ -59,10 +59,7 @@
59 ("libdaemon" ,libdaemon) 59 ("libdaemon" ,libdaemon)
60 ("intltool" ,intltool) 60 ("intltool" ,intltool)
61 ("pkg-config" ,pkg-config) 61 ("pkg-config" ,pkg-config)
62 ("gdbm" ,gdbm) 62 ("gdbm" ,gdbm)))
63
64 ("patch/localstatedir"
65 ,(search-patch "avahi-localstatedir.patch"))))
66 (synopsis "Avahi, an mDNS/DNS-SD implementation") 63 (synopsis "Avahi, an mDNS/DNS-SD implementation")
67 (description 64 (description
68 "Avahi is a system which facilitates service discovery on a local 65 "Avahi is a system which facilitates service discovery on a local
diff --git a/gnu/packages/cdrom.scm b/gnu/packages/cdrom.scm
index 08c92fb0146..40480fa704c 100644
--- a/gnu/packages/cdrom.scm
+++ b/gnu/packages/cdrom.scm
@@ -129,14 +129,13 @@ filesystems.")
129 version ".src.tgz")) 129 version ".src.tgz"))
130 (sha256 130 (sha256
131 (base32 131 (base32
132 "1pv4zrajm46za0f6lv162iqffih57a8ly4pc69f7y0gfyigb8p80")))) 132 "1pv4zrajm46za0f6lv162iqffih57a8ly4pc69f7y0gfyigb8p80"))
133 (patches (list (search-patch "cdparanoia-fpic.patch")))))
133 (build-system gnu-build-system) 134 (build-system gnu-build-system)
134 (inputs 135 (inputs
135 `(("patch/fpic" ,(search-patch "cdparanoia-fpic.patch")) 136 `(("patchelf" ,patchelf)))
136 ("patchelf" ,patchelf)))
137 (arguments 137 (arguments
138 `(#:tests? #f ; there is no check target 138 `(#:tests? #f ; there is no check target
139 #:patches (list (assoc-ref %build-inputs "patch/fpic"))
140 #:modules ((guix build gnu-build-system) 139 #:modules ((guix build gnu-build-system)
141 (guix build utils) 140 (guix build utils)
142 (guix build rpath) 141 (guix build rpath)
diff --git a/gnu/packages/cmake.scm b/gnu/packages/cmake.scm
index 734f55f330e..0717529fcdd 100644
--- a/gnu/packages/cmake.scm
+++ b/gnu/packages/cmake.scm
@@ -36,11 +36,11 @@
36 (string-index version #\. (+ 1 (string-index version #\.)))) 36 (string-index version #\. (+ 1 (string-index version #\.))))
37 "/cmake-" version ".tar.gz")) 37 "/cmake-" version ".tar.gz"))
38 (sha256 38 (sha256
39 (base32 "1c8fj6i2x9sb39wc9av2ighj415mw33cxfrlfpafcvm0knrlylnf")))) 39 (base32 "1c8fj6i2x9sb39wc9av2ighj415mw33cxfrlfpafcvm0knrlylnf"))
40 (patches (list (search-patch "cmake-fix-tests.patch")))))
40 (build-system gnu-build-system) 41 (build-system gnu-build-system)
41 (arguments 42 (arguments
42 '(#:test-target "test" 43 '(#:test-target "test"
43 #:patches (list (assoc-ref %build-inputs "fix-tests"))
44 #:patch-flags '("-p0") 44 #:patch-flags '("-p0")
45 #:phases (alist-replace 45 #:phases (alist-replace
46 'configure 46 'configure
@@ -66,8 +66,7 @@
66 (string-append "--prefix=" out))))) 66 (string-append "--prefix=" out)))))
67 %standard-phases))) 67 %standard-phases)))
68 (inputs 68 (inputs
69 `(("file" ,file) 69 `(("file" ,file)))
70 ("fix-tests" ,(search-patch "cmake-fix-tests.patch"))))
71 (home-page "http://www.cmake.org/") 70 (home-page "http://www.cmake.org/")
72 (synopsis "A cross-platform, open-source build system") 71 (synopsis "A cross-platform, open-source build system")
73 (description 72 (description
diff --git a/gnu/packages/cpio.scm b/gnu/packages/cpio.scm
index 8512499b7ba..43d5a1e6232 100644
--- a/gnu/packages/cpio.scm
+++ b/gnu/packages/cpio.scm
@@ -27,20 +27,15 @@
27 (package 27 (package
28 (name "cpio") 28 (name "cpio")
29 (version "2.11") 29 (version "2.11")
30 (source 30 (source (origin
31 (origin 31 (method url-fetch)
32 (method url-fetch) 32 (uri (string-append "mirror://gnu/cpio/cpio-"
33 (uri (string-append "mirror://gnu/cpio/cpio-" 33 version ".tar.bz2"))
34 version ".tar.bz2")) 34 (sha256
35 (sha256 35 (base32
36 (base32 36 "1gavgpzqwgkpagjxw72xgxz52y1ifgz0ckqh8g7cckz7jvyhp0mv"))
37 "1gavgpzqwgkpagjxw72xgxz52y1ifgz0ckqh8g7cckz7jvyhp0mv")))) 37 (patches (list (search-patch "cpio-gets-undeclared.patch")))))
38 (build-system gnu-build-system) 38 (build-system gnu-build-system)
39 (arguments
40 `(#:patches (list (assoc-ref %build-inputs
41 "patch/gets"))))
42 (inputs
43 `(("patch/gets" ,(search-patch "cpio-gets-undeclared.patch"))))
44 (home-page "https://www.gnu.org/software/cpio/") 39 (home-page "https://www.gnu.org/software/cpio/")
45 (synopsis "Manage cpio and tar file archives") 40 (synopsis "Manage cpio and tar file archives")
46 (description 41 (description
diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm
index 28224a1c403..0731103bfa0 100644
--- a/gnu/packages/cross-base.scm
+++ b/gnu/packages/cross-base.scm
@@ -74,6 +74,9 @@ GCC that does not target a libc; otherwise, target that libc."
74 (name (string-append "gcc-cross-" 74 (name (string-append "gcc-cross-"
75 (if libc "" "sans-libc-") 75 (if libc "" "sans-libc-")
76 target)) 76 target))
77 (source (origin (inherit (package-source gcc-4.7))
78 (patches
79 (list (search-patch "gcc-cross-environment-variables.patch")))))
77 (arguments 80 (arguments
78 `(#:implicit-inputs? #f 81 `(#:implicit-inputs? #f
79 #:modules ((guix build gnu-build-system) 82 #:modules ((guix build gnu-build-system)
@@ -81,7 +84,6 @@ GCC that does not target a libc; otherwise, target that libc."
81 (ice-9 regex) 84 (ice-9 regex)
82 (srfi srfi-1) 85 (srfi srfi-1)
83 (srfi srfi-26)) 86 (srfi srfi-26))
84 #:patches (list (assoc-ref %build-inputs "patch/cross-env-vars"))
85 87
86 ,@(substitute-keyword-arguments (package-arguments gcc-4.7) 88 ,@(substitute-keyword-arguments (package-arguments gcc-4.7)
87 ((#:configure-flags flags) 89 ((#:configure-flags flags)
@@ -177,10 +179,7 @@ GCC that does not target a libc; otherwise, target that libc."
177 #f)))) 179 #f))))
178 180
179 (native-inputs 181 (native-inputs
180 `(("patch/cross-env-vars" 182 `(("binutils-cross" ,xbinutils)
181 ,(search-patch "gcc-cross-environment-variables.patch"))
182
183 ("binutils-cross" ,xbinutils)
184 183
185 ;; Call it differently so that the builder can check whether the "libc" 184 ;; Call it differently so that the builder can check whether the "libc"
186 ;; input is #f. 185 ;; input is #f.
diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 8554cc3f015..53ec9a04b75 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -48,14 +48,14 @@
48 version ".tar.xz")) 48 version ".tar.xz"))
49 (sha256 49 (sha256
50 (base32 50 (base32
51 "1385qzs3bsa52s5rcncbrkxlydkw0ajzrvfxgv8rws5fx512kakh")))) 51 "1385qzs3bsa52s5rcncbrkxlydkw0ajzrvfxgv8rws5fx512kakh"))
52 (patches (list (search-patch "emacs-configure-sh.patch")))))
52 (build-system gnu-build-system) 53 (build-system gnu-build-system)
53 (arguments 54 (arguments
54 '(#:configure-flags 55 '(#:configure-flags
55 (list (string-append "--with-crt-dir=" (assoc-ref %build-inputs "libc") 56 (list (string-append "--with-crt-dir=" (assoc-ref %build-inputs "libc")
56 "/lib") 57 "/lib")
57 "--with-gif=no") ; XXX: add libungif 58 "--with-gif=no") ; XXX: add libungif
58 #:patches (list (assoc-ref %build-inputs "patch/epaths"))
59 #:phases (alist-cons-before 59 #:phases (alist-cons-before
60 'configure 'fix-/bin/pwd 60 'configure 'fix-/bin/pwd
61 (lambda _ 61 (lambda _
@@ -85,10 +85,7 @@
85 85
86 ("libXpm" ,libxpm) 86 ("libXpm" ,libxpm)
87 ("libxml2" ,libxml2) 87 ("libxml2" ,libxml2)
88 ("dbus" ,dbus) 88 ("dbus" ,dbus)))
89
90 ("patch/epaths" ,(search-patch "emacs-configure-sh.patch"))
91 ))
92 (home-page "http://www.gnu.org/software/emacs/") 89 (home-page "http://www.gnu.org/software/emacs/")
93 (synopsis "The extensible, customizable, self-documenting text editor") 90 (synopsis "The extensible, customizable, self-documenting text editor")
94 (description 91 (description
diff --git a/gnu/packages/flex.scm b/gnu/packages/flex.scm
index 3dc7372acb1..9318331f60c 100644
--- a/gnu/packages/flex.scm
+++ b/gnu/packages/flex.scm
@@ -38,10 +38,9 @@
38 version ".tar.bz2")) 38 version ".tar.bz2"))
39 (sha256 39 (sha256
40 (base32 40 (base32
41 "0ah5mi4j62b85a9rllv1004mzjb5cd0mn4glvz13p88rpx77pahp")))) 41 "0ah5mi4j62b85a9rllv1004mzjb5cd0mn4glvz13p88rpx77pahp"))
42 (patches (list (search-patch "flex-bison-tests.patch")))))
42 (build-system gnu-build-system) 43 (build-system gnu-build-system)
43 (arguments
44 '(#:patches (list (assoc-ref %build-inputs "patch/bison-tests"))))
45 (inputs 44 (inputs
46 (let ((bison-for-tests 45 (let ((bison-for-tests
47 ;; Work around an incompatibility with Bison 3.0: 46 ;; Work around an incompatibility with Bison 3.0:
@@ -59,8 +58,7 @@
59 ;; Unlike Bison 3.0, this version did not need Flex for its 58 ;; Unlike Bison 3.0, this version did not need Flex for its
60 ;; tests, so it allows us to break the cycle. 59 ;; tests, so it allows us to break the cycle.
61 (inputs (alist-delete "flex" (package-inputs bison)))))) 60 (inputs (alist-delete "flex" (package-inputs bison))))))
62 `(("patch/bison-tests" ,(search-patch "flex-bison-tests.patch")) 61 `(("bison" ,bison-for-tests)
63 ("bison" ,bison-for-tests)
64 ("indent" ,indent)))) 62 ("indent" ,indent))))
65 (propagated-inputs `(("m4" ,m4))) 63 (propagated-inputs `(("m4" ,m4)))
66 (home-page "http://flex.sourceforge.net/") 64 (home-page "http://flex.sourceforge.net/")
diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm
index ac0dbdf9d53..fc9fb6accda 100644
--- a/gnu/packages/fontutils.scm
+++ b/gnu/packages/fontutils.scm
@@ -141,12 +141,10 @@ X11-system or any other graphical user interface. ")
141 (string-map (lambda (x) (if (char=? x #\.) #\_ x)) version) 141 (string-map (lambda (x) (if (char=? x #\.) #\_ x)) version)
142 ".tar.gz")) 142 ".tar.gz"))
143 (sha256 (base32 143 (sha256 (base32
144 "0fjiwvic8mdxpkyccfp7zh26y9xnvkp0skqbyfkrjiacd191k82r")))) 144 "0fjiwvic8mdxpkyccfp7zh26y9xnvkp0skqbyfkrjiacd191k82r"))
145 (patches (list (search-patch "teckit-cstdio.patch")))))
145 (build-system gnu-build-system) 146 (build-system gnu-build-system)
146 (inputs `(("patch/teckit" ,(search-patch "teckit-cstdio.patch")) 147 (inputs `(("zlib" ,zlib)))
147 ("zlib" ,zlib)))
148 (arguments
149 `(#:patches (list (assoc-ref %build-inputs "patch/teckit"))))
150 (synopsis "TECkit, a toolkit for encoding conversions") 148 (synopsis "TECkit, a toolkit for encoding conversions")
151 (description 149 (description
152 "TECkit is a low-level toolkit intended to be used by other applications 150 "TECkit is a low-level toolkit intended to be used by other applications
diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm
index 0d0f186aee8..2fbc46892b8 100644
--- a/gnu/packages/glib.scm
+++ b/gnu/packages/glib.scm
@@ -64,7 +64,8 @@
64 version ".tar.gz")) 64 version ".tar.gz"))
65 (sha256 65 (sha256
66 (base32 66 (base32
67 "1wacqyfkcpayg7f8rvx9awqg275n5pksxq5q7y21lxjx85x6pfjz")))) 67 "1wacqyfkcpayg7f8rvx9awqg275n5pksxq5q7y21lxjx85x6pfjz"))
68 (patches (list (search-patch "dbus-localstatedir.patch")))))
68 (build-system gnu-build-system) 69 (build-system gnu-build-system)
69 (arguments 70 (arguments
70 '(#:configure-flags (list ;; Install the system bus socket under /var. 71 '(#:configure-flags (list ;; Install the system bus socket under /var.
@@ -74,13 +75,10 @@
74 ;; config. 75 ;; config.
75 ;; "--sysconfdir=/etc" 76 ;; "--sysconfdir=/etc"
76 77
77 "--with-session-socket-dir=/tmp") 78 "--with-session-socket-dir=/tmp")))
78 #:patches (list (assoc-ref %build-inputs "patch/localstatedir"))))
79 (inputs 79 (inputs
80 `(("expat" ,expat) 80 `(("expat" ,expat)
81 ("pkg-config" ,pkg-config) 81 ("pkg-config" ,pkg-config)
82 ("patch/localstatedir"
83 ,(search-patch "dbus-localstatedir.patch"))
84 82
85 ;; Add a dependency on libx11 so that 'dbus-launch' has support for 83 ;; Add a dependency on libx11 so that 'dbus-launch' has support for
86 ;; '--autolaunch'. 84 ;; '--autolaunch'.
@@ -116,7 +114,10 @@ shared NFS home directories.")
116 name "/" (string-take version 4) "/" 114 name "/" (string-take version 4) "/"
117 name "-" version ".tar.xz")) 115 name "-" version ".tar.xz"))
118 (sha256 116 (sha256
119 (base32 "0cpzqadqk6z6bmb79p04pykxc8x57rvshh33414cnk41bvgaf4vm")))) 117 (base32 "0cpzqadqk6z6bmb79p04pykxc8x57rvshh33414cnk41bvgaf4vm"))
118 (patches (list (search-patch "glib-tests-homedir.patch")
119 (search-patch "glib-tests-desktop.patch")
120 (search-patch "glib-tests-prlimit.patch")))))
120 (build-system gnu-build-system) 121 (build-system gnu-build-system)
121 (outputs '("out" ; everything 122 (outputs '("out" ; everything
122 "doc")) ; 20 MiB of GTK-Doc reference 123 "doc")) ; 20 MiB of GTK-Doc reference
@@ -131,18 +132,9 @@ shared NFS home directories.")
131 ("dbus" ,dbus) ; for GDBus tests 132 ("dbus" ,dbus) ; for GDBus tests
132 ("bash" ,bash) 133 ("bash" ,bash)
133 ("tzdata" ,tzdata) ; for tests/gdatetime.c 134 ("tzdata" ,tzdata) ; for tests/gdatetime.c
134 135 ))
135 ("patch/tests-homedir"
136 ,(search-patch "glib-tests-homedir.patch"))
137 ("patch/tests-desktop"
138 ,(search-patch "glib-tests-desktop.patch"))
139 ("patch/tests-prlimit"
140 ,(search-patch "glib-tests-prlimit.patch"))))
141 (arguments 136 (arguments
142 '(#:patches (list (assoc-ref %build-inputs "patch/tests-homedir") 137 '(#:phases (alist-cons-before
143 (assoc-ref %build-inputs "patch/tests-desktop")
144 (assoc-ref %build-inputs "patch/tests-prlimit"))
145 #:phases (alist-cons-before
146 'build 'pre-build 138 'build 'pre-build
147 (lambda* (#:key inputs outputs #:allow-other-keys) 139 (lambda* (#:key inputs outputs #:allow-other-keys)
148 ;; For tests/gdatetime.c. 140 ;; For tests/gdatetime.c.
diff --git a/gnu/packages/grub.scm b/gnu/packages/grub.scm
index 8c981bf88db..7ac5822395b 100644
--- a/gnu/packages/grub.scm
+++ b/gnu/packages/grub.scm
@@ -67,11 +67,11 @@
67 version ".tar.xz")) 67 version ".tar.xz"))
68 (sha256 68 (sha256
69 (base32 69 (base32
70 "0n64hpmsccvicagvr0c6v0kgp2yw0kgnd3jvsyd26cnwgs7c6kkq")))) 70 "0n64hpmsccvicagvr0c6v0kgp2yw0kgnd3jvsyd26cnwgs7c6kkq"))
71 (patches (list (search-patch "grub-gets-undeclared.patch")))))
71 (build-system gnu-build-system) 72 (build-system gnu-build-system)
72 (arguments 73 (arguments
73 '(#:patches (list (assoc-ref %build-inputs "patch/gets")) 74 '(#:configure-flags '("--disable-werror")
74 #:configure-flags '("--disable-werror")
75 #:phases (alist-cons-before 75 #:phases (alist-cons-before
76 'patch-source-shebangs 'patch-stuff 76 'patch-source-shebangs 'patch-stuff
77 (lambda _ 77 (lambda _
@@ -87,9 +87,7 @@
87 ("gettext" ,gnu:gettext) 87 ("gettext" ,gnu:gettext)
88 ("freetype" ,freetype) 88 ("freetype" ,freetype)
89 ;; ("libusb" ,libusb) 89 ;; ("libusb" ,libusb)
90 ("ncurses" ,ncurses) 90 ("ncurses" ,ncurses)))
91
92 ("patch/gets" ,(search-patch "grub-gets-undeclared.patch"))))
93 (native-inputs 91 (native-inputs
94 `(("bison" ,bison) 92 `(("bison" ,bison)
95 ("flex" ,flex) 93 ("flex" ,flex)
diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm
index c580e0c324e..dfad70884c3 100644
--- a/gnu/packages/guile.scm
+++ b/gnu/packages/guile.scm
@@ -53,10 +53,10 @@
53 ".tar.gz")) 53 ".tar.gz"))
54 (sha256 54 (sha256
55 (base32 55 (base32
56 "0l200a0v7h8bh0cwz6v7hc13ds39cgqsmfrks55b1rbj5vniyiy3")))) 56 "0l200a0v7h8bh0cwz6v7hc13ds39cgqsmfrks55b1rbj5vniyiy3"))
57 (patches (list (search-patch "guile-1.8-cpp-4.5.patch")))))
57 (build-system gnu-build-system) 58 (build-system gnu-build-system)
58 (arguments '(#:configure-flags '("--disable-error-on-warning") 59 (arguments '(#:configure-flags '("--disable-error-on-warning")
59 #:patches (list (assoc-ref %build-inputs "patch/snarf"))
60 60
61 ;; Insert a phase before `configure' to patch things up. 61 ;; Insert a phase before `configure' to patch things up.
62 #:phases (alist-cons-before 62 #:phases (alist-cons-before
@@ -77,8 +77,7 @@
77 (substitute* "ice-9/popen.scm" 77 (substitute* "ice-9/popen.scm"
78 (("/bin/sh") (which "sh")))) 78 (("/bin/sh") (which "sh"))))
79 %standard-phases))) 79 %standard-phases)))
80 (inputs `(("patch/snarf" ,(search-patch "guile-1.8-cpp-4.5.patch")) 80 (inputs `(("gawk" ,gawk)
81 ("gawk" ,gawk)
82 ("readline" ,readline))) 81 ("readline" ,readline)))
83 82
84 ;; Since `guile-1.8.pc' has "Libs: ... -lgmp -lltdl", these must be 83 ;; Since `guile-1.8.pc' has "Libs: ... -lgmp -lltdl", these must be
@@ -281,13 +280,11 @@ menu.")
281 version ".tar.gz")) 280 version ".tar.gz"))
282 (sha256 281 (sha256
283 (base32 282 (base32
284 "0yvrfzzdy2m7fbqkr61fw01wd9r2jpnbyabxhcsfivgxywknl0fy")))) 283 "0yvrfzzdy2m7fbqkr61fw01wd9r2jpnbyabxhcsfivgxywknl0fy"))
284 (patches (list (search-patch "mcron-install.patch")))))
285 (build-system gnu-build-system) 285 (build-system gnu-build-system)
286 (arguments
287 '(#:patches (list (assoc-ref %build-inputs "patch/install"))))
288 (inputs 286 (inputs
289 `(("ed" ,ed) ("which" ,which) ("guile" ,guile-1.8) 287 `(("ed" ,ed) ("which" ,which) ("guile" ,guile-1.8)))
290 ("patch/install" ,(search-patch "mcron-install.patch"))))
291 (home-page "http://www.gnu.org/software/mcron/") 288 (home-page "http://www.gnu.org/software/mcron/")
292 (synopsis "Run jobs at scheduled times") 289 (synopsis "Run jobs at scheduled times")
293 (description 290 (description
diff --git a/gnu/packages/idutils.scm b/gnu/packages/idutils.scm
index 728bdeb51a3..16ccd488541 100644
--- a/gnu/packages/idutils.scm
+++ b/gnu/packages/idutils.scm
@@ -1,5 +1,5 @@
1;;; GNU Guix --- Functional package management for GNU 1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2012 Ludovic Courtès <ludo@gnu.org> 2;;; Copyright © 2012, 2013 Ludovic Courtès <ludo@gnu.org>
3;;; 3;;;
4;;; This file is part of GNU Guix. 4;;; This file is part of GNU Guix.
5;;; 5;;;
@@ -27,20 +27,19 @@
27 (package 27 (package
28 (name "idutils") 28 (name "idutils")
29 (version "4.6") 29 (version "4.6")
30 (source 30 (source (origin
31 (origin 31 (method url-fetch)
32 (method url-fetch) 32 (uri (string-append "mirror://gnu/idutils/idutils-"
33 (uri (string-append "mirror://gnu/idutils/idutils-" 33 version ".tar.xz"))
34 version ".tar.xz")) 34 (sha256
35 (sha256 35 (base32
36 (base32 36 "1hmai3422iaqnp34kkzxdnywl7n7pvlxp11vrw66ybxn9wxg90c1"))
37 "1hmai3422iaqnp34kkzxdnywl7n7pvlxp11vrw66ybxn9wxg90c1")))) 37 (patches (list
38 (search-patch "diffutils-gets-undeclared.patch")))))
38 (build-system gnu-build-system) 39 (build-system gnu-build-system)
39 (inputs `(;; TODO: Add Emacs as an input for byte-compilation. 40 (inputs `(;; TODO: Add Emacs as an input for byte-compilation.
40 ;; ("emacs" ,emacs) 41 ;; ("emacs" ,emacs)
41 ("patch/gets" 42 ))
42 ,(search-patch "diffutils-gets-undeclared.patch"))))
43 (arguments `(#:patches (list (assoc-ref %build-inputs "patch/gets"))))
44 (home-page "http://www.gnu.org/software/idutils/") 43 (home-page "http://www.gnu.org/software/idutils/")
45 (synopsis "Identifier database utilities") 44 (synopsis "Identifier database utilities")
46 (description 45 (description
diff --git a/gnu/packages/libevent.scm b/gnu/packages/libevent.scm
index 8f2d5dad46f..dce1ac1a698 100644
--- a/gnu/packages/libevent.scm
+++ b/gnu/packages/libevent.scm
@@ -37,16 +37,13 @@
37 "-stable.tar.gz")) 37 "-stable.tar.gz"))
38 (sha256 38 (sha256
39 (base32 39 (base32
40 "1xblymln9vihdmf1aqkp8chwvnhpdch3786bh30bj75slnl31992")))) 40 "1xblymln9vihdmf1aqkp8chwvnhpdch3786bh30bj75slnl31992"))
41 (patches (list (search-patch "libevent-dns-tests.patch")))))
41 (build-system gnu-build-system) 42 (build-system gnu-build-system)
42 (inputs 43 (inputs
43 `(("patch/dns-tests" ,(search-patch "libevent-dns-tests.patch")) 44 `(;; Dependencies used for the tests and for `event_rpcgen.py'.
44
45 ;; Dependencies used for the tests and for `event_rpcgen.py'.
46 ("which" ,which) 45 ("which" ,which)
47 ("python" ,python-wrapper))) 46 ("python" ,python-wrapper)))
48 (arguments
49 '(#:patches (list (assoc-ref %build-inputs "patch/dns-tests"))))
50 (home-page "http://libevent.org/") 47 (home-page "http://libevent.org/")
51 (synopsis 48 (synopsis
52 "libevent, an event notification library") 49 "libevent, an event notification library")
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index e21a019f087..2481fc3628f 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -333,13 +333,12 @@ providing the system administrator with some help in common tasks.")
333 version ".tar.gz")) 333 version ".tar.gz"))
334 (sha256 334 (sha256
335 (base32 335 (base32
336 "0d8mki0q4yamnkk4533kx8mc0jd879573srxhg6r2fs3lkc6iv8i")))) 336 "0d8mki0q4yamnkk4533kx8mc0jd879573srxhg6r2fs3lkc6iv8i"))
337 (patches (list (search-patch "procps-make-3.82.patch")))))
337 (build-system gnu-build-system) 338 (build-system gnu-build-system)
338 (inputs `(("ncurses" ,ncurses) 339 (inputs `(("ncurses" ,ncurses)))
339 ("patch/make-3.82" ,(search-patch "procps-make-3.82.patch"))))
340 (arguments 340 (arguments
341 '(#:patches (list (assoc-ref %build-inputs "patch/make-3.82")) 341 '(#:phases (alist-replace
342 #:phases (alist-replace
343 'configure 342 'configure
344 (lambda* (#:key outputs #:allow-other-keys) 343 (lambda* (#:key outputs #:allow-other-keys)
345 ;; No `configure', just a single Makefile. 344 ;; No `configure', just a single Makefile.
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index bfbbc4e3ea4..ce41b087e8d 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -49,12 +49,11 @@
49 version ".tar.bz2")) 49 version ".tar.bz2"))
50 (sha256 50 (sha256
51 (base32 51 (base32
52 "0szbqa12zqzldqyw97lxqax3ja2adis83i7brdfsxmrfw68iaf65")))) 52 "0szbqa12zqzldqyw97lxqax3ja2adis83i7brdfsxmrfw68iaf65"))
53 (patches (list (search-patch "m4-gets-undeclared.patch")))))
53 (build-system gnu-build-system) 54 (build-system gnu-build-system)
54 (arguments 55 (arguments
55 '(;; TODO: Add `--with-sql'. 56 '(;; TODO: Add `--with-sql'.
56 #:patches (list (assoc-ref %build-inputs
57 "patch/gets-undeclared"))
58 #:phases (alist-cons-before 57 #:phases (alist-cons-before
59 'build 'pre-build 58 'build 'pre-build
60 (lambda _ 59 (lambda _
@@ -83,9 +82,7 @@
83 ("readline" ,readline) 82 ("readline" ,readline)
84 ("linux-pam" ,linux-pam) 83 ("linux-pam" ,linux-pam)
85 ("libtool" ,libtool) 84 ("libtool" ,libtool)
86 ("gdbm" ,gdbm) 85 ("gdbm" ,gdbm)))
87 ("patch/gets-undeclared"
88 ,(search-patch "m4-gets-undeclared.patch"))))
89 (home-page "http://www.gnu.org/software/mailutils/") 86 (home-page "http://www.gnu.org/software/mailutils/")
90 (synopsis "Utilities and library for reading and serving mail") 87 (synopsis "Utilities and library for reading and serving mail")
91 (description 88 (description
diff --git a/gnu/packages/make-bootstrap.scm b/gnu/packages/make-bootstrap.scm
index ce270bd5c17..5dc7387e923 100644
--- a/gnu/packages/make-bootstrap.scm
+++ b/gnu/packages/make-bootstrap.scm
@@ -54,19 +54,17 @@
54 "Return a libc deriving from BASE whose `system' and `popen' functions looks 54 "Return a libc deriving from BASE whose `system' and `popen' functions looks
55for `sh' in $PATH, and without nscd, and with static NSS modules." 55for `sh' in $PATH, and without nscd, and with static NSS modules."
56 (package (inherit base) 56 (package (inherit base)
57 (source (origin (inherit (package-source base))
58 (patches (cons (search-patch "glibc-bootstrap-system.patch")
59 (origin-patches (package-source base))))))
57 (arguments 60 (arguments
58 (substitute-keyword-arguments (package-arguments base) 61 (substitute-keyword-arguments (package-arguments base)
59 ((#:patches patches)
60 `(cons (assoc-ref %build-inputs "patch/system") ,patches))
61 ((#:configure-flags flags) 62 ((#:configure-flags flags)
62 ;; Arrange so that getaddrinfo & co. do not contact the nscd, 63 ;; Arrange so that getaddrinfo & co. do not contact the nscd,
63 ;; and can use statically-linked NSS modules. 64 ;; and can use statically-linked NSS modules.
64 `(cons* "--disable-nscd" "--disable-build-nscd" 65 `(cons* "--disable-nscd" "--disable-build-nscd"
65 "--enable-static-nss" 66 "--enable-static-nss"
66 ,flags)))) 67 ,flags))))))
67 (inputs
68 `(("patch/system" ,(search-patch "glibc-bootstrap-system.patch"))
69 ,@(package-inputs base)))))
70 68
71(define (package-with-relocatable-glibc p) 69(define (package-with-relocatable-glibc p)
72 "Return a variant of P that uses the libc as defined by 70 "Return a variant of P that uses the libc as defined by
@@ -154,10 +152,12 @@ for `sh' in $PATH, and without nscd, and with static NSS modules."
154 "xz_LDADD = -all-static"))) 152 "xz_LDADD = -all-static")))
155 %standard-phases))))) 153 %standard-phases)))))
156 (gawk (package (inherit gawk) 154 (gawk (package (inherit gawk)
155 (source (origin (inherit (package-source gawk))
156 (patches (cons (search-patch "gawk-shell.patch")
157 (origin-patches
158 (package-source gawk))))))
157 (arguments 159 (arguments
158 `(#:patches (list (assoc-ref %build-inputs "patch/sh")) 160 `(;; Starting from gawk 4.1.0, some of the tests for the
159
160 ;; Starting from gawk 4.1.0, some of the tests for the
161 ;; plug-in mechanism just fail on static builds: 161 ;; plug-in mechanism just fail on static builds:
162 ;; 162 ;;
163 ;; ./fts.awk:1: error: can't open shared library `filefuncs' for reading (No such file or directory) 163 ;; ./fts.awk:1: error: can't open shared library `filefuncs' for reading (No such file or directory)
@@ -173,10 +173,9 @@ for `sh' in $PATH, and without nscd, and with static NSS modules."
173 (substitute* "configure" 173 (substitute* "configure"
174 (("-export-dynamic") ""))) 174 (("-export-dynamic") "")))
175 ,phases))))) 175 ,phases)))))
176 (inputs `(("patch/sh" ,(search-patch "gawk-shell.patch")) 176 (inputs (if (%current-target-system)
177 ,@(if (%current-target-system) 177 `(("bash" ,%bash-static))
178 `(("bash" ,%bash-static)) 178 '()))))
179 '())))))
180 (finalize (compose static-package 179 (finalize (compose static-package
181 package-with-relocatable-glibc))) 180 package-with-relocatable-glibc)))
182 `(,@(map (match-lambda 181 `(,@(map (match-lambda
@@ -452,17 +451,16 @@ for `sh' in $PATH, and without nscd, and with static NSS modules."
452 ;; A statically-linked Guile that is relocatable--i.e., it can search 451 ;; A statically-linked Guile that is relocatable--i.e., it can search
453 ;; .scm and .go files relative to its installation directory, rather 452 ;; .scm and .go files relative to its installation directory, rather
454 ;; than in hard-coded configure-time paths. 453 ;; than in hard-coded configure-time paths.
455 (let* ((guile (package (inherit guile-2.0) 454 (let* ((patches* (cons* (search-patch "guile-relocatable.patch")
455 (search-patch "guile-default-utf8.patch")
456 (search-patch "guile-linux-syscalls.patch")
457 (origin-patches (package-source guile-2.0))))
458 (source* (origin (inherit (package-source guile-2.0))
459 (patches patches*)))
460 (guile (package (inherit guile-2.0)
456 (name (string-append (package-name guile-2.0) "-static")) 461 (name (string-append (package-name guile-2.0) "-static"))
462 (source source*)
457 (synopsis "Statically-linked and relocatable Guile") 463 (synopsis "Statically-linked and relocatable Guile")
458 (inputs
459 `(("patch/relocatable"
460 ,(search-patch "guile-relocatable.patch"))
461 ("patch/utf8"
462 ,(search-patch "guile-default-utf8.patch"))
463 ("patch/syscalls"
464 ,(search-patch "guile-linux-syscalls.patch"))
465 ,@(package-inputs guile-2.0)))
466 (propagated-inputs 464 (propagated-inputs
467 `(("bdw-gc" ,libgc) 465 `(("bdw-gc" ,libgc)
468 ,@(alist-delete "bdw-gc" 466 ,@(alist-delete "bdw-gc"
@@ -492,13 +490,6 @@ for `sh' in $PATH, and without nscd, and with static NSS modules."
492 " -ldl\n")))) 490 " -ldl\n"))))
493 %standard-phases) 491 %standard-phases)
494 492
495 ;; Allow Guile to be relocated, as is needed during
496 ;; bootstrap.
497 #:patches
498 (list (assoc-ref %build-inputs "patch/relocatable")
499 (assoc-ref %build-inputs "patch/utf8")
500 (assoc-ref %build-inputs "patch/syscalls"))
501
502 ;; There are uses of `dynamic-link' in 493 ;; There are uses of `dynamic-link' in
503 ;; {foreign,coverage}.test that don't fly here. 494 ;; {foreign,coverage}.test that don't fly here.
504 #:tests? #f))))) 495 #:tests? #f)))))
diff --git a/gnu/packages/mp3.scm b/gnu/packages/mp3.scm
index 2d103b9d8db..b604a36291a 100644
--- a/gnu/packages/mp3.scm
+++ b/gnu/packages/mp3.scm
@@ -239,7 +239,10 @@ use with CD-recording software).")
239 version ".tar.gz")) 239 version ".tar.gz"))
240 (sha256 240 (sha256
241 (base32 241 (base32
242 "130rsb2ly0l6hz728m9qr605ir4073xfl2acvf83id63kxfzjn3x")))) 242 "130rsb2ly0l6hz728m9qr605ir4073xfl2acvf83id63kxfzjn3x"))
243 (patches
244 ;; see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=713684
245 (list (search-patch "ripperx-libm.patch")))))
243 (build-system gnu-build-system) 246 (build-system gnu-build-system)
244 (propagated-inputs 247 (propagated-inputs
245 `(("gs-fonts" ,gs-fonts) 248 `(("gs-fonts" ,gs-fonts)
@@ -248,15 +251,10 @@ use with CD-recording software).")
248 ("lame" ,lame) 251 ("lame" ,lame)
249 ("vorbis-tools" ,vorbis-tools))) 252 ("vorbis-tools" ,vorbis-tools)))
250 (inputs 253 (inputs
251 `(("patch/libm" ,(search-patch "ripperx-libm.patch")) 254 `(("glib" ,glib)
252 ("glib" ,glib)
253 ("gtk+" ,gtk+-2) 255 ("gtk+" ,gtk+-2)
254 ("id3lib" ,id3lib) 256 ("id3lib" ,id3lib)
255 ("pkg-config" ,pkg-config))) 257 ("pkg-config" ,pkg-config)))
256 (arguments
257 `(#:patches
258 ;; see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=713684
259 (list (assoc-ref %build-inputs "patch/libm"))))
260 (synopsis "GTK program to rip and encode CD audio tracks") 258 (synopsis "GTK program to rip and encode CD audio tracks")
261 (description 259 (description
262 "RipperX is a GTK program to rip CD audio tracks and encode them to the 260 "RipperX is a GTK program to rip CD audio tracks and encode them to the
diff --git a/gnu/packages/oggvorbis.scm b/gnu/packages/oggvorbis.scm
index 522b87f86aa..cd9e60862ea 100644
--- a/gnu/packages/oggvorbis.scm
+++ b/gnu/packages/oggvorbis.scm
@@ -168,16 +168,14 @@ OpenBSD's sndio.")
168 version ".tar.gz")) 168 version ".tar.gz"))
169 (sha256 169 (sha256
170 (base32 170 (base32
171 "1pry5lgzfg57pga1zbazzdd55fkgk3v5qy4axvrbny5lrr5s8dcn")))) 171 "1pry5lgzfg57pga1zbazzdd55fkgk3v5qy4axvrbny5lrr5s8dcn"))
172 (patches
173 (list (search-patch "flac-fix-memcmp-not-declared.patch")))))
172 (build-system gnu-build-system) 174 (build-system gnu-build-system)
173 (arguments 175 (arguments
174 `(#:parallel-tests? #f 176 `(#:parallel-tests? #f))
175 #:patches (list (assoc-ref %build-inputs
176 "patch/memcmp"))))
177 ;; FIXME: configure also looks for xmms, input could be added once it exists 177 ;; FIXME: configure also looks for xmms, input could be added once it exists
178 (inputs `(("libogg" ,libogg) 178 (inputs `(("libogg" ,libogg)))
179 ("patch/memcmp"
180 ,(search-patch "flac-fix-memcmp-not-declared.patch"))))
181 (synopsis "flac free lossless audio codec") 179 (synopsis "flac free lossless audio codec")
182 (description 180 (description
183"FLAC stands for Free Lossless Audio Codec, an audio format that is lossless, 181"FLAC stands for Free Lossless Audio Codec, an audio format that is lossless,
diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index 820a8792889..2dd3c9e32c0 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -79,7 +79,8 @@
79 (uri (string-append "ftp://ftp.foolabs.com/pub/xpdf/xpdf-" 79 (uri (string-append "ftp://ftp.foolabs.com/pub/xpdf/xpdf-"
80 version ".tar.gz")) 80 version ".tar.gz"))
81 (sha256 (base32 81 (sha256 (base32
82 "1jnfzdqc54wa73lw28kjv0m7120mksb0zkcn81jdlvijyvc67kq2")))) 82 "1jnfzdqc54wa73lw28kjv0m7120mksb0zkcn81jdlvijyvc67kq2"))
83 (patches (list (search-patch "xpdf-constchar.patch")))))
83 (build-system gnu-build-system) 84 (build-system gnu-build-system)
84 (inputs `(("freetype" ,freetype) 85 (inputs `(("freetype" ,freetype)
85 ("gs-fonts" ,gs-fonts) 86 ("gs-fonts" ,gs-fonts)
@@ -90,13 +91,9 @@
90 ("libxp" ,libxp) 91 ("libxp" ,libxp)
91 ("libxpm" ,libxpm) 92 ("libxpm" ,libxpm)
92 ("libxt" ,libxt) 93 ("libxt" ,libxt)
93 ("zlib" ,zlib) 94 ("zlib" ,zlib)))
94 ("patch/constchar"
95 ,(search-patch "xpdf-constchar.patch"))))
96 (arguments 95 (arguments
97 `(#:tests? #f ; there is no check target 96 `(#:tests? #f ; there is no check target
98 #:patches (list (assoc-ref %build-inputs
99 "patch/constchar"))
100 #:phases 97 #:phases
101 (alist-replace 98 (alist-replace
102 'install 99 'install
diff --git a/gnu/packages/plotutils.scm b/gnu/packages/plotutils.scm
index a3c43d79baf..0b12665a615 100644
--- a/gnu/packages/plotutils.scm
+++ b/gnu/packages/plotutils.scm
@@ -35,15 +35,13 @@
35 version ".tar.gz")) 35 version ".tar.gz"))
36 (sha256 36 (sha256
37 (base32 37 (base32
38 "1arkyizn5wbgvbh53aziv3s6lmd3wm9lqzkhxb3hijlp1y124hjg")))) 38 "1arkyizn5wbgvbh53aziv3s6lmd3wm9lqzkhxb3hijlp1y124hjg"))
39 (patches (list (search-patch "plotutils-libpng-jmpbuf.patch")))))
39 (build-system gnu-build-system) 40 (build-system gnu-build-system)
40 (arguments '(#:patches (list (assoc-ref %build-inputs "patch/jmpbuf"))))
41 (inputs `(("libpng" ,libpng) 41 (inputs `(("libpng" ,libpng)
42 ("libx11" ,libx11) 42 ("libx11" ,libx11)
43 ("libxt" ,libxt) 43 ("libxt" ,libxt)
44 ("libxaw" ,libxaw) 44 ("libxaw" ,libxaw)))
45 ("patch/jmpbuf"
46 ,(search-patch "plotutils-libpng-jmpbuf.patch"))))
47 (home-page 45 (home-page
48 "http://www.gnu.org/software/plotutils/") 46 "http://www.gnu.org/software/plotutils/")
49 (synopsis "Plotting utilities and library") 47 (synopsis "Plotting utilities and library")
diff --git a/gnu/packages/qemu.scm b/gnu/packages/qemu.scm
index 6330fabcf95..791aa715c8a 100644
--- a/gnu/packages/qemu.scm
+++ b/gnu/packages/qemu.scm
@@ -134,9 +134,5 @@ server and embedded PowerPC, and S390 guests.")
134 ;; the store, and another one for exchanges with the host. 134 ;; the store, and another one for exchanges with the host.
135 (package (inherit qemu) 135 (package (inherit qemu)
136 (name "qemu-with-multiple-smb-shares") 136 (name "qemu-with-multiple-smb-shares")
137 (inputs `(,@(package-inputs qemu) 137 (source (origin (inherit (package-source qemu))
138 ("patch/smb-shares" 138 (patches (search-patch "qemu-multiple-smb-shares.patch"))))))
139 ,(search-patch "qemu-multiple-smb-shares.patch"))))
140 (arguments
141 `(#:patches (list (assoc-ref %build-inputs "patch/smb-shares"))
142 ,@(package-arguments qemu)))))
diff --git a/gnu/packages/recutils.scm b/gnu/packages/recutils.scm
index 7b4828995e8..2182d7385c5 100644
--- a/gnu/packages/recutils.scm
+++ b/gnu/packages/recutils.scm
@@ -36,16 +36,15 @@
36 version ".tar.gz")) 36 version ".tar.gz"))
37 (sha256 37 (sha256
38 (base32 38 (base32
39 "1v2xzwwwhc5j5kmvg4sv6baxjpsfqh8ln7ilv4mgb1408rs7xmky")))) 39 "1v2xzwwwhc5j5kmvg4sv6baxjpsfqh8ln7ilv4mgb1408rs7xmky"))
40 (patches
41 (list (search-patch "diffutils-gets-undeclared.patch")))))
40 (build-system gnu-build-system) 42 (build-system gnu-build-system)
41 (inputs `(;; TODO: Enable optional deps when they're packaged. 43 (inputs `(;; TODO: Enable optional deps when they're packaged.
42 ;; ("curl" ,(nixpkgs-derivation "curl")) 44 ;; ("curl" ,(nixpkgs-derivation "curl"))
43 ("emacs" ,emacs) 45 ("emacs" ,emacs)
44 ("check" ,check) 46 ("check" ,check)
45 ("bc" ,bc) 47 ("bc" ,bc)))
46 ("patch/gets"
47 ,(search-patch "diffutils-gets-undeclared.patch"))))
48 (arguments `(#:patches (list (assoc-ref %build-inputs "patch/gets"))))
49 (synopsis "Manipulate plain text files as databases") 48 (synopsis "Manipulate plain text files as databases")
50 (description 49 (description
51 "GNU recutils is a set of tools and libraries to access human-editable, 50 "GNU recutils is a set of tools and libraries to access human-editable,
diff --git a/gnu/packages/rush.scm b/gnu/packages/rush.scm
index a7f1ec44406..20f0e5cae76 100644
--- a/gnu/packages/rush.scm
+++ b/gnu/packages/rush.scm
@@ -35,12 +35,9 @@
35 ".tar.gz")) 35 ".tar.gz"))
36 (sha256 36 (sha256
37 (base32 37 (base32
38 "0fh0gbbp0iiq3wbkf503xb40r8ljk42vyj9bnlflbz82d6ipy1rm")))) 38 "0fh0gbbp0iiq3wbkf503xb40r8ljk42vyj9bnlflbz82d6ipy1rm"))
39 (patches (list (search-patch "cpio-gets-undeclared.patch")))))
39 (build-system gnu-build-system) 40 (build-system gnu-build-system)
40 (arguments
41 '(#:patches (list (assoc-ref %build-inputs "patch/gets-undeclared"))))
42 (inputs `(("patch/gets-undeclared"
43 ,(search-patch "cpio-gets-undeclared.patch"))))
44 (home-page "http://www.gnu.org/software/rush/") 41 (home-page "http://www.gnu.org/software/rush/")
45 (synopsis "Restricted user (login) shell") 42 (synopsis "Restricted user (login) shell")
46 (description 43 (description
diff --git a/gnu/packages/scheme.scm b/gnu/packages/scheme.scm
index 0608c41a2f2..122262487b3 100644
--- a/gnu/packages/scheme.scm
+++ b/gnu/packages/scheme.scm
@@ -125,11 +125,11 @@ development cycle.")
125 version ".tar.gz")) 125 version ".tar.gz"))
126 (sha256 126 (sha256
127 (base32 127 (base32
128 "1fck2h48f0bvh8fl437cagmp0syfxy9lqacy1zwsis20fc76jvzi")))) 128 "1fck2h48f0bvh8fl437cagmp0syfxy9lqacy1zwsis20fc76jvzi"))
129 (patches (list (search-patch "bigloo-gc-shebangs.patch")))))
129 (build-system gnu-build-system) 130 (build-system gnu-build-system)
130 (arguments 131 (arguments
131 `(#:patches (list (assoc-ref %build-inputs "patch/shebangs")) 132 `(#:test-target "test"
132 #:test-target "test"
133 #:phases (alist-replace 133 #:phases (alist-replace
134 'configure 134 'configure
135 (lambda* (#:key outputs #:allow-other-keys) 135 (lambda* (#:key outputs #:allow-other-keys)
@@ -178,7 +178,6 @@ development cycle.")
178 %standard-phases)))) 178 %standard-phases))))
179 (inputs 179 (inputs
180 `(("emacs" ,emacs) 180 `(("emacs" ,emacs)
181 ("patch/shebangs" ,(search-patch "bigloo-gc-shebangs.patch"))
182 181
183 ;; Optional APIs for which Bigloo has bindings. 182 ;; Optional APIs for which Bigloo has bindings.
184 ("avahi" ,avahi) 183 ("avahi" ,avahi)
@@ -211,7 +210,8 @@ between Scheme and C# programs.")
211 version ".tar.gz")) 210 version ".tar.gz"))
212 (sha256 211 (sha256
213 (base32 212 (base32
214 "1v2r4ga58kk1sx0frn8qa8ccmjpic9csqzpk499wc95y9c4b1wy3")))) 213 "1v2r4ga58kk1sx0frn8qa8ccmjpic9csqzpk499wc95y9c4b1wy3"))
214 (patches (list (search-patch "hop-bigloo-4.0b.patch")))))
215 (build-system gnu-build-system) 215 (build-system gnu-build-system)
216 (arguments 216 (arguments
217 '(#:phases 217 '(#:phases
@@ -251,7 +251,6 @@ between Scheme and C# programs.")
251 "\\.so$"))))) 251 "\\.so$")))))
252 %standard-phases)) 252 %standard-phases))
253 #:tests? #f ; no test suite 253 #:tests? #f ; no test suite
254 #:patches (list (assoc-ref %build-inputs "patch/bigloo-4.0b"))
255 #:modules ((guix build gnu-build-system) 254 #:modules ((guix build gnu-build-system)
256 (guix build utils) 255 (guix build utils)
257 (ice-9 popen) 256 (ice-9 popen)
@@ -260,10 +259,7 @@ between Scheme and C# programs.")
260 (srfi srfi-1)))) 259 (srfi srfi-1))))
261 (inputs `(("bigloo" ,bigloo) 260 (inputs `(("bigloo" ,bigloo)
262 ("which" ,which) 261 ("which" ,which)
263 ("patchelf" ,patchelf) 262 ("patchelf" ,patchelf)))
264
265 ("patch/bigloo-4.0b"
266 ,(search-patch "hop-bigloo-4.0b.patch"))))
267 (home-page "http://hop.inria.fr/") 263 (home-page "http://hop.inria.fr/")
268 (synopsis "A multi-tier programming language for the Web 2.0") 264 (synopsis "A multi-tier programming language for the Web 2.0")
269 (description 265 (description
@@ -324,10 +320,9 @@ language standard, and includes many enhancements and extensions.")
324 "/scheme48-" version ".tgz")) 320 "/scheme48-" version ".tgz"))
325 (sha256 321 (sha256
326 (base32 322 (base32
327 "0rw2lz5xgld0klvld292ds6hvfk5l12vskzgf1hhwjdpa38r3fnw")))) 323 "0rw2lz5xgld0klvld292ds6hvfk5l12vskzgf1hhwjdpa38r3fnw"))
324 (patches (list (search-patch "scheme48-tests.patch")))))
328 (build-system gnu-build-system) 325 (build-system gnu-build-system)
329 (arguments `(#:patches (list (assoc-ref %build-inputs "patch/tests"))))
330 (inputs `(("patch/tests" ,(search-patch "scheme48-tests.patch"))))
331 (home-page "http://s48.org/") 326 (home-page "http://s48.org/")
332 (synopsis "Scheme implementation using a bytecode interpreter") 327 (synopsis "Scheme implementation using a bytecode interpreter")
333 (description 328 (description
diff --git a/gnu/packages/system.scm b/gnu/packages/system.scm
index 3115714b080..6f710fd4d4b 100644
--- a/gnu/packages/system.scm
+++ b/gnu/packages/system.scm
@@ -143,22 +143,20 @@ it can replace the inetd utility!")
143 (package 143 (package
144 (name "inetutils") 144 (name "inetutils")
145 (version "1.9.1") 145 (version "1.9.1")
146 (source 146 (source (origin
147 (origin 147 (method url-fetch)
148 (method url-fetch) 148 (uri (string-append "mirror://gnu/inetutils/inetutils-"
149 (uri (string-append "mirror://gnu/inetutils/inetutils-" 149 version ".tar.gz"))
150 version ".tar.gz")) 150 (sha256
151 (sha256 151 (base32
152 (base32 152 "0azzg6njgq79byl6960kb0wihfhhzf49snslhxgvi30ribgfpa82"))
153 "0azzg6njgq79byl6960kb0wihfhhzf49snslhxgvi30ribgfpa82")))) 153 (patches
154 (list (search-patch "diffutils-gets-undeclared.patch")))))
154 (build-system gnu-build-system) 155 (build-system gnu-build-system)
155 (arguments `(#:patches (list (assoc-ref %build-inputs "patch/gets")) 156 (arguments `(;; FIXME: `tftp.sh' relies on `netstat' from utils-linux,
156
157 ;; FIXME: `tftp.sh' relies on `netstat' from utils-linux,
158 ;; which is currently missing. 157 ;; which is currently missing.
159 #:tests? #f)) 158 #:tests? #f))
160 (inputs `(("patch/gets" ,(search-patch "diffutils-gets-undeclared.patch")) 159 (inputs `(("ncurses" ,ncurses)))
161 ("ncurses" ,ncurses)))
162 (home-page "http://www.gnu.org/software/inetutils/") 160 (home-page "http://www.gnu.org/software/inetutils/")
163 (synopsis "Basic networking utilities") 161 (synopsis "Basic networking utilities")
164 (description 162 (description
diff --git a/gnu/packages/tcsh.scm b/gnu/packages/tcsh.scm
index 2e195bd4892..e1531874c09 100644
--- a/gnu/packages/tcsh.scm
+++ b/gnu/packages/tcsh.scm
@@ -35,14 +35,14 @@
35 (uri (string-append "ftp://ftp.astron.com/pub/tcsh/tcsh-" 35 (uri (string-append "ftp://ftp.astron.com/pub/tcsh/tcsh-"
36 version ".tar.gz")) 36 version ".tar.gz"))
37 (sha256 37 (sha256
38 (base32 "1a4z9kwgx1iqqzvv64si34m60gj34p7lp6rrcrb59s7ka5wa476q")))) 38 (base32 "1a4z9kwgx1iqqzvv64si34m60gj34p7lp6rrcrb59s7ka5wa476q"))
39 (patches (list (search-patch "tcsh-fix-autotest.patch")))
40 (patch-flags '("-p0"))))
39 (build-system gnu-build-system) 41 (build-system gnu-build-system)
40 (inputs 42 (inputs
41 `(("autoconf" ,autoconf) 43 `(("autoconf" ,autoconf)
42 ("coreutils" ,coreutils) 44 ("coreutils" ,coreutils)
43 ("ncurses" ,ncurses) 45 ("ncurses" ,ncurses)))
44 ("patch/skip-tests"
45 ,(search-patch "tcsh-fix-autotest.patch"))))
46 (arguments 46 (arguments
47 `(#:phases 47 `(#:phases
48 (alist-replace 48 (alist-replace
@@ -69,9 +69,7 @@
69 (bin (string-append out "/bin"))) 69 (bin (string-append out "/bin")))
70 (with-directory-excursion bin 70 (with-directory-excursion bin
71 (symlink "tcsh" "csh")))) 71 (symlink "tcsh" "csh"))))
72 %standard-phases)) 72 %standard-phases))))
73 #:patches (list (assoc-ref %build-inputs "patch/skip-tests"))
74 #:patch-flags '("-p0")))
75 (home-page "http://www.tcsh.org/") 73 (home-page "http://www.tcsh.org/")
76 (synopsis "A Unix shell based on csh") 74 (synopsis "A Unix shell based on csh")
77 (description 75 (description
diff --git a/gnu/packages/valgrind.scm b/gnu/packages/valgrind.scm
index 949f7d9a300..8eb5a48190a 100644
--- a/gnu/packages/valgrind.scm
+++ b/gnu/packages/valgrind.scm
@@ -35,11 +35,11 @@
35 version ".tar.bz2")) 35 version ".tar.bz2"))
36 (sha256 36 (sha256
37 (base32 37 (base32
38 "1nsqk70ry3221sd62s4f0njcrncppszs4xxjcak13lxyfq2y0fs7")))) 38 "1nsqk70ry3221sd62s4f0njcrncppszs4xxjcak13lxyfq2y0fs7"))
39 (patches (list (search-patch "valgrind-glibc.patch")))))
39 (build-system gnu-build-system) 40 (build-system gnu-build-system)
40 (arguments 41 (arguments
41 '(#:patches (list (assoc-ref %build-inputs "patch/glibc-2.17")) 42 '(#:phases (alist-cons-after
42 #:phases (alist-cons-after
43 'install 'patch-suppression-files 43 'install 'patch-suppression-files
44 (lambda* (#:key outputs #:allow-other-keys) 44 (lambda* (#:key outputs #:allow-other-keys)
45 ;; Don't assume the FHS. 45 ;; Don't assume the FHS.
@@ -52,10 +52,7 @@
52 #t)) 52 #t))
53 %standard-phases))) 53 %standard-phases)))
54 (inputs `(;; GDB is needed to provide a sane default for `--db-command'. 54 (inputs `(;; GDB is needed to provide a sane default for `--db-command'.
55 ("gdb" ,gdb) 55 ("gdb" ,gdb)))
56
57 ("patch/glibc-2.17"
58 ,(search-patch "valgrind-glibc.patch"))))
59 (native-inputs `(("perl" ,perl))) 56 (native-inputs `(("perl" ,perl)))
60 (home-page "http://www.valgrind.org/") 57 (home-page "http://www.valgrind.org/")
61 (synopsis "Debugging and profiling tool suite") 58 (synopsis "Debugging and profiling tool suite")
diff --git a/gnu/packages/vpn.scm b/gnu/packages/vpn.scm
index 4cd90cd7f20..0b733550be5 100644
--- a/gnu/packages/vpn.scm
+++ b/gnu/packages/vpn.scm
@@ -41,16 +41,13 @@
41 (uri (string-append "http://www.unix-ag.uni-kl.de/~massar/vpnc/vpnc-" 41 (uri (string-append "http://www.unix-ag.uni-kl.de/~massar/vpnc/vpnc-"
42 version ".tar.gz")) 42 version ".tar.gz"))
43 (sha256 (base32 43 (sha256 (base32
44 "1128860lis89g1s21hqxvap2nq426c9j4bvgghncc1zj0ays7kj6")))) 44 "1128860lis89g1s21hqxvap2nq426c9j4bvgghncc1zj0ays7kj6"))
45 (patches (list (search-patch "vpnc-script.patch")))))
45 (build-system gnu-build-system) 46 (build-system gnu-build-system)
46 (inputs `(("libgcrypt" ,libgcrypt) 47 (inputs `(("libgcrypt" ,libgcrypt)
47 ("perl" ,perl) 48 ("perl" ,perl)))
48 ("patch/script"
49 ,(search-patch "vpnc-script.patch"))))
50 (arguments 49 (arguments
51 `(#:tests? #f ; there is no check target 50 `(#:tests? #f ; there is no check target
52 #:patches (list (assoc-ref %build-inputs
53 "patch/script"))
54 #:phases 51 #:phases
55 (alist-replace 52 (alist-replace
56 'configure 53 'configure
diff --git a/gnu/packages/w3m.scm b/gnu/packages/w3m.scm
index 9199cbd4883..b5122d4f233 100644
--- a/gnu/packages/w3m.scm
+++ b/gnu/packages/w3m.scm
@@ -35,14 +35,17 @@
35 (package 35 (package
36 (name "w3m") 36 (name "w3m")
37 (version "0.5.3") 37 (version "0.5.3")
38 (source 38 (source (origin
39 (origin 39 (method url-fetch)
40 (method url-fetch) 40 (uri (string-append "mirror://sourceforge/w3m/w3m-"
41 (uri (string-append "mirror://sourceforge/w3m/w3m-" 41 version ".tar.gz"))
42 version ".tar.gz")) 42 (sha256
43 (sha256 43 (base32
44 (base32 44 "1qx9f0kprf92r1wxl3sacykla0g04qsi0idypzz24b7xy9ix5579"))
45 "1qx9f0kprf92r1wxl3sacykla0g04qsi0idypzz24b7xy9ix5579")))) 45
46 ;; cf. https://bugs.archlinux.org/task/33397
47 (patches (list (search-patch "w3m-fix-compile.patch")))
48 (patch-flags '("-p0"))))
46 (build-system gnu-build-system) 49 (build-system gnu-build-system)
47 (arguments `(#:tests? #f ; no check target 50 (arguments `(#:tests? #f ; no check target
48 #:phases (alist-cons-before 51 #:phases (alist-cons-before
@@ -56,11 +59,7 @@
56 (substitute* '("scripts/w3mmail.cgi.in" 59 (substitute* '("scripts/w3mmail.cgi.in"
57 "scripts/dirlist.cgi.in") 60 "scripts/dirlist.cgi.in")
58 (("@PERL@") (which "perl")))) 61 (("@PERL@") (which "perl"))))
59 %standard-phases) 62 %standard-phases)))
60 ;; cf. https://bugs.archlinux.org/task/33397
61 #:patches (list (assoc-ref %build-inputs
62 "patch/fix-compile"))
63 #:patch-flags '("-p0")))
64 (inputs 63 (inputs
65 `(("gettext" ,guix:gettext) 64 `(("gettext" ,guix:gettext)
66 ("libgc" ,libgc) 65 ("libgc" ,libgc)
@@ -68,8 +67,7 @@
68 ("openssl" ,openssl) 67 ("openssl" ,openssl)
69 ("perl" ,perl) 68 ("perl" ,perl)
70 ("pkg-config" ,pkg-config) 69 ("pkg-config" ,pkg-config)
71 ("zlib" ,zlib) 70 ("zlib" ,zlib)))
72 ("patch/fix-compile" ,(search-patch "w3m-fix-compile.patch"))))
73 (home-page "http://w3m.sourceforge.net/") 71 (home-page "http://w3m.sourceforge.net/")
74 (synopsis "w3m, a text-mode web browser") 72 (synopsis "w3m, a text-mode web browser")
75 (description 73 (description