Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-08-16merged with upstreamHEADmasterAndreas Baumann
2024-08-10Revert "some temporary patching for [staging] and [testing] repos"Erich Eckner
This reverts commit d3d19c4fbb0fc632624d3625d5db322500a1fe8b. [staging] and [testing] are empty now
2024-08-09Makefile: remove version stuff from upstreamErich Eckner
2024-06-26doc: fix the example command in the help textupstreamMasterJaroslav Lichtblau
the '--pkgver' argument is not space-separated but instead specified with an equals sign. Component: pkgctl build
2024-06-26feat(checkpkg): enhance diff command for comparing file listsJakub Klinkovský
Replace `sdiff` with `diff` (also from `diffutils`) with the following parameters: - `--side-by-side` for the `sdiff`-like output - `--suppress-common-lines` for the `sdiff -s` behavior - `--width="$COLUMNS"` to use the full terminal width (long lines are still truncated but it is definitely better than the default width of 130 chars) - `--color=auto` just because 😉
2024-06-19fix(pkgctl): make sure git signing uses PGPChih-Hsuan Yen
Component: pkgctl repo configure
2024-06-18chore(release): version v1.2.1Christian Heusel
2024-06-15fix(common): guard the WORKDIR environment varChristian Heusel
This avoids the unwanted removal of the folder if someone has already pre-defined the variable. Fixes #219 Suggested-by: Levente Polyak <anthraxx@archlinux.org> Signed-off-by: Christian Heusel <christian@heusel.eu>
2024-06-11misc: add a editorconfig to devtoolsChristian Heusel
Signed-off-by: Christian Heusel <christian@heusel.eu>
2024-06-09fix(version): Ignore warnings when nvchecker ignores invalid versionsDavid Runge
Since version 2.15.1 nvchecker emits a warning for version strings that it consideres invalid (e.g. in the case of PyPI). These warning messages get in the way (the first version emitted via a warning is used as version to compare against) of retrieving the latest version of an upstream and therefore we ignore them. Component: pkgctl version check Signed-off-by: David Runge <dvzrv@archlinux.org>
2024-06-08test: fix the testcases so they pass againChristian Heusel
The expected output for these tests has now changed since git smash (which we test against) has changed their version scheme. Component: pkgctl version setup Signed-off-by: Christian Heusel <christian@heusel.eu>
2024-05-22fix: disable systemd-nspawn terminal coloringChristian Heusel
Systemd 256 introduces functionality which colors the terminal background on systemd-nspawn invocations which makes the pkgctl output look weird. Disable this bevaviour for pkgctl, so it stays active for arch-nspawn (for now). Component: pkgctl Signed-off-by: Christian Heusel <christian@heusel.eu>
2024-05-18doc: add manpage info for pkgctl, pkgctl-db(1) & pkgctl-buildMaharshi Basu
Changes made: - add description in doc/man/pkgctl.1.asciidoc - add description in doc/man/pkgctl-db(1).asciidoc - add manpage for pkgctl-db(1) in doc/man/pkgctl-db(1).asciidoc Fixes #231 Signed-off-by: Maharshi Basu <basumaharshi10@gmail.com>
2024-05-18feat: support bind mounting a tmpfs依云
A .cache can be bind mounted into the container to save the caches for reuse, but sometimes we want to exclude specific caches (because they don't work well, e.g. bazel's). Component: makechrootpkg
2024-05-18feat(mkarchroot): allow to specify file destination inside chrootFrédéric Pierret (fepitre)
Co-authored-by: Christian Heusel <christian@heusel.eu>
2024-05-18fix: consider all git repos inside the chroot safeJan Alexander Steffens (heftig)
Git 2.45.1 expanded its security checks to deny cloning even local repos that are owned by another user. Previously, this just affected network filesystems. On our buildserver, this prevents makepkg from cloning repos from our shared srcdest into the srcdir, if these repos were created by another packager. To disable this check, set `safe.directory` to `*`. This looks like a glob, but is really just a special value. The only other option would be to add each Git repository in srcdest to the configuration. Component: makechrootpkg
2024-05-10fix(version): escape pkgbase in nvchecker tomlLevente Polyak
This fixes issues with packages containing plus signs, that need to be escaped in toml as well as the extended grep regex. Component: pkgctl version check
2024-05-01chore(release): version v1.2.0Levente Polyak
2024-04-30feat(offload-build): fetch logs after building from the remote serverJakub Klinkovský
Since logs from offloaded builds are collected in a temporary directory on the remote server, it is rather difficult/error-prone to get to them, because the path changes in each rebuild. Fetching logs from the server into $LOGDEST makes it easier to investigate them and also brings the behavior of offload-build closer to archbuild. Log files are always downloaded, even for failed builds. Component: offload-build Signed-off-by: Jakub Klinkovský <lahwaacz@archlinux.org> Co-authored-by: Levente Polyak <anthraxx@archlinux.org>
2024-04-29fix(version): dont die if no PKGBUILD is foundChristian Heusel
So far the commands would stop execution if one of the target directories did not contain a PKGBUILD instead of just reporting failure for that directory. Fix this by replacing the 'die' calls with setting the error for the spinner facility. Component: pkgctl version check Component: pkgctl version upgrade Signed-off-by: Christian Heusel <christian@heusel.eu>
2024-04-28feat(repo): add repo clean command to remove untracked filesRobin Candau
This introduces the `pkgctl repo clean` command which removes every untracked files from local package repositories (via `git clean`). The usage is as simple as `pkgctl repo clean [OPTION] [PATH]` (where "[PATH]" can be equal to a wildcard "*"). Component: pkgctl repo clean
2024-04-28feat(arch-nspawn): add support for pacman CacheServerFelix Yan
pacman 6.1 added support for CacheServer which allows us to download packages faster and reduce the burden on tier0 server. They won't be used to fetch databases so it should be pretty safe in the repository consistency context. Component: arch-nspawn
2024-04-28fix(db): check valid target repo on db removeLevente Polyak
Return an error and abort operation when an invalid target repo is passed. Component: pkgctl db remove Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
2024-04-28feat(db): confirm list of all packages that will be removedLevente Polyak
Sometimes it isn't obvious which set of packages are removed from a split package when the pkgbase matches also a subset of a pkgbase. This can happen for example with bootstrapping packages, when the intention is to just remove a partial part of the bootstrap pkgbase. To make the intention more explicit, list all to be removed packages and await for confirmation. Component: pkgctl db remove Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
2024-04-27feat(db): add partial split package option to db removeLevente Polyak
By default passing a pkgbase removes all split packages, debug packages as well as entries from the state repo for all existing architectures. When using the `--partial` option it may most likely lead to undesired effects by leaving debug packages behind as well as dangling entries in the state repository. However, for specific use cases its required to get rid of old split package parts. Fixes #218 Component: pkgctl db remove Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
2024-04-27feat(arch-nspawn): set console mode to autopipesfan5
systemd-nspawn sets up a pts in the container by default which build scripts might use to ask for interactive input. This is only okay if the host side is also a TTY. The 'autopipe' mode deals with this situation appropriately.
2024-04-24fix(completion): fix erroneous completion variablesChristian Heusel
The architecture definition of the variable was using invalid bash syntax and was previously unused: $ _binary_arch=${DEVTOOLS_VALID_ARCHES[*]:0:-1} bash: -1: substring expression < 0 We therefore fix the definition of the variable and use it for the autocompletion of the offload-build command. Furthermore fix wrongly named architecture variables that have been missed from previous refactoring. Fixes #222 Component: completion Fixes: f961e2e ("completion: implemented structured declarative bash completions") Fixes: 4173e0a ("chore: refactor variable names in valid-{tags,repos}.sh") Signed-off-by: Christian Heusel <christian@heusel.eu> Co-authored-by: Levente Polyak <anthraxx@archlinux.org>
2024-04-23fix(release): ensure we release split package uploads as one batchLevente Polyak
Use a central location in common.sh to define the default rsync options. Switch to use batched uploads by targeting a partial directory which is not taken into account by db update. Instead, once all packages that belong to a split package group are uploaded into the .partial directory, all artifacts are moved in one batch into the staging directory of the repo server. This reduced the window of opportunity for a partial release significantly to a tiny window. Component: pkgctl release
2024-04-23feat(pkgctl): add internal update checksums to better control outputLevente Polyak
This allows us to have more control over the output and status logs. Using this method we are able to avoid cluttering the version upgrade subcommand while downloading sources for updating the checksums. Having this internally will also allow us in the future to have smart checksums updating by only trying to change the checksums of sources that have actually changed, for example when adjusting a patch file we should avoid trying to overwrite the archive checksums unintentionally. Component: pkgctl version upgrade
2024-04-23feat(version): let upgrade subcommand also update checksumsRobin Candau
This commit aims to make 'pkgctl version upgrade' also update checksums in addition of bumping the pkgver and reseting the pkgrel. Component: pkgctl version upgrade
2024-04-21merged with upstreamAndreas Baumann
2024-04-16fix: conflicting packages when using -IVekhir --
Originally fixed in b7893a2ca8e09062197129881bce3fd6700a573a, that approach created another bug when packages have several providers. In that case, pacman expects a number, so "yes" is not a valid answer, leading to an infinite loop. Using the undocumented, but stable option "--ask=4" allows to selectively change the default answer for conflicts, therefore properly fixing the underlying issue. See also: https://gitlab.archlinux.org/pacman/pacman/-/issues/60 Fixes #163 Component: makechrootpkg
2024-03-23test: add basic bats setup and test cases for `version setup`Levente Polyak
Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
2024-03-23fix(version): do not prompt for input on terminal during checkLevente Polyak
In certain scenarios, like when an URL is checked that asks for credentials or other kind of input, the process blocks and waits for stdin input. This isn't particularly useful during scripted execution and in our cases also just an indicator for like a none existing GitHub repository. To avoid this situation, disable git terminal prompts. Component: pkgctl version check Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
2024-03-23feat(version): add command to automatically detect and setup nvcheckerJelle van der Waa
Introduce a new version subcommand `setup` which does a best effort to generate the most minimal required .nvchecker.toml file for specific sources. It supports a wide range of common sources like: - Git, GitHub, GitLab, Hackage, NPM, PyPI, RubyGems, CPAN, crates.io The creation logic is based on matching a domain for a source which is something predictable and then simply passes an array of the url parts for every source creator to extract the useful bits out of the url array. Component: pkgctl version setup Co-authored-by: Levente Polyak <anthraxx@archlinux.org> Signed-off-by: Jelle van der Waa <jelle@archlinux.org>
2024-03-15src/makechrootpkg: Ensure git doesn't ask for credentialsTasos Sahanidis
2024-03-09doc(man): fix cut off page names by switching to modern asciidoctorLevente Polyak
Asciidoc is the old reference implementation in Python, which has some shortcoming. Specifically we are hitting cut off page names for long subcommands. Fix this by switching to a more modern implementation named asciidoctor. During the migration, get rid of the explicit asciidoc.conf file that was required to define a linkman macro, which is now supported out of the box. Fixes #170 Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
2024-03-09fix(drop-from-repo): avoid Git trying to push tags to the AURCaleb Maclennan
If users have enabled push.followTags in their Git config then dropping packages to the AUR spews errors because all the release tags from official repos are rejected by AUR repos.
2024-03-09fix(pkgctl): skip path arguments that are not directoriesMorten Linderud
Several subcommands accept multiple paths in a way that passing a wildcard is an expected use case. Previously this wasn't possible if the main directory contained any text files or scripts. Fix this by skipping none directory paths for such commands. Component: pkgctl Signed-off-by: Morten Linderud <foxboron@archlinux.org>
2024-03-08added more arch32 specific PKGBUILD patchingAndreas Baumann
2024-03-08disable parallel builds in MakefileAndreas Baumann
2024-03-08merged with upstream changesAndreas Baumann
2024-03-01Run makepkg with CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparseTasos Sahanidis
2024-03-01Revert "Preserve CARGO_REGISTRIES_CRATES_IO_PROTOCOL"Tasos Sahanidis
This reverts commit 8b8460731ddff4e6f6c3c9783770bdef04aa7b23.
2024-03-01Remove duplicate line added by accidentTasos Sahanidis
2024-03-01Preserve CARGO_REGISTRIES_CRATES_IO_PROTOCOLTasos Sahanidis
2024-02-29fix(completion): allow multi opts more than once in zshLevente Polyak
Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
2024-02-29feat(makepkg.conf): Add no-omit-frame-pointer flags by defaultFrederik “Freso” S. Olesen
RFC-26 proposes to add -fno-omit-frame-pointer and -mno-omit-leaf-frame-pointer to the default compilation flags to improve the effectiveness of profiling and debugging tools. See https://rfc.archlinux.page/0026-fno-omit-frame-pointer/
2024-02-29fix(drop-from-repo): avoid error when updating remote headLevente Polyak
We can only update the local ref to the remote head from main to master once we have actually pushed the master branch to the remote. If we do this too early, the call will simply error out. Instead, only update the local head for the configured remote after we have successfully renamed the branch and pushed it to the AUR. Fixes #212 Component: pkgctl aur drop-from-repo Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
2024-02-15feat(offload-build): use rsync instead of scpOrhun Parmaksız
This commit simply replaces the usage of `scp` with `rsync` for faster file transfer. Signed-off-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>