Commit Graph

577 Commits

Author SHA1 Message Date
Đ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
Piotr Wójcik 1b9578b20c xbps-src: explicitly disallow pattern on build deps
It is not possible to use version other than currently in template.

Specifying pattern breaks build if dependency isn't in binary repo
already. That it worked when in repo was a coincidence.

Let's detect exact version requirement with regex equivalent to
`xbps-uhelper getpkgname`.

    bash-5.1$ for x in a-{a,0,-,_}{a,0,-,_}{a,0,-,_}{a,0,-,_}{a,0,-,_}{a,0,-,_}{a,0,-,_}{a,0,-,_}; do [[ $x = *[\>\<]* || $x =~ -[^-_]*[0-9][^-_]*_[0-9_]+$ ]]; bash=$?; xbps-uhelper getpkgname $x > /dev/null 2> /dev/null; xbps=$?; if [ $bash != $xbps ]; then echo $x; fi; done
    bash-5.1$

Co-authored-by: Duncaen <duncaen@voidlinux.org>
2023-02-13 20:09:29 -05:00
zlice 12e6985c34 common: cleanup trailing whitespaces 2023-02-07 03:26:02 -05:00
classabbyamp 88df0eba0f common/xbps-src/shutils/: add bootstrap repo 2023-02-03 20:32:46 -06:00
Leah Neukirchen b4f4c4cbdb common/xbps-src/shutils/chroot.sh: pass arguments to xbps-shell
Some software reads the shell from /etc/passwd and expects it to
implement standard flags like -c etc.
2023-01-24 18:07:16 +01:00
Gonzalo Tornaría 1d4a9d6c71 xbps-src: keep http_proxy and other lowercase proxy variables 2023-01-04 22:24:13 +07: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
classabbyamp 7c8f15bf1b common/xbps-src/shutils/show.sh: make show display consistent
previously, if there was a newline in some variables, it would not format
properly in `xbps-src show`. This fixes it by always splitting it by word
in some cases, like if there is a new line in the variable's value, and
removing internal commas in some cases.

This logic was split into a function for consistency.

fixes #40996

Example:
```
$ ./xbps-src show keepassxc
pkgname:	keepassxc
...
License(s):	GPL-3.0-or-later
License(s):	BSD-3-Clause
License(s):	CC0-1.0
License(s):	LGPL-2.0-only
License(s):	LGPL-2.1-only
License(s):	LGPL-3.0-or-later
License(s):	Nokia-Qt-exception-1.1
License(s):	MIT
License(s):	BSL-1.0
```
2022-12-18 19:27:01 -05:00
icp 5f0e7218eb common/xbps-src/shutils/update_check.sh: tweak url and rx for git.sr.ht
Accommodate for tarballs in refs named after commit hash.
2022-12-04 21:37:30 -05:00
classabbyamp e409ea0c81 common/xbps-src/shutils/update_check.sh: ignore pkgs without distfiles
unless they use the update override file
2022-11-27 21:22:48 -05:00
Đoàn Trần Công Danh 8c5358f792 xbps-src: set wrksrc to $pkgname-$version unconditionally 2022-11-08 22:30:37 +07:00
Michal Vasilek fe352426bd xbps-src: don't use deprecated egrep
grep 3.8 now prints a warning that egrep is deprecated and we should use
grep -E instead
2022-10-22 15:33:42 +02:00
Heinrich Kruger 7c3f5a15b9
xbps-src: use unique names for bulk update commands
A regression introduced in 4c43245e0b is causing the 'xbps-src update-sys'
command to skip the final step of installing the updated packages.

This happens because the `cmd` variable name clashes with a loop
variable used in common/environment/setup/install.sh script (line 16).
Thus the `"$cmd" == installed` comparison
(common/xbps-src/shutils/bulk.sh line 122) fails and the installation
step is skipped.

Using unique variable names in `bulk.sh` avoids this problem.

Closes: #39969 [via git-merge-pr]
2022-10-15 15:55:37 +02:00
Duncaen 4c43245e0b xbps-src: add update-local and show-local-updates 2022-09-27 19:11:47 +02:00
Đoàn Trần Công Danh c845693ffb update-check: update all gnome case to have both ftp. and download. 2022-09-06 18:51:11 +07:00
Đoàn Trần Công Danh 875b1f9806 update-check: special case for XFCE Archive 2022-09-06 18:51:11 +07:00
Duncaen cdbac60a1c
update-check: use gitlab settings for code.videolan.org 2022-08-29 23:26:04 +02:00
icp 2760187144 common/xbps-src/shutils/update_check.sh: tweak url and rx for codeberg
Accommodate for more patterns in distfile urls.
2022-08-24 14:01:31 -04:00
tibequadorian 23e9d95be6
common/xbps-src/shutils/update_check.sh: also work for subpackages
closes #36190
2022-08-07 18:37:07 -04:00
classabbyamp 5c6ae7a463 common: add disable_parallel_check 2022-06-23 23:08:03 -05:00
Piotr Wójcik fddef76fcc xbps-src/shutils/update_check.sh: change gitlab check to handle old urls 2022-05-14 15:36:27 +02:00
John 36274904cf xbps-src/shutils/update_check.sh: change gitlab check to handle subgroups
The `/-/` sequence is always between e.g. archive and the repo path,
so this should work reliably for distfiles.
If gitlab is used only as a homepage, this still wroks if homepage
points to the base repo (which it usually does)
2022-05-14 15:33:46 +02:00