Skip to content
Snippets Groups Projects
  1. Apr 12, 2013
    • Ludovic Courtès's avatar
      Add preliminary binary substituter. · 419fffa2
      Ludovic Courtès authored
      * guix/scripts/substitute-binary.scm: New file.
      * Makefile.am (MODULES): Add it.
      * nix/scripts/substitute-binary.in: New file.
      * config-daemon.ac: Produce nix/scripts/substitute-binary.
      * daemon.am (nodist_pkglibexec_SCRIPTS): Add
        nix/scripts/substitute-binary.
      * guix/store.scm (substitutable-path-info): Use the
        `query-substitutable-path-infos' RPC.
      * nix/nix-daemon/guix-daemon.cc (main): Honor `NIX_SUBSTITUTERS'.
      * pre-inst-env.in: Set `NIX_SUBSTITUTERS'.
      * test-env.in: Leave `NIX_SUBSTITUTERS' unchanged.  Set
        `GUIX_BINARY_SUBSTITUTE_URL, and create
        $NIX_STATE_DIR/substituter-data.
        Run `guix-daemon' within `./pre-inst-env'.
      * tests/store.scm ("substitute query"): New test.
      419fffa2
  2. Apr 03, 2013
    • Ludovic Courtès's avatar
      Add preliminary binary substituter. · f65cf81a
      Ludovic Courtès authored
      * guix/scripts/substitute-binary.scm: New file.
      * Makefile.am (MODULES): Add it.
      * nix/scripts/substitute-binary.in: New file.
      * config-daemon.ac: Produce nix/scripts/substitute-binary.
      * daemon.am (nodist_pkglibexec_SCRIPTS): Add
        nix/scripts/substitute-binary.
      * guix/store.scm (substitutable-path-info): Use the
        `query-substitutable-path-infos' RPC.
      * nix/nix-daemon/guix-daemon.cc (main): Honor `NIX_SUBSTITUTERS'.
      * pre-inst-env.in: Set `NIX_SUBSTITUTERS'.
      * test-env.in: Leave `NIX_SUBSTITUTERS' unchanged.  Set
        `GUIX_BINARY_SUBSTITUTE_URL, and create
        $NIX_STATE_DIR/substituter-data.
        Run `guix-daemon' within `./pre-inst-env'.
      * tests/store.scm ("substitute query"): New test.
      f65cf81a
  3. Feb 27, 2013
    • Mark H Weaver's avatar
      Replace individual scripts with master 'guix' script. · 868c923f
      Mark H Weaver authored
      * scripts/guix.in: New script.
      
      * Makefile.am (bin_SCRIPTS): Add 'scripts/guix'.  Remove 'guix-build',
        'guix-download', 'guix-import', 'guix-package', and 'guix-gc'.
      
        (MODULES): Add 'guix/scripts/build.scm', 'guix/scripts/download.scm',
        'guix/scripts/import.scm', 'guix/scripts/package.scm', and
        'guix/scripts/gc.scm'.
      
      * configure.ac (AC_CONFIG_FILES): Add 'scripts/guix'.  Remove 'guix-build',
        'guix-download', 'guix-import', 'guix-package', and 'guix-gc'.
      
      * guix-build.in, guix-download.in, guix-gc.in, guix-import.in,
        guix-package.in: Remove shell script boilerplate.  Move to guix-COMMAND.in
        to guix/scripts/COMMAND.scm.  Rename module from (guix-COMMAND) to
        (guix scripts COMMAND).  Change "guix-COMMAND" to "guix COMMAND" in
        usage help string.
      
      * pre-inst-env.in: Add "@abs_top_builddir@/scripts" to the front of $PATH.
        Export $GUIX_UNINSTALLED.
      
      * tests/guix-build.sh, tests/guix-daemon.sh, tests/guix-download.sh,
        tests/guix-gc.sh, tests/guix-package.sh: Use "guix COMMAND" instead of
        "guix-COMMAND".
      
      * doc/guix.texi: Replace all occurrences of "guix-COMMAND" with
        "guix COMMAND".
      
      * po/POTFILES.in: Update.
      868c923f
  4. Feb 17, 2013
    • Mark H Weaver's avatar
      Replace individual scripts with master 'guix' script. · e49951eb
      Mark H Weaver authored
      * scripts/guix.in: New script.
      
      * Makefile.am (bin_SCRIPTS): Add 'scripts/guix'.  Remove 'guix-build',
        'guix-download', 'guix-import', 'guix-package', and 'guix-gc'.
      
        (MODULES): Add 'guix/scripts/build.scm', 'guix/scripts/download.scm',
        'guix/scripts/import.scm', 'guix/scripts/package.scm', and
        'guix/scripts/gc.scm'.
      
      * configure.ac (AC_CONFIG_FILES): Add 'scripts/guix'.  Remove 'guix-build',
        'guix-download', 'guix-import', 'guix-package', and 'guix-gc'.
      
      * guix-build.in, guix-download.in, guix-gc.in, guix-import.in,
        guix-package.in: Remove shell script boilerplate.  Move to guix-COMMAND.in
        to guix/scripts/COMMAND.scm.  Rename module from (guix-COMMAND) to
        (guix scripts COMMAND).  Change "guix-COMMAND" to "guix COMMAND" in
        usage help string.
      
      * pre-inst-env.in: Add "@abs_top_builddir@/scripts" to the front of $PATH.
        Export $GUIX_UNINSTALLED.
      
      * tests/guix-build.sh, tests/guix-daemon.sh, tests/guix-download.sh,
        tests/guix-gc.sh, tests/guix-package.sh: Use "guix COMMAND" instead of
        "guix-COMMAND".
      
      * doc/guix.texi: Replace all occurrences of "guix-COMMAND" with
        "guix COMMAND".
      
      * po/POTFILES.in: Update.
      e49951eb
  5. Feb 11, 2013
  6. Jan 05, 2013
    • Ludovic Courtès's avatar
      Update license headers. · 233e7676
      Ludovic Courtès authored
      Change all license headers, except guix/build/* and ld-wrapper.scm, with
      this code:
      
        (use-modules (guix build utils)
      	       (srfi srfi-1))
      
        (fluid-set! %default-port-encoding "UTF-8")
      
        (substitute* (remove (lambda (f)
      			 (or (string-contains f ".tar.")
      			     (string-contains f ".git/")
      			     (string-contains f ".so")
      			     (string-suffix? ".o" f)
      			     (string-suffix? ".a" f)
      			     (string-suffix? ".go" f)
      			     (string-suffix? ".pdf" f)
      			     (string-suffix? ".png" f)
      			     (string-suffix? ".info" f)
      			     (equal? (basename f) "guix-daemon")
      			     (equal? (basename f) "nix-setuid-helper")
      			     (string-contains f "nix-upstream/")
      			     (string-contains f "distro/packages/bootstrap/")))
      		       (find-files "." "\\.[a-z]+$"))
          (("^([[:graph:]]+) This file is part of Guix." _ comment-start)
           (string-append comment-start " This file is part of GNU Guix."))
          (("^([[:graph:]]+) Guix --- Nix package management.*" _ comment-start)
           (string-append comment-start
      		    " GNU Guix --- Functional package management for GNU\n"))
          (("^([[:graph:]]+) Guix is " _ comment-start)
           (string-append comment-start " GNU Guix is "))
          (("^([[:graph:]]+) along with Guix." _ comment-start)
           (string-append comment-start " along with GNU Guix."))
          (("^([[:graph:]]+) Copyright \\(C\\)" _ comment-start)
           (string-append comment-start " Copyright ©")))
      
      Change headers using C-style comments manually.
      233e7676
  7. Nov 25, 2012
    • Ludovic Courtès's avatar
      distro: Search bootstrap binaries and patches in %LOAD-PATH. · 0b3651bc
      Ludovic Courtès authored
      * Makefile.am (patchdir, bootstrapdir): Change to be sub-directories of
        $(guilemoduledir).
        (.scm.go): Remove `DISTRO_' environment variables.
      * distro.scm (not-colon): Remove.
        (%patch-path, %bootstrap-binaries-path): Default to sub-directories of
        the entries in %LOAD-PATH.
      * pre-inst-env.in: Remove definition of `DISTRO_' environment variables.
      0b3651bc
  8. Nov 03, 2012
    • Ludovic Courtès's avatar
      build: Produce (guix config) instead of using compile-time tricks. · 00e219d1
      Ludovic Courtès authored
      * guix/config.scm.in: New file.
      * guix/utils.scm: Use it.
        (%libgcrypt): Remove.
        (%nixpkgs-directory): Don't capture the compile-time $NIXPKGS; use
        %NIXPKGS instead.
        (nixpkgs-derivation): Use %NIX-INSTANTIATE.
      * pre-inst-env.in (NIX_INSTANTIATE, NIXPKGS, LIBGCRYPT): Remove.
      
      * configure.ac: Emit `guix/config.scm'.
      * Makefile.am (GOBJECTS): Add `guix/config.go'.
        (nobase_nodist_guilemodule_DATA): Add `guix/config.scm'.
      00e219d1
  9. Oct 27, 2012
    • Ludovic Courtès's avatar
      build: Fix out-of-source-tree builds. · 735bb2af
      Ludovic Courtès authored
      * Makefile.am (distro/packages/bootstrap/x86_64-linux/guile-bootstrap-2.0.6.tar.xz,
        distro/packages/bootstrap/i686-linux/guile-bootstrap-2.0.6.tar.xz):
        Make the target's parent directory.
      * pre-inst-env.in (DISTRO_BOOTSTRAP_PATH): Add the builddir-relative
        directory.
      735bb2af
    • Ludovic Courtès's avatar
      distro: Change $DISTRO_{PATCH,BOOTSTRAP}_DIRECTORY to search paths. · a9f60c42
      Ludovic Courtès authored
      * distro.scm (not-colon): New variable.
        (%patch-directory): Rename to...
        (%patch-path): ... this.  Turn into a list.  Expect $DISTRO_PATCH_PATH
        to be a colon-separated search path.
        (%bootstrap-binaries-directory): Rename to...
        (%bootstrap-binaries-path): ... this.  Likewise.
        (search-patch, search-bootstrap-binary): Adjust accordingly.
      
      * pre-inst-env.in: Change to use `DISTRO_PATCH_PATH' and
        `DISTRO_BOOTSTRAP_PATH'.
      a9f60c42
    • Ludovic Courtès's avatar
      build: Move `distro/patches' to `distro/packages/patches'. · bfb3c3d0
      Ludovic Courtès authored
      * distro/patches: Move directory to...
      * distro/packages/patches: ... here.
      * Makefile.am (dist_patch_DATA): Adjust accordingly.
      * pre-inst-env.in (DISTRO_PATCH_DIRECTORY): Likewise.
      bfb3c3d0
  10. Oct 17, 2012
    • Ludovic Courtès's avatar
      distro: Use our own pre-built Guile to bootstrap. · ac5aa288
      Ludovic Courtès authored
      * distro/packages/base.scm (%bootstrap-guile): Build from a tarball
        containing a pre-built Guile.
      
      * distro.scm (%bootstrap-binaries-directory): New variable.
        (search-bootstrap-binary): New procedure.
      
      * Makefile.am (bootstrapdir, bootstrap_x86_64_linuxdir,
        dist_bootstrap_x86_64_linux_DATA, DISTCLEANFILES, DOWNLOAD_FILE): New
        variables.
        (distro/packages/bootstrap/x86_64-linux/guile-bootstrap-2.0.6.tar.xz):
        New rule.
        (EXTRA_DIST): Add `build-aux/download.scm'.
        (.scm.go): Define the `DISTRO_BOOTSTRAP_DIRECTORY' and
        `DISTRO_INSTALLED_BOOTSTRAP_DIRECTORY' environment variables.
      
      * pre-inst-env.in: Define `DISTRO_BOOTSTRAP_DIRECTORY'.
      
      * build-aux/download.scm: New file.
      * distro/packages/bootstrap/x86_64-linux/{bash, mkdir, tar, xz}: New
        files.
      ac5aa288
  11. Oct 04, 2012
Loading