Commit Graph

1182 Commits

Author SHA1 Message Date
John 668b4a32ca xbps-src: don't mess with masterdir set in argv 2024-02-21 16:47:12 +01:00
classabbyamp bdf562aa27 xbps-src: add flag to show verbose messages
this will only really affect update-check for now
2024-02-17 19:48:52 -05:00
classabbyamp e95810b3a1
xbps-src: make print_cross_targets work outside of the root of the repo
if not in `void-packages/`, this only prints `*`
2024-02-10 02:01:24 -05:00
classabbyamp 7940dc3fb4
xbps-src: improve check for existing "masterdir" 2024-01-27 16:17:08 -08:00
classabbyamp 33a5320079
xbps-src: fix masterdir creation if "masterdir" exists
need to check if masterdir is for the requested arch or not
2024-01-27 15:52:48 -08:00
classabbyamp 99660045c2 xbps-src: add -A flag for host arch, create masterdir per host arch 2024-01-22 21:57:28 -06:00
0x5c f278cb40f1 xbps-src: disable NOCOLORS in CI
This allows having the message colours in CI, and only affects xbps-src itself
2024-01-05 19:18:28 -05:00
classabbyamp a13c842291 xbps-src: default XBPS_MAKEJOBS to `nproc`
previously this defaulted to 1. In some rare cases, nproc is not
desirable, but that can be easily overriden in the standard ways,
etc/conf or -jN.

For compatibility with other distros, it defaults to 1 when nproc
is not available.
2022-12-22 21:15:24 -05:00
Đoàn Trần Công Danh 4e33085570 xbps-src: fix repocache for binary-bootstrap 2022-11-18 23:39:56 +07:00
Duncaen 4c43245e0b xbps-src: add update-local and show-local-updates 2022-09-27 19:11:47 +02:00
Leah Neukirchen 52a245320b xbps-src: normalize usage message. 2022-08-15 16:36:21 +02:00
Jami Kettunen bda1ef7b88 xbps-src: check for existing packages before syncing chroot repodata
This significantly speeds up the package building process for build
scripts etc. that run './xbps-src pkg ...' on a long list of packages
that may already have up-to-date local packages built when configured
with XBPS_PRESERVE_PKGS set.
2022-06-17 18:56:48 -05:00
Piotr Wójcik 14d0b54a06 xbps-src: add flag to build broken packages
helps to check if build can be fixed
2022-04-26 21:29:11 +02:00
Michal Vasilek 1ccc884f1c xbps-src: make -E ignore remote repositories with -N 2022-04-17 19:39:03 +02:00
Michal Vasilek 769ea65a5e xbps-src: add strict mode 2022-04-07 20:27:41 +02:00
Piotr Wójcik 4f03807529 xbps-src: overwrite packages in local repo 2021-09-13 23:04:48 +02:00
Piotr Wójcik fd2555fa73 xbps-src: limit warning on file:/// mirror to related targets 2021-08-17 20:09:06 +02:00
Piotr Wójcik cd01d78d8f xbps-src: source msg_warn before its first use 2021-08-17 20:09:06 +02:00
Michal Vasilek a58bd42f49 xbps-src: let -I imply -N
don't synchronize repositories when not installing any packages
2021-07-02 22:02:24 -03:00
Michal Vasilek edd53432f2 xbps-src: abort bootstrap when tests are enabled 2021-05-31 22:41:54 +02:00
Piotr Wójcik aa83569fcb xbps-src: add make_check=ci-skip 2021-04-26 18:49:15 +02:00
Michael Aldridge 4f896929b9 xbps-src: remove remove-obsoletes 2021-04-16 00:02:06 -07:00
Michael Aldridge f5e766c248 xbps-src: Add remove-obsoletes command 2021-04-14 22:45:13 -07:00
Paper 425aaa15cb xbps-src: respect $XBPS_CHECK_PKGS 2021-03-21 17:56:22 -03:00
Duncaen 1f6ab168de xbps-src: simplify dbulk-dump output
* List dependencies of subpackages as part of the source packages
  dependencies, knowing the subpackage they are coming from does
  not matter to a build scheduler as long as xbps-src requires
  those to exist in the same way to main depends= have to exist.
* Resolve virtual? packages through existing means in xbps-src to
  avoid duplicating and possibly diverting from xbps-src's
  behaviour in tools that use dbulk-dump.
* Filter out dependencies on the template itself from sub packages,
  this matches the xbps-src behaviour and there is no need to
  have to duplicate logic for this into the scheduling tool.
* Error out on archs= restrictions as we do already on broken=
  and nocross=, there shouldn't be the need to discover archs=
  restrictions when attempting to build the package.
2021-03-12 18:33:11 -05: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
Piotr Wójcik 863bfa67d1 xbps-src: fix XBPS_USE_BUILD_MTIME option 2021-02-22 21:24:01 +01:00
Érico Rolim 42d7596981 xbps-src: add -K option to getopt string.
Was forgotten when the actual option was added.
2021-02-11 02:40:09 -03:00
Toyam Cox 01e896422a xbps-src: dbulk-dump: remember to print bootstrap 2021-02-03 00:54:16 -05:00
Toyam Cox 7f861962bc xbps-src: Improve the showing of variables 2021-01-27 15:47:22 -05: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 ec223373c6 xbps-src: source cross profiles in show-var when using -a switch.
This allows the user to query for variables such as XBPS_CROSS_TRIPLET,
which are only available in a cross-build context.
2020-12-23 16:14:53 -03: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
Piraty e75193bd38 xbps-src: don't remove autodeps on `clean <pkg>`
previously, xbps-src clean foo didn't clean autodeps but
only foo's builddir and destdir.  This is useful for clean
rebuilds without re-installing all dependencies.

Fixes: 795429f1a4
2020-11-28 14:45:49 +01:00
gt7-void 795429f1a4 xbps-src: fix do_clean
It has to be run before remove_pkg_statedir.

Also, run remove_pkg_autodeps as well.
2020-11-25 23:14:29 +01:00
Érico Rolim d6c8f1b99e Disable Travis CI.
- Remove .travis.yml, common/travis/docker.sh.
- Change references to travis to be more generic.
- Manual.md: Orient against using CI logs in broken= or nocross=.
2020-11-21 00:11:30 +01:00
Piotr Wójcik 15e7a92951 xbps-src: make build options from config ang flags work together
Flag options was appended to XBPS_PKG_OPTIONS, but was later
overwritten by sourcing config. Instead, pass only flags
options in separate variable and join at very end.
2020-09-07 22:18:29 +02:00
Piotr Wójcik 6efc7dd98d xbps-src: quote wrksrc to allow whitespace 2020-09-03 21:03:32 +02:00
Érico Rolim 5f3dd33688 xbps-src: expand note about -t flag. 2020-09-03 19:26:32 +02:00
Đoàn Trần Công Danh 339e7c6b4d xbps-src: use internal config in foreign environment
When xbps-install is called without "-C", xbps-install will pick
configuration from the location configured at build time.
Should the default location not have a valid repository configuration,
we couldn't run binary-bootstrap.

On bootstrapping from scratch, without this change, xbps looks into
system configuration, which isn't what we want.

Run xbps-install with our internal configuration instead.
2020-08-22 13:33:45 +07:00
Piotr Wójcik dabbbffabf xbps-src: -p argument for showing more variables 2020-07-13 19:52:53 +02:00
Đoàn Trần Công Danh 20f9bedefb xbps-src: use $XBPS_GIT_CMD for git 2020-05-23 06:59:24 +00:00
Piotr Wójcik b2d5724420 xbps-src: document all options 2020-05-20 19:26:11 +02:00
John 582046b927 xbps-src: allow loading xbp-src.conf from XDG compliant dirs 2020-05-08 15:16:50 -07:00
Toyam Cox 4e815ac29e xbps-src: restore show-pkg-var, new under new name
This reverts commit a23934ed94.
2020-05-07 19:11:11 -04:00
Toyam Cox a23934ed94 xbps-src: rework show-pkg-var to reduce effort 2020-05-07 11:38:17 -04:00
q66 84231f88f8 xbps-src: potentially allow ppcle masterdirs on ppc64le hosts 2020-04-30 00:40:45 +02:00
Juan RP 958c4a0e11
xbps-src: reduce host dependencies in `bootstrap`.
bison, flex, libtool, gettext, texinfo are not necessary
unless a bootstrap pkg uses gnu-configure and we run autoreconf.

I performed a full bootstrap build on my system that does not
contain any of those pkgs and it succeeded.

Please do not rely on autoconf/automake for any "bootstrap" pkg.
2020-04-06 13:15:37 +02:00
Piraty d4a585920c xbps-src: document -q 2020-03-27 08:51:04 +00:00
Piraty c84e307c68 xbps-src: correctly cleanup masterdir/tmp (really)
previous commit led to
```
rm: refusing to remove '.' or '..' directory: skipping 'void-packages/masterdir/tmp/.'
rm: refusing to remove '.' or '..' directory: skipping 'void-packages/masterdir/tmp/..'
```
2020-02-26 19:04:36 +01:00