aboutsummaryrefslogtreecommitdiff
path: root/guix/build
Commit message (Expand)AuthorAge
* build-system/go: Fix installation path of executable files.•••* guix/build/go-build-system.scm (setup-environment): Set GOBIN correctly. Leo Famulari2017-10-26
* build-system/go: Parameterize installing the source code.•••* guix/build-system/go.scm (go-build): Add install-source? key. * guix/build/go-build-system.scm (install-source): Check if install-source? is true. Leo Famulari2017-10-24
* build-system/go: Strip the Go binaries with the native tool.•••* guix/build/go-build-system.scm (build): Tell the Go linker to strip some symbol tables and debugging information. Leo Famulari2017-10-24
* pull: Hide compilation warnings.•••* guix/build/pull.scm (build-guix): Bind 'current-warning-port' to a void port. Ludovic Courtès2017-10-23
* pull: Add (guix build compile) to the mix.•••Fixes <https://bugs.gnu.org/28956>. Reported by Leo Famulari <leo@famulari.name>. * build-aux/build-self.scm (build): Add (guix build compile) to #:modules. * guix/build/pull.scm (build-guix): Wrap 'compile-files' call in 'with-directory-excursion'. Strip "./" from FILES when passing it to 'compile-files'. Ludovic Courtès2017-10-23
* discovery: Move 'file-name->module-name' to (guix modules).•••* guix/discovery.scm (file-name->module-name): Move to... * guix/modules.scm (file-name->module-name): ... here. * guix/build/compile.scm: Use (guix modules) instead of (guix discovery). Ludovic Courtès2017-10-22
* build: Factorize module compilation in (guix build compile).•••* guix/build/compile.scm: New file. * Makefile.am (MODULES): Add it. * build-aux/compile-all.scm: Use it. (warnings, file->module, load-module-file) (%default-optimizations, %lightweight-optimizations) (optimization-options, compile-file*): Remove. <top level>: Use 'compile-files'. * guix/build/pull.scm (%default-optimizations) (%lightweight-optimizations, optimization-options): Remove. (build-guix): Rewrite as a call to 'compile-files'. * guix/discovery.scm (file-name->module-name): Export. Ludovic Courtès2017-10-22
* download: Download a nar when a VCS checkout fails.•••Fixes <https://bugs.gnu.org/28709>. * guix/build/download-nar.scm: New file. * Makefile.am (MODULES): Add it. * guix/cvs-download.scm (cvs-fetch)[zlib, config.scm, modules]: New variables. [build]: Use MODULES. Add call to 'download-nar'. * guix/git-download.scm (git-fetch): Likewise. * guix/hg-download.scm (hg-fetch): Likewise. Ludovic Courtès2017-10-19
* Add (guix progress).•••Among other things, this removes (guix utils), (guix ui), (guix config), etc. from the closure of (guix build download), as was the case since 798648515b77507c242752457b4dc17c155bad6e. * guix/utils.scm (<progress-reporter>, call-with-progress-reporter): Move to... * guix/progress.scm: ... here. New file. * Makefile.am (MODULES): Add it. * guix/build/download.scm (current-terminal-columns) (nearest-exact-integer, duration->seconds, seconds->string) (byte-count->string, progress-bar, string-pad-middle) (rate-limited, progress-reporter/file, dump-port*) (time-monotonic): Move to progress.scm. * guix/scripts/download.scm: Adjust accordingly. * guix/scripts/substitute.scm: Likewise. Ludovic Courtès2017-10-19
* download: Make 'http-fetch' public.•••* guix/build/download.scm (http-fetch): Remove 'file' parameter. Change to return an input port and the content-length. Make public. (url-fetch): Adjust accordingly. Ludovic Courtès2017-10-19
* download: Remove old-Guile leftovers.•••This is a followup to 36626c556ed75219bce196ac93d148f6b9af984c. * guix/build/download.scm (http-fetch): Rename 'port-or-bv' to 'port'. Assume (port? port) is always true, and remove other branch. Ludovic Courtès2017-10-19
* emacs-build-system: Change how patch-el-files substitutes commands.•••Previously the regex would match from /bin/ to a closing quote. However, this is greedy, so will match up until the last ". This causes problems when there are several quotes on the same line, for example: org-effectiveness.el: 196: (call-process "/bin/bash" nil t nil "-c" strplot) Therefore, change . to \S so that it doesn't include whitespace characters. Changing to a lazy quantifier would be an option, if that were supported. * guix/build/emacs-build-system.scm (patch-el-files): Change the regular expression used. Christopher Baines2017-10-15
* emacs-build-system: Handle missing programs when patching.•••Previously the string-append here would error, which isn't useful as it doesn't tell you which command couldn't be found. To make the error actionable, catch it earlier, and explicitly error. * guix/build/emacs-build-system.scm (patch-el-files): Handle (which cmd) returning #f. Christopher Baines2017-10-15
* build: Add the Go build system.•••* guix/build-system/go.scm, guix/build/go-build-system.scm: New files. * Makefile.am (MODULES): Add new files. * doc/guix.texi (Build Systems): Document the go-build-system. Leo Famulari2017-10-12
* syscalls: clone: Define syscall-id for aarch64.•••* guix/build/syscalls.scm (clone): Define syscall-id for aarch64 machines. Eric Bavier2017-10-09
* pull: Honor 'parallel-job-count'.•••* guix/build/pull.scm (build-guix): Use 'n-par-for-each' and honor 'parallel-job-count'. Ludovic Courtès2017-10-07
* guix: ant-build-system: Add #:test-include and #:test-exclude arguments.•••* guix/build-system/ant.scm: Add #:test-include and #:test-exclude arguments. * guix/build/ant-build-system.scm: Generate test list from arguments. * doc/guix.texi (Build Systems): Document it. Julien Lepiller2017-10-03
* guix: ant-build-system: Add main-class support.•••* guix/build-system/ant.scm: New #:main-class argument * guix/build/ant-build-system.scm: Generate a manifest file with additional properties. * doc/guix.texi (Build Systems): Document it. Julien Lepiller2017-10-03
* download: Don't report the progress too fast.•••* guix/utils.scm (<progress-reporter>): New record type. (call-with-progress-reporter): New procedure. * guix/build/download.scm (dump-port*, rate-limited, progress-reporter/file): New procedures. (ftp-fetch, http-fetch): Use 'dump-port*'. (progress-proc): Remove procedure. * guix/scripts/substitute.scm (progress-report-port): Rewrite in terms of <progress-reporter>. (process-substitution): Adjust accordingly. 宋文武2017-09-20
* build-system: Add 'meson-build-system'.•••* Makefile.am (MODULES): Add 'guix/build-system/meson.scm' and 'guix/build/meson-build-system.scm'. * guix/build-system/meson.scm: New file. * guix/build/meson-build-system.scm: New file. * doc/guix.texi (Build Systems): Add 'meson-build-system'. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Peter Mikkelsen2017-09-16
* Handle the same HTTP redirects everywhere.•••* guix/build/download.scm (http-fetch): Complete the hard-coded list of HTTP redirection status codes. * guix/http-client.scm (http-fetch): Likewise. * guix/scripts/lint.scm (probe-uri): Likewise. Tobias Geerinckx-Rice2017-09-05
* build: Fix helpful output for emacs-build-system install phase.•••Detecting when no files were installed was broken when switching to use cond. Test with (not (null? ...)) to fix this. * guix/build/emacs-build-system.scm (install): Fix detecting when no files were installed. Christopher Baines2017-09-03
* build: emacs-build-system: Make the install phase more helpful.•••Modify the install phase to detect when nothing has been installed, and error if this happens. This is preferable to continuing, and allowing the next phase to fail. Also, when nothing can be found to be installed, print out each file that was considered, along with the regular expressions that were used to include and exclude it. * gnu/build/emacs-build-system.scm (install-file?): Add additional error checking and logging. Christopher Baines2017-09-01
* Merge branch 'core-updates'Marius Bakke2017-08-26
|\
| * Merge branch 'master' into core-updatesMark H Weaver2017-08-06
| |\
| * \ Merge branch 'master' into core-updatesLeo Famulari2017-07-23
| |\ \
| * | | syscalls: Delay resolution of "scm_set_automatic_finalization_enabled".•••* guix/build/syscalls.scm (%set-automatic-finalization-enabled?!) [guile-2.2]: Wrap in 'delay'. Ludovic Courtès2017-07-18
| * | | Merge branch 'master' into core-updatesLeo Famulari2017-07-10
| |\ \ \
| * \ \ \ Merge branch 'master' into core-updatesLudovic Courtès2017-06-30
| |\ \ \ \
| * \ \ \ \ Merge branch 'master' into core-updatesMark H Weaver2017-06-18
| |\ \ \ \ \
| * | | | | | build-system/gnu: Work around 'time-monotonic' bug in Guile 2.2.2.•••Fixes <http://bugs.gnu.org/27303>. Reported by Leo Famulari <leo@famulari.name>. * guix/build/gnu-build-system.scm (time-monotonic) [guile-2.2]: Define. Ludovic Courtès2017-06-11
| * | | | | | Merge branch 'master' into core-updatesMarius Bakke2017-06-10
| |\ \ \ \ \ \
| * \ \ \ \ \ \ Merge branch 'master' into core-updates••• Conflicts: gnu/packages/image.scm (incorporated libtiff graft) Marius Bakke2017-06-03
| |\ \ \ \ \ \ \
| * | | | | | | | utils: Add helper for invoking programs.•••* guix/build/utils.scm (invoke): New variable. Co-authored-by: Ludovic Courtès <ludo@gnu.org> Danny Milosavljevic2017-06-01
| * | | | | | | | build-system/gnu: 'compress-documentation' phase handles double symlinks.•••The compress-documentation phase was breaking recursive symbolic links used for manuals, which was made visible by the `find-files' call in the recently added `manual-database' profile hook. See <http://bugs.gnu.org/26771>. * guix/build/gnu-build-system.scm (compress-documentation) [points-to-symbolic-link?]: New procedure. [maybe-compress-directory]: Use `points-to-symbolic-link?' to filter out symbolic links that shouldn't be retargetted, and re-order the calls to `retarget-symlink' and `documentation-compressor'. Co-authored-by: Ludovic Courtès <ludo@gnu.org> Maxim Cournoyer2017-05-30
| * | | | | | | | build-system/cmake: Add support for cross compilation.•••Fixes <https://bugs.gnu.org/26897>. * guix/build-system/gnu.scm: Export standard-cross-packages. * guix/build-system/cmake.scm (cmake-cross-build): New procedure. (lower): Add support for cross-builds. * guix/build/cmake-build-system.scm (configure): Handle "target" argument. Ricardo Wurmus2017-05-30
| * | | | | | | | Merge branch 'master' into core-updatesMark H Weaver2017-05-27
| |\ \ \ \ \ \ \ \
| * | | | | | | | | utils: Re-export 'delete'.•••* guix/build/utils.scm: Reexport 'delete' binding. Co-authored-by: Ludovic Courtès <ludo@gnu.org> Sergei Trofimovich2017-05-26
* | | | | | | | | | graft: Correctly replace references near the end of the scan buffer.•••Fixes <http://bugs.gnu.org/28212>. Reported by Leo Famulari <leo@famulari.name>. * guix/build/graft.scm (replace-store-references): When I >= END, check whether WRITTEN > END and call 'get-bytevector-n!' when it is. * tests/grafts.scm (buffer-size): New variable. ("replace-store-references, <http://bugs.gnu.org/28212>"): New test. Ludovic Courtès2017-08-24
| |_|_|_|_|_|_|_|/ |/| | | | | | | |
* | | | | | | | | build: Add minify build system.•••* guix/build-system/minify.scm: New file. * guix/build/minify-build-system: New file. * Makefile.am (MODULES): Add new files. * doc/guix.texi (Build Systems): Document minify-build-system. Ricardo Wurmus2017-08-04
| |_|_|_|_|_|_|/ |/| | | | | | |
* | | | | | | | syscalls: Add network-interface-running?•••* guix/build/syscalls.scm (network-interface-running?): New variable. Export it. * tests/syscalls.scm: Add test. Co-authored-by: John Darrington <jmd@gnu.org> Danny Milosavljevic2017-07-12
| |_|_|_|_|_|/ |/| | | | | |
* | | | | | | syscalls: Adjust 'dirent64' struct for GNU/Hurd.•••Reported by rennes@openmailbox.org. * guix/build/syscalls.scm (file-type->symbol): New procedure. (%struct-dirent-header): Rename to... (%struct-dirent-header/linux): ... this. Rename introduced bindings as well. (%struct-dirent-header/hurd): New C struct. (define-generic-identifier): New macro. (read-dirent-header, %struct-dirent-header, sizeof-dirent-header): Define in terms of 'define-generic-identifier'. Ludovic Courtès2017-07-10
* | | | | | | build-system: texlive: Build union in configure phase.•••This allows us to use texmf.cnf instead of having to set all required environment variables manually. * guix/build/texlive-build-system.scm (configure): New procedure. (build): Simplify. (%standard-phases): Add configure phase. * guix/build-system/texlive.scm (texlive-build): Include (guix build union) in modules. (%texlive-build-system-modules): Likewise. Ricardo Wurmus2017-07-09
* | | | | | | build-system: texlive: Only build packages in the current directory.•••* guix/build/texlive-build-system.scm (build): Use scandir instead of find-files. Ricardo Wurmus2017-07-09
| |_|_|_|_|/ |/| | | | |
* | | | | | vm: Estimate the disk size by default.•••* gnu/build/vm.scm (estimated-partition-size): New procedure. * gnu/system/vm.scm (expression->derivation-in-linux-vm): Change #:disk-image-size default to 'guess. [builder]: When DISK-IMAGE-SIZE is 'guess, use 'estimated-partition-size' and compute and estimate of the image size. (qemu-image): Likewise. * guix/build/store-copy.scm (file-size, closure-size): New procedures. * guix/scripts/system.scm (%default-options): Change 'image-size' to 'guess. * doc/guix.texi (Building the Installation Image): Remove '--image-size' flag from example. (Invoking guix system): Document the image size estimate. Ludovic Courtès2017-06-30
| |_|_|_|/ |/| | | |
* | | | | syscalls: 'opendir*' error message shows the file name.•••* guix/build/syscalls.scm (opendir*): Add NAME to the 'system-error' message. Ludovic Courtès2017-06-18
* | | | | syscalls: Add 'scandir*'.•••* guix/build/syscalls.scm (%struct-dirent-header): New C struct. (string->pointer/utf-8, pointer->string/utf-8): New procedures. (opendir*, closedir*, readdir*, scandir*): New procedures. * tests/syscalls.scm ("scandir*, ENOENT") ("scandir*, ASCII file names", "scandir*, UTF-8 file names") ("scandir*, properties): New tests. Ludovic Courtès2017-06-16
* | | | | build-system: Add 'texlive-build-system'.•••* guix/build-system/texlive.scm: New file. * guix/build/texlive-build-system.scm: New file. * Makefile.am (MODULES): Add them. * doc/guix.texi (Build Systems): Document it. * gnu/packages/tex.scm (%texlive-tag, %texlive-revision): Remove variables. (texlife-ref): Remove procedure. Ricardo Wurmus2017-06-15
| |_|_|/ |/| | |
* | | | build-system: emacs: Factorize include/exclude default arguments.•••The `install' phase of the emacs-build-system contained default arguments duplicated from the host side `emacs-build' procedure. This change factorizes them so that: 1. They are not duplicated. 2. They can be reused and extended easily when defining emacs packages. * guix/build/emacs-build-system.scm (%default-include, %default-exclude): New variables. (install): Use %default-include and %default-exclude as default arguments. * guix/build-system/emacs.scm: Use and re-export %default-include, %default-exclude from (guix build emacs-build-system). (emacs-build): Use %default-include and %default-exclude as default arguments. Signed-off-by: Arun Isaac <arunisaac@systemreboot.net> Maxim Cournoyer2017-06-08
| |_|/ |/| |
* | | syscalls: Provide 'free-disk-space'.•••* guix/build/syscalls.scm (free-disk-space): New procedure. * guix/scripts/gc.scm (guix-gc)[ensure-free-space]: Use it instead of 'statfs'. Ludovic Courtès2017-06-02