Hi, Marek. Here installation from normal user. Full log attachment.

> This is the problem.
> You should call it from normal user, it will use sudo for those (few)


=================================================================================

[user@arch-test ~]$ uname -a
Linux arch-test 4.1.24-10.pvops.qubes.x86_64 #1 SMP Fri Jul 22 10:23:50 UTC 
2016 x86_64 x86_64 x86_64 GNU/Linux
[user@arch-test ~]$ ls
Desktop  Documents  Downloads  Music  Pictures  Public  Templates  Videos
[user@arch-test ~]$ sudo dnf install git createrepo rpm-build make wget 
rpmdevtools python-sh dialog rpm-sign
Last metadata expiration check: 0:01:00 ago on Sun Aug 14 14:38:44 2016.
Package git-2.5.5-1.fc23.x86_64 is already installed, skipping.
Package createrepo-0.10.3-3.fc21.noarch is already installed, skipping.
Package make-1:4.0-5.1.fc23.x86_64 is already installed, skipping.
Package wget-1.18-1.fc23.x86_64 is already installed, skipping.
Dependencies resolved.
================================================================================
 Package            Arch   Version                                Repository
                                                                           Size
================================================================================
Installing:
 binutils           x86_64 2.25-17.fc23                           updates 5.6 M
 dialog             x86_64 1.3-4.20160424.fc23                    updates 226 k
 dwz                x86_64 0.12-1.fc23                            fedora  106 k
 ghc-srpm-macros    noarch 1.4.2-2.fc23                           fedora  8.2 k
 gnat-srpm-macros   noarch 2-1.fc23                               fedora  8.4 k
 go-srpm-macros     noarch 2-3.fc23                               fedora  8.0 k
 ocaml-srpm-macros  noarch 2-3.fc23                               fedora  8.1 k
 patch              x86_64 2.7.5-2.fc23                           fedora  123 k
 perl-generators    noarch 1.06-2.fc23                            updates  15 k
 perl-srpm-macros   noarch 1-17.fc23                              fedora  9.7 k
 python-sh          noarch 1.11-1.fc23                            updates  49 k
 python-srpm-macros noarch 3-7.fc23                               updates 8.1 k
 redhat-rpm-config  noarch 36-1.fc23.1                            updates  59 k
 rpm-build          x86_64 4.13.0-0.rc1.13.fc23                   updates 137 k
 rpm-sign           x86_64 4.13.0-0.rc1.13.fc23                   updates  55 k
 rpmdevtools        noarch 8.9-1.fc23                             updates 105 k
 xemacs-filesystem  noarch 21.5.34-14.20160603hga561e02bb626.fc23 updates  21 k

Transaction Summary
================================================================================
Install  17 Packages

Total download size: 6.5 M
Installed size: 25 M
Is this ok [y/N]: y
Downloading Packages:
(1/17): rpmdevtools-8.9-1.fc23.noarch.rpm       1.1 MB/s | 105 kB     00:00    
(2/17): rpm-build-4.13.0-0.rc1.13.fc23.x86_64.r 1.2 MB/s | 137 kB     00:00    
(3/17): patch-2.7.5-2.fc23.x86_64.rpm           1.0 MB/s | 123 kB     00:00    
(4/17): python-sh-1.11-1.fc23.noarch.rpm        649 kB/s |  49 kB     00:00    
(5/17): rpm-sign-4.13.0-0.rc1.13.fc23.x86_64.rp 915 kB/s |  55 kB     00:00    
(6/17): dialog-1.3-4.20160424.fc23.x86_64.rpm   2.3 MB/s | 226 kB     00:00    
(7/17): xemacs-filesystem-21.5.34-14.20160603hg 250 kB/s |  21 kB     00:00    
(8/17): perl-generators-1.06-2.fc23.noarch.rpm  345 kB/s |  15 kB     00:00    
(9/17): redhat-rpm-config-36-1.fc23.1.noarch.rp 1.4 MB/s |  59 kB     00:00    
(10/17): dwz-0.12-1.fc23.x86_64.rpm             1.6 MB/s | 106 kB     00:00    
(11/17): ghc-srpm-macros-1.4.2-2.fc23.noarch.rp 327 kB/s | 8.2 kB     00:00    
(12/17): gnat-srpm-macros-2-1.fc23.noarch.rpm   1.0 MB/s | 8.4 kB     00:00    
(13/17): ocaml-srpm-macros-2-3.fc23.noarch.rpm  786 kB/s | 8.1 kB     00:00    
(14/17): go-srpm-macros-2-3.fc23.noarch.rpm     422 kB/s | 8.0 kB     00:00    
(15/17): python-srpm-macros-3-7.fc23.noarch.rpm 390 kB/s | 8.1 kB     00:00    
(16/17): perl-srpm-macros-1-17.fc23.noarch.rpm  424 kB/s | 9.7 kB     00:00    
(17/17): binutils-2.25-17.fc23.x86_64.rpm       7.6 MB/s | 5.6 MB     00:00    
--------------------------------------------------------------------------------
Total                                           1.6 MB/s | 6.5 MB     00:04     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Installing  : python-srpm-macros-3-7.fc23.noarch                         1/17 
  Installing  : perl-srpm-macros-1-17.fc23.noarch                          2/17 
  Installing  : ocaml-srpm-macros-2-3.fc23.noarch                          3/17 
  Installing  : go-srpm-macros-2-3.fc23.noarch                             4/17 
  Installing  : gnat-srpm-macros-2-1.fc23.noarch                           5/17 
  Installing  : ghc-srpm-macros-1.4.2-2.fc23.noarch                        6/17 
  Installing  : dwz-0.12-1.fc23.x86_64                                     7/17 
  Installing  : redhat-rpm-config-36-1.fc23.1.noarch                       8/17 
  Installing  : perl-generators-1.06-2.fc23.noarch                         9/17 
  Installing  : binutils-2.25-17.fc23.x86_64                              10/17 
  Installing  : xemacs-filesystem-21.5.34-14.20160603hga561e02bb626.fc2   11/17 
  Installing  : patch-2.7.5-2.fc23.x86_64                                 12/17 
  Installing  : rpm-build-4.13.0-0.rc1.13.fc23.x86_64                     13/17 
  Installing  : rpmdevtools-8.9-1.fc23.noarch                             14/17 
  Installing  : rpm-sign-4.13.0-0.rc1.13.fc23.x86_64                      15/17 
  Installing  : dialog-1.3-4.20160424.fc23.x86_64                         16/17 
  Installing  : python-sh-1.11-1.fc23.noarch                              17/17 
  Verifying   : rpm-build-4.13.0-0.rc1.13.fc23.x86_64                      1/17 
  Verifying   : patch-2.7.5-2.fc23.x86_64                                  2/17 
  Verifying   : rpmdevtools-8.9-1.fc23.noarch                              3/17 
  Verifying   : python-sh-1.11-1.fc23.noarch                               4/17 
  Verifying   : dialog-1.3-4.20160424.fc23.x86_64                          5/17 
  Verifying   : rpm-sign-4.13.0-0.rc1.13.fc23.x86_64                       6/17 
  Verifying   : xemacs-filesystem-21.5.34-14.20160603hga561e02bb626.fc2    7/17 
  Verifying   : binutils-2.25-17.fc23.x86_64                               8/17 
  Verifying   : perl-generators-1.06-2.fc23.noarch                         9/17 
  Verifying   : redhat-rpm-config-36-1.fc23.1.noarch                      10/17 
  Verifying   : dwz-0.12-1.fc23.x86_64                                    11/17 
  Verifying   : ghc-srpm-macros-1.4.2-2.fc23.noarch                       12/17 
  Verifying   : gnat-srpm-macros-2-1.fc23.noarch                          13/17 
  Verifying   : go-srpm-macros-2-3.fc23.noarch                            14/17 
  Verifying   : ocaml-srpm-macros-2-3.fc23.noarch                         15/17 
  Verifying   : perl-srpm-macros-1-17.fc23.noarch                         16/17 
  Verifying   : python-srpm-macros-3-7.fc23.noarch                        17/17 

Installed:
  binutils.x86_64 2.25-17.fc23                                                  
  dialog.x86_64 1.3-4.20160424.fc23                                             
  dwz.x86_64 0.12-1.fc23                                                        
  ghc-srpm-macros.noarch 1.4.2-2.fc23                                           
  gnat-srpm-macros.noarch 2-1.fc23                                              
  go-srpm-macros.noarch 2-3.fc23                                                
  ocaml-srpm-macros.noarch 2-3.fc23                                             
  patch.x86_64 2.7.5-2.fc23                                                     
  perl-generators.noarch 1.06-2.fc23                                            
  perl-srpm-macros.noarch 1-17.fc23                                             
  python-sh.noarch 1.11-1.fc23                                                  
  python-srpm-macros.noarch 3-7.fc23                                            
  redhat-rpm-config.noarch 36-1.fc23.1                                          
  rpm-build.x86_64 4.13.0-0.rc1.13.fc23                                         
  rpm-sign.x86_64 4.13.0-0.rc1.13.fc23                                          
  rpmdevtools.noarch 8.9-1.fc23                                                 
  xemacs-filesystem.noarch 21.5.34-14.20160603hga561e02bb626.fc23               

Sending application list and icons to dom0
Complete!
[user@arch-test ~]$ sudo dnf install nano
Last metadata expiration check: 0:02:12 ago on Sun Aug 14 14:38:44 2016.
Dependencies resolved.
================================================================================
 Package        Arch             Version                Repository         Size
================================================================================
Installing:
 nano           x86_64           2.4.2-3.fc23           updates           523 k

Transaction Summary
================================================================================
Install  1 Package

Total download size: 523 k
Installed size: 1.9 M
Is this ok [y/N]: y
Downloading Packages:
nano-2.4.2-3.fc23.x86_64.rpm                    5.2 MB/s | 523 kB     00:00    
--------------------------------------------------------------------------------
Total                                           9.8 kB/s | 523 kB     00:53     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Installing  : nano-2.4.2-3.fc23.x86_64                                    1/1 
  Verifying   : nano-2.4.2-3.fc23.x86_64                                    1/1 

Installed:
  nano.x86_64 2.4.2-3.fc23                                                      

Sending application list and icons to dom0
Complete!
[user@arch-test ~]$ git clone https://github.com/marmarek/qubes-builder.git
Cloning into 'qubes-builder'...
remote: Counting objects: 3954, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 3954 (delta 1), reused 0 (delta 0), pack-reused 3947
Receiving objects: 100% (3954/3954), 2.94 MiB | 1.05 MiB/s, done.
Resolving deltas: 100% (2193/2193), done.
Checking connectivity... done.
[user@arch-test ~]$ ld
ld: no input files
[user@arch-test ~]$ ls
Desktop    Downloads  Pictures  qubes-builder  Videos
Documents  Music      Public    Templates
[user@arch-test ~]$ cd qubes-builder/example-configs/
[user@arch-test example-configs]$ ls
debian.conf           qubes-os-r2.conf    qubes-os-r3.1.conf  whonix.conf
qubes-os-master.conf  qubes-os-r3.0.conf  templates.conf
[user@arch-test example-configs]$ nano -w qubes-os-r3.1.conf 
[user@arch-test example-configs]$ ls
debian.conf           qubes-os-r2.conf    qubes-os-r3.1.conf  whonix.conf
qubes-os-master.conf  qubes-os-r3.0.conf  templates.conf
[user@arch-test example-configs]$ cd ..
[user@arch-test qubes-builder]$ ls
build-logs        qubes-developers-keys.asc          release-configs
cache             qubes-packages-mirror-repo         repo-latest-snapshot
doc               qubes-release-1-signing-key.asc    rpc-services
example-configs   qubes-release-2-signing-key.asc    scripts
iso               qubes-release-3.0-signing-key.asc  setup
libs              qubes-release-3.1-signing-key.asc  win-mksrcimg.sh
Makefile          qubes-release-3.2-signing-key.asc  win-mountsrc.sh
Makefile.dummy    qubes-release-3-signing-key.asc
Makefile.generic  README.md
[user@arch-test qubes-builder]$ ./setup 

 Qubes Builder Configuration Utility
 ──────────────────────────────────────────────────────────────────────────────



         ┌───────────────────Add Key 0x36879494─────────────────────┐
         │ Owner: Qubes Master Signing Key key does not exist.      │  
         │                                                          │  
         │ Select "Yes" to add or "No" to exit                      │  
         │                                                          │  
         │                                                          │  
         │                                                          │  
         │                                                          │  
         │                                                          │  
         ├──────────────────────────────────────────────────────────┤  
         │                 < Yes >         < No  >                  │  
         └──────────────────────────────────────────────────────────┘  
           






 Qubes Builder Configuration Utility
 ──────────────────────────────────────────────────────────────────────────────



         ┌───────────────────Add Key 0x42CFA724─────────────────────┐
         │ Owner: Marek Marczykowski-Górecki (Qubes OS signing key) │  
         │ <marma...@invisiblethingslab.com> key does not exist.    │  
         │                                                          │  
         │ Select "Yes" to add or "No" to exit                      │  
         │                                                          │  
         │                                                          │  
         │                                                          │  
         │                                                          │  
         ├──────────────────────────────────────────────────────────┤  
         │                 < Yes >         < No  >                  │  
         └──────────────────────────────────────────────────────────┘  
           






 Qubes Builder Configuration Utility
 ──────────────────────────────────────────────────────────────────────────────
 ┌──────────Choose Which Qubes Release To Use To Build Packages─────────────┐
 │ ┌──────────────────────────────────────────────────────────────────────┐ │  
 │ │                      ( ) 2    Qubes Release 2.0                      │ │  
 │ │                      ( ) 3    Qubes Release 3.0                      │ │  
 │ │                      (*) 3.1  Qubes Release 3.1                      │ │  
 │ └──────────────────────────────────────────────────────────────────────┘ │  
 │                                                                          │  
 │                                                                          │  
 │                                                                          │  
 │                                                                          │  
 │                                                                          │  
 │                                                                          │  
 │                                                                          │  
 │                                                                          │  
 │                                                                          │  
 │                                                                          │  
 ├──────────────────────────────────────────────────────────────────────────┤  
 │                       <  OK  >            <Cancel>                       │  
 └──────────────────────────────────────────────────────────────────────────┘  
   


 Qubes Builder Configuration Utility
 ┌─────────────────Choose Repos To Use To Build Packages────────────────────┐──
 │ ┌──────────────────────────────────────────────────────────────────────┐ │  
 │ │      (*) QubesOS/qubes-   Stable - Default Repo                      │ │  
 │ │      ( ) marmarek/qubes-  Unstable - Bleeding Edge Development       │ │  
 │ │      ( ) joanna/qubes-    Unstable - The Big Boss Repo               │ │  
 │ │      ( ) woju/qubes-      Unstable - Awesome Developer Repo          │ │  
 │ └──────────────────────────────────────────────────────────────────────┘ │  
 │                                                                          │  
 │                                                                          │  
 │                                                                          │  
 │                                                                          │  
 │                                                                          │  
 │                                                                          │  
 │                                                                          │  
 │                                                                          │  
 │                                                                          │  
 │                                                                          │  
 ├──────────────────────────────────────────────────────────────────────────┤  
 │                       <  OK  >            <Cancel>                       │  
 └──────────────────────────────────────────────────────────────────────────┘  
   


 Qubes Builder Configuration Utility
 ──────────────────────────────────────────────────────────────────────────────





         ┌──────────────────Build Template Only?────────────────────┐
         │ Would you like to build only the templates?              │  
         │                                                          │  
         │ Select 'Yes' to to only build templates or 'No' for      │  
         │ complete build                                           │  
         ├──────────────────────────────────────────────────────────┤  
         │                 < Yes >         < No  >                  │  
         └──────────────────────────────────────────────────────────┘  
           








 Qubes Builder Configuration Utility
 ──────────────────────────────────────────────────────────────────────────────
     ┌───────────────────Builder Plugins Selection─────────────────────┐
     │ Select from the following list any builder plugins to be        │  
     │ enabled.                                                        │  
     │                                                                 │  
     │ Note that some plugins are required to build specific VM's as   │  
     │ will                                                            │  
     │ be indicated by the comment to the left of the plugin choice.   │  
     │ ┌─────────────────────────────────────────────────────────────┐ │  
     │ │    [ ] builder-fedora                                       │ │  
     │ │    [ ] builder-debian                                       │ │  
     │ │    [*] builder-archlinux                                    │ │  
     │ │    [ ] template-whonix    Requires: builder-debian          │ │  
     │ │    [ ] mgmt-salt                                            │ │  
     │ └─────────────────────────────────────────────────────────────┘ │  
     │                                                                 │  
     │                                                                 │  
     ├─────────────────────────────────────────────────────────────────┤  
     │             <  OK  >       <Cancel>       < Help >              │  
     └─────────────────────────────────────────────────────────────────┘  
       

 Archlinux Builder - Contains all Makefiles to build Archlinux based templates
 Qubes Builder Configuration Utility
 ──────────────────────────────────────────────────────────────────────────────



  ┌─────────────────────────────Get sources───────────────────────────────┐
  │ Either a BUILDER_PLUGIN has been added or Qubes sources have not      │  
  │ yet been downloaded.                                                  │  
  │                                                                       │  
  │ Would you like to get Qubes source files now? If you choose no you    │  
  │ may need to run set again after getting sources manually to be able   │  
  │ to select some VMs for building.                                      │  
  │                                                                       │  
  │ Select 'Yes' to download and merge sources or 'No' to skip"           │  
  ├───────────────────────────────────────────────────────────────────────┤  
  │                     < Yes >           < No  >                         │  
  └───────────────────────────────────────────────────────────────────────┘  
    






 Qubes Builder ┌──────Template Distribution Selection────────┐
 ──────────────│ Left column contains DIST name              │─────────────────
               │ Right column contains TEMPLATE_LABEL        │  
               │ ┌─────↑(-)────────────────────────────────┐ │  
               │ │ [ ] jessie+minimal    jessie-minimal    │ │  
               │ │ [ ] jessie+gnome      jessie-gnome      │ │  
               │ │ [ ] stretch           stretch           │ │  
               │ │ [ ] stretch+minimal   stretch-minimal   │ │  
               │ │ [ ] stretch+gnome     stretch-gnome     │ │  
               │ │ [ ] trusty                              │ │  
               │ │ [ ] trusty+desktop                      │ │  
               │ │ [ ] utopic                              │ │  
               │ │ [ ] utopic+desktop                      │ │  
               │ │ [ ] vivid                               │ │  
               │ │ [ ] vivid+desktop                       │ │  
               │ │ [*] archlinux                           │ │  
               │ └─────────────────────────────────100%────┘ │  
               │                                             │  
               │                                             │  
               │                                             │  
               ├─────────────────────────────────────────────┤  
               │     <  OK  >   <Cancel>   < Help >          │  
               └─────────────────────────────────────────────┘  
/home/user/qubes-builder/builder.conf:
# =============================================================================
#                  CONFIGURATION FILE FOR QUBES-BUILDER
# =============================================================================
#
# THIS CONFIGURATION FILE IS INDENDED TO ONLY BE USED WITH THE `setup` SCRIPT.
# -----------------------------------------------------------------------------
#
# This configuration file (`templates.conf`) will be linked to by `setup` as
# `builder.conf`.  (ln -s example-configs/templates.conf builder.conf)
#
# To use the `setup` script, just run `setup` in the qubes-builder root
# directory.  A series of dialogs will be presented prompting various
# configuration available and then all build configuration files will
# automatically be generated based on the options selected.
#
# `setup` can be re-run again at any time to change configuration options.
# Previous options selected will be retained to allow quick switching of
# branches, templates to build, etc.
#
# Setup uses the following as markers to indicate where to place configuration
# values:
#     [=setup section start=] - Start inserting on the next line
#     [=setup section end=] - Stop insert mode
#
# Anything between these markers will be replaced, therefore:
#     - do not place any user configurations within these markers, or those
#       configurations will be replaced next time setup is run
#     - do not remove or modify the markers or setup will be unable to function
#
# -----------------------------------------------------------------------------
#            CONFIGURATION FILES INCLUDED WITH THIS CONFIGURATION
# -----------------------------------------------------------------------------
# Other configuration files are also included to offer maximum flexibility.  To
# determine which configuration files are actually being included when using
# this configuration file as a base, use the `about` target:
#   `make about`
#
# The other configuration files included (if they exist which some of them are
# automatically generated by `setup`) are as follows:
# - example-configs/qubes-os-r2.conf: If RELEASE == 2; Default Release 2
#   configuration file
# - example-configs/qubes-os-master.conf: If RELEASE == 3; Default Release 3
#   configuration file
# - override.conf: `setup` will also offer to include `override.conf` if one
#   exists.  More information on `overrides` below.
# - example-configs/extended-rules.conf: Contains extra targets mostly for
#   building templates
#
# -----------------------------------------------------------------------------
#                            ADDITIONAL OVERRIDES
# -----------------------------------------------------------------------------
# Instead of directly modifying this or any other `default` configuration
# file, an override.conf file can be placed in the `qubes-builder` root
# directory.  `setup` will offer to include this file if it exists.
#
# The `override.conf` file can contain overrides to most any configuration
# option such as BRANCH, DEBUG, VERBOSE, etc.
#
# If you create `overrides` that are specific to a release version or custom
# branch you are working on, `setup` will also be able to identify overrides
# specific to the release and or branch.
#
# To create release / branch specific `overrides`, create an override
# configuration file and place it in the `example-configs` directory named
# as follows:
#   1) example-configs/r2-feature_branch-override.conf
#      example-configs/r3-master-override.conf
#
#   2) example-configs/r3-feature_branch-override.conf
#      example-configs/r3-master-override.conf
#
#   3) example-configs/feature_branch-override.conf
#      example-configs/master-override.conf
#
#   4) example-configs/override.conf
#
#   5) override.conf
#
# Option 1 above would offer to include the override configuration file if you
# selected to build for Release 2 and are currently in the `feature_branch`
# branch.
#
# Option 2 is the same as Option 1 except for Release 3.
#
# Option 3 would use the same configuration override for both Release 2 and 3
# if you are currently in the `feature_branch` branch.
#
# If there is no release / branch specific override configuration and
# override.conf exists as in options 4, that will be available to select.
#
# Finally, an override.conf file in the `qubes-builder` root directory
# overrides all the above examples.
#
#
# A few additional notes and caveats on overrides:
#
# - The dialog to choose an override configuration is only presented on the
#   initial run of `setup`.  Once a `builder.conf` file created, there will be
#   no further prompts.  As indicated above, `setup` initially soft links
#   `examples-config/templates.conf` to `builder.conf`.  To overcome
#   this limitation, simply delete the `builder.conf` soft link and then the
#   override prompt will become available again when you re-run `setup`.
#
# - The `setup` script soft links any override configuration within the
#   examples-config directory to overrides.conf.  It will allow any soft linked
#   override to be replaced with a newly selected override option, but will not
#   allow an existing `override.conf` regular file to be overwritten that is
#   in the `qubes-builder` root directory.
#
# -----------------------------------------------------------------------------
# All lines which begins with "#" are treated as comments
# Assignments can be made with VAR_NAME="VALUE"

# [=setup info start=]
################################################################################
#
# Qubes Release: 3.1
# Source Prefix: QubesOS/qubes- (repo)
#
# Master Configuration File(s):
# qubes-os-r3.1.conf builder.conf Makefile
#
# builder.conf copied from:
# /home/user/qubes-builder/example-configs/templates.conf
#
################################################################################
# [=setup info stop=]

RELEASE := 3.1

# SSH_ACCESS is used by `setup` to determine if ssh access mode was selected and
# will re-write the GIT_BASEURL and GIT_PREFIX variables to use ssh mode.
SSH_ACCESS := 0
GIT_BASEURL := https://github.com
GIT_PREFIX := QubesOS/qubes-

# A Qubes master configuration file will be included based on selected RELEASE
#
# A copy of BUILDER_PLUGINS will be made and restored since the BUILDER_PLUGIN
# variable gets over-written in qubes-os-master.conf.
_ORIGINAL_BUILDER_PLUGINS := $(BUILDER_PLUGINS)
ifeq ($(RELEASE), 2)
  -include example-configs/qubes-os-r2.conf
else ifeq ($(RELEASE), 3)
  -include example-configs/qubes-os-r3.0.conf
else ifeq ($(RELEASE), 3.1)
  -include example-configs/qubes-os-r3.1.conf
else
  -include example-configs/qubes-os-master.conf
endif
BUILDER_PLUGINS := $(_ORIGINAL_BUILDER_PLUGINS) $(BUILDER_PLUGINS)

# [=setup plugins start=]

# Enabled BUILDER_PLUGINS
BUILDER_PLUGINS :=
BUILDER_PLUGINS += builder-archlinux

# [=setup plugins stop=]

# Put all the enabled plugins into components to download them. But avoid
# duplicates
_temp_components := $(COMPONENTS)
COMPONENTS += $(filter-out $(_temp_components), $(BUILDER_PLUGINS))

DEBUG = 0
VERBOSE = 0
NO_SIGN = 1

DIST_DOM0 ?= fc20

# Only build templates (comment out or set to '0' to build all of Qubes).
TEMPLATE_ONLY ?= 0

################################################################################
#             S A L T   M A N A G E M E N T   O P T I O N S
################################################################################
# MGMT_SALT_ONLY - Build only mgmt-salt COMPONENTS
#  Only mgmt-salt components will bw built when issuing 'make qubes[-vm/dom0]
#  which is useful for developing.
#
# Set 1 to enable building only salt-mgmt COMPONENTS or clear value to build
# all qubes components including mgmt-salt.
# Default: novalue
#MGMT_SALT_ONLY = 1

# MGMT_SALT_COMPONENTS_USER - Custom mgmt-salt user components
#   Add any extra user based mgmt-salt formula components to include in build.
# Default: novalue
#MGMT_SALT_COMPONENTS_USER =

################################################################################
#                     L I S T   O F   D I S T   V M ' S
################################################################################
# Available template flavors may be added the the template build by appending
# `+flavor_name`

# [=setup dists start=]
ifneq "$(SETUP_MODE)" "1"

  # Enabled DISTS_VMs
  DISTS_VM :=
  DISTS_VM += archlinux

endif
# [=setup dists stop=]

# List of all build template variations that will be offered in the 'setup'
# DISTS_VM dialog to be able to choose from
ifeq "$(SETUP_MODE)" "1"
  DISTS_VM :=
  DISTS_VM += fc20
  DISTS_VM += fc20+minimal
  DISTS_VM += fc20+fullyloaded
  DISTS_VM += fc21
  DISTS_VM += fc21+minimal
  DISTS_VM += fc21+fullyloaded
  DISTS_VM += fc23
  DISTS_VM += fc23+minimal
  DISTS_VM += fc23+fullyloaded
  DISTS_VM += wheezy
  DISTS_VM += wheezy+minimal
  DISTS_VM += wheezy+gnome
  DISTS_VM += jessie
  DISTS_VM += jessie+minimal
  DISTS_VM += jessie+gnome
  DISTS_VM += stretch
  DISTS_VM += stretch+minimal
  DISTS_VM += stretch+gnome
  DISTS_VM += trusty
  DISTS_VM += trusty+desktop
  DISTS_VM += utopic
  DISTS_VM += utopic+desktop
  DISTS_VM += vivid
  DISTS_VM += vivid+desktop
  DISTS_VM += archlinux
endif

################################################################################
#                     T E M P L A T E   A L I A S
################################################################################
# TEMPLATE_ALIAS can be used to choose a shorter name in DISTS_VM that
# include some other TEMPLATE_FLAVORs.  A TEMPLATE_LABEL will automatically
# be created if one does not exist that will use the alias name as the
# tempalte name.  Plus signs (+) will be converted to hyphens (-).
ifneq (,$(findstring wheezy, $(DISTS_VM))$(findstring jessie, 
$(DISTS_VM))$(findstring stretch, $(DISTS_VM)))
  TEMPLATE_ALIAS += wheezy:wheezy+standard
  TEMPLATE_ALIAS += wheezy+gnome:wheezy+gnome+standard
  TEMPLATE_ALIAS += wheezy+minimal:wheezy+minimal+no-recommends

  TEMPLATE_ALIAS += jessie:jessie+standard
  TEMPLATE_ALIAS += jessie+gnome:jessie+gnome+standard
  TEMPLATE_ALIAS += jessie+minimal:jessie+minimal+no-recommends

  TEMPLATE_ALIAS += stretch:stretch+standard
  TEMPLATE_ALIAS += stretch+gnome:stretch+gnome+standard
  TEMPLATE_ALIAS += stretch+minimal:stretch+minimal+no-recommends
endif

################################################################################
#                 T E M P L A T E   C O N F I G U R A T I O N
################################################################################
# TEMPLATE_LABEL allows control over the final template name.  There is a limit
# of 31 characters for the final template name
#
# TEMPLATE_LABE += <DIST_VM name as listed above>:<desired final template name>
TEMPLATE_LABEL ?=

# Location of templates flavors that are not in default location.
# Example: wheezy+whonix-gateway would normally be in
#          (Don't Place in {curly} brackets; ending curly gets cut off
#          $$SCRIPTSDIR/wheezy+whonix-gateway
#   -or-   $$SCRIPTSDIR/wheezy
TEMPLATE_FLAVOR_DIR :=
TEMPLATE_FLAVOR_DIR += +gnome:$$SCRIPTSDIR/gnome
TEMPLATE_FLAVOR_DIR += +flash:$$SCRIPTSDIR/flash
TEMPLATE_FLAVOR_DIR += +desktop:$$SCRIPTSDIR/desktop

################################################################################
#                  T E M P L A T E   C O M P O N E N T S
################################################################################
# Contains a list of components when only building templates.  Note the build
# order is very important
TEMPLATE :=

TEMPLATE += $(BUILDER_PLUGINS)

TEMPLATE += vmm-xen
TEMPLATE += core-vchan-xen
ifneq ($(RELEASE), 2)
  TEMPLATE += core-qubesdb
endif
TEMPLATE += linux-utils
TEMPLATE += core-agent-linux
TEMPLATE += gui-common
TEMPLATE += gui-agent-linux
TEMPLATE += app-linux-split-gpg
TEMPLATE += app-linux-tor
TEMPLATE += app-thunderbird
TEMPLATE += app-linux-pdf-converter
TEMPLATE += app-linux-img-converter
TEMPLATE += app-linux-input-proxy
TEMPLATE += $(MGMT_COMPONENTS)
TEMPLATE += linux-template-builder

################################################################################
#            O V E R R I D E   B R A N C H   L O C A T I O N S
################################################################################
# Not yet available in 'QubesOS' repo
GIT_URL_template_whonix = $(GIT_BASEURL)/marmarek/qubes-template-whonix.git

# Not yet available in 'marmarek' repo
GIT_URL_mgmt_salt = $(GIT_BASEURL)/QubesOS/qubes-mgmt-salt.git
GIT_URL_mgmt_salt_base = $(GIT_BASEURL)/QubesOS/qubes-mgmt-salt-base.git
GIT_URL_mgmt_salt_base_config = 
$(GIT_BASEURL)/QubesOS/qubes-mgmt-salt-base-config.git
GIT_URL_mgmt_salt_base_overrides = 
$(GIT_BASEURL)/QubesOS/qubes-mgmt-salt-base-overrides.git
GIT_URL_mgmt_salt_base_topd = 
$(GIT_BASEURL)/QubesOS/qubes-mgmt-salt-base-topd.git
GIT_URL_mgmt_salt_dom0_qvm = $(GIT_BASEURL)/QubesOS/qubes-mgmt-salt-dom0-qvm.git
GIT_URL_mgmt_salt_dom0_update = 
$(GIT_BASEURL)/QubesOS/qubes-mgmt-salt-dom0-update.git
GIT_URL_mgmt_salt_dom0_virtual_machines = 
$(GIT_BASEURL)/QubesOS/qubes-mgmt-salt-dom0-virtual-machines.git

################################################################################
#                        M I S C E L L A N E O U S
################################################################################
# Qubes-builder deps
DEPENDENCIES ?=
DEPENDENCIES += git rpmdevtools rpm-build createrepo

# Additional for debian template
DEPENDENCIES += debootstrap dpkg-dev

# for ./setup
DEPENDENCIES += python-sh dialog

# Uncomment the the following to enable override.conf include.  Setup will
# automatically enable it only if an override is available and selected by
# user to enable.
#INCLUDE_OVERRIDE_CONF ?= true
ifdef INCLUDE_OVERRIDE_CONF
  -include override.conf
endif

.PHONY: about release
about::
@echo "builder.conf"

release:
@echo "$(RELEASE)"

# vim: filetype=make

New configuration file written to: /home/user/qubes-builder/builder.conf

Complete Qubes Build Steps
--------------------------
make install-deps
make get-sources
make qubes
make iso

[user@arch-test qubes-builder]$ nano test
[user@arch-test qubes-builder]$ ls
builder.conf      Makefile.dummy                     README.md
builder.conf.bak  Makefile.generic                   release-configs
build-logs        qubes-developers-keys.asc          repo-latest-snapshot
cache             qubes-packages-mirror-repo         rpc-services
doc               qubes-release-1-signing-key.asc    scripts
example-configs   qubes-release-2-signing-key.asc    setup
iso               qubes-release-3.0-signing-key.asc  win-mksrcimg.sh
keyrings          qubes-release-3.1-signing-key.asc  win-mountsrc.sh
libs              qubes-release-3.2-signing-key.asc
Makefile          qubes-release-3-signing-key.asc
[user@arch-test qubes-builder]$ sudo nano builder.conf

[user@arch-test qubes-builder]$ make install-deps
Yum command has been deprecated, redirecting to '/usr/bin/dnf install -y git 
rpmdevtools rpm-build createrepo debootstrap dpkg-dev python-sh dialog'.
See 'man dnf' and 'man yum2dnf' for more information.
To transfer transaction metadata from yum to DNF, run:
'dnf install python-dnf-plugins-extras-migrate && dnf-2 migrate'

Last metadata expiration check: 0:20:12 ago on Sun Aug 14 14:38:44 2016.
Package git-2.5.5-1.fc23.x86_64 is already installed, skipping.
Package rpmdevtools-8.9-1.fc23.noarch is already installed, skipping.
Package rpm-build-4.13.0-0.rc1.13.fc23.x86_64 is already installed, skipping.
Package createrepo-0.10.3-3.fc21.noarch is already installed, skipping.
Package python-sh-1.11-1.fc23.noarch is already installed, skipping.
Package dialog-1.3-4.20160424.fc23.x86_64 is already installed, skipping.
Dependencies resolved.
================================================================================
 Package              Arch         Version                  Repository     Size
================================================================================
Installing:
 debootstrap          noarch       1.0.81-1.fc23            updates        77 k
 dpkg                 x86_64       1.17.25-6.fc23           updates       1.3 M
 dpkg-dev             noarch       1.17.25-6.fc23           updates       888 k
 dpkg-perl            noarch       1.17.25-6.fc23           updates       223 k
 gettext              x86_64       0.19.8.1-1.fc23          updates       1.1 M
 gettext-libs         x86_64       0.19.8.1-1.fc23          updates       507 k
 perl-TimeDate        noarch       1:2.30-7.fc23            fedora         52 k
 xz-lzma-compat       x86_64       5.2.1-3.fc23             fedora         24 k

Transaction Summary
================================================================================
Install  8 Packages

Total download size: 4.1 M
Installed size: 15 M
Downloading Packages:
(1/8): xz-lzma-compat-5.2.1-3.fc23.x86_64.rpm   284 kB/s |  24 kB     00:00    
(2/8): debootstrap-1.0.81-1.fc23.noarch.rpm     799 kB/s |  77 kB     00:00    
(3/8): perl-TimeDate-2.30-7.fc23.noarch.rpm     878 kB/s |  52 kB     00:00    
(4/8): dpkg-perl-1.17.25-6.fc23.noarch.rpm      2.4 MB/s | 223 kB     00:00    
(5/8): dpkg-dev-1.17.25-6.fc23.noarch.rpm       3.7 MB/s | 888 kB     00:00    
(6/8): gettext-libs-0.19.8.1-1.fc23.x86_64.rpm  2.5 MB/s | 507 kB     00:00    
(7/8): dpkg-1.17.25-6.fc23.x86_64.rpm           3.8 MB/s | 1.3 MB     00:00    
(8/8): gettext-0.19.8.1-1.fc23.x86_64.rpm       3.0 MB/s | 1.1 MB     00:00    
--------------------------------------------------------------------------------
Total                                           1.1 MB/s | 4.1 MB     00:03     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Installing  : gettext-libs-0.19.8.1-1.fc23.x86_64                         1/8 
  Installing  : gettext-0.19.8.1-1.fc23.x86_64                              2/8 
  Installing  : dpkg-1.17.25-6.fc23.x86_64                                  3/8 
  Installing  : perl-TimeDate-1:2.30-7.fc23.noarch                          4/8 
  Installing  : dpkg-perl-1.17.25-6.fc23.noarch                             5/8 
  Installing  : xz-lzma-compat-5.2.1-3.fc23.x86_64                          6/8 
  Installing  : dpkg-dev-1.17.25-6.fc23.noarch                              7/8 
  Installing  : debootstrap-1.0.81-1.fc23.noarch                            8/8 
  Verifying   : debootstrap-1.0.81-1.fc23.noarch                            1/8 
  Verifying   : dpkg-dev-1.17.25-6.fc23.noarch                              2/8 
  Verifying   : xz-lzma-compat-5.2.1-3.fc23.x86_64                          3/8 
  Verifying   : dpkg-perl-1.17.25-6.fc23.noarch                             4/8 
  Verifying   : perl-TimeDate-1:2.30-7.fc23.noarch                          5/8 
  Verifying   : dpkg-1.17.25-6.fc23.x86_64                                  6/8 
  Verifying   : gettext-0.19.8.1-1.fc23.x86_64                              7/8 
  Verifying   : gettext-libs-0.19.8.1-1.fc23.x86_64                         8/8 

Installed:
  debootstrap.noarch 1.0.81-1.fc23       dpkg.x86_64 1.17.25-6.fc23             
  dpkg-dev.noarch 1.17.25-6.fc23         dpkg-perl.noarch 1.17.25-6.fc23        
  gettext.x86_64 0.19.8.1-1.fc23         gettext-libs.x86_64 0.19.8.1-1.fc23    
  perl-TimeDate.noarch 1:2.30-7.fc23     xz-lzma-compat.x86_64 5.2.1-3.fc23     

Sending application list and icons to dom0
Complete!
[user@arch-test qubes-builder]$ make get-sources
-> Updating sources for builder...
--> Fetching from https://github.com/QubesOS/qubes-builder.git master...
--> Verifying tags...
--> Merging...

-> Updating sources for builder-archlinux...
--> Fetching from https://github.com/marmarek/qubes-builder-archlinux.git 
master...
--> Verifying tags...
--> Switching branch from master branch to master
Already on 'master'
Your branch is up-to-date with 'origin/master'.

-> Updating sources for vmm-xen...
--> Fetching from https://github.com/QubesOS/qubes-vmm-xen.git xen-4.6...
--> Verifying tags...
--> Switching branch from xen-4.6 branch to xen-4.6
Already on 'xen-4.6'
Your branch is up-to-date with 'origin/xen-4.6'.

-> Updating sources for core-libvirt...
--> Fetching from https://github.com/QubesOS/qubes-core-libvirt.git 
release3.1...
--> Verifying tags...
--> Switching branch from release3.1 branch to release3.1
Already on 'release3.1'
Your branch is up-to-date with 'origin/release3.1'.

-> Updating sources for core-vchan-xen...
--> Fetching from https://github.com/QubesOS/qubes-core-vchan-xen.git 
release3.1...
--> Verifying tags...
--> Switching branch from release3.1 branch to release3.1
Already on 'release3.1'
Your branch is up-to-date with 'origin/release3.1'.

-> Updating sources for core-qubesdb...
--> Fetching from https://github.com/QubesOS/qubes-core-qubesdb.git 
release3.1...
--> Verifying tags...
--> Switching branch from release3.1 branch to release3.1
Already on 'release3.1'
Your branch is up-to-date with 'origin/release3.1'.

-> Updating sources for linux-utils...
--> Fetching from https://github.com/QubesOS/qubes-linux-utils.git release3.1...
--> Verifying tags...
--> Switching branch from release3.1 branch to release3.1
Already on 'release3.1'
Your branch is up-to-date with 'origin/release3.1'.

-> Updating sources for windows-utils...
--> Fetching from https://github.com/QubesOS/qubes-windows-utils.git 
release3.1...
--> Verifying tags...
--> Switching branch from release3.1 branch to release3.1
Already on 'release3.1'
Your branch is up-to-date with 'origin/release3.1'.

-> Updating sources for core-admin...
--> Fetching from https://github.com/QubesOS/qubes-core-admin.git release3.1...
--> Verifying tags...
--> Switching branch from release3.1 branch to release3.1
Already on 'release3.1'
Your branch is up-to-date with 'origin/release3.1'.

-> Updating sources for core-admin-linux...
--> Fetching from https://github.com/QubesOS/qubes-core-admin-linux.git 
release3.1...
--> Verifying tags...
--> Switching branch from release3.1 branch to release3.1
Already on 'release3.1'
Your branch is up-to-date with 'origin/release3.1'.

-> Updating sources for core-agent-linux...
--> Fetching from https://github.com/QubesOS/qubes-core-agent-linux.git 
release3.1...
--> Verifying tags...
--> Switching branch from release3.1 branch to release3.1
Already on 'release3.1'
Your branch is up-to-date with 'origin/release3.1'.

-> Updating sources for core-agent-windows...
--> Fetching from https://github.com/QubesOS/qubes-core-agent-windows.git 
release3.1...
--> Verifying tags...
--> Switching branch from release3.1 branch to release3.1
Already on 'release3.1'
Your branch is up-to-date with 'origin/release3.1'.

-> Updating sources for linux-kernel...
--> Fetching from https://github.com/QubesOS/qubes-linux-kernel.git 
stable-4.1...
--> Verifying tags...
--> Switching branch from stable-4.1 branch to stable-4.1
Already on 'stable-4.1'
Your branch is up-to-date with 'origin/stable-4.1'.

-> Updating sources for artwork...
--> Fetching from https://github.com/QubesOS/qubes-artwork.git release3.1...
--> Verifying tags...
--> Switching branch from release3.1 branch to release3.1
Already on 'release3.1'
Your branch is up-to-date with 'origin/release3.1'.

-> Updating sources for gui-common...
--> Fetching from https://github.com/QubesOS/qubes-gui-common.git release3.1...
--> Verifying tags...
--> Switching branch from release3.1 branch to release3.1
Already on 'release3.1'
Your branch is up-to-date with 'origin/release3.1'.

-> Updating sources for gui-daemon...
--> Fetching from https://github.com/QubesOS/qubes-gui-daemon.git release3.1...
--> Verifying tags...
--> Switching branch from release3.1 branch to release3.1
Already on 'release3.1'
Your branch is up-to-date with 'origin/release3.1'.

-> Updating sources for gui-agent-linux...
--> Fetching from https://github.com/QubesOS/qubes-gui-agent-linux.git 
release3.1...
--> Verifying tags...
--> Switching branch from release3.1 branch to release3.1
Already on 'release3.1'
Your branch is up-to-date with 'origin/release3.1'.

-> Updating sources for gui-agent-windows...
--> Fetching from https://github.com/QubesOS/qubes-gui-agent-windows.git 
release3.1...
--> Verifying tags...
--> Switching branch from release3.1 branch to release3.1
Already on 'release3.1'
Your branch is up-to-date with 'origin/release3.1'.

-> Updating sources for gui-agent-xen-hvm-stubdom...
--> Fetching from 
https://github.com/QubesOS/qubes-gui-agent-xen-hvm-stubdom.git release3.1...
--> Verifying tags...
--> Switching branch from release3.1 branch to release3.1
Already on 'release3.1'
Your branch is up-to-date with 'origin/release3.1'.

-> Updating sources for app-linux-split-gpg...
--> Fetching from https://github.com/QubesOS/qubes-app-linux-split-gpg.git 
master...
--> Verifying tags...
--> Switching branch from master branch to master
Already on 'master'
Your branch is up-to-date with 'origin/master'.

-> Updating sources for app-linux-tor...
--> Fetching from https://github.com/QubesOS/qubes-app-linux-tor.git master...
--> Verifying tags...
--> Switching branch from master branch to master
Already on 'master'
Your branch is up-to-date with 'origin/master'.

-> Updating sources for app-thunderbird...
--> Fetching from https://github.com/QubesOS/qubes-app-thunderbird.git master...
--> Verifying tags...
--> Switching branch from master branch to master
Already on 'master'
Your branch is up-to-date with 'origin/master'.

-> Updating sources for app-linux-pdf-converter...
--> Fetching from https://github.com/QubesOS/qubes-app-linux-pdf-converter.git 
master...
--> Verifying tags...
--> Switching branch from master branch to master
Already on 'master'
Your branch is up-to-date with 'origin/master'.

-> Updating sources for app-linux-img-converter...
--> Fetching from https://github.com/QubesOS/qubes-app-linux-img-converter.git 
master...
--> Verifying tags...
--> Switching branch from master branch to master
Already on 'master'
Your branch is up-to-date with 'origin/master'.

-> Updating sources for app-linux-input-proxy...
--> Fetching from https://github.com/QubesOS/qubes-app-linux-input-proxy.git 
master...
--> Verifying tags...
--> Switching branch from master branch to master
Already on 'master'
Your branch is up-to-date with 'origin/master'.

-> Updating sources for mgmt-salt...
--> Fetching from https://github.com/QubesOS/qubes-mgmt-salt.git release3.1...
--> Verifying tags...
--> Switching branch from release3.1 branch to release3.1
Already on 'release3.1'
Your branch is up-to-date with 'origin/release3.1'.

-> Updating sources for mgmt-salt-base...
--> Fetching from https://github.com/QubesOS/qubes-mgmt-salt-base.git 
release3.1...
--> Verifying tags...
--> Switching branch from release3.1 branch to release3.1
Already on 'release3.1'
Your branch is up-to-date with 'origin/release3.1'.

-> Updating sources for mgmt-salt-base-topd...
--> Fetching from https://github.com/QubesOS/qubes-mgmt-salt-base-topd.git 
release3.1...
--> Verifying tags...
--> Switching branch from release3.1 branch to release3.1
Already on 'release3.1'
Your branch is up-to-date with 'origin/release3.1'.

-> Updating sources for mgmt-salt-base-config...
--> Fetching from https://github.com/QubesOS/qubes-mgmt-salt-base-config.git 
release3.1...
--> Verifying tags...
--> Switching branch from release3.1 branch to release3.1
Already on 'release3.1'
Your branch is up-to-date with 'origin/release3.1'.

-> Updating sources for mgmt-salt-base-overrides...
--> Fetching from https://github.com/QubesOS/qubes-mgmt-salt-base-overrides.git 
release3.1...
--> Verifying tags...
--> Switching branch from release3.1 branch to release3.1
Already on 'release3.1'
Your branch is up-to-date with 'origin/release3.1'.

-> Updating sources for mgmt-salt-dom0-qvm...
--> Fetching from https://github.com/QubesOS/qubes-mgmt-salt-dom0-qvm.git 
release3.1...
--> Verifying tags...
--> Switching branch from release3.1 branch to release3.1
Already on 'release3.1'
Your branch is up-to-date with 'origin/release3.1'.

-> Updating sources for mgmt-salt-dom0-virtual-machines...
--> Fetching from 
https://github.com/QubesOS/qubes-mgmt-salt-dom0-virtual-machines.git 
release3.1...
--> Verifying tags...
--> Switching branch from release3.1 branch to release3.1
Already on 'release3.1'
Your branch is up-to-date with 'origin/release3.1'.

-> Updating sources for mgmt-salt-dom0-update...
--> Fetching from https://github.com/QubesOS/qubes-mgmt-salt-dom0-update.git 
release3.1...
--> Verifying tags...
--> Switching branch from release3.1 branch to release3.1
Already on 'release3.1'
Your branch is up-to-date with 'origin/release3.1'.

-> Updating sources for linux-template-builder...
--> Fetching from https://github.com/QubesOS/qubes-linux-template-builder.git 
master...
--> Verifying tags...
--> Switching branch from master branch to master
Already on 'master'
Your branch is up-to-date with 'origin/master'.

-> Updating sources for desktop-linux-kde...
--> Fetching from https://github.com/QubesOS/qubes-desktop-linux-kde.git 
kde-4.11...
--> Verifying tags...
--> Switching branch from kde-4.11 branch to kde-4.11
Already on 'kde-4.11'
Your branch is up-to-date with 'origin/kde-4.11'.

-> Updating sources for desktop-linux-xfce4...
--> Fetching from https://github.com/QubesOS/qubes-desktop-linux-xfce4.git 
xfce-4.10...
--> Verifying tags...
--> Switching branch from xfce-4.10 branch to xfce-4.10
Already on 'xfce-4.10'
Your branch is up-to-date with 'origin/xfce-4.10'.

-> Updating sources for manager...
--> Fetching from https://github.com/QubesOS/qubes-manager.git release3.1...
--> Verifying tags...
--> Switching branch from release3.1 branch to release3.1
Already on 'release3.1'
Your branch is up-to-date with 'origin/release3.1'.

-> Updating sources for linux-dom0-updates...
--> Fetching from https://github.com/QubesOS/qubes-linux-dom0-updates.git 
release3.1...
--> Verifying tags...
--> Switching branch from release3.1 branch to release3.1
Already on 'release3.1'
Your branch is up-to-date with 'origin/release3.1'.

-> Updating sources for linux-pvgrub2...
--> Fetching from https://github.com/QubesOS/qubes-linux-pvgrub2.git master...
--> Verifying tags...
--> Switching branch from master branch to master
Already on 'master'
Your branch is up-to-date with 'origin/master'.

-> Updating sources for installer-qubes-os...
--> Fetching from https://github.com/QubesOS/qubes-installer-qubes-os.git 
release3.1...
--> Verifying tags...
--> Switching branch from release3.1 branch to release3.1
Already on 'release3.1'
Your branch is up-to-date with 'origin/release3.1'.

-> Updating sources for installer-qubes-os-windows-tools...
--> Fetching from 
https://github.com/QubesOS/qubes-installer-qubes-os-windows-tools.git 
release3.1...
--> Verifying tags...
--> Switching branch from release3.1 branch to release3.1
Already on 'release3.1'
Your branch is up-to-date with 'origin/release3.1'.

-> Updating sources for linux-yum...
--> Fetching from https://github.com/QubesOS/qubes-linux-yum.git master...
--> Verifying tags...
--> Switching branch from master branch to master
Already on 'master'
Your branch is up-to-date with 'origin/master'.

-> Updating sources for vmm-xen-windows-pvdrivers...
--> Fetching from 
https://github.com/QubesOS/qubes-vmm-xen-windows-pvdrivers.git release3.1...
--> Verifying tags...
--> Switching branch from release3.1 branch to release3.1
Already on 'release3.1'
Your branch is up-to-date with 'origin/release3.1'.

-> Updating sources for antievilmaid...
--> Fetching from https://github.com/QubesOS/qubes-antievilmaid.git master...
--> Verifying tags...
--> Switching branch from master branch to master
Already on 'master'
Your branch is up-to-date with 'origin/master'.

-> Updating sources for builder-fedora...
--> Fetching from https://github.com/QubesOS/qubes-builder-fedora.git master...
--> Verifying tags...
--> Switching branch from master branch to master
Already on 'master'
Your branch is up-to-date with 'origin/master'.

-> Updating sources for builder-windows...
--> Fetching from https://github.com/QubesOS/qubes-builder-windows.git master...
--> Verifying tags...
--> Switching branch from master branch to master
Already on 'master'
Your branch is up-to-date with 'origin/master'.

--> Downloading additional sources for vmm-xen...
Submodule 'core-vchan-xen' (git://github.com/QubesOS/qubes-core-vchan-xen) 
registered for path 'core-vchan-xen'
Submodule 'gui' (git://github.com/QubesOS/qubes-gui-agent-xen-hvm-stubdom) 
registered for path 'gui-agent-xen-hvm-stubdom'
Submodule 'gui-common' (git://github.com/QubesOS/qubes-gui-common) registered 
for path 'gui-common'
Cloning into 'core-vchan-xen'...
remote: Counting objects: 833, done.
remote: Total 833 (delta 0), reused 0 (delta 0), pack-reused 832
Receiving objects: 100% (833/833), 221.69 KiB | 0 bytes/s, done.
Resolving deltas: 100% (426/426), done.
Checking connectivity... done.
Submodule path 'core-vchan-xen': checked out 
'0b146f2934a096a731a242b284f6610c10a7aded'
Cloning into 'gui-agent-xen-hvm-stubdom'...
remote: Counting objects: 3250, done.
remote: Total 3250 (delta 0), reused 0 (delta 0), pack-reused 3250
Receiving objects: 100% (3250/3250), 893.90 KiB | 642.00 KiB/s, done.
Resolving deltas: 100% (1811/1811), done.
Checking connectivity... done.
Submodule path 'gui-agent-xen-hvm-stubdom': checked out 
'81be4f25b9e97c90ec5d5d133b64b92128c6613f'
Cloning into 'gui-common'...
remote: Counting objects: 155, done.
remote: Total 155 (delta 0), reused 0 (delta 0), pack-reused 155
Receiving objects: 100% (155/155), 48.33 KiB | 0 bytes/s, done.
Resolving deltas: 100% (49/49), done.
Checking connectivity... done.
Submodule path 'gui-common': checked out 
'c611481422aeff25feb0ffaf08cfe6139e358f6c'
--> Verifying the sources...
--> Downloading additional sources for core-libvirt...
warning: Macro %client_only defined but not used within scope
--> Verifying the sources...
warning: Macro %client_only defined but not used within scope
--> Downloading additional sources for linux-kernel...
--> Verifying the sources...
--> Downloading additional sources for desktop-linux-kde...
--> Verifying the sources...
--> Downloading additional sources for desktop-linux-xfce4...
--> Verifying the sources...
--> Downloading additional sources for linux-pvgrub2...
--> Verifying the sources...
--> Downloading additional sources for installer-qubes-os...
--> Verifying the sources...
[user@arch-test qubes-builder]$ 

[user@arch-test qubes-builder]$ make qubes-vm
Currently installed dependencies:
git-2.5.5-1.fc23.x86_64
rpmdevtools-8.9-1.fc23.noarch
rpm-build-4.13.0-0.rc1.13.fc23.x86_64
createrepo-0.10.3-3.fc21.noarch
debootstrap-1.0.81-1.fc23.noarch
dpkg-dev-1.17.25-6.fc23.noarch
python-sh-1.11-1.fc23.noarch
dialog-1.3-4.20160424.fc23.x86_64
--> Archlinux preparing build chroot environment
--> Archlinux prepare-chroot-builder
  --> Installing archlinux build root:
--> Archlinux prepare-chroot-base
  --> Bootstrap chroot environment may not exist, calling 00_prepare.sh...
--> Archlinux 00_prepare.sh
  --> Downloading Archlinux bootstrap tarball (v2016.08.01)...
--2016-08-14 15:11:01--  
http://mirrors.kernel.org/archlinux/iso/2016.08.01/archlinux-bootstrap-2016.08.01-x86_64.tar.gz
Resolving mirrors.kernel.org (mirrors.kernel.org)... 149.20.37.36, 
198.145.20.143, 2620:3:c000:a:0:1994:3:14, ...
Connecting to mirrors.kernel.org (mirrors.kernel.org)|149.20.37.36|:80... 
connected.
HTTP request sent, awaiting response... 200 OK
Length: 116295360 (111M) [application/octet-stream]
Saving to: 
‘/home/user/qubes-builder/cache/archlinux/archlinux-bootstrap-2016.08.01-x86_64.tar.gz’

archlinux-bootstrap 100%[===================>] 110.91M  2.86MB/s    in 53s     

2016-08-14 15:11:54 (2.09 MB/s) - 
‘/home/user/qubes-builder/cache/archlinux/archlinux-bootstrap-2016.08.01-x86_64.tar.gz’
 saved [116295360/116295360]

--2016-08-14 15:11:54--  
http://mirrors.kernel.org/archlinux/iso/2016.08.01/archlinux-bootstrap-2016.08.01-x86_64.tar.gz.sig
Resolving mirrors.kernel.org (mirrors.kernel.org)... 198.145.20.143, 
149.20.37.36, 2620:3:c000:a:0:1994:3:14, ...
Connecting to mirrors.kernel.org (mirrors.kernel.org)|198.145.20.143|:80... 
connected.
HTTP request sent, awaiting response... 200 OK
Length: 287 [application/octet-stream]
Saving to: 
‘/home/user/qubes-builder/cache/archlinux/archlinux-bootstrap-2016.08.01-x86_64.tar.gz.sig’

archlinux-bootstrap 100%[===================>]     287  --.-KB/s    in 0s      

2016-08-14 15:11:55 (9.54 MB/s) - 
‘/home/user/qubes-builder/cache/archlinux/archlinux-bootstrap-2016.08.01-x86_64.tar.gz.sig’
 saved [287/287]

  --> Preparing GnuPG to verify tarball...
gpg: keyring `/home/user/qubes-builder/cache/archlinux/gpghome/secring.gpg' 
created
gpg: keyring `/home/user/qubes-builder/cache/archlinux/gpghome/pubring.gpg' 
created
gpg: /home/user/qubes-builder/cache/archlinux/gpghome/trustdb.gpg: trustdb 
created
gpg: key 6AC6A4C2: public key "Pierre Schmitz (Arch Linux Master Key) 
<pie...@master-key.archlinux.org>" imported
gpg: key 824B18E8: public key "Thomas Bächler (Arch Linux Master Key) 
<tho...@master-key.archlinux.org>" imported
gpg: key 4C7EA887: public key "Ionut Biru (Arch Linux Master Key) 
<io...@master-key.archlinux.org>" imported
gpg: key FFF979E7: public key "Allan McRae (Arch Linux Master Key) 
<al...@master-key.archlinux.org>" imported
gpg: key CDFD6BB0: public key "Dan McGee (Arch Linux Master Key) 
<d...@master-key.archlinux.org>" imported
gpg: key 9741E8AC: public key "Pierre Schmitz <pie...@archlinux.de>" imported
gpg: Total number processed: 6
gpg:               imported: 6  (RSA: 6)
gpg: no ultimately trusted keys found
  --> Verifying tarball...
gpg: Signature made Mon 01 Aug 2016 07:42:55 PM MSK using RSA key ID 9741E8AC
gpg: Good signature from "Pierre Schmitz <pie...@archlinux.de>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 4AA4 767B BC9C 4B1D 18AE  28B7 7F2D 434B 9741 E8AC
  --> Extracting bootstrap tarball (nuking previous directory)...
  --> Binding INSTALLDIR '/home/user/qubes-builder/chroot-archlinux' to 
bootstrap environment...
  --> Setting pacman mirror as 'mirror.rackspace.com'...
  --> Initializing pacman keychain...
gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created
gpg: no ultimately trusted keys found
gpg: starting migration from earlier GnuPG versions
gpg: porting secret keys from '/etc/pacman.d/gnupg/secring.gpg' to gpg-agent
gpg: migration succeeded
gpg: Generating pacman keyring master key...
gpg: key F7E8AE9810B764A7 marked as ultimately trusted
gpg: directory '/etc/pacman.d/gnupg/openpgp-revocs.d' created
gpg: revocation certificate stored as 
'/etc/pacman.d/gnupg/openpgp-revocs.d/9959892473A72ECCACBA11FDF7E8AE9810B764A7.rev'
gpg: Done
==> Updating trust database...
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 1u
==> Appending keys from archlinux.gpg...
==> Locally signing trusted keys in keyring...
  -> Locally signing key 0E8B644079F599DFC1DDC3973348882F6AC6A4C2...
  -> Locally signing key 684148BB25B49E986A4944C55184252D824B18E8...
  -> Locally signing key 91FFE0700E80619CEB73235CA88E23E377514E00...
  -> Locally signing key 44D4A033AC140143927397D47EFD567D4C7EA887...
  -> Locally signing key 27FFC4769E19F096D41D9265A04F9397CDFD6BB0...
  -> Locally signing key AB19265E5D7D20687D303246BA1DFB64FFF979E7...
==> Importing owner trust values...
gpg: inserting ownertrust of 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
==> Disabling revoked keys in keyring...
  -> Disabling key F5A361A3A13554B85E57DDDAAF7EF7873CFD4BB6...
  -> Disabling key 7FA647CD89891DEDC060287BB9113D1ED21E1A55...
  -> Disabling key D4DE5ABDE2A7287644EAC7E36D1A9E70E19DAA50...
  -> Disabling key BC1FBE4D2826A0B51E47ED62E2539214C6C11350...
  -> Disabling key 9515D8A8EAB88E49BB65EDBCE6B456CAF15447D5...
  -> Disabling key 4A8B17E20B88ACA61860009B5CED81B7C2E5C0D2...
  -> Disabling key 63F395DE2D6398BBE458F281F2DBB4931985A992...
  -> Disabling key 0B20CA1931F5DA3A70D0F8D2EA6836E1AB441196...
  -> Disabling key 8F76BEEA0289F9E1D3E229C05F946DED983D4366...
  -> Disabling key 66BD74A036D522F51DD70A3C7F2A16726521E06D...
  -> Disabling key 81D7F8241DB38BC759C80FCE3A726C6170E80477...
  -> Disabling key E7210A59715F6940CF9A4E36A001876699AD6E84...
==> Updating trust database...
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   6  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:   6  signed:  66  trust: 0-, 0q, 0n, 6m, 0f, 0u
gpg: depth: 2  valid:  66  signed:   7  trust: 66-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2016-10-19
  --> Installing core pacman packages...
==> Creating install root at /mnt
==> Installing packages to /mnt
:: Synchronizing package databases...
 core                     118.6 KiB   446K/s 00:00 [######################] 100%
 extra                   1761.1 KiB  1391K/s 00:01 [######################] 100%
 community                  3.6 MiB  1970K/s 00:02 [######################] 100%
:: There are 50 members in group base:
:: Repository core
   1) bash  2) bzip2  3) coreutils  4) cryptsetup  5) device-mapper  6) dhcpcd
   7) diffutils  8) e2fsprogs  9) file  10) filesystem  11) findutils  12) gawk
   13) gcc-libs  14) gettext  15) glibc  16) grep  17) gzip  18) inetutils
   19) iproute2  20) iputils  21) jfsutils  22) less  23) licenses  24) linux
   25) logrotate  26) lvm2  27) man-db  28) man-pages  29) mdadm  30) nano
   31) netctl  32) pacman  33) pciutils  34) pcmciautils  35) perl
   36) procps-ng  37) psmisc  38) reiserfsprogs  39) s-nail  40) sed
   41) shadow  42) sysfsutils  43) systemd-sysvcompat  44) tar  45) texinfo
   46) usbutils  47) util-linux  48) vi  49) which  50) xfsprogs

Enter a selection (default=all): 
resolving dependencies...
looking for conflicting packages...

Packages (126) acl-2.2.52-2  archlinux-keyring-20160402-1  attr-2.4.47-1
               ca-certificates-20160507-1  ca-certificates-cacert-20140824-3
               ca-certificates-mozilla-3.25-1  ca-certificates-utils-20160507-1
               cracklib-2.9.6-1  curl-7.50.1-1  db-5.3.28-3  dbus-1.10.8-1
               expat-2.2.0-1  gdbm-1.12-2  glib2-2.48.1-1  gmp-6.1.1-1
               gnupg-2.1.14-1  gnutls-3.4.14-1  gpgme-1.6.0-3  groff-1.22.3-7
               hwids-20160421-1  iana-etc-20160513-1  iptables-1.6.0-1
               kbd-2.0.3-1  keyutils-1.5.9-1  kmod-23-1  krb5-1.13.4-1
               libaio-0.3.110-1  libarchive-3.2.1-2  libassuan-2.4.3-1
               libcap-2.25-1  libdbus-1.10.8-1  libelf-0.166-1  libffi-3.2.1-2
               libgcrypt-1.7.2-1  libgpg-error-1.24-1  libidn-1.33-1
               libksba-1.3.4-2  libldap-2.4.44-2  libmnl-1.0.4-1
               libnftnl-1.0.6-1  libpipeline-1.4.1-1  libsasl-2.1.26-8
               libseccomp-2.3.1-1  libssh2-1.7.0-2  libsystemd-231-1
               libtasn1-4.9-2  libtirpc-1.0.1-2  libunistring-0.9.6-2
               libusb-1.0.20-1  libutil-linux-2.28-1  linux-api-headers-4.7-1
               linux-firmware-20160730.6bc2c60-1  lz4-131-1  lzo-2.09-1
               mkinitcpio-20-1  mkinitcpio-busybox-1.24.2-1  mpfr-3.1.4.p1-1
               ncurses-6.0-4  nettle-3.2-2  npth-1.2-1  openresolv-3.8.1-1
               openssl-1.0.2.h-1  p11-kit-0.23.2-1
               pacman-mirrorlist-20160802-1  pam-1.3.0-1  pambase-20130928-1
               pcre-8.39-1  pinentry-0.9.7-2  popt-1.16-8  readline-6.3.008-4
               sqlite-3.14.0-1  systemd-231-1  thin-provisioning-tools-0.6.3-1
               tzdata-2016f-1  xz-5.2.2-1  zlib-1.2.8-4  bash-4.3.046-1
               bzip2-1.0.6-5  coreutils-8.25-2  cryptsetup-1.7.2-1
               device-mapper-2.02.163-1  dhcpcd-6.11.2-1  diffutils-3.3-3
               e2fsprogs-1.43.1-2  file-5.28-1  filesystem-2015.09-1
               findutils-4.6.0-2  gawk-4.1.3-2  gcc-libs-6.1.1-5
               gettext-0.19.8.1-2  glibc-2.24-2  grep-2.25-2  gzip-1.8-2
               inetutils-1.9.4-4  iproute2-4.7.0-1  iputils-20160308.0db72a4-1
               jfsutils-1.1.15-4  less-481-2  licenses-20140629-1  linux-4.7-1
               logrotate-3.9.2-1  lvm2-2.02.163-1  man-db-2.7.5-3
               man-pages-4.07-1  mdadm-3.4-1  nano-2.6.2-1  netctl-1.12-2
               pacman-5.0.1-4  pciutils-3.5.1-1  pcmciautils-018-7
               perl-5.24.0-1  procps-ng-3.3.12-1  psmisc-22.21-3
               reiserfsprogs-3.6.25-1  s-nail-14.8.9-1  sed-4.2.2-4
               shadow-4.2.1-3  sysfsutils-2.1.0-9  systemd-sysvcompat-231-1
               tar-1.29-1  texinfo-6.1-4  usbutils-008-1  util-linux-2.28-1
               vi-1:070224-2  which-2.21-2  xfsprogs-4.5.0-1

Total Download Size:   191.21 MiB
Total Installed Size:  629.63 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 linux-api-headers-4...   810.7 KiB  1100K/s 00:01 [######################] 100%
 tzdata-2016f-1-any       215.4 KiB   630K/s 00:00 [######################] 100%
 iana-etc-20160513-1-any  352.2 KiB   699K/s 00:01 [######################] 100%
 filesystem-2015.09-...     8.8 KiB  8.55M/s 00:00 [######################] 100%
 glibc-2.24-2-x86_64        8.1 MiB  3.28M/s 00:02 [######################] 100%
 gcc-libs-6.1.1-5-x86_64   14.9 MiB  2.91M/s 00:05 [######################] 100%
 ncurses-6.0-4-x86_64    1010.5 KiB  1314K/s 00:01 [######################] 100%
 readline-6.3.008-4-...   283.1 KiB   704K/s 00:00 [######################] 100%
 bash-4.3.046-1-x86_64   1240.3 KiB  1259K/s 00:01 [######################] 100%
 bzip2-1.0.6-5-x86_64      51.8 KiB   355K/s 00:00 [######################] 100%
 attr-2.4.47-1-x86_64      69.2 KiB   353K/s 00:00 [######################] 100%
 acl-2.2.52-2-x86_64      130.7 KiB   549K/s 00:00 [######################] 100%
 gmp-6.1.1-1-x86_64       408.1 KiB   872K/s 00:00 [######################] 100%
 libcap-2.25-1-x86_64      37.9 KiB   267K/s 00:00 [######################] 100%
 gdbm-1.12-2-x86_64       135.7 KiB   528K/s 00:00 [######################] 100%
 db-5.3.28-3-x86_64      1097.6 KiB  1236K/s 00:01 [######################] 100%
 perl-5.24.0-1-x86_64      13.1 MiB  4.09M/s 00:03 [######################] 100%
 openssl-1.0.2.h-1-x...     2.7 MiB  1612K/s 00:02 [######################] 100%
 coreutils-8.25-2-x86_64    2.1 MiB  2006K/s 00:01 [######################] 100%
 libgpg-error-1.24-1...   135.9 KiB   422K/s 00:00 [######################] 100%
 libgcrypt-1.7.2-1-x...   466.2 KiB   990K/s 00:00 [######################] 100%
 lz4-131-1-x86_64          65.2 KiB   371K/s 00:00 [######################] 100%
 xz-5.2.2-1-x86_64        227.0 KiB   627K/s 00:00 [######################] 100%
 libsystemd-231-1-x86_64  328.9 KiB   657K/s 00:01 [######################] 100%
 libdbus-1.10.8-1-x86_64  141.7 KiB   446K/s 00:00 [######################] 100%
 expat-2.2.0-1-x86_64      76.5 KiB   368K/s 00:00 [######################] 100%
 dbus-1.10.8-1-x86_64     311.7 KiB   682K/s 00:00 [######################] 100%
 iptables-1.6.0-1-x86_64  304.1 KiB   680K/s 00:00 [######################] 100%
 zlib-1.2.8-4-x86_64       80.3 KiB   278K/s 00:00 [######################] 100%
 cracklib-2.9.6-1-x86_64  249.9 KiB   580K/s 00:00 [######################] 100%
 libutil-linux-2.28-...   304.3 KiB   597K/s 00:01 [######################] 100%
 e2fsprogs-1.43.1-2-...   841.2 KiB  1402K/s 00:01 [######################] 100%
 libsasl-2.1.26-8-x86_64  136.7 KiB   462K/s 00:00 [######################] 100%
 libldap-2.4.44-2-x86_64  288.2 KiB   566K/s 00:01 [######################] 100%
 keyutils-1.5.9-1-x86_64   76.5 KiB   385K/s 00:00 [######################] 100%
 krb5-1.13.4-1-x86_64    1097.9 KiB  1158K/s 00:01 [######################] 100%
 libtirpc-1.0.1-2-x86_64  171.5 KiB   509K/s 00:00 [######################] 100%
 pambase-20130928-1-any  1708.0   B  0.00B/s 00:00 [######################] 100%
 pam-1.3.0-1-x86_64       609.7 KiB   937K/s 00:01 [######################] 100%
 kbd-2.0.3-1-x86_64      1121.9 KiB  1115K/s 00:01 [######################] 100%
 kmod-23-1-x86_64         109.1 KiB   456K/s 00:00 [######################] 100%
 hwids-20160421-1-any     327.6 KiB   746K/s 00:00 [######################] 100%
 libidn-1.33-1-x86_64     206.9 KiB   661K/s 00:00 [######################] 100%
 libelf-0.166-1-x86_64    369.5 KiB   704K/s 00:01 [######################] 100%
 libseccomp-2.3.1-1-...    66.6 KiB   311K/s 00:00 [######################] 100%
 shadow-4.2.1-3-x86_64   1071.6 KiB  1386K/s 00:01 [######################] 100%
 util-linux-2.28-1-x...  1749.8 KiB  1477K/s 00:01 [######################] 100%
 systemd-231-1-x86_64       3.6 MiB  2.22M/s 00:02 [######################] 100%
 device-mapper-2.02....   294.5 KiB   671K/s 00:00 [######################] 100%
 popt-1.16-8-x86_64        65.5 KiB   324K/s 00:00 [######################] 100%
 cryptsetup-1.7.2-1-...   236.2 KiB   539K/s 00:00 [######################] 100%
 dhcpcd-6.11.2-1-x86_64   156.2 KiB   443K/s 00:00 [######################] 100%
 diffutils-3.3-3-x86_64   177.0 KiB   535K/s 00:00 [######################] 100%
 file-5.28-1-x86_64       246.3 KiB   624K/s 00:00 [######################] 100%
 findutils-4.6.0-2-x...   420.7 KiB   873K/s 00:00 [######################] 100%
 mpfr-3.1.4.p1-1-x86_64   252.7 KiB   718K/s 00:00 [######################] 100%
 gawk-4.1.3-2-x86_64      962.5 KiB  1626K/s 00:01 [######################] 100%
 pcre-8.39-1-x86_64       922.0 KiB  1272K/s 00:01 [######################] 100%
 libffi-3.2.1-2-x86_64     31.5 KiB   263K/s 00:00 [######################] 100%
 glib2-2.48.1-1-x86_64      2.1 MiB  1433K/s 00:02 [######################] 100%
 libunistring-0.9.6-...   486.0 KiB   841K/s 00:01 [######################] 100%
 gettext-0.19.8.1-2-...  2026.9 KiB  1605K/s 00:01 [######################] 100%
 grep-2.25-2-x86_64       201.5 KiB   464K/s 00:00 [######################] 100%
 less-481-2-x86_64         91.9 KiB   516K/s 00:00 [######################] 100%
 gzip-1.8-2-x86_64         75.8 KiB   345K/s 00:00 [######################] 100%
 inetutils-1.9.4-4-x...   286.0 KiB   799K/s 00:00 [######################] 100%
 iproute2-4.7.0-1-x86_64  656.6 KiB  1016K/s 00:01 [######################] 100%
 sysfsutils-2.1.0-9-...    30.2 KiB   503K/s 00:00 [######################] 100%
 iputils-20160308.0d...    73.3 KiB   421K/s 00:00 [######################] 100%
 jfsutils-1.1.15-4-x...   167.5 KiB   564K/s 00:00 [######################] 100%
 licenses-20140629-1-any   62.0 KiB   288K/s 00:00 [######################] 100%
 linux-firmware-2016...    37.2 MiB  2.72M/s 00:14 [######################] 100%
 mkinitcpio-busybox-...   153.6 KiB   427K/s 00:00 [######################] 100%
 lzo-2.09-1-x86_64         79.4 KiB   382K/s 00:00 [######################] 100%
 libarchive-3.2.1-2-...   596.5 KiB   908K/s 00:01 [######################] 100%
 mkinitcpio-20-1-any       38.6 KiB   319K/s 00:00 [######################] 100%
 linux-4.7-1-x86_64        59.5 MiB  3.69M/s 00:16 [######################] 100%
 logrotate-3.9.2-1-x...    36.1 KiB   298K/s 00:00 [######################] 100%
 libaio-0.3.110-1-x86_64    4.4 KiB  0.00B/s 00:00 [######################] 100%
 thin-provisioning-t...   372.6 KiB   724K/s 00:01 [######################] 100%
 lvm2-2.02.163-1-x86_64  1101.4 KiB  1401K/s 00:01 [######################] 100%
 groff-1.22.3-7-x86_64   1824.6 KiB  1349K/s 00:01 [######################] 100%
 libpipeline-1.4.1-1...    36.2 KiB   246K/s 00:00 [######################] 100%
 man-db-2.7.5-3-x86_64    383.6 KiB   828K/s 00:00 [######################] 100%
 man-pages-4.07-1-any       5.5 MiB  2.58M/s 00:02 [######################] 100%
 mdadm-3.4-1-x86_64       384.5 KiB   832K/s 00:00 [######################] 100%
 nano-2.6.2-1-x86_64      411.6 KiB   889K/s 00:00 [######################] 100%
 openresolv-3.8.1-1-any    20.8 KiB   352K/s 00:00 [######################] 100%
 netctl-1.12-2-any         36.8 KiB   261K/s 00:00 [######################] 100%
 libtasn1-4.9-2-x86_64    116.3 KiB   400K/s 00:00 [######################] 100%
 p11-kit-0.23.2-1-x86_64  265.5 KiB   585K/s 00:00 [######################] 100%
 ca-certificates-uti...     7.6 KiB  0.00B/s 00:00 [######################] 100%
 ca-certificates-moz...   367.1 KiB   716K/s 00:01 [######################] 100%
 ca-certificates-cac...     7.0 KiB  0.00B/s 00:00 [######################] 100%
 ca-certificates-201...  1864.0   B  0.00B/s 00:00 [######################] 100%
 libssh2-1.7.0-2-x86_64   179.5 KiB   496K/s 00:00 [######################] 100%
 curl-7.50.1-1-x86_64     813.9 KiB   661K/s 00:01 [######################] 100%
 npth-1.2-1-x86_64         12.0 KiB  0.00B/s 00:00 [######################] 100%
 libksba-1.3.4-2-x86_64   114.6 KiB   397K/s 00:00 [######################] 100%
 libassuan-2.4.3-1-x...    84.6 KiB   313K/s 00:00 [######################] 100%
 pinentry-0.9.7-2-x86_64   89.4 KiB   309K/s 00:00 [######################] 100%
 nettle-3.2-2-x86_64      322.2 KiB   742K/s 00:00 [######################] 100%
 gnutls-3.4.14-1-x86_64     2.2 MiB  1866K/s 00:01 [######################] 100%
 sqlite-3.14.0-1-x86_64  1216.9 KiB  1452K/s 00:01 [######################] 100%
 gnupg-2.1.14-1-x86_64   1858.0 KiB  1719K/s 00:01 [######################] 100%
 gpgme-1.6.0-3-x86_64     235.0 KiB   462K/s 00:01 [######################] 100%
 pacman-mirrorlist-2...     5.5 KiB  0.00B/s 00:00 [######################] 100%
 archlinux-keyring-2...   576.7 KiB  1092K/s 00:01 [######################] 100%
 pacman-5.0.1-4-x86_64    732.0 KiB  1121K/s 00:01 [######################] 100%
 pciutils-3.5.1-1-x86_64   81.7 KiB   372K/s 00:00 [######################] 100%
 pcmciautils-018-7-x...    19.7 KiB   328K/s 00:00 [######################] 100%
 procps-ng-3.3.12-1-...   299.5 KiB   685K/s 00:00 [######################] 100%
 psmisc-22.21-3-x86_64    101.3 KiB   346K/s 00:00 [######################] 100%
 reiserfsprogs-3.6.2...   201.0 KiB   618K/s 00:00 [######################] 100%
 s-nail-14.8.9-1-x86_64   306.5 KiB   731K/s 00:00 [######################] 100%
 sed-4.2.2-4-x86_64       124.0 KiB   471K/s 00:00 [######################] 100%
 systemd-sysvcompat-...     7.3 KiB  7.12M/s 00:00 [######################] 100%
 tar-1.29-1-x86_64        674.1 KiB  1047K/s 00:01 [######################] 100%
 texinfo-6.1-4-x86_64    1160.7 KiB  1264K/s 00:01 [######################] 100%
 libusb-1.0.20-1-x86_64    52.6 KiB   368K/s 00:00 [######################] 100%
 usbutils-008-1-x86_64     61.3 KiB   314K/s 00:00 [######################] 100%
 vi-1:070224-2-x86_64     148.0 KiB   495K/s 00:00 [######################] 100%
 which-2.21-2-x86_64       15.5 KiB   215K/s 00:00 [######################] 100%
 xfsprogs-4.5.0-1-x86_64  739.6 KiB   934K/s 00:01 [######################] 100%
 libmnl-1.0.4-1-x86_64     10.5 KiB  10.2M/s 00:00 [######################] 100%
 libnftnl-1.0.6-1-x86_64   52.4 KiB   359K/s 00:00 [######################] 100%
(126/126) checking keys in keyring                 [######################] 100%
(126/126) checking package integrity               [######################] 100%
(126/126) loading package files                    [######################] 100%
(126/126) checking for file conflicts              [######################] 100%
(126/126) checking available disk space            [######################] 100%
:: Processing package changes...
(  1/126) installing linux-api-headers             [######################] 100%
(  2/126) installing tzdata                        [######################] 100%
(  3/126) installing iana-etc                      [######################] 100%
(  4/126) installing filesystem                    [######################] 100%
(  5/126) installing glibc                         [######################] 100%
(  6/126) installing gcc-libs                      [######################] 100%
(  7/126) installing ncurses                       [######################] 100%
(  8/126) installing readline                      [######################] 100%
(  9/126) installing bash                          [######################] 100%
Optional dependencies for bash
    bash-completion: for tab completion
( 10/126) installing bzip2                         [######################] 100%
( 11/126) installing attr                          [######################] 100%
( 12/126) installing acl                           [######################] 100%
( 13/126) installing gmp                           [######################] 100%
( 14/126) installing libcap                        [######################] 100%
( 15/126) installing gdbm                          [######################] 100%
( 16/126) installing db                            [######################] 100%
( 17/126) installing perl                          [######################] 100%
( 18/126) installing openssl                       [######################] 100%
Optional dependencies for openssl
    ca-certificates [pending]
( 19/126) installing coreutils                     [######################] 100%
( 20/126) installing libgpg-error                  [######################] 100%
( 21/126) installing libgcrypt                     [######################] 100%
( 22/126) installing lz4                           [######################] 100%
( 23/126) installing xz                            [######################] 100%
( 24/126) installing libsystemd                    [######################] 100%
( 25/126) installing libdbus                       [######################] 100%
( 26/126) installing expat                         [######################] 100%
( 27/126) installing dbus                          [######################] 100%
Optional dependencies for dbus
    libx11: dbus-launch support
( 28/126) installing libmnl                        [######################] 100%
( 29/126) installing libnftnl                      [######################] 100%
( 30/126) installing iptables                      [######################] 100%
( 31/126) installing zlib                          [######################] 100%
( 32/126) installing cracklib                      [######################] 100%
( 33/126) installing libutil-linux                 [######################] 100%
( 34/126) installing e2fsprogs                     [######################] 100%
( 35/126) installing libsasl                       [######################] 100%
( 36/126) installing libldap                       [######################] 100%
( 37/126) installing keyutils                      [######################] 100%
( 38/126) installing krb5                          [######################] 100%
( 39/126) installing libtirpc                      [######################] 100%
( 40/126) installing pambase                       [######################] 100%
( 41/126) installing pam                           [######################] 100%
( 42/126) installing kbd                           [######################] 100%
( 43/126) installing kmod                          [######################] 100%
( 44/126) installing hwids                         [######################] 100%
( 45/126) installing libidn                        [######################] 100%
( 46/126) installing libelf                        [######################] 100%
( 47/126) installing libseccomp                    [######################] 100%
( 48/126) installing shadow                        [######################] 100%
( 49/126) installing util-linux                    [######################] 100%
Optional dependencies for util-linux
    python: python bindings to libmount
( 50/126) installing systemd                       [######################] 100%
Initializing machine ID from random generator.
Created symlink /etc/systemd/system/getty.target.wants/getty@tty1.service → 
/usr/lib/systemd/system/getty@.service.
Created symlink /etc/systemd/system/multi-user.target.wants/remote-fs.target → 
/usr/lib/systemd/system/remote-fs.target.
:: Append 'init=/usr/lib/systemd/systemd' to your kernel command line in your
   bootloader to replace sysvinit with systemd, or install systemd-sysvcompat
Optional dependencies for systemd
    cryptsetup: required for encrypted block devices [pending]
    libmicrohttpd: remote journald capabilities
    quota-tools: kernel-level quota management
    systemd-sysvcompat: symlink package to provide sysvinit binaries [pending]
    polkit: allow administration as unprivileged user
( 51/126) installing device-mapper                 [######################] 100%
( 52/126) installing popt                          [######################] 100%
( 53/126) installing cryptsetup                    [######################] 100%
( 54/126) installing dhcpcd                        [######################] 100%
Optional dependencies for dhcpcd
    openresolv: resolvconf support [pending]
( 55/126) installing diffutils                     [######################] 100%
( 56/126) installing file                          [######################] 100%
( 57/126) installing findutils                     [######################] 100%
( 58/126) installing mpfr                          [######################] 100%
( 59/126) installing gawk                          [######################] 100%
( 60/126) installing pcre                          [######################] 100%
( 61/126) installing libffi                        [######################] 100%
( 62/126) installing glib2                         [######################] 100%
Optional dependencies for glib2
    python: for gdbus-codegen and gtester-report
    libelf: gresource inspection tool [installed]
( 63/126) installing libunistring                  [######################] 100%
( 64/126) installing gettext                       [######################] 100%
Optional dependencies for gettext
    git: for autopoint infrastructure updates
( 65/126) installing grep                          [######################] 100%
( 66/126) installing less                          [######################] 100%
( 67/126) installing gzip                          [######################] 100%
( 68/126) installing inetutils                     [######################] 100%
( 69/126) installing iproute2                      [######################] 100%
Optional dependencies for iproute2
    linux-atm: ATM support
( 70/126) installing sysfsutils                    [######################] 100%
( 71/126) installing iputils                       [######################] 100%
Optional dependencies for iputils
    xinetd: for tftpd
( 72/126) installing jfsutils                      [######################] 100%
( 73/126) installing licenses                      [######################] 100%
( 74/126) installing linux-firmware                [######################] 100%
( 75/126) installing mkinitcpio-busybox            [######################] 100%
( 76/126) installing lzo                           [######################] 100%
( 77/126) installing libarchive                    [######################] 100%
( 78/126) installing mkinitcpio                    [######################] 100%
Optional dependencies for mkinitcpio
    xz: Use lzma or xz compression for the initramfs image [installed]
    bzip2: Use bzip2 compression for the initramfs image [installed]
    lzop: Use lzo compression for the initramfs image
    lz4: Use lz4 compression for the initramfs image [installed]
    mkinitcpio-nfs-utils: Support for root filesystem on NFS
( 79/126) installing linux                         [######################] 100%
>>> Updating module dependencies. Please wait ...
>>> Generating initial ramdisk, using mkinitcpio. Please wait...
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 4.7.0-1-ARCH
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g 
/boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 4.7.0-1-ARCH
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: aic94xx
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful
Optional dependencies for linux
    crda: to set the correct wireless channels of your country
( 80/126) installing logrotate                     [######################] 100%
( 81/126) installing libaio                        [######################] 100%
( 82/126) installing thin-provisioning-tools       [######################] 100%
( 83/126) installing lvm2                          [######################] 100%
( 84/126) installing groff                         [######################] 100%
Optional dependencies for groff
    netpbm: for use together with man -H command interaction in browsers
    psutils: for use together with man -H command interaction in browsers
    libxaw: for gxditview
( 85/126) installing libpipeline                   [######################] 100%
( 86/126) installing man-db                        [######################] 100%
Optional dependencies for man-db
    gzip [installed]
( 87/126) installing man-pages                     [######################] 100%
( 88/126) installing mdadm                         [######################] 100%
( 89/126) installing nano                          [######################] 100%
( 90/126) installing openresolv                    [######################] 100%
( 91/126) installing netctl                        [######################] 100%
Optional dependencies for netctl
    dialog: for the menu based wifi assistant
    dhclient: for DHCP support (or dhcpcd)
    dhcpcd: for DHCP support (or dhclient) [installed]
    wpa_supplicant: for wireless networking support
    ifplugd: for automatic wired connections through netctl-ifplugd
    wpa_actiond: for automatic wireless connections through netctl-auto
    ppp: for PPP connections
    openvswitch: for Open vSwitch connections
( 92/126) installing libtasn1                      [######################] 100%
( 93/126) installing p11-kit                       [######################] 100%
( 94/126) installing ca-certificates-utils         [######################] 100%
( 95/126) installing ca-certificates-mozilla       [######################] 100%
( 96/126) installing ca-certificates-cacert        [######################] 100%
( 97/126) installing ca-certificates               [######################] 100%
( 98/126) installing libssh2                       [######################] 100%
( 99/126) installing curl                          [######################] 100%
(100/126) installing npth                          [######################] 100%
(101/126) installing libksba                       [######################] 100%
(102/126) installing libassuan                     [######################] 100%
(103/126) installing pinentry                      [######################] 100%
Optional dependencies for pinentry
    gtk2: gtk2 backend
    qt5-base: qt backend
    gcr: gnome3 backend
(104/126) installing nettle                        [######################] 100%
(105/126) installing gnutls                        [######################] 100%
Optional dependencies for gnutls
    guile: for use with Guile bindings
(106/126) installing sqlite                        [######################] 100%
(107/126) installing gnupg                         [######################] 100%
Optional dependencies for gnupg
    libldap: gpg2keys_ldap [installed]
    libusb-compat: scdaemon
(108/126) installing gpgme                         [######################] 100%
(109/126) installing pacman-mirrorlist             [######################] 100%
(110/126) installing archlinux-keyring             [######################] 100%
(111/126) installing pacman                        [######################] 100%
(112/126) installing pciutils                      [######################] 100%
(113/126) installing pcmciautils                   [######################] 100%
(114/126) installing procps-ng                     [######################] 100%
(115/126) installing psmisc                        [######################] 100%
(116/126) installing reiserfsprogs                 [######################] 100%
(117/126) installing s-nail                        [######################] 100%
Optional dependencies for s-nail
    smtp-forwarder: for sending mail
(118/126) installing sed                           [######################] 100%
(119/126) installing systemd-sysvcompat            [######################] 100%
(120/126) installing tar                           [######################] 100%
(121/126) installing texinfo                       [######################] 100%
(122/126) installing libusb                        [######################] 100%
(123/126) installing usbutils                      [######################] 100%
Optional dependencies for usbutils
    python2: for lsusb.py usage
    coreutils: for lsusb.py usage [installed]
(124/126) installing vi                            [######################] 100%
Optional dependencies for vi
    s-nail: used by the preserve command for notification [installed]
(125/126) installing which                         [######################] 100%
(126/126) installing xfsprogs                      [######################] 100%
:: Running post-transaction hooks...
(1/4) Updating manpage index...
mandb: can't set the locale; make sure $LC_* and $LANG are correct
(2/4) Updating the info directory file...
(3/4) Updating udev Hardware Database...
(4/4) Rebuilding certificate stores...
  --> Removing non-required linux kernel (can be added manually through a 
package)...
checking dependencies...

Packages (4) linux-firmware-20160730.6bc2c60-1  mkinitcpio-20-1
             mkinitcpio-busybox-1.24.2-1  linux-4.7-1

Total Removed Size:  234.93 MiB

:: Do you want to remove these packages? [Y/n] 
:: Processing package changes...
(1/4) removing linux                               [######################] 100%
(2/4) removing mkinitcpio                          [######################] 100%
(3/4) removing mkinitcpio-busybox                  [######################] 100%
(4/4) removing linux-firmware                      [######################] 100%
:: Running post-transaction hooks...
(1/1) Updating manpage index...
mandb: can't set the locale; make sure $LC_* and $LANG are correct
  --> Unbinding INSTALLDIR...
  --> Configure system accounts...
  --> Synchronize resolv.conf...
  --> Comment out CheckSpace in pacman.conf...
  --> Installing required makepkg dependencies...
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
resolving dependencies...
looking for conflicting packages...

Packages (3) binutils-2.27-1  fakeroot-1.21-2  sudo-1.8.17.p1-1

Total Download Size:    5.68 MiB
Total Installed Size:  31.97 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 binutils-2.27-1-x86_64     4.7 MiB  2.90M/s 00:02 [######################] 100%
 fakeroot-1.21-2-x86_64    67.1 KiB   315K/s 00:00 [######################] 100%
 sudo-1.8.17.p1-1-x86_64  919.3 KiB  1051K/s 00:01 [######################] 100%
(3/3) checking keys in keyring                     [######################] 100%
(3/3) checking package integrity                   [######################] 100%
(3/3) loading package files                        [######################] 100%
(3/3) checking for file conflicts                  [######################] 100%
:: Processing package changes...
(1/3) installing binutils                          [######################] 100%
(2/3) installing fakeroot                          [######################] 100%
(3/3) installing sudo                              [######################] 100%
:: Running post-transaction hooks...
(1/2) Updating manpage index...
mandb: can't set the locale; make sure $LC_* and $LANG are correct
(2/2) Updating the info directory file...
  --> Configure sudo...
[multilib]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist
[qubes]
SigLevel = Optional TrustAll
Server = file:///tmp/qubes-packages-mirror-repo/pkgs
--> Archlinux dist-prepare-chroot (makefile):
  --> Checking mounting of dev/proc/sys on build chroot...
    --> sudo mount -t proc proc /home/user/qubes-builder/chroot-archlinux/proc;
    --> sudo mount --bind /dev /home/user/qubes-builder/chroot-archlinux/dev;
    --> sudo mount --bind /dev/pts 
/home/user/qubes-builder/chroot-archlinux/dev/pts;
    --> sudo mount --bind /sys /home/user/qubes-builder/chroot-archlinux/sys;
    --> sudo mount --bind /home/user/qubes-builder/cache/archlinux/pacman_cache 
/home/user/qubes-builder/chroot-archlinux/var/cache/pacman;
    --> sudo mount --bind 
/home/user/qubes-builder/qubes-packages-mirror-repo/archlinux 
/home/user/qubes-builder/chroot-archlinux/tmp/qubes-deb;
  --> Synchronize resolv.conf, in case it changed since last run...
-> Building vmm-xen (archlinux) for archlinux vm (logfile: 
build-logs/vmm-xen-vm-archlinux.log)
--> build failed!
==> Retrieving sources...
  -> Found xen-4.6.1.tar.gz
  -> Found series-vm.conf
  -> Found apply-patches
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
  -> Extracting xen-4.6.1.tar.gz with bsdtar
bsdtar: Failed to set default locale
==> Starting build()...
+ patch -s -F0 -E -p1 --no-backup-if-mismatch -i ./patches.misc/qemu-tls-1.patch
+ patch -s -F0 -E -p1 --no-backup-if-mismatch -i ./patches.misc/qemu-tls-2.patch
+ patch -s -F0 -E -p1 --no-backup-if-mismatch -i 
./patches.qubes/xen-shared-loop-losetup.patch
+ patch -s -F0 -E -p1 --no-backup-if-mismatch -i 
./patches.qubes/xen-no-downloads.patch
+ patch -s -F0 -E -p1 --no-backup-if-mismatch -i 
./patches.qubes/xen-hotplug-external-store.patch
+ patch -s -F0 -E -p1 --no-backup-if-mismatch -i 
./patches.qubes/xen-tools-qubes-vm.patch
+ patch -s -F0 -E -p1 --no-backup-if-mismatch -i 
./patches.qubes/vm-0001-hotplug-do-not-attempt-to-remove-containing-xenstore.patch
+ patch -s -F0 -E -p1 --no-backup-if-mismatch -i 
./patches.misc/libxc-fix-xc_gntshr_munmap-semantic.patch
+ patch -s -F0 -E -p1 --no-backup-if-mismatch -i 
./patches.misc/libvchan-Fix-cleanup-when-xc_gntshr_open-failed.patch
+ patch -s -F0 -E -p1 --no-backup-if-mismatch -i 
./patches.misc/0101-libvchan-create-xenstore-entries-in-one-transaction.patch
+ patch -s -F0 -E -p1 --no-backup-if-mismatch -i 
./patches.misc/0001-configure-Fix-when-no-libsystemd-compat-lib-are-avai.patch
+ patch -s -F0 -E -p1 --no-backup-if-mismatch -i 
./patches.misc/0001-libxc-prefer-using-privcmd-character-device.patch
+ patch -s -F0 -E -p1 --no-backup-if-mismatch -i 
./patches.misc/0001-tools-hotplug-Add-native-systemd-xendriverdomain.ser.patch
+ patch -s -F0 -E -p1 --no-backup-if-mismatch -i 
./patches.security/xsa155-xen-0003-libvchan-Read-prod-cons-only-once.patch
+ patch -s -F0 -E -p1 --no-backup-if-mismatch -i 
./patches.libxl/0001-libxl-trigger-attach-events-for-devices-attached-bef.patch
+ patch -s -F0 -E -p1 --no-backup-if-mismatch -i 
./patches.misc/0001-systemd-use-standard-dependencies-for-xendriverdomai.patch
/home/user/qubes-src/vmm-xen/PKGBUILD: line 49: autoreconf: command not found
==> ERROR: A failure occurred in build().
    Aborting...
/home/user/qubes-builder/qubes-src/builder-archlinux/Makefile.archlinux:120: 
recipe for target 'dist-package' failed
make[2]: *** [dist-package] Error 2
Makefile.generic:139: recipe for target 'packages' failed
make[1]: *** [packages] Error 1
Makefile:208: recipe for target 'vmm-xen-vm' failed
make: *** [vmm-xen-vm] Error 1
[user@arch-test qubes-builder]$ 

[user@arch-test qubes-builder]$ make template
mkdir -p 
/home/user/qubes-builder/qubes-src/linux-template-builder/pkgs-for-template/archlinux/pkgs
for arch_build_dir in archlinux; do\
        pkgnames=`cat qubes-src/vmm-xen/$arch_build_dir/PKGBUILD | grep pkgname 
| cut -d "=" -f 2 | tr -d '()"'`;\
        for pkgname in $pkgnames; do\
                ln -f qubes-src/vmm-xen/pkgs/$pkgname-*.pkg.tar.xz 
/home/user/qubes-builder/qubes-src/linux-template-builder/pkgs-for-template/archlinux/pkgs/;\
        done;\
done;\

ln: failed to access ‘qubes-src/vmm-xen/pkgs/qubes-vm-xen-*.pkg.tar.xz’: No 
such file or directory
/home/user/qubes-builder/qubes-src/builder-archlinux/Makefile.archlinux:156: 
recipe for target 'update-repo' failed
make[1]: *** [update-repo] Error 1
Makefile:296: recipe for target 'template-local-archlinux' failed
make: *** [template-local-archlinux] Error 1
[user@arch-test qubes-builder]$ ls
builder.conf      Makefile.dummy                     README.md
builder.conf.bak  Makefile.generic                   release-configs
build-logs        qubes-developers-keys.asc          repo-latest-snapshot
cache             qubes-packages-mirror-repo         rpc-services
chroot-archlinux  qubes-release-1-signing-key.asc    scripts
doc               qubes-release-2-signing-key.asc    setup
example-configs   qubes-release-3.0-signing-key.asc  test
iso               qubes-release-3.1-signing-key.asc  win-mksrcimg.sh
keyrings          qubes-release-3.2-signing-key.asc  win-mountsrc.sh
libs              qubes-release-3-signing-key.asc
Makefile          qubes-src
[user@arch-test qubes-builder]$ 



-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/710e6933-68da-4785-bf1d-6190e98cd8f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to