Age | Commit message (Expand) | Author |
2017-11-08 | build-system/gnu: Add 'install-license-files' phase....Suggested by Dave Love <fx@gnu.org>.
* guix/build-system/gnu.scm (%license-file-regexp): New variable.
(gnu-build): Add #:license-file-regexp and use it.
(gnu-cross-build): Likewise.
* guix/build/gnu-build-system.scm (%license-file-regexp): New variable.
(install-license-files): New procedure.
(%standard-phases): Add it.
| Ludovic Courtès |
2017-06-11 | 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ès |
2017-05-30 | 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 Cournoyer |
2017-01-26 | utils: Add helper method to make files writable....* gnu/build/activation.scm (make-file-writable): Move this to ...
* guix/build/utils.scm (make-file-writable): ... here. Export it.
* guix/build/gnu-build-system.scm (strip): Use it.
| Marius Bakke |
2017-01-26 | build-system/gnu: Add 'reset-gzip-timestamps' phase....* guix/build/gnu-build-system.scm (reset-gzip-timestamps): New
procedure.
(%standard-phases): Add it.
| Ludovic Courtès |
2017-01-26 | build-system/gnu: 'strip' phase now skips symlinks....This avoids a situation where the "debug" output would contain separate
(and different) .debug files for "libfoo.so" and "libfoo.so.0.0", even
though "libfoo.so" is actually a symlink to "libfoo.so.0.0".
* guix/build/gnu-build-system.scm (strip): Remove 'file-exists?' call in
'for-each' lambda. Pass a predicate to 'find-files' to restrict the
result to regular files.
| Ludovic Courtès |
2016-11-26 | build-system/gnu: Make libraries writable before stripping....* guix/build/gnu-build-system.scm (strip)[strip-dir]: Change mode of
files before running strip-command.
| Marius Bakke |
2016-10-01 | build-system/gnu: Add 'patch-dot-desktop-files' phase....* guix/build/gnu-build-system.scm (patch-dot-desktop-files): New
procedure.
(%standard-phases): Add it.
Co-authored-by: Ludovic Courtès <ludo@gnu.org>
| John Darrington |
2016-09-12 | build-system/gnu: Do not patch symlinks in the source....This is a followup to 13a9feb5b64fd819eaed38a17da0284bbe2b8d9.
* guix/build/gnu-build-system.scm (patch-source-shebangs): Remove call
to 'remove'. Pass a second argument to 'find-files' to filter out
symlinks; pass #:stat lstat.
(patch-generated-file-shebangs): Likewise, and also filter out
non-executable files.
| Ludovic Courtès |
2016-09-01 | build-system/gnu: 'strip' phase lists files in sorted order....This fixes a bug whereby the choice between stripping 'libfoo.so.0.1.2'
and stripping 'libfoo.so' (the symlink) would be non-deterministic.
* guix/build/gnu-build-system.scm (strip)[strip-dir]: Use 'find-files'
instead of 'file-system-fold' so that files are picked in deterministic
order.
| Ludovic Courtès |
2016-02-09 | build-system/gnu: Do not patch symlinks....This fixes location-aware scripts.
* guix/build/gnu-build-system.scm (patch-shebangs)[list-of-files]: Use
'lstat' instead of 'stat'.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
| Jan Nieuwenhuizen |
2016-01-05 | build-system/gnu: Add 'set-SOURCE-DATE-EPOCH' phase....This phase is inherited by other build systems, which ensures
'SOURCE_DATE_EPOCH' is always set in practice.
* guix/build/python-build-system.scm (set-SOURCE-DATE-EPOCH): Remove.
(%standard-phases): Don't add it.
* guix/build/gnu-build-system.scm (set-SOURCE-DATE-EPOCH): New
procedure.
(%standard-phases): Add it.
(gnu-build): Remove 'setenv' call for "SOURCE_DATE_EPOCH".
| Ludovic Courtès |
2016-01-01 | build-system/gnu: Use the long option name for deterministic archives....This is a followup to 3eb34c6.
* guix/build-system/gnu.scm (gnu-build, gnu-cross-build): Use
"--enable-deterministic-archives" instead of "-D" to work around
Binutils bug <https://sourceware.org/bugzilla/show_bug.cgi?id=17671>.
* guix/build/gnu-build-system.scm (strip): Likewise.
| Ludovic Courtès |
2015-12-18 | build-system/gnu: Always pass "-D" to strip/objcopy....* guix/build-system/gnu.scm (gnu-build, gnu-cross-build): Add "-D" to
#:strip-flags.
* guix/build/gnu-build-system.scm (strip): Likewise. Also pass "-D" to
OBJCOPY-COMMAND.
| Ludovic Courtès |
2015-11-14 | build-system/gnu: Set 'SOURCE_DATE_EPOCH'....Suggested by Ludovic Courtès <ludo@gnu.org>.
* guix/build/gnu-build-system.scm (gnu-build): Set SOURCE_DATE_EPOCH for
deterministic builds.
| Alex Kost |
2015-10-04 | Use "normalized codesets" everywhere....In other words, change "xx_YY.UTF-8" to "xx_YY.utf8".
* guix/profiles.scm (ca-certificate-bundle): Use "en_US.utf8" instead of
"en_US.UTF-8".
* guix/packages.scm (patch-and-repack): Likewise.
* guix/build/gnu-build-system.scm (install-locale): Likewise.
* guix/build-system/gnu.scm (gnu-build, gnu-cross-build): Likewise.
* gnu/packages/python.scm (python-ipython): Likewise.
* gnu/packages/gawk.scm (gawk): Likewise.
* build-aux/hydra/demo-os.scm: Likewise.
* gnu/packages/guile.scm (guile-ncurses)[arguments]: Remove
'change-locale' phase.
| Ludovic Courtès |
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-08-30 | build-system/gnu: Use monotic time to measure elapsed time....* guix/build/gnu-build-system.scm (gnu-build)[elapsed-time]: New
procedure.
Use it, and use (current-time time-monotonic) instead
of (gettimeofday). Show one digit after the comma for the elapsed
time.
| Ludovic Courtès |
2015-07-13 | build-system/gnu: Pass --build=<triplet> to configure by default....* guix/build-system/gnu.scm (gnu-build, gnu-cross-build): Accept #:build
keyword argument. Pass it to 'gnu-build' on the build side.
* guix/build/gnu-build-system.scm (configure): Accept #:build keyword
argument. Unless it is false, pass --build to configure.
| Mark H Weaver |
2015-04-23 | build-system/gnu: #:validate-runpath? now defaults to #t....* guix/build/gnu-build-system.scm (validate-runpath): Change default
value of VALIDATE-RUNPATH? to #t.
| Ludovic Courtès |
2015-04-23 | build-system/gnu: Gracefully handle dangling symlinks....Fixes <http://bugs.gnu.org/20081>.
Reported by Tomáš Čech <tcech@suse.cz>.
* guix/build/gnu-build-system.scm (patch-source-shebangs): Remove files
that don't pass 'file-exists?'.
(patch-generated-file-shebangs): Likewise.
| Ludovic Courtès |
2015-04-06 | build-system/gnu: Add docstring to 'delete-info-dir-file'....* guix/build/gnu-build-system.scm (delete-info-dir-file): Add docstring.
| Federico Beffa |
2015-04-06 | build-system/gnu: Add 'delete-info-dir-file' phase....* guix/build/gnu-build-system.scm (delete-info-dir-file): New procedure.
(%standard-phases): Use it.
| Federico Beffa |
2015-04-01 | build-system/gnu: Add 'validate-runpath' phase....* guix/build/gnu-build-system.scm (every*, validate-runpath): New
procedures.
(%standard-phases): Add 'validate-runpath'.
* guix/build-system/gnu.scm (%gnu-build-system-modules): Add (guix build
gremlin) and (guix elf).
(gnu-build): Add #:validate-runpath?.
[builder]: Pass it.
(gnu-cross-build): Likewise.
* gnu/packages/base.scm (glibc)[arguments]: Add #:validate-runpath? #f.
| Ludovic Courtès |
2015-03-01 | Revert "build-system/gnu: Keep the sloppy conversion strategy during bootstrap."...This reverts commit b479c3ddaf85c831e34888229849bc1ce34419de.
This commit was the result of an incorrect characterization of the
problem; see the log of commit 87c8b92 for details.
| Ludovic Courtès |
2015-03-01 | build-system/gnu: Keep the sloppy conversion strategy during bootstrap....* guix/build/gnu-build-system.scm (gnu-build): Leave
%DEFAULT-PORT-CONVERSION-STRATEGY unchanged when 'string->bytevector'
fails to convert to ISO-8859-1. This is an attempt to work around the
build failures at <http://hydra.gnu.org/build/263002>.
| Ludovic Courtès |
2015-02-28 | packages: Set the port conversion strategy to 'error'....Suggested by Mark H Weaver.
* guix/build/gnu-build-system.scm (gnu-build): Set
%DEFAULT-PORT-CONVERSION-STRATEGY to 'error.
* guix/packages.scm (patch-and-repack)[builder]: Likewise.
| 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 | build-system/gnu: Add 'install-locale' phase....* guix/build/gnu-build-system.scm (install-locale): New procedure.
(%standard-phases): Add it.
* guix/build-system/gnu.scm (gnu-build): Add #:locale and pass it to
the build script.
(gnu-cross-build): Likewise.
| Ludovic Courtès |
2015-02-26 | build-system/gnu: Add support for zip archives....Fixes <http://bugs.gnu.org/19866>.
Reported by Andreas Enge <andreas@enge.fr>.
* guix/build/gnu-build-system.scm (unpack): Use 'unzip' when SOURCE ends
in '.zip'.
| Ludovic Courtès |
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 |
2015-01-04 | build-system/gnu: Use executables from the target inputs in 'patch-shebangs'....Fixes <http://bugs.gnu.org/18895>.
* guix/build/gnu-build-system.scm (patch-shebangs): Add #:inputs
parameter. Remove 'bindirs'. Add 'bin-directories',
'output-bindirs', and 'input-bindirs'. Use them instead of (getenv
"PATH") to as the argument to 'patch-shebang'.
| Ludovic Courtès |
2014-12-29 | gnu: Revert use of '--strip-all'....This reverts commits f05bdc9412135f34a1c417edc203c35cd005d0d5
and 856ae5e6c71a1283a414d33e638051f95d3cce35.
This broke all sorts of things. See <http://hydra.gnu.org/eval/102058>,
for example.
| Ludovic Courtès |
2014-12-28 | gnu: Don't use --strip-all in cases where this is problematic....This is a followup to 856ae5e. See <http://hydra.gnu.org/build/180506>
for an example of build failure.
* guix/build/gnu-build-system.scm (strip): Add #:archive-strip-flags
parameter. Use it when (ar-file? path).
* guix/build-system/gnu.scm (gnu-build): Add #:archive-strip-flags
parameter and pass it down.
* gnu/packages/commencement.scm (gcc-boot0)[arguments]: Add
#:strip-flags.
* gnu/packages/base.scm (glibc)[arguments]: Likewise.
| 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: Strip with '--strip-all' instead of '--strip-debug'....This saves 19% on the 'bin' directory of Coreutils, and certainly
helpful for things like Git's 'libexec' directory.
* guix/build-system/gnu.scm (gnu-build): Change default value for
#:strip-flags to '("--strip-all").
* guix/build/gnu-build-system.scm (strip): Ditto.
* gnu/packages/linux.scm (linux-libre)[arguments]: Add #:strip-flags.
| 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-01 | build-system/gnu: Add 'compress-documentation' phase....* guix/build/gnu-build-system.scm (compress-documentation): New
procedure.
(%standard-phases): Add it.
| Ludovic Courtès |
2014-12-01 | build-system/gnu: Add 'validate-documentation-location' phase....* guix/build/gnu-build-system.scm (validate-documentation-location): New
procedure.
(%standard-phases): Add it.
| Ludovic Courtès |
2014-11-24 | build-system/gnu: Gracefully handle dangling symlinks in the 'strip' phase....* guix/build/gnu-build-system.scm (strip): Check whether 'file-exists?'
before calling 'elf-file?' and 'ar-file?'. This should fix build
failures in the presence of dangling symlinks, as in
<http://hydra.gnu.org/build/167521/nixlog/1/raw>.
| Ludovic Courtès |
2014-11-22 | build-system/gnu: Strip 'ar' archives as well....* guix/build/gnu-build-system.scm (strip): Also strip when (ar-file?
PATH) is true.
| Ludovic Courtès |
2014-11-22 | build-system/gnu: Strip only ELF files....Suggested by Mark H Weaver <mhw@netris.org>
at <http://lists.gnu.org/archive/html/guix-devel/2014-10/msg00395.html>.
* guix/build/gnu-build-system.scm (strip)[strip-dir]: Strip only
when (elf-file? PATH) is true.
| 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-08-23 | gnu-build-system: Add 'patch-usr-bin-file' to %standard-phases....* guix/build/gnu-build-system.scm (patch-usr-bin-file): New procedure.
(%standard-phases): Add it.
| Mark H Weaver |
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-02-22 | build-system/gnu: Allow the source to be a directory....* guix/build/gnu-build-system.scm (unpack): Check if SOURCE is a
directory, and copy it locally if it is.
* gnu/packages/libwebsockets.scm (libwebsockets)[arguments]: Remove
'unpack' phase.
| Ludovic Courtès |
2014-02-10 | build-system/gnu: Set the docdir to "share/doc"...* guix/build/gnu-build-system.scm (configure):
Change docdir directory from "doc" to "share/doc".
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
| John Darrington |
2014-01-28 | Revert "build-system/gnu: Pass --localstatedir=/var --sharedstatedir=/com."...This reverts commit 65529e49ff5b9052544271b1b7923feed4312849.
| Ludovic Courtès |
2014-01-27 | build-system/gnu: Pass --localstatedir=/var --sharedstatedir=/com....Suggested by John Darrington <john@darrington.wattle.id.au>
and Mark H Weaver <mhw@netris.org>.
* guix/build/gnu-build-system.scm (configure): Pass --localstatedir=/var
--sharedstatedir=/com.
* gnu/packages/admin.scm (dmd): Remove 'arguments' field.
* gnu/packages/avahi.scm (avahi): Remove --localstatedir flag.
* gnu/packages/glib.scm (dbus): Likewise.
* gnu/packages/package-management.scm (guix): Likewise.
* gnu/packages/pulseaudio.scm (pulseaudio): Likewise.
| Ludovic Courtès |
2013-12-17 | gnu: gnu-build-system: Add CC_FOR_BUILD to configure flags....* guix/build/gnu-build-system.scm: Add new configure flag: CC_FOR_BUILD=gcc
* gnu/packages/gnupg.scm, gnu/packages/guile.scm, gnu/packages/make-bootstrap.scm:
remove CC_FOR_BUILD from these package descriptions.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
| John Darrington |