Commit Graph
540 Commits
Author SHA1 Message Date
Duncaen d0b12f4c9f xbps-src: add -e, like -E but only checks local repos 2026-07-19 19:17:26 +02:00
classabbyamp 1fa8ecb988 common/xbps-src/shutils/update_check: fix git forge regex 2026-05-07 17:18:12 -04:00
classabbyamp 5f7ed94a68 common/xbps-src/shutils/update_check: use info/refs for checking common git forges
this endpoint is intended for git usage and while it is "binary", it is text and
has all the tags, which is what we care about

these pages are also much smaller than the web or even an atom feed, so
this should be more efficient
2026-05-07 09:32:35 -04:00
Duncaen d4a940874c xbps-src: fix clean-repocache
xbps-remove needs the right rootdir to not remove packages still required
by repos. Without it it will just delete everything since it can't be
found in any of the registered repositories.
2026-04-21 18:56:07 +02:00
Duncaen 1db9485d28 xbps-src: add option to not sync repositories 2026-02-22 17:07:32 +01:00
Gonzalo Tornaría 23dca3e101 zoom: fix update-check 2026-01-10 10:26:48 +07:00
Đoàn Trần Công Danh fcfb7a4089 update-check: R-cran 2025-12-24 08:44:01 +07:00
Duncaen 4a50ddadb6 xbps-src: split out non-package environment setup in setup_pkg into setup_env 2025-11-28 23:36:50 +01:00
Duncaen fb9e41a1d1 xbps-src: support temp overlays with bwrap 2025-09-26 16:25:03 +02:00
Đoàn Trần Công Danh 231599a49e update-check: for Qt 2025-09-20 06:47:13 +07:00
Gonzalo Tornaría 751f08eec6 shutils/build_dependencies.sh: non-recursive check
In #54633 this was implemented for host dependencies.
Here we do the same for target and runtime dependencies.

See 3832128a0a
2025-09-14 10:41:28 -04:00
classabbyamp 225525c039 common/xbps-src/shutils/common: automatically binary-bootstrap if not already done
instead of just giving an error message, we can just do this
automatically. if the user wants to do a source bootstrap, they should
know to do this explicitly.

so many people ask how to fix this error, especially now that `-a`
implies the matching libc's `-A`, so let's make it more automatic.
2025-08-22 16:17:42 -04:00
Duncaen 0d99f54fbc xbps-src: use remote staging 2025-07-17 22:13:33 +02:00
classabbyamp 2d3f6aadf5 common/xbps-src/shutils/common: only complain about do_install in main pkg
this file is also sourced during subpackage install, so a metapackage
that has non-meta subpackages will source this and scream because there
is no do_install
2025-06-12 23:29:17 -04:00
classabbyamp 479bef3b2f common: define meta-packages with metapackage=yes
Overloading `build_style` for meta-packages has always felt very hacky,
and it prevents having the main package be a meta-package (with non-meta
subpackages) and using a `build_style` at the same time (example of
trying to hack around that: 62c0c08e18).
It also can create confusion about how subpackages work if you can
define a `build_style` there (but only `meta`).

This makes using `build_style=meta` an error at the package and subpackage
level, and replaces it with a new variable (`metapackage=yes`).

A pkglint for non-empty meta-packages is also added.
2025-06-12 20:15:05 -04:00
Đoàn Trần Công Danh 3cbe04c9bf xbps-src: avoid double slash on DESTDIR 2025-06-09 13:35:13 +07:00
icp cd51ef0c0e xbps-src: improve update-check pattern for GitHub 2025-06-08 19:56:55 +02:00
Duncaen 9323056ac2 xbps-src: disable file expansion in show_pkg_var 2025-05-28 00:45:04 +02:00
Gonzalo Tornaría 3832128a0a shutils/build_dependencies.sh: non-recursive check 2025-04-18 18:27:24 -04:00
classabbyamp 17efb6163a common: move handling of rdeps, shlib-provides, shlib-requires files
to XBPS_STATEDIR. There's no need for them to pollute PKGDESTDIR. Keep
INSTALL.msg/REMOVE.msg handling as-is for now because it's a little more
complex. Keep the pkglints for these files because xbps still ignores
them.
2024-12-10 08:31:36 -05:00
Đoàn Trần Công Danh ed7bb27748 update_check: ignore 6.10 for 6.1.y series 2024-07-19 14:16:40 +07:00
Đoàn Trần Công Danh 2fa4a65baa update_check: fix xfce pattern 2024-06-12 20:34:57 +07:00
Đoàn Trần Công Danh d218f45bf7 update_check: add pypi link, strip kf6- prefix 2024-04-29 13:41:59 +07:00
Đoàn Trần Công Danh da20a0b55d update-check: better pattern for Python 3 2024-04-24 06:56:20 +07:00
Gonzalo Tornaría 7bd875c33f ./xbps-src show-build-deps: include checkdepends when using -Q or -K
Due to this change, `./xbps-src sort-dependencies` will take
checkdepends into account when using -Q or -K.

Before this commit, if `pkgA` checkdepends on `pkgB`, sort-dependencies
could still print `pkgA` before `pkgB`. This causes CI to build `pkgB`
twice: first when building `pkgA`, which forces implicit build of pkgB;
second when building `pkgB` (explicit, so it will ignore the package is
already built).

The implementation uses `skip_check_step()` from previous commit, for
consistency, so checkdepends are only taken into account if the check
step would be enabled.

In particular, nothing is changed unless -Q or -K flag is passed.

EXAMPLE:

Before:
```
$ ./xbps-src -Q sort-dependencies python3-process-tests python3-pytest-cov
python3-pytest-cov
python3-process-tests
```

After:
```
$ ./xbps-src -Q sort-dependencies python3-process-tests python3-pytest-cov
python3-process-tests
python3-pytest-cov
```
2024-04-08 08:57:46 +07:00
Gonzalo Tornaría ebe26129ef common/xbps-src/shutils/build_dependencies.sh: implement skip_check_step()
This function contains the logic that determines whether the check step
will be skipped for the current pkg, taking into account `make_check`.

Use this new function in `install_pkg_deps()` so that it uses a more
accurate condition to skip installing check dependencies.

For instance, check dependencies for a pkg with `make_check=extended`
will no longer be installed when using `-Q`. Similar for `make_check=ci-skip`.

Replaces: #46207
2024-04-08 08:57:46 +07:00
icp 5e795a9424 xbps-src: fix update-check pattern for gitlab
Closes: #49475 [via git-merge-pr]
2024-03-23 07:41:20 -04:00
Andrew J. Hesford 489e05e3f3 xbps-src: allow curl to request compressed responses in update-check 2024-03-23 07:35:43 -04:00
oreo639 df7a75346e Revert "chroot.sh: force install glibc and libxcrypt-compat to rebuild"
This reverts 9fe1dba9c7

The issue was resolved in e255843fd1
2024-03-17 14:54:27 -07:00
classabbyamp b3c54d73af common/xbps-src/shutils: add function for printing verbose messages 2024-02-17 19:48:52 -05:00
Đoàn Trần Công Danh b732d04377 update_check: update pattern for [4-9].x 2024-02-14 14:18:56 +07:00
Đoàn Trần Công Danh fcf4ea51dc update_check: Update GNOME_SITE pattern
- GNOME_SITE provides a list of latest version,
  which is easier to be parsed.
- Most of 1.x and 2.x series are not even/odd version anymore.
2024-02-14 12:03:54 +07:00
Gonzalo Tornaría 15d42f788d common/xbps-src/shutils/show.sh: fix show-build-deps for *-32bit deps 2024-01-09 09:30:43 -05:00
0x5c a5a7821a67 common/xbps-src/shutils/common.sh: ensure white text in msg_normal
Most terminals see '1m' as being a "bright colour" modifier, but others
consider it to be the "bold font" modifier, like the GitHub Actions log.

'97m' is a standalone "bright white" that is supported in most terminals,
including GitHub Actions, and is ignored where not supported.
2024-01-05 19:18:28 -05:00
0x5c 944ab17b06 common/xbps-src/shutils/build_dependencies.sh: convert to msg_normal
There remained two locations where the functionality of msg_normal was manually
implemented.
2024-01-05 19:18:28 -05:00
Đoàn Trần Công Danh 2035d46d91 chroot.sh: split between glibc and musl path 2024-01-05 16:27:35 +07:00
Đoàn Trần Công Danh 9fe1dba9c7 chroot.sh: force install glibc and libxcrypt-compat to rebuild 2024-01-05 16:23:40 +07:00
classabbyamp 9f79d71bee common/xbps-src/shutils/chroot.sh: support importing other keys
When packages in `hostdir/binpkgs` are signed, it causes `xbps-src` to
annoyingly request to import the associated key (every time, in the case
of automation tools like `xxbuild` or `ymir`). This allows the user to
add their personal public key `.plist` to `etc/repo-keys/` so this
prompting does not happen.
2023-11-25 15:27:24 -05:00
Duncaen a0d2860dab xbps-src: add default build option description
Most descriptions already just use this format anyways.
2023-11-12 19:36:34 -05:00
q66 937272e967 xbps-src: abstract away non-portable stat(1)
This implements semi-portable abstractions for both GNU and BSD
flavors of stat.
2023-09-14 08:48:59 +07:00
icp b544a09b7b common/xbps-src/shutils/update_check.sh: early return for disabled update checks 2023-09-08 18:37:48 -04:00
classabbyamp 95ed99c92d common/xbps-src/shutils/update_check: add ability to disable update-check
useful for cases where update checking does not make sense or is
impossible
2023-09-08 04:33:16 -04:00
Leah Neukirchen ac0ca32dca add riscv64 profiles 2023-08-25 17:06:56 +02:00
icp fc68d5f800 common/xbps-src/shutils/update_check.sh: fix url for gitlab 2023-05-31 09:40:00 +07:00
OpenSauce04 f3888e3b54 xbps-src: Replace non-standard English "unexistent" with "nonexistent" 2023-04-17 12:44:48 -05:00
0x5c 97724fb539 shutils/build_dependencies.sh: print "with" before build style/helper names
Messages like "building [rust] for <platform>" could lead to mild panic as they
might be read as "building <large toolchain> on your laptop".

Simply adding "with" before the style/helpers should solve that.

It works for build_style, build_helper, both, and none.

=> ircdog-0.4.0_2: building with [go] for x86_64...
=> firefox-111.0.1_1: building with [rust] for x86_64...
=> riff-2.23.2_1: building with [cargo] [rust] for x86_64...
=> discord-0.0.26_1: building for x86_64...
2023-04-12 23:49:09 -04:00
Gonzalo Tornaría c588bf7c98 update_check.sh: allow _ in github tarball filename 2023-03-25 22:51:25 +01:00
Đoàn Trần Công Danh a13d9ef8da font-sil-ezra: add update pattern 2023-03-18 22:14:27 +07:00
Đoàn Trần Công Danh c2b3fdfd4d update_check: pattern for sil.org 2023-03-18 21:41:35 +07:00
mhmdanas 0fa47e5979 common: use HTTPS where working. 2023-03-07 07:44:23 +07:00