Commit Graph

90 Commits

Author SHA1 Message Date
Gonzalo Tornaría 7231f47b26 etc/conf: implement XBPS_MIRROR for remote repos
Setting this variable will make xbps-src use an alternative mirror for
remote repositories.

Using this variable one can change the remote repository for all
architectures in a single setting and without the need to modify
`etc/xbps.d/repos-remote*.conf`. This is much more convenient as it
allows changing remote repos without a dirty worktree.

To use just add a line like the following to `etc/conf`:

    XBPS_MIRROR=https://repo-us.voidlinux.org/current

We also disable 00-repository-main.conf for cross so we don't use the
remote repo from the xbps package.
2021-12-22 23:12:06 +01:00
Piotr Wójcik 4f03807529 xbps-src: overwrite packages in local repo 2021-09-13 23:04:48 +02:00
Piotr Wójcik aa83569fcb xbps-src: add make_check=ci-skip 2021-04-26 18:49:15 +02:00
Piotr Wójcik 4ac333c3b1 xbps-src: allow to run without git
This makes possible to binary-bootstrap and build packages
with only base-system using tarball of void-packages.
2021-02-23 18:34:37 +01:00
q66 5922df60c7 xbps-src: make sure to apply FFLAGS properly like CFLAGS 2021-01-03 14:11:02 +01:00
Duncaen 3eed75216c xbps-src: remove proot chroot-style
proot is broken and result in random hard to debug issues,
this is the best way to not have new users use it.
2020-12-29 23:02:16 -08:00
Érico Rolim 83cc290601 xbps-src: add -K option for running the full testsuite.
Some packages have rather long test suites, with an option for a shorter
one. With this option, one can choose between shorter tests (-Q) or the
complete longer ones (-K).

This also allows CI to run only the shorter testsuites.

Make the appropriate changes to etc/default.conf and Manual.md as well.
2020-12-14 00:18:04 -03:00
Andrew J. Hesford 020c534439 xbps-src: rename texlive virtual pkg, default to native texlive 2020-07-14 15:54:26 -04:00
Juan RP f8eae3a419
srcpkgs: declare libGL/GLES/EGL as virtual pkgs and update pkgs.
virtualpkgs should be declared as "virtual?foo".

This makes "./xbps-src show-build-deps" suceed on pkgs
that had `depends="libGL"`.
2020-04-06 21:07:44 +02:00
Juan RP 715faef1a6
etc/defaults.conf: refer to xbps-{create,rindex}(1) for compression format. 2020-03-03 10:36:35 +01:00
q66 cd2e132ea1 xbps-src: per-architecture handling of repo confs
The new behavior is basically this:

1) Local repos are installed same as before.
2) Multilib configs are now handled only if they exist. They follow
   a naming system repos-{local,remote}-ARCH-multilib.conf.
3) Remote repo files follow naming repos-remote-ARCH.conf. If that
   does not exist, repos-remote.conf or repos-remote-musl.conf is
   used instead (fallback).
4) Cross follows the same behavior, just without multilib.

[ci skip]
2020-01-30 15:49:01 +01:00
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
q66 6783ab9f47 openjdk: update to 8u232b09, rename to openjdk8, native bootstrap
This updates OpenJDK 8 to a newer version and brings a bunch of
changes.

Newly, it is bootstrapped with openjdk7-bootstrap, so it does not
need to download binaries. It can also cross-compile and is patched
for musl and other platforms.

We're newly using the aarch64 port repo in order to get aarch64
JIT. For non-aarch64 platforms, the codebase is the same.

The symlink for /usr/lib/jvm/openjdk is also now gone and we're
using a unified java-VERSION-VENDOR naming.

Also general template cleanup.

[ci skip]
2019-11-24 16:33:30 -05:00
Juan RP 67cd850ebf
xbps-src: introduce XBPS_REPO_COMPTYPE for etc/conf.
This sets the repository data compression format, as explained
in xbps-rindex(1). By default set to `gzip'.
2019-06-25 10:52:37 +02:00
Aluísio Augusto Silva Gonçalves 3ad7858f09 etc/defaults.conf: point to xbps-create for compression formats
Ensure this comment is always up-to-date by pointing the reader to the
xbps-create manual.  Default is not xbps-create's, but comes from the
gen-pkg hook.
2019-06-25 10:40:46 +02:00
Juan RP 53b2aafb65
etc/repos-remote.conf: voidlinux.eu is no more. 2019-06-24 13:27:37 +02:00
maxice8 fadca94b98 common: add chroot-style 'ethereal' 2019-04-05 05:49:34 -03:00
maxice8 19f35a82c6
etc/defaults.conf: fix wording 2019-02-26 19:35:50 -03:00
maxice8 62240f4e40
etc/defaults.conf: mention bwrap 2019-02-26 17:28:11 -03:00
Michael Aldridge b1fa5d8398 xbps-src: Update mirror addresses 2018-09-07 12:13:40 +02:00
Michael Gehring e3f56ecb01 xbps-src: support caching go builds
Piggyback on the existing XBPS_CCACHE logic to enable/disable. Stored in
${XBPS_HOSTDIR}/gocache.
2018-03-19 08:29:05 +01:00
Michael Gehring a4a229cf64 xbps-src: use HEAD commit time for SOURCE_DATE_EPOCH
In order to make builds more reproducible SOURCE_DATE_EPOCH was set to
the time of the last commit that touched the template. Since trying to
reproduce a build from a different revision is futile (the most obvious
reason is that the source-revisions property includes the HEAD commit
hash) and looking up the commit in question can take several seconds,
stop wasting time an just use HEAD.

Closes: #12314 [via git-merge-pr]
2018-03-14 12:58:36 +00:00
Michael Aldridge 769fad6806 New package: nodejs-lts-8.9.0 2017-11-27 20:22:22 -08:00
Duncan Overbruck 570842f4a5 xbps-src: add etc/xbps.conf for extra xbps options (#8304) 2017-10-19 11:38:14 +02:00
Jürgen Buchmüller 5a11957d14 Merge branch 'master' into check 2017-05-02 09:18:52 +02:00
Michael Gehring 54fb7c9b9e etc/defaults.conf: fix aarch64* binary bootstrap/update 2017-03-13 08:01:11 +00:00
Jürgen Buchmüller c31dd888f6 xbps-src: implement a 'check' stage
Add another stage 'check' between 'build' and 'install'. It is be enabled using the
variable XBPS_CHECK_PKGS=yes and disabled if unset, set to "0" or "no" in your
local etc/conf.

A new xbps-src option `-q` for `quick` will disable XBPS_CHECK_PKGS by overriding it to 0.
If enabled, `common/xbps-src/shutils/xbps-src-docheck.sh` checks for an existing
`do_check()` function in the package's template and, if it exists, calls it.

A new template variable `checkdepends` may be present and list packages required
to run the `do_check()` function. Example: `checkdepends="bc unittest-cpp"`.
2017-03-08 11:33:48 +01:00
Satvik Sharma 5dc2824849 etc/repos-remote: add australian mirror
Closes: #5095 [via git-merge-pr]
2017-01-13 13:27:08 -05:00
Juan RP ef108a3af8 etc/repos-remote.conf: sort repo order to unbreak musl. 2016-11-04 13:21:27 +01:00
Christian Neukirchen ecc5dc0bb9 etc/repos-remote.conf: add aarch64 repo. 2016-09-17 17:13:32 +02:00
Duncaen b1ab524b1e etc/repos-remote.conf: add correct location for repo3 and repo4 2016-05-12 18:13:46 +02:00
Andrea Brancaleoni ab5b144dae etc/defaults.virtual: defaults to rkt-stage1-coreos 2016-05-04 10:26:52 +02:00
Juan RP 319b2a6689 Merge pull request #4125 from ebfe/notmuch
notmuch: update to 0.22.
2016-05-04 07:25:30 +02:00
Juan RP b092694736 etc/defaults.virtual: add missing pkgs to resolve all vpkgs (close #4124). 2016-05-03 11:33:59 +02:00
Michael Gehring 0ef175a0b9 etc/defaults.virtual: add emacs 2016-05-03 08:37:07 +02:00
Juan RP cadc6ffb83 etc/defaults.virtual: added phonon-backend. 2016-05-02 09:16:40 +02:00
Andrea Brancaleoni b52a035e2d rkt: update to 1.5.0. 2016-04-30 09:58:37 +02:00
Juan RP 433d2ecd21 etc/defaults.virtual: add libudev. 2016-04-30 09:46:37 +02:00
Juan RP d2bac19750 xbps-src: re-introduce etc/virtual.
The `etc/virtual` file declares the default package to be built for
virtual dependencies declared as "virtual?foo" in $depends.

Before this change, the run-time dependency was added as is to the final
binary package but no pkg providing this virtual pkg was built.

With this file we declare the *default* pkg to be built.

NOTE: "virtual?foo" is only applicable to *run* time dependencies, i.e
only those declared in $depends.
2016-04-27 20:16:59 +02:00
Juan RP ac5ce94884 etc/repos-remote: added lug.utdallas.edu void mirror. 2016-04-24 08:24:07 +02:00
Juan RP 7c0edc395b etc/repos-remote.conf: add commented out repo mirrors to keep track of them. 2016-04-23 20:52:44 +02:00
Juan RP da9b7bce98 etc/defaults.conf: switch to https for repo.voidlinux.eu. 2016-04-21 14:02:36 +02:00
Juan RP 7978233e78 etc/repos-remote.conf: use https for the musl repos. 2016-04-21 13:31:32 +02:00
Juan RP 42be387677 etc/repos*: switch to new url for musl repos. 2016-04-21 13:20:27 +02:00
Juan RP 4aa521495b etc/repos*: use https for repo.voidlinux.eu. 2016-04-21 11:03:51 +02:00
Juan RP d3bc0de1e7 xbps-src: get rid of etc/{defaults.,}virtual.
It wasn't too useful after all and this slowed down the dependency
process marginally.

We don't need this, we can live without this.
2016-03-22 10:39:45 +01:00
Enno Boland c83a4d96c4 hooks/pre-pkg: mtime rewriting is default on now. 2016-02-23 08:05:43 +01:00
Enno Boland 16050ad3f2 hooks/pre-pkg: fixed mtime support for packages.
overwrites the mtime of all files in a package with the commit-date
of the package.
2016-02-19 16:21:56 +01:00
Juan RP 784f75931d xbps-src: move compiler/linker defaults to env/hardening.sh.
The user can still set his/her defaults via etc/conf, and per
package in the templates.
2015-11-17 17:13:12 +01:00
Juan RP 26b301fecb etc/defaults.virtual: libressl-openssl -> libressl. 2015-10-30 15:10:44 +01:00