Age | Commit message (Expand) | Author |
2016-09-07 | utils: 'wrap-program' produces only one wrapper file....* guix/build/utils.scm (wrap-program)[wrapper-file-name]
[next-wrapper-number, wrapper-target]: Remove.
[wrapped-file, already-wrapped?]: New variables.
[last-line]: New procedure.
Use it to append to PROG when a wrapper already exists.
* tests/build-utils.scm ("wrap-program, one input, multiple calls"):
Adjust the list of files to delete.
| Ludovic Courtès |
2016-08-10 | utils: Fix 'modify-phases' docstring....* guix/build/utils.scm (modify-phases): Fix the documentation string.
| Taylan Ulrich Bayırlı/Kammer |
2015-10-29 | utils: Have search-path-as-list pattern search for directories....* guix/build/utils.scm (search-path-as-list)[pattern]: Check requested file
type. Check pattern against directory names.
* guix/search-paths.scm (evaluate-search-paths)[pattern]: Remove symlink hack.
| Eric Bavier |
2015-10-03 | utils: Add 'every*'....* guix/build/gnu-build-system.scm (every*): Move to...
* guix/build/utils.scm (every*): ... here. New procedure.
| Ludovic Courtès |
2015-09-06 | utils: find-files: Add DIRECTORIES? and FAIL-ON-ERROR? arguments....* guix/build/utils.scm (find-files): Add DIRECTORIES? and FAIL-ON-ERROR?
keyword arguments.
| Mark H Weaver |
2015-08-30 | utils: Move 'package-name->name+version' to (guix build utils)....* guix/utils.scm (package-name->name+version): Move to...
* guix/build/utils.scm (package-name->name+version): ... here. New
procedure.
* guix/build/emacs-build-system.scm (package-name->name+version):
Remove.
| Ludovic Courtès |
2015-08-30 | utils: Add 'strip-store-file-name'....* guix/build/utils.scm (strip-store-file-name): New procedure.
* guix/build/emacs-build-system.scm (store-directory->name-version):
Remove. Update callers to use 'strip-store-file-name'.
* gnu/packages/gcc.scm (make-libstdc++-doc)[arguments]: Use
'strip-store-file-name' instead of 'string-drop'.
| Ludovic Courtès |
2015-08-29 | utils: Add 'install-file'....* guix/build/utils.scm (install-file): New procedure.
| Ludovic Courtès |
2015-04-06 | utils: 'find-files' does not follow symlinks by default....Fixes <http://bugs.gnu.org/20081>.
Reported by Tomáš Čech <sleep_walker@suse.cz>.
* guix/build/utils.scm (find-files): Add #:stat parameter. Pass it as
last argument to 'file-system-fold'.
| Ludovic Courtès |
2015-04-05 | gremlin: Ignore non-store file names in RUNPATH and warn about them....* guix/build/gremlin.scm (validate-needed-in-runpath)[runpath]:
Add (filter absolute-file-name? ...).
Emit a warning when RUNPATH file names that do not match
'store-file-name?'. Change format of error message to begin with file
name.
* guix/build/utils.scm (store-file-name?): New procedure.
| Ludovic Courtès |
2015-04-01 | utils: Make the second 'find-files' argument optional....* guix/build/utils.scm (find-files): Make 'pred' optional.
| Ludovic Courtès |
2015-03-31 | utils: 'find-files' takes an arbitrary predicate as its second argument....* guix/build/utils.scm (file-name-predicate): New procedure.
(find-files): Rename second parameter to 'pred'. When 'pred' is not a
procedure, call 'file-name-predicate'. Use PRED instead of
'regexp-exec' in the leaf procedure.
| Ludovic Courtès |
2015-03-31 | utils: 'modify-phases' no longer introduces quotes....Suggested by Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>.
* guix/build/utils.scm (%modify-phases): Remove quotes.
* guix/build/cmake-build-system.scm (%standard-phases): Adjust
accordingly.
* guix/build/glib-or-gtk-build-system.scm (%standard-phases): Likewise.
* guix/build/gnu-dist.scm (%dist-phases): Likewise.
* guix/build/perl-build-system.scm (%standard-phases): Likewise.
* guix/build/python-build-system.scm (%standard-phases): Likewise.
* guix/build/ruby-build-system.scm (%standard-phases): Likewise.
* guix/build/waf-build-system.scm (%standard-phases): Likewise.
* gnu/packages/bash.scm, gnu/packages/code.scm, gnu/packages/gl.scm,
gnu/packages/gnome.scm, gnu/packages/graphics.scm,
gnu/packages/image.scm, gnu/packages/key-mon.scm,
gnu/packages/ocr.scm, gnu/packages/plotutils.scm,
gnu/packages/search.scm, gnu/packages/video.scm: Likewise.
| Ludovic Courtès |
2015-02-28 | utils: Treat 'configure' and Makefiles with an 8-bit encoding....* guix/build/utils.scm (patch-makefile-SHELL, patch-/usr/bin/file): Wrap
'substitute*' in 'with-fluids'. Fixes <http://hydra.gnu.org/build/262895>.
| Ludovic Courtès |
2015-02-28 | utils: Change 'patch-shebangs' to use binary input....* guix/build/utils.scm (get-char*): New procedure.
(patch-shebang): Use it instead of 'read-char'.
(fold-port-matches): Remove local 'get-char' and use 'get-char*'
instead.
| Ludovic Courtès |
2015-02-27 | utils: Call the progress-report proc when 'dump-port' starts....* guix/build/utils.scm (dump-port): Add call to PROGRESS at the
beginning.
| Ludovic Courtès |
2015-02-27 | build-system/gnu: Set $LC_ALL (or similar) to the chosen locale....Suggested by Mark H Weaver.
* guix/build/utils.scm (locale-category->string): New procedure.
* guix/build/gnu-build-system.scm (install-locale): Add 'setenv' call.
| Ludovic Courtès |
2015-02-26 | utils: Add 'modify-phases'....* guix/build/utils.scm (modify-phases): New macro.
| Ludovic Courtès |
2015-02-16 | utils: Preserve symbolic links in 'wrap-program'....* guix/build/utils.scm (wrap-program): Preserve symbolic links instead of
copying the contents of the link.
Co-authored-by: Ludovic Courtès <ludo@gnu.org>
Closes <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19743>.
| Andreas Enge |
2015-02-16 | utils: Use $0 instead of absolute path to original program in 'wrap-program'....* guix/build/utils.scm (wrap-program): Create scripts that use $0 (which is
usually just the base name) instead of the absolute path to the original
program. Alternative implementation of 2ed11b3.
Co-authored-by: Ludovic Courtès <ludo@gnu.org>
Closes <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19742>.
| Andreas Enge |
2015-02-10 | utils: Strip duplicates from search path....* guix/build/utils.scm (search-path-as-list): Delete duplicate input
directories before searching.
| Eric Bavier |
2015-01-09 | build-system/gnu: Patch /usr/bin/file in all 'configure' files....* guix/build/utils.scm (patch-/usr/bin/file): New procedure.
* guix/build/gnu-build-system.scm (patch-usr-bin-file): Rewrite using
it. Patch all the files returned by 'find-files' that are executable.
* gnu/packages/gawk.scm (gawk)[arguments]: Remove use of 'substitute*'
for 'extension/configure'.
| Ludovic Courtès |
2014-12-27 | utils: Export 'search-path-as-list'....* guix/build/utils.scm (search-path-as-list): Make public.
* guix/scripts/environment.scm (for-each-search-path): Use it.
| Ludovic Courtès |
2014-12-27 | build-support/gnu: Add support for file patterns in search paths....* guix/build/utils.scm (search-path-as-list): Add #:pattern parameter
and honor it.
(set-path-environment-variable): Likewise, and pass it to
'search-path-as-list'.
* guix/packages.scm (search-path-specification->sexp): Add PATTERN slot.
* guix/build/gnu-build-system.scm (set-paths): Adjust accordingly.
| Ludovic Courtès |
2014-12-27 | build-system/gnu: Add support for non-directory search paths....Partly fixes <http://bugs.gnu.org/18033>.
* guix/build/utils.scm (search-path-as-list): Rename 'sub-directories'
parameter to 'files'. Add #:type parameter and honor it.
(set-path-environment-variable): Likewise. Pass #:type to
'search-path-as-list'.
* guix/packages.scm (search-path-specification->sexp): Add 'directory as
the last item of the tuple.
* guix/build/gnu-build-system.scm (set-paths): Add 'type' to search-path
pattern. Pass #:type to 'set-path-environment-variable'.
| Ludovic Courtès |
2014-12-14 | utils: Change 'wrap-program' to preserve the original argv[0]....Suggested by Mark H Weaver <mhw@netris.org>
in <http://bugs.gnu.org/19138>.
* guix/build/utils.scm (wrap-program): Change wrapper to use "exec -a
PROG" instead of just "exec".
| Ludovic Courtès |
2014-12-13 | utils: Change 'patch-makefile-SHELL' to support ":=" assignments....Reported by Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>.
* guix/build/utils.scm (patch-makefile-SHELL): Update regexp to match
":=" assignments.
| Ludovic Courtès |
2014-12-13 | utils: Use 'which' to find the shell in 'patch-makefile-SHELL'....* guix/build/utils.scm (patch-makefile-SHELL)[find-shell]: Use 'which'.
| Ludovic Courtès |
2014-12-01 | utils: Add 'symbolic-link?'....* guix/build/utils.scm (symbolic-link?): New procedure.
| Ludovic Courtès |
2014-11-26 | utils: Improve docstring of 'substitute*' & co....* guix/build/utils.scm (substitute): Clarify first sentence of
docstring and add warning to the docstring about using '$' to match
an end of line.
(substitute*): Add warning to the docstring about using '$' to match
an end of line.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
| Taylan Ulrich Bayırlı/Kammer |
2014-11-23 | utils: 'elf-file?' and 'ar-file?' return #f for directories....This avoids uncaught exceptions when the 'strip' phase would call these
procedures on symlinks to directories, such as 'lib/terminfo' in
ncurses (see <http://hydra.gnu.org/build/167310/nixlog/1/tail-reload>.)
* guix/build/utils.scm (file-header-match): Catch 'system-error', and
return #f upon EISDIR.
| Ludovic Courtès |
2014-11-22 | utils: Turn 'parallel-job-count' into a parameter....* guix/build/utils.scm (parallel-job-count): Turn into a SRFI-39 parameter.
| Ludovic Courtès |
2014-11-22 | utils: Factorize magic bytes detection....* guix/build/utils.scm (file-header-match): New procedure.
(%elf-magic-bytes): New variable.
(elf-file?, ar-file?): Define using 'file-header-match'.
| Ludovic Courtès |
2014-11-22 | utils: Add 'ar-file?'....* guix/build/utils.scm (%ar-magic-bytes): New variable.
(ar-file?): New procedure.
| Ludovic Courtès |
2014-11-22 | utils: Add 'elf-file?'....* guix/build/utils.scm (elf-file?): New procedure.
| Ludovic Courtès |
2014-11-22 | utils: Export 'parallel-job-count'....* guix/build/utils.scm (parallel-job-count): New procedure.
* guix/build/gnu-build-system.scm (%parallel-job-count): Remove.
(build, check): Use 'parallel-job-count' instead.
| Ludovic Courtès |
2014-09-14 | utils: Import (ice-9 format)....* guix/build/utils.scm: Import (ice-9 format).
| Mark H Weaver |
2014-09-13 | utils: Allow wrap-program to be called multiple times....* guix/build/utils.scm (wrap-program): Multiple invocations of
wrap-program for the same file create successive wrappers. Adjust
docstring.
* tests/build-utils.scm: Test new wrap-program behavior.
(%store): New variable.
| Eric Bavier |
2014-09-05 | utils: Clean trailing whitespace at end of SHELL...* guix/build/utils.scm (patch-makefile-SHELL): Remove trailing whitespace.
| Eric Bavier |
2014-08-28 | utils: Preserve makefile shell arguments during patch....* guix/build/utils.scm (patch-makefile-SHELL): Preserve shell arguments.
| Eric Bavier |
2014-05-20 | utils: 'delete-file-recursively' doesn't follow mount points by default....* guix/build/utils.scm (delete-file-recursively): Add #:follow-mounts?
parameter and honor it.
| Ludovic Courtès |
2014-04-14 | build-system/gnu: Reset timestamps on build tree when source is a directory....* guix/build/utils.scm (copy-recursively): Add #:keep-mtime? parameter
and honor it.
* guix/build/gnu-build-system.scm (unpack): Use #:keep-mtime? #t.
* gnu/packages/admin.scm (shadow)[arguments]: Remove 'reset-timestamps'
phase.
| Ludovic Courtès |
2014-03-10 | Change default store values from /nix/store to /gnu/store....* gnu/packages/ld-wrapper.scm (%store-directory): Change the default to
/gnu/store.
* guix/build/utils.scm (%store-directory): New procedure.
(remove-store-references): Use it for the default value of 'store'.
* guix/packages.scm (patch-and-repack)[builder]: Change default store to
/gnu/store.
| Ludovic Courtès |
2013-10-16 | utils: 'find-files' always returns a proper list....Reported at <http://bugs.gnu.org/15608>.
* guix/build/utils.scm (find-files): Change the 'error' procedure to
return RESULT. Before we would end up with an improper list.
| Ludovic Courtès |
2013-09-15 | utils: 'find-files' returns a sorted list....* guix/build/utils.scm (find-files): Sort the result lexicographically.
* guix/scripts/pull.scm (unpack): Don't sort the result of 'find-files'.
| Ludovic Courtès |
2013-07-03 | utils: Re-export `alist-cons' and `alist-delete'....* guix/build/utils.scm: Re-export `alist-cons' and `alist-delete'.
| Ludovic Courtès |
2013-06-22 | utils: `set-path-environment-variable' calls `unsetenv' for empty values....* guix/build/utils.scm (set-path-environment-variable): When VALUE is
the empty string, call `unsetenv' instead of `setenv'.
* gnu/packages/guile.scm (guile-2.0)[arguments]: Remove `unsetenv'
trick.
| Ludovic Courtès |
2013-04-30 | utils: Adjust 'wrap-program'....* guix/build/utils.scm (wrap-program): Fix computation of PROG-REAL and
PROG-TMP when PROG is an absolute file name. Add "$@" in the
generated script, and quote PROG-REAL.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
| Nikita Karetnikov |
2013-03-07 | utils: Add 'wrap-program'....* guix/build/utils.scm (wrap-program): New procedure.
| Nikita Karetnikov |
2013-03-05 | utils: Add a #:follow-symlinks? parameter to `copy-recursively'....* guix/build/utils.scm (copy-recursively): Turn `log' into a keyword
parameter. Add the `follow-symlinks?' parameter and honor it.
| Ludovic Courtès |