- 06 Mar, 2022 1 commit
-
-
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>
-
- 13 Jan, 2022 1 commit
-
-
Allan McRae authored
Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- 09 Jan, 2022 3 commits
-
-
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>
-
- 02 Jan, 2022 7 commits
-
-
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>
-
Signed-off-by:
Allan McRae <allan@archlinux.org>
-
When two progressbars are present, one of them always had c while the other always had C as the mouth Signed-off-by:
Allan McRae <allan@archlinux.org>
-
When trying to identify debug packages among other packages we discovered that it's pkgname used in pkgdesc. Since pkgname can sometimes be an array when building debug packages for a split package, this could potentially include a pkgname that might not make sense depending on the order of the array. This patch simply uses pkgbase as it seems more correct. Signed-off-by:
Morten Linderud <morten@linderud.pw> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
These fields have not existed for many years. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
>From gcc(1): -ffile-prefix-map=old=new [...] Specifying this option is equivalent to specifying all the individual -f*-prefix-map options. This can be used to make reproducible builds that are location independent. Specifically, this additionally enables -fmacro-prefix-map=, which causes prefix mapping to be applied to expansions of __FILE__ and similar macros. Without this option, if source files are compiled by passing the absolute file path to the compiler (as done by e.g. cmake), any expansions of __FILE__ (e.g. from uses of assert()) will contain $srcdir. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
./build-aux/update-copyright 2021 2022 Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- 29 Dec, 2021 7 commits
-
-
Prints extra information provided by file conflict or corrupt package messages to stderr instead of stdout Signed-off-by:
Oskar Roesler (bionade24) <o.roesler@oscloud.info> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
This is the error value generally used and the calling function explicitly checks for -1, later causing the error to be missed and the transaction to continue. > pacman -S xterm warning: xterm-369-1 is up to date -- reinstalling resolving dependencies... looking for conflicting packages... Package (1) Old Version New Version Net Change Download Size extra/xterm 369-1 369-1 0.00 MiB 0.42 MiB Total Download Size: 0.42 MiB Total Installed Size: 1.05 MiB Net Upgrade Size: 0.00 MiB :: Proceed with installation? [Y/n] error: no servers configured for repository: extra (1/1) checking keys in keyring [--------------------------------------------------------] 100% (1/1) checking package integrity [--------------------------------------------------------] 100% error: failed to commit transaction (wrong or NULL argument passed) Errors occurred, no packages were upgraded.
-
The current backup printing does not fit in with the rest of the info at all. Change to be more consistant. Old: Backup Files : MODIFIED /etc/pacman.conf UNMODIFIED /etc/makepkg.conf New: Backup Files : /etc/pacman.conf [modified] /etc/makepkg.conf [unmodified] Signed-off-by:
morganamilo <morganamilo@archlinux.org> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
Add linked libraries to a packages dependency list. This is the partner to automatically generated library provides, and thus depends take the same format. To help with bootstrapping, library dependencies are only added if the relevant provide exists. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
When the option "autodeps" is enabled, makepkg will add provides entries for libraries found in the directories specified in LIB_DIRS in makepkg.conf. The entries LIB_DIRS array have the format "prefix:directory". For example, the entry "lib:usr/lib" will search $pkgdir/usr/lib for library sonames and add "lib:libfoo.so.1" to the provides array. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
This will be replaced by a better system Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- 24 Dec, 2021 1 commit
-
-
Allan McRae authored
GCC automatically detects when it is linking LTO objects, but clang does not. Add -flto to LDFLAGS to make this work for clang too. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- 12 Dec, 2021 1 commit
-
-
Allan McRae authored
-
- 21 Nov, 2021 1 commit
-
-
Allan McRae authored
Catch build warnings in the CI. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- 20 Nov, 2021 7 commits
-
-
Allan McRae authored
Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Morgan Adamiec authored
When removing files we check _alpm_access() to see if we can write (delete) the file. If not, we check if the file exists because if the file does not exist then we don't actually need to remove it so there's no issue. However the second call uses acess() instead of _alpm_access() which does not the rootdir into account.
-
Evangelos Foutras authored
As per curl(1), the -q (--disable) option must be first on the command line to disable reading the curlrc config file. Without being first it does not appear to have any effect. Signed-off-by:
Evangelos Foutras <evangelos@foutrelis.com>
-
Morgan Adamiec authored
change pacman-dev@archlinux.org to pacmandev@lists.archlinux.org Most of this is copyright notices but this also fixes FS#72129 by updating the address in docs/index.asciidoc.
-
Carlo Teubner authored
Previously, when printing a package changelog to stdout, we would write chunks of data that were not necessarily nul-terminated to stdout using a function (fputs) which requires the input string to be nul-terminated. On my system, this would result in occasional garbage characters showing up in the "pacman -Qc" output. Fix this by never nul-terminating the chunk, and using the fwrite() function which takes an explicit input size and does not require a nul-terminated string. Signed-off-by:
Carlo Teubner <carlo@cteubner.net>
-
Vladimir Panteleev authored
Allow finding which mirror was used to fetch a file. This makes it a bit easier to debug situations in which mirrors serve bad files with HTTP 200. Signed-off-by:
Vladimir Panteleev <archlinux@cy.md>
-
Andrew Gregory authored
Added, seemingly by accident, with meson in 51db8475 Signed-off-by:
Andrew Gregory <andrew.gregory.8@gmail.com>
-
- 04 Sep, 2021 11 commits
-
-
Allan McRae authored
Prevents build warning. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
--dbonly is meant to only touch the database and not the actual system. However hooks still run which can leave files in place or run commands you may not want. The hooks being run also means `fakeroot pacman -S --dbpath test/ foo --dbonly` fails because alpm tries to chroot for hooks which requires real root. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Signed-off-by:
Allan McRae <allan@archlinux.org>
-
When constructing an import question we never really used a proper gpg key. We just zero initialize the key, set the uid and fingerprint, and sent that to the front end. Instead lets just give the import question a uid and fingerprint field. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
The docs [1] say keyid will always be there, so no need to check if it exists. [1] https://www.gnupg.org/documentation/manuals/gpgme/Key-objects.html Signed-off-by:
Allan McRae <allan@archlinux.org>
-
__foo is reserved in c and should not be used. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
this type is only used internally by alpm Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
Pacman now downloads the signature files for all packages when present in a repository. That makes distributing signatures within repository databases redundant and costly. Do not distribute the package signature files within the repo databases by default and add an --include-sigs to revert to the old behaviour. 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>
-