- Jul 22, 2022
-
-
It's possible that the cursor does not reappear after pressing ^C during shutdown. In my case, I noticed this when pressing ^C after getting results from `pacman -F` -- this can reasonably reliably be triggered by issuing a file query and pressing ^C shortly after results are shown. There are two reasons for this issue: 1. The graceful SIGINT handler is removed at the start of cleanup(), but the window from entering cleanup() to reaching exit() is non trivial. The main offender is FREELIST(pm_targets), which on my T14s takes >0.1s to execute. This means that if you are unlucky enough to press ^C while there, the cursor isn't coming back, because we haven't issued any command to show the cursor again yet, and the userspace signal handler is already blown away. 2. Moving console_cursor_show() to earlier in cleanup() only half solves the issue. While it's fine not to flush after _hiding_ the cursor, since it will at least make itself apparent before any other text reaches the screen, _showing_ the cursor must be followed by flushing stdout, because once the graceful SIGINT handler is gone, if you press ^C, no flush will be triggered (and thus there will be no cursor). This fixes the issue by always starting out by showing the cursor again at cleanup() time. This means that no matter where we get caught at ^C, we will not end up leaving the terminal without its beloved ensign. Signed-off-by:
Chris Down <chris@chrisdown.name> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- Jul 21, 2022
-
-
The last user of ABORT_SIGINT was removed in commit 84723cab ("Cleanup the old sequential download code"), and this isn't exported as part of the public API. Signed-off-by:
Chris Down <chris@chrisdown.name> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Extend print-format with checkdepends, depends and makedepends. Signed-off-by:
Jelle van der Waa <jelle@archlinux.org> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Signed-off-by:
Jelle van der Waa <jelle@archlinux.org> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
alpm_pkg_get_builddate() and alpm_pkg_get_installdate() both return -1 on error. Correctly handle the error condition in pacman. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Extend --print-format with all expac format strings which can be easily added without conversions and through a simple C macro. Signed-off-by:
Jelle van der Waa <jelle@archlinux.org> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Package type is not relevant to alpm or even exposed to front-ends in any way. Signed-off-by:
Andrew Gregory <andrew.gregory.8@gmail.com>
-
Signed-off-by:
Andrew Gregory <andrew.gregory.8@gmail.com>
-
This adds a mechanism for package builders to add arbitrary data to packages that is not necessarily relevant enough to the package installation process to gain first-class support in alpm. Currently these fields have to be added to parsers with a "not actually used" comment and can't be retrieved through the API. Extended data is stored in "name=value" format in the xdata field (%XDATA% in desc files): xdata = pkgtype=debug or %XDATA% pkgtype=debug Signed-off-by:
Andrew Gregory <andrew.gregory.8@gmail.com>
-
- Jun 25, 2022
-
-
Allan McRae authored
One instance was missed in b0a2fd75. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
This allows for parsing the output of: pacman --upgrade --print-format '<format>' pkg.zst without having to remove info messages from it. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
In some cases packages are built outside of a directory which contains pkgname-pkgver, this results in source listing in debug packages having a conflicting path like `/usr/src/debug/build/` which is not ideal. This patch ensures we always include the pkgbase to ensure the paths are unique. Signed-off-by:
Morten Linderud <morten@linderud.pw> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
The feature has been introduced in commit a33cdac1 The buildinfo version has been bumped in commit 0428f621 Signed-off-by:
Levente Polyak <anthraxx@archlinux.org>
-
- Jun 15, 2022
-
-
Allan McRae authored
Currently our gitlab CI is failing due to valgrind breakage. With Arch stripping glibc, valgrind now requires debuginfod to be active. However the gitlab CI system combined without our testsuite does not retrieve these symbols, even when the appropriate environmental variable is set. Work around this by installing the glibc-debug package directly using a slight kludge... All blame for this approach is assigned to foutrelis! Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- May 31, 2022
-
-
Allan McRae authored
Arch Linux is adding source signing PGP keys to their package source tree alongside PKGBUILDs in the form keys/pgp/$fingerprint.asc. As the PGP keyserver infrastructure is a mess, this helps other people validate sources in a PKGBUILD. Add the keys to source packages if found alongside the PKGBUILD. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- May 18, 2022
-
-
Allan McRae authored
The documentation for the license array was specific to Arch Linux. Remove it and some minor other Arch Linux specific references. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- May 11, 2022
-
-
Allan McRae authored
We use a multi step process during stripping to ensure permissions do not get changed. However, if the initial objcopy fails, the subsequent cat results in a blank file. Abandon early if objcopy fails. Fixes FS#74486 Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- Mar 10, 2022
-
-
bsdtar uses the "pax" TAR archive format by default, which has support for storing sparse file information in the archive. Unfortunately this is a source of unreproducibility because the sparse encoding is taken from the file system and different file systems handle sparse files differently: some file systems have no support for sparsely encoded files at all, and even file systems with sparse file support can report different file information for identical files due to differing implementations. As a real world example where this happens, consider the Arch Linux package "brotli-testdata 1.0.9-7", which contains a sparsely encoded all-zeros file "usr/share/brotli/testdata/zeros". Building this package on a btrfs file system yields a different package than building it on tmpfs or ext4 solely due to different sparse file information that gets recorded in the package tarball. To improve the reproducibility of archives containing sparsely encoded files, libarchive version 3.6.0 introduces a new --no-read-sparse option. This skips reading sparse file information from disk entirely and therefore stores files "expanded" in the archive, which is the only way to make them reliably reproducible across file systems. makepkg will use this option if libarchive is recent enough to support it, which is detected at build time. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- Mar 07, 2022
-
-
db and pkg store a pointer to the handle for internal use but don't actually provide a way for a user to get it. Making this accessible is more convenient for front ends and FFI wrappers. For example, in other languages it's common to return the error value directly. To achieve this the python and rust wrappers also store their own pointer to the handle inside their own pkg/db wrappers. Exposing this would allow the wrappers to forgo the extra pointer and just return `pkg.get_handle().last_error()`.
-
Signed-off-by:
Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Signed-off-by:
Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- Mar 06, 2022
-
-
Allan McRae authored
Parsing of Content-Disposition relies on well formed headers. A malformed header such as: Content-Disposition=""; will result in a strnduppayload->content_disp_name, -1, ptr), which will copy memory until it hits a \0. Prevent this by only copying the value if it exists. Fixes FS#73704. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
In order to use WKD in pacman -U/--upgrade operations, we need to get the packager information from the .PKGINFO within the package. That has obvious security implications. e.g. something like this could convince a user to download a different key to what they expect: packager = foo bar <>^[[2K^[[0G:: Import PGP key DEADBEEF, "foo <bar> While downloading an untrusted key has little impact due to the web-of-trust model used by pacman, this could be bad in combination with an exploit that allowed trust of keys in the keyring to be altered. To be safe, do not use WKD when installing using -U. Fixes FS#73703. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
Avoid a segfault when a search of the keyserver returns that the key is found but returns no primary IDs. We are then likely going to fail the import, but attempt anyway because no-one know what a keyserver will do! Fixes FS#73534. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
Looking up a key using WKD just ensures you have a key with the same email address, it does not ensure that a key with the correct fingerprint has been downloaded. Check a key with the relevant fingerprint is available after a WKD import.
-
This is useful for bindings as it guarantees the value will not be changed. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
Using meson.source_root() and meson.build_root() are deprectated in meson-0.56. Using current_source_dir() or current_build_dir() (which have been available in all Meson versions) would require manually adding "../" in some places. Instead, use project_source_root() and project_build_root() and require meson-0.56. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
Removes "Future-deprecated features used", but reuires meson-0.55 Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
Upstream is changing the default from false to true. This makes no difference to us, so just set as the future default. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
Upsteam is warning about future change in the run_command check argument. Ref: https://github.com/mesonbuild/meson/issues/9300 Signed-off-by:
Allan McRae <allan@archlinux.org>
-
We want to use -flto=auto in Arch Linux to speed up building, but we can't hardcode it in buildenv/lto.sh because other downstreams might have clang < 13.0.0 which did not recognize -flto=auto as equivalent to -flto=full. Introducing an LTOFLAGS variable to makepkg.conf seems the way to go. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- Jan 13, 2022
-
-
Allan McRae authored
Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- Jan 09, 2022
-
-
This implements pkgtype into .PKGINFO. This is useful to ensure tools parsing packages do not miss important context on the creation of the package. For instance discovering if a given .pkg.tar is a debug package, one would have to do heuristics on the pkgdesc and "${pkgbase}-debug". However both of these values are controlled by the packager. Similarly, the heuristic for discovering split packages is if pkgbase and pkgname differ, which can happen in any package as both values are packager controlled. This should ensure we don't need to rely on heuristics and instead include the context of how the package was created. Signed-off-by:
Morten Linderud <morten@linderud.pw> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
This moves us from the fairly ugly AWK parsing line to debugedit which originally comes out of the rpm project. The original code has issues parsing anything that was not straight C/C++ and languages like Rust or Go would return invalid source code files. debugedit handles all these cases better. Fixes FS#66755 Fixes FS#66888 Fixes FS#65677 Signed-off-by:
Morten Linderud <morten@linderud.pw> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
This means options=('!buildflags') will disable the addition of CFLAG etc for LTO and debug building. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- Jan 02, 2022
-
-
Adds the %a format specifier to allow printing of a target's arch when using --print-format. Signed-off-by:
Jonathan Sköld <arch@skold.dev> Signed-off-by:
Allan McRae <allan@archlinux.org>
-