- May 22, 2023
-
-
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
Also fix typo "librarys" Signed-off-by: Allan McRae <allan@archlinux.org>
-
- Feb 13, 2023
-
-
Allan McRae authored
Signed-off-by: Allan McRae <allan@archlinux.org>
-
Allan McRae authored
We should only find library provides in the configured directories, and not their subdirectories. Signed-off-by: Allan McRae <allan@archlinux.org>
-
Allan McRae authored
This was lost in the transition from autotools to meson. No additional warnings are given with current gcc and clang. Signed-off-by: Allan McRae <allan@archlinux.org>
-
- Jan 17, 2023
-
-
Allan McRae authored
Move rust related buildflags to their own configuration file to provide an example of how other languages could be supported. Signed-off-by: Allan McRae <allan@archlinux.org>
-
- Jan 13, 2023
-
-
Allan McRae authored
When 'options=('!buildflags') is used, we want to ensure our buildflags are cleared first. Currently this happens due to luck of alphabetical ordering, but this could change with libmakepkg drop-ins. Signed-off-by: Allan McRae <allan@archlinux.org>
-
Allan McRae authored
This serves as a demonstration for how other languages could drop in support into libmakepkg. Signed-off-by: Allan McRae <allan@archlinux.org>
-
- Jan 01, 2023
-
-
Stefan Weil authored
Fixes: 3f8029af ("pacman-key: Use ngettext for plurals") Signed-off-by: Stefan Weil <sw@weilnetz.de>
-
Allan McRae authored
There are two strings that may be singular or plural in pacman-key. Use ngettext to handle these strings correctly, and provide a fallback function if it is not available. Fixes FS#70556. Signed-off-by: Allan McRae <allan@archlinux.org>
-
- Dec 23, 2022
-
-
Allan McRae authored
The function _keys is a bit generic and can result in clashes. Change other functions starting with _key_ to be _pacman_key_ as well. Fixes FS#74507. Signed-off-by: Allan McRae <allan@archlinux.org>
-
- Dec 19, 2022
-
-
Commit 4f43ce3e broke repo-add by switching to parseopts without accounting for the added "--". This caused the dbname to always be read as "--". Accounts for "--" and makes repo-add respect "--" as end of opts.
-
- Dec 18, 2022
-
-
Allan McRae authored
Mention valid suffixes should start with .pkg or .src Fixes FS#64749. Signed-off-by: Allan McRae <allan@archlinux.org>
-
- Dec 13, 2022
-
-
GPGME_KEYLIST_MODE_LOCATE was introduced in 1.12.0 Signed-off-by: Allan McRae <allan@archlinux.org>
-
Allan McRae authored
Avoids a warning from meson. Signed-off-by: Allan McRae <allan@archlinux.org>
-
Allan McRae authored
When package software with debug symbols without stripping, we should still process the files with debugedit and include the needed source files in the package. Signed-off-by: Allan McRae <allan@archlinux.org>
-
Allan McRae authored
We have not set handle in the function at this stage, so we can not assign an error to it. Pass the handle to the function to avoid waiting until the payload is retrieved. Signed-off-by: Allan McRae <allan@archlinux.org>
-
Allan McRae authored
The memory assigned in _alpm_pkg_load_internal was not freed on error. Signed-off-by: Allan McRae <allan@archlinux.org>
-
Allan McRae authored
Move closing of the file descriptor until the end of the function, as any following error will lead to a "goto error" that attempts to close it again. Signed-off-by: Allan McRae <allan@archlinux.org>
-
Allan McRae authored
Prevents a null deference on error. Signed-off-by: Allan McRae <allan@archlinux.org>
-
Allan McRae authored
Signed-off-by: Allan McRae <allan@archlinux.org>
-
Allan McRae authored
This also prevents a use-after-free issue where we free the list we are interating over and the do i->next. Signed-off-by: Allan McRae <allan@archlinux.org>
-
- Dec 12, 2022
-
-
Allan McRae authored
Bash-5.2 introduced the patsub_replacement shell option, which is enabled by default. Apparently is it supposed to handle a sed-like idiom, but what it does achieve is making any substitution involving a "&" requiring special care. For makepkg's DLAGENTS, we replace "%o" and "%u" if present. Any "&" in the replacement fields triggers patsub_replacement unless quoted. This is particularly important for the URL field. Add relevant quotes to avoid issues. Signed-off-by: Allan McRae <allan@archlinux.org>
-
- Dec 04, 2022
-
-
Allan McRae authored
md5sums are cryptographically broken and we supply sha256sums to verify files on a users system have not been modified from the packaged version. Signed-off-by: Allan McRae <allan@archlinux.org>
-
Allan McRae authored
Keeping md5sums in the repo databases no longer serves a real purpose. md5sums are no longer considered secure, and we already have sha256sums in the repos (along with PGP verification). Signed-off-by: Allan McRae <allan@archlinux.org>
-
Allan McRae authored
Signed-off-by: Allan McRae <allan@archlinux.org>
-
Allan McRae authored
The example makepkg.conf.in suggests using "PKGDEST=/home/packages". It makes sense to use the same path for the custom repo example in pacman.conf.in. Fixes FS#48497. Signed-off-by: Allan McRae <allan@archlinux.org>
-
- Nov 08, 2022
-
-
Allan McRae authored
Signed-off-by: Allan McRae <allan@archlinux.org>
-
Allan McRae authored
Also more definitions to more relevant areas in alpm.h. Signed-off-by: Allan McRae <allan@archlinux.org>
-
Allan McRae authored
Signed-off-by: Allan McRae <allan@archlinux.org>
-
- Nov 07, 2022
-
-
Allan McRae authored
The currently used openssl interfaces for calculating checksums have been deprecated in openssl-3.0. Move to the modern interfaces to avoid build warnings. Signed-off-by: Allan McRae <allan@archlinux.org>
-
Morten Linderud authored
Signed-off-by: Morten Linderud <morten@linderud.pw>
-
- Oct 15, 2022
-
-
Andrew Gregory authored
Bash sources user configuration files under a number of conditions that can cause issues with scripts when bash is used as the scriptlet shell. Bash assumes it's being run under rsh/ssh if stdin is connected to a socket and sources the user bashrc unless the environment variable $SHLVL is >= 2. Commit 6a4c6a02 switched from pipes to sockets when communicating with child processes to work around SIGPIPE issues. Normally $SHLVL would be inherited from the shell running pacman, but operations involving scriptlets are generally run with sudo which does not let the $SHLVL variable through unless specifically configured to. Similarly $BASH_ENV can cause bash to source user-specified configuration files if set. https://lists.gnu.org/archive/html/help-bash/2022-02/msg00082.html Note: the list discussion and bash source all reference SHLVL >= 2, this is the SHLVL value *after* bash has incremented it on startup. Setting it to 1 in pacman is sufficient to disable the unwanted behavior. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
-
- Oct 09, 2022
-
-
Allan McRae authored
Signed-off-by: Allan McRae <allan@archlinux.org>
-
`.o` objects used to be omitted by strip.sh due to a missing match in the `Relocatable file` section. This patch fixes the issue by handling `.o` objects similar to kernel modules. fixes FS#74941 Signed-off-by: Allan McRae <allan@archlinux.org>
-
`${pkgbase}` was added to the wrong invocation. This ensures we are producing correct debug packages. Example from the package: /usr/src/debug/pacman/pacman-6.0.2/src/pacman/callback.c /usr/src/debug/pacman/pacman-6.0.2/src/pacman/callback.h /usr/src/debug/pacman/pacman-6.0.2/src/pacman/check.c /usr/src/debug/pacman/pacman-6.0.2/src/pacman/check.h Fixes: 776b7c1e ("debugflags: Ensure we have unique source paths") Signed-off-by: Morten Linderud <morten@linderud.pw> Signed-off-by: Allan McRae <allan@archlinux.org>
-
- Oct 08, 2022
-
-
Allan McRae authored
The debugedit call to list all source files may include things like build/<...>. We have been filtering out these <> files, but they can point to the build directory which is important to be available for relative source paths stored in the .debug files. Signed-off-by: Allan McRae <allan@archlinux.org>
-
- Oct 02, 2022
-
-
Allan McRae authored
Bash 5.2 has a new globskipdots option, which is enabled by default. The check_dotfiles lint fails with globskipdots due to the assumption that at least the "." and ".." paths will match. Disabling globskipdots would be the usual solution, but that fails on bash<5.2. Instead, enable nullglob for this check. Signed-off-by: Allan McRae <allan@archlinux.org>
-