void-packages/etc/defaults.conf
Juan RP 75eca1b03e xbps-src: base-chroot-v2 (reduce artifacts/deps)
This patchset contains multiple changes to xbps-src and
its required package "base-chroot" for building packages
via chroot.

- moved xbps.d(5) conf files to `etc/xbps.d`.
- renamed xbps.d(5) repository files to `etc/xbps.d/repos-{local,remote}*`.
- do not set `--repository` to any xbps command that supports it,
  xbps-src now simply populates `rootdir/etc/xbps.d` with correct
  settings (taking care of CHROOT_READY/IN_CHROOT).
- Unless `-C` is set (to preserve builddir/destdir/autodeps), when
  entering to the chroot (if CHROOT_READY is set), xbps-src will
  clean up the masterdir and then perform a system update to always
  use a constant set of packages for that exact date.
- Improved some normal/error msgs.
- Includes support for `xbps>=0.58`.
- common/hooks: switch to bsdtar.
- base-chroot:
  - base-chroot-musl is gone, now unified for glibc/musl.
  - deps removed: gettext, mpfr, readline, texinfo, which, xz.
  - deps changed: tar -> bsdtar.

Effectively this reduces dependencies in `base-chroot`, makes
it unified for musl and glibc, switches xbps-src to use `bsdtar`
rather than GNU `tar` and `xz`, gets rid of useless host dependencies
like GNU gettext, texinfo, etc.

I've been testing these changes for 1 month or so already,
I was able to build from scratch `base-system` for both native
and multiple targets, i.e `./xbps-src -a target -Nt pkg base-system`
2020-01-05 10:44:56 +01:00

143 lines
4.2 KiB
Text

# --*-- shell --*--
#
# etc/defaults.conf
# default configuration of etc/conf
#
# DO NOT EDIT THIS FILE DIRECTLY; IT MAY BE REPLACED DURING UPDATES,
# EDIT etc/conf INSTEAD.
#
# To disable an option comment it out, don't set it to another value i.e:
# FOO=no -> wrong
# #FOO=yes -> correct
#
# Please also use ${FOO} style for shell variables because some parsers
# rely on this to work properly.
#
# [OPTIONAL]
# Enable optional arguments to xbps-install(1) for the host system.
# Currently used in the 'binary-bootstrap' and 'bootstrap-update' targets.
#
# NOTE: local repositories are handled automatically by xbps-src,
# but you can modify the default remote repositories at
# 'etc/xbps.d/repos-remote*.conf'
#
#XBPS_INSTALL_ARGS=""
# [OPTIONAL]
# Native Compilation/Preprocessor flags for C and C++. Additional settings
# for the target architecture are also declared in common/build-profiles/<arch>.sh.
#
XBPS_CFLAGS="-O2 -pipe"
XBPS_CXXFLAGS="${XBPS_CFLAGS}"
# [OPTIONAL]
# Linker flags passed to the compiler.
#
#XBPS_LDFLAGS=""
# [REQUIRED]
# Command to execute to gain root privileges when using the `update-sys`
# target to update your system.
#
XBPS_SUCMD="sudo /bin/sh -c"
# [OPTIONAL]
# Enable or disable ccache when building packages. The ccache directory
# is stored in the hostdir, i.e hostdir/ccache. For go builds this enables
# caching in hostdir/gocache.
#
#XBPS_CCACHE=yes
# [OPTIONAL]
# Enable or disable distcc when building packages. The distcc directory
# is stored in the hostdir, i.e hostdir/distcc.
#
#XBPS_DISTCC=yes
#XBPS_DISTCC_HOSTS=""
# [OPTIONAL]
# Number of parallel jobs to execute when building packages that
# use make(1) or alike commands.
#
#XBPS_MAKEJOBS=4
# [OPTIONAL]
# Enable recording git revisions in final binary packages; enable this
# if you are sure the package you are building is available in the
# void-packages git repository.
#
#XBPS_USE_GIT_REVS=yes
# [OPTIONAL]
# Enable running the (optional) do_check() function of a package.
#
#XBPS_CHECK_PKGS=yes
# [OPTIONAL]
# Enable building -dbg subpackages with debugging symbols. Please note
# that building with debugging symbols make take a long while in some
# packages even on computers with a fast CPU; as well as needs lots of
# RAM to properly build some packages.
#
#XBPS_DEBUG_PKGS=yes
# [OPTIONAL]
# Set the package compression format (defaults to xz). See xbps-create(1)
# for the available formats.
#
#XBPS_PKG_COMPTYPE=none
# [OPTIONAL]
# Set the repository compression format (defaults to gzip/zlib). See xbps-rindex(1)
# for the available formats.
#
#XBPS_REPO_COMPTYPE=zstd
# [OPTIONAL]
# Enable or disable global package build options, these options apply
# to all packages that support the matching options.
#
# To enable an option just define its option name; to disable an option
# prefix it with ~. Options must be delimited by commas, i.e 'opt,~opt2,opt3,~opt4'
#
#XBPS_PKG_OPTIONS=opt,~opt2,opt3,~opt4
# [OPTIONAL]
# Enable or disable package build options. Note that per package build options
# override the global options defined above for the matching package.
#
#XBPS_PKG_OPTIONS_foo=opt,~opt2,opt3,~opt4
# [OPTIONAL]
# Enable building package locally that are restricted legally for redistribution.
# NOTE: you can't distribute the sources or binaries for such kind of packages.
#
#XBPS_ALLOW_RESTRICTED=yes
# [OPTIONAL]
# Set the preferred chroot style. Available styles at common/chroot-style/*.sh:
#
# - uunshare (uses xbps-uunshare(1), user namespaces)
# - uchroot (uses xbps-uchroot(1), namespaces, setgid)
# - proot (uses proot, external, does not need special permissions)
# - bwrap (uses bwrap, external, does not need special permissions)
# - ethereal (uses root, needs no permissions, for disposable containers)
#
# The order is already set as shown above, but can be overriden below.
# Additional arguments to the chroot style can be passed in via XBPS_CHROOT_CMD_ARGS.
#
#XBPS_CHROOT_CMD=proot
#XBPS_CHROOT_CMD_ARGS=""
# [OPTIONAL]
# Enable to use the standard mtime of files. Otherwise it will be rewritten to
# the HEAD commit time.
#
#XBPS_USE_BUILD_MTIME=yes
# [OPTIONAL]
# When using the 'ethereal' chroot-style this switch must be activated, it is
# meant as safeguard against users casually destroying their systems
#
#XBPS_ALLOW_CHROOT_BREAKOUT=yes