- Jan 16, 2025
-
-
Allan McRae authored
Repeated values in the arch array can result in architecture specific fields being repeated when using --printsrcinfo. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- Jan 10, 2025
-
-
Allan McRae authored
Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- Jan 09, 2025
-
-
Allan McRae authored
If sandboxuser is not set, pacman/libalpm does not handle moving incomplete download files out of the temporary download directories and into the cache. This leave download_XXXXXX directories in the cache that cause warnings on -Sc operations. Initialise the sandboxuser with the username of UID 0 (root on most systems). Fixes #209. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- Jan 08, 2025
-
-
Allan McRae authored
Variable replacements are not performed on code blocks leaving the example Include usage with '{sysconfdir}/pacman.d/mirrorlist'. Replace this with '/etc' consistent with other example blocks in the man page. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
The check for the format of the PACKAGER variable did not align with the rest of the function where it was located. Move to its own function. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
We use NPROC for managing the number of parallel jobs to run, so it is essentially that this is a valid number. Add a lint pass, and move the setting of the default value to this location. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- Jan 03, 2025
-
-
Johan Förberg authored
Signed-off-by:
Johan Förberg <johan@forberg.se>
-
- Dec 28, 2024
-
-
Allan McRae authored
Parallel processing of file stripping is causing a TOC/TOU race when copying source files into the debug location resulting in error messages from cp. While hiding this error is not the ideal solution, it is currently the only one we have. Given this is a error of our own making, and we understand the cause and have determined there is zero actual downside to ignoring the error, we will accept this approach until something better is found. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Perform file stripping in parallel where possible. Hardlinks remain processed one at a time due to reproducibility issues. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Handle singly and muptiply hard-linked files separately. Also collect information on hard linked files to avoid searching the entire package to check for hard links. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
Add a "safe_" prefix to strip_file() and strip_lto() to indicate that these functions are taking extra steps to ensure permissions remain unchanged. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- Dec 20, 2024
-
-
Allan McRae authored
Only a subset of checks were being performed on the overridden arch arrays in package functions. Refactor checking such that all checks are perform on all arch arrays. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- Dec 18, 2024
-
-
- Dec 12, 2024
-
-
Allan McRae authored
Useful for controlling (future) parallel jobs within makepkg. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
The decision to set the PYTHONHASHSEED variable and its value is outside the domain of makepkg and should be handled by a distribution. Move this file to the libalpm-dropins project. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- Dec 10, 2024
-
-
Integral authored
-
-
- Dec 07, 2024
-
-
Allan McRae authored
This field is no longer used and requires updating with gpgme changes. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
When the import key message was pushed to the pacman frontend, we no longer displayed the length or algorithm used for the key, sticking to just the user ID and the key ID. Remove this code given this field is no longer used, and the code requires updating for any now algorithm added. Note: removal of the field from the alpm_pgpkey_t will happen in a separate commit so that this commit can be readily backported. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- Nov 27, 2024
-
-
Debug symbols should only be split from finally linked ELFs, not bare object files. We're already excluding static libraries from splitting for a similar reason. The `.gnu_debuglink` sections are also mishandled by LLVM's LLD, which copies them to its output. For example, this affects Arch Linux's `/usr/lib/Scrt1.o`. While we're here (and it changes the code less), also strip GNU LTO data from bare objects, again for the same reason we're removing it from static libraries, and apply static library stripping instead of shared library stripping. See: https://bugs.gentoo.org/787623
-
When objcopy encounters an already-present section, adding the new debuglink will fail with a warning. Remove any existing `.gnu_debuglink` section to work around this problem. Arch Linux's `rust` package is affected by this. Apparently when LLVM's LLD links in `/usr/lib/Scrt1.o` it will also copy the `.gnu_debuglink` section. See: https://bugs.gentoo.org/787623
-
Allan McRae authored
Using objcopy can result in file permission changes. We work around this by using "cat" to copy the temporary output file into the target. Extract this code into a utility function. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- Sep 28, 2024
-
-
Guillaume authored
-
-
For example, with landlock ABI < 3, LANDLOCK_ACCESS_FS_TRUNCATE is not set in ruleset_attr.handled_access_fs, so it should not be set in path_beneath.allowed_access either. Otherwise, landlock_add_rule fails with -EINVAL, and pacman complains: > error: restricting filesystem access failed because the landlock rule for the temporary download directory could not be added! The change is tested on Debian Bookworm kernel linux-image-6.1.0-25-cloud-amd64 6.1.106-3.
-
- Sep 25, 2024
-
-
Rafael Fontenelle authored
-
- Sep 08, 2024
-
-
Allan McRae authored
Some libaplm utilities sync databases as a non-root user for use in actvities other than system updates. The ability to download as a non-root user was broken as part of the download sandboxing. Applying a minimial fix by preventing the chown of the downloaded file if the user is non-root. A larger change increasing the robustness and error checking of this path is warranted in the future. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- Aug 03, 2024
-
-
Karanveer B authored
-
Karanveer B authored
-
- Aug 02, 2024
-
-
Signed-off-by:
Remi Gacogne <rgacogne@archlinux.org>
-
Signed-off-by:
Remi Gacogne <rgacogne@archlinux.org>
-
- Jul 16, 2024
-
-
Allan McRae authored
Fixes #171 Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- Jul 14, 2024
-
-
Allan McRae authored
Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
Also, rebalance columns in release version table. 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>
-