gnu: Move helper code to (gnu system …) modules.
[guix:guix.git] / gnu-system.am
1 # GNU Guix --- Functional package management for GNU
2 # Copyright © 2012, 2013 Ludovic Courtès <ludo@gnu.org>
3 # Copyright © 2013 Andreas Enge <andreas@enge.fr>
4 #
5 # This file is part of GNU Guix.
6 #
7 # GNU Guix is free software; you can redistribute it and/or modify it
8 # under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 3 of the License, or (at
10 # your option) any later version.
11 #
12 # GNU Guix is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
19
20 # Definitions for the GNU System: package modules, patches, bootstrap
21 # binaries.
22
23 GNU_SYSTEM_MODULES =                            \
24   gnu/packages.scm                              \
25   gnu/packages/acl.scm                          \
26   gnu/packages/algebra.scm                      \
27   gnu/packages/apr.scm                          \
28   gnu/packages/aspell.scm                       \
29   gnu/packages/attr.scm                         \
30   gnu/packages/autotools.scm                    \
31   gnu/packages/avahi.scm                        \
32   gnu/packages/base.scm                         \
33   gnu/packages/bash.scm                         \
34   gnu/packages/bdb.scm                          \
35   gnu/packages/bdw-gc.scm                       \
36   gnu/packages/bison.scm                        \
37   gnu/packages/bootstrap.scm                    \
38   gnu/packages/cdrom.scm                        \
39   gnu/packages/cflow.scm                        \
40   gnu/packages/check.scm                        \
41   gnu/packages/cmake.scm                        \
42   gnu/packages/compression.scm                  \
43   gnu/packages/cpio.scm                         \
44   gnu/packages/cppi.scm                         \
45   gnu/packages/cross-base.scm                   \
46   gnu/packages/cryptsetup.scm                   \
47   gnu/packages/curl.scm                         \
48   gnu/packages/cyrus-sasl.scm                   \
49   gnu/packages/dejagnu.scm                      \
50   gnu/packages/ddrescue.scm                     \
51   gnu/packages/dwm.scm                          \
52   gnu/packages/ed.scm                           \
53   gnu/packages/emacs.scm                        \
54   gnu/packages/fdisk.scm                        \
55   gnu/packages/file.scm                         \
56   gnu/packages/flex.scm                         \
57   gnu/packages/fonts.scm                        \
58   gnu/packages/fontutils.scm                    \
59   gnu/packages/freeipmi.scm                     \
60   gnu/packages/gawk.scm                         \
61   gnu/packages/gcal.scm                         \
62   gnu/packages/gcc.scm                          \
63   gnu/packages/gd.scm                           \
64   gnu/packages/gdb.scm                          \
65   gnu/packages/gdbm.scm                         \
66   gnu/packages/geeqie.scm                       \
67   gnu/packages/gettext.scm                      \
68   gnu/packages/ghostscript.scm                  \
69   gnu/packages/gkrellm.scm                      \
70   gnu/packages/glib.scm                         \
71   gnu/packages/global.scm                       \
72   gnu/packages/gnunet.scm                       \
73   gnu/packages/gnupg.scm                        \
74   gnu/packages/gnutls.scm                       \
75   gnu/packages/gperf.scm                        \
76   gnu/packages/gprolog.scm                      \
77   gnu/packages/graphviz.scm                     \
78   gnu/packages/groff.scm                        \
79   gnu/packages/grub.scm                         \
80   gnu/packages/grue-hunter.scm                  \
81   gnu/packages/gsasl.scm                        \
82   gnu/packages/gtk.scm                          \
83   gnu/packages/guile.scm                        \
84   gnu/packages/gv.scm                           \
85   gnu/packages/help2man.scm                     \
86   gnu/packages/hugs.scm                         \
87   gnu/packages/icu4c.scm                        \
88   gnu/packages/idutils.scm                      \
89   gnu/packages/imagemagick.scm                  \
90   gnu/packages/indent.scm                       \
91   gnu/packages/irssi.scm                        \
92   gnu/packages/ld-wrapper.scm                   \
93   gnu/packages/less.scm                         \
94   gnu/packages/lesstif.scm                      \
95   gnu/packages/libdaemon.scm                    \
96   gnu/packages/libevent.scm                     \
97   gnu/packages/libffi.scm                       \
98   gnu/packages/libidn.scm                       \
99   gnu/packages/libjpeg.scm                      \
100   gnu/packages/libphidget.scm                   \
101   gnu/packages/libpng.scm                       \
102   gnu/packages/libsigsegv.scm                   \
103   gnu/packages/libtiff.scm                      \
104   gnu/packages/libunistring.scm                 \
105   gnu/packages/libusb.scm                       \
106   gnu/packages/libunwind.scm                    \
107   gnu/packages/lightning.scm                    \
108   gnu/packages/linux.scm                        \
109   gnu/packages/linux-initrd.scm                 \
110   gnu/packages/lout.scm                         \
111   gnu/packages/lsh.scm                          \
112   gnu/packages/lsof.scm                         \
113   gnu/packages/lua.scm                          \
114   gnu/packages/lvm.scm                          \
115   gnu/packages/m4.scm                           \
116   gnu/packages/mailutils.scm                    \
117   gnu/packages/make-bootstrap.scm               \
118   gnu/packages/maths.scm                        \
119   gnu/packages/mit-krb5.scm                     \
120   gnu/packages/mp3.scm                          \
121   gnu/packages/multiprecision.scm               \
122   gnu/packages/mysql.scm                        \
123   gnu/packages/nano.scm                         \
124   gnu/packages/ncurses.scm                      \
125   gnu/packages/netpbm.scm                       \
126   gnu/packages/nettle.scm                       \
127   gnu/packages/noweb.scm                        \
128   gnu/packages/ocaml.scm                        \
129   gnu/packages/ocrad.scm                        \
130   gnu/packages/oggvorbis.scm                    \
131   gnu/packages/openldap.scm                     \
132   gnu/packages/openssl.scm                      \
133   gnu/packages/package-management.scm           \
134   gnu/packages/parted.scm                       \
135   gnu/packages/patchelf.scm                     \
136   gnu/packages/pcre.scm                         \
137   gnu/packages/pdf.scm                          \
138   gnu/packages/perl.scm                         \
139   gnu/packages/pkg-config.scm                   \
140   gnu/packages/plotutils.scm                    \
141   gnu/packages/popt.scm                         \
142   gnu/packages/pth.scm                          \
143   gnu/packages/python.scm                       \
144   gnu/packages/qemu.scm                         \
145   gnu/packages/ratpoison.scm                    \
146   gnu/packages/readline.scm                     \
147   gnu/packages/recutils.scm                     \
148   gnu/packages/rsync.scm                        \
149   gnu/packages/rush.scm                         \
150   gnu/packages/samba.scm                        \
151   gnu/packages/scheme.scm                       \
152   gnu/packages/screen.scm                       \
153   gnu/packages/shishi.scm                       \
154   gnu/packages/smalltalk.scm                    \
155   gnu/packages/sqlite.scm                       \
156   gnu/packages/ssh.scm                          \
157   gnu/packages/system.scm                       \
158   gnu/packages/tcl.scm                          \
159   gnu/packages/tcsh.scm                         \
160   gnu/packages/texinfo.scm                      \
161   gnu/packages/texlive.scm                      \
162   gnu/packages/time.scm                         \
163   gnu/packages/tmux.scm                         \
164   gnu/packages/tor.scm                          \
165   gnu/packages/unrtf.scm                        \
166   gnu/packages/valgrind.scm                     \
167   gnu/packages/version-control.scm              \
168   gnu/packages/vim.scm                          \
169   gnu/packages/vpn.scm                          \
170   gnu/packages/w3m.scm                          \
171   gnu/packages/wdiff.scm                        \
172   gnu/packages/wget.scm                         \
173   gnu/packages/which.scm                        \
174   gnu/packages/wordnet.scm                      \
175   gnu/packages/xlockmore.scm                    \
176   gnu/packages/xml.scm                          \
177   gnu/packages/xnee.scm                         \
178   gnu/packages/xorg.scm                         \
179   gnu/packages/yasm.scm                         \
180   gnu/packages/zile.scm                         \
181   gnu/packages/zip.scm                          \
182                                                 \
183   gnu/system/grub.scm                           \
184   gnu/system/linux.scm                          \
185   gnu/system/shadow.scm                         \
186   gnu/system/vm.scm
187
188 patchdir = $(guilemoduledir)/gnu/packages/patches
189 dist_patch_DATA =                                               \
190   gnu/packages/patches/apr-skip-getservbyname-test.patch        \
191   gnu/packages/patches/automake-skip-amhello-tests.patch        \
192   gnu/packages/patches/bigloo-gc-shebangs.patch                 \
193   gnu/packages/patches/binutils-ld-new-dtags.patch              \
194   gnu/packages/patches/cdparanoia-fpic.patch                    \
195   gnu/packages/patches/cmake-fix-tests.patch                    \
196   gnu/packages/patches/cpio-gets-undeclared.patch               \
197   gnu/packages/patches/diffutils-gets-undeclared.patch          \
198   gnu/packages/patches/emacs-configure-sh.patch                 \
199   gnu/packages/patches/findutils-absolute-paths.patch           \
200   gnu/packages/patches/flac-fix-memcmp-not-declared.patch       \
201   gnu/packages/patches/flex-bison-tests.patch                   \
202   gnu/packages/patches/gawk-shell.patch                         \
203   gnu/packages/patches/gcc-cross-environment-variables.patch    \
204   gnu/packages/patches/glib-tests-desktop.patch                 \
205   gnu/packages/patches/glib-tests-homedir.patch                 \
206   gnu/packages/patches/glib-tests-prlimit.patch                 \
207   gnu/packages/patches/glibc-bootstrap-system.patch             \
208   gnu/packages/patches/glibc-no-ld-so-cache.patch               \
209   gnu/packages/patches/gnutls-fix-tests-on-32-bits-system.patch \
210   gnu/packages/patches/grub-gets-undeclared.patch               \
211   gnu/packages/patches/guile-1.8-cpp-4.5.patch                  \
212   gnu/packages/patches/guile-default-utf8.patch                 \
213   gnu/packages/patches/guile-linux-syscalls.patch               \
214   gnu/packages/patches/guile-relocatable.patch                  \
215   gnu/packages/patches/hop-bigloo-4.0b.patch                    \
216   gnu/packages/patches/libevent-dns-tests.patch                 \
217   gnu/packages/patches/libtool-skip-tests.patch                 \
218   gnu/packages/patches/m4-gets-undeclared.patch                 \
219   gnu/packages/patches/m4-readlink-EINVAL.patch                 \
220   gnu/packages/patches/m4-s_isdir.patch                         \
221   gnu/packages/patches/make-impure-dirs.patch                   \
222   gnu/packages/patches/mcron-install.patch                      \
223   gnu/packages/patches/perl-no-sys-dirs.patch                   \
224   gnu/packages/patches/plotutils-libpng-jmpbuf.patch            \
225   gnu/packages/patches/procps-make-3.82.patch                   \
226   gnu/packages/patches/python-fix-dbm.patch                     \
227   gnu/packages/patches/qemu-multiple-smb-shares.patch           \
228   gnu/packages/patches/readline-link-ncurses.patch              \
229   gnu/packages/patches/ripperx-libm.patch                       \
230   gnu/packages/patches/scheme48-tests.patch                     \
231   gnu/packages/patches/tar-gets-undeclared.patch                \
232   gnu/packages/patches/tcsh-fix-autotest.patch                  \
233   gnu/packages/patches/teckit-cstdio.patch                      \
234   gnu/packages/patches/valgrind-glibc.patch                     \
235   gnu/packages/patches/vpnc-script.patch                        \
236   gnu/packages/patches/w3m-fix-compile.patch                    \
237   gnu/packages/patches/xpdf-constchar.patch
238
239 bootstrapdir = $(guilemoduledir)/gnu/packages/bootstrap
240 bootstrap_x86_64_linuxdir = $(bootstrapdir)/x86_64-linux
241 bootstrap_i686_linuxdir = $(bootstrapdir)/i686-linux
242
243 dist_bootstrap_x86_64_linux_DATA =              \
244   gnu/packages/bootstrap/x86_64-linux/bash      \
245   gnu/packages/bootstrap/x86_64-linux/mkdir     \
246   gnu/packages/bootstrap/x86_64-linux/tar       \
247   gnu/packages/bootstrap/x86_64-linux/xz
248
249 dist_bootstrap_i686_linux_DATA =                \
250   gnu/packages/bootstrap/i686-linux/bash        \
251   gnu/packages/bootstrap/i686-linux/mkdir       \
252   gnu/packages/bootstrap/i686-linux/tar         \
253   gnu/packages/bootstrap/i686-linux/xz
254
255 # Big bootstrap binaries are not included in the tarball.  Instead, they
256 # are downloaded.
257 nodist_bootstrap_x86_64_linux_DATA =                                    \
258   gnu/packages/bootstrap/x86_64-linux/guile-2.0.7.tar.xz
259 nodist_bootstrap_i686_linux_DATA =                                      \
260   gnu/packages/bootstrap/i686-linux/guile-2.0.7.tar.xz
261
262 # Those files must remain executable, so they remain executable once
263 # imported into the store.
264 install-data-hook:
265         chmod +x $(DESTDIR)$(bootstrapdir)/*/{bash,mkdir,tar,xz}
266
267 DISTCLEANFILES =                                \
268   $(nodist_bootstrap_x86_64_linux_DATA)         \
269   $(nodist_bootstrap_i686_linux_DATA)
270
271 # Method to download a file from an external source.
272 DOWNLOAD_FILE =                                                         \
273   GUILE_LOAD_COMPILED_PATH="$(top_builddir):$$GUILE_LOAD_COMPILED_PATH" \
274   $(GUILE) --no-auto-compile -L "$(top_builddir)" -L "$(top_srcdir)"    \
275            "$(top_srcdir)/build-aux/download.scm"
276
277 gnu/packages/bootstrap/x86_64-linux/guile-2.0.7.tar.xz:
278         $(MKDIR_P) `dirname "$@"`
279         $(DOWNLOAD_FILE) "$@" "bc43210dcd146d242bef4d354b0aeac12c4ef3118c07502d17ffa8d49e15aa2c"
280 gnu/packages/bootstrap/i686-linux/guile-2.0.7.tar.xz:
281         $(MKDIR_P) `dirname "$@"`
282         $(DOWNLOAD_FILE) "$@" "f9a7c6f4c556eaafa2a69bcf07d4ffbb6682ea831d4c9da9ba095aca3ccd217c"