- 28 Jul, 2017 2 commits
-
-
- Add missing braces to one-line if blocks - Move opening brace to line end Signed-off-by:
Michael Straube <straubem@gmx.de>
-
Add missing braces to some one-line if blocks. Signed-off-by:
Michael Straube <straubem@gmx.de> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- 11 Jul, 2017 3 commits
-
-
Signed-off-by:
Michael Straube <straubem@gmx.de> 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>
-
This is primarily to help users who are not aware that -F operations use a separate set of databases that need to be separately downloaded. Signed-off-by:
Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- 06 Jul, 2017 9 commits
-
-
This makes it possible to detect a failure in several alpm_list functions. Previously these functions would continue after a failure, returning partial results and potentially leaking memory. Unfortunately, NULL is a valid return value for the affected functions if the input list is empty, so they still do not have a dedicated error value. Callers can at least detect an error by checking if the input list was empty. Signed-off-by:
Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
The .BUILDINFO file should retain all the information needed to reproducibly build a package. Add some extra information to the file and also provide a version number to keep track of future changes. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
In write_pkginfo, we checked if $PACKAGER was undefined, and gave a default value if not. Just do this upfront to simplify this function. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
There is little savings in only writing pkgbase when different to pkgname, and it makes determining the pkgbase by parsing .PKGINFO slightly easier. Lets just write it... Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
Since 8a02abcf , this attribute will never exist. Remove check to write it. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Signed-off-by:
Eli Schwartz <eschwartz93@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Signed-off-by:
Eli Schwartz <eschwartz93@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
There were a couple places where filenames beginning with "-" were not properly guarded against by passing them after "--". Some PKGBUILD authors are crazy, but we still take those into account. Signed-off-by:
Eli Schwartz <eschwartz93@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
contatenate -> concatenate Signed-off-by:
Christian Hesse <mail@eworm.de> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- 16 May, 2017 6 commits
-
-
Allan McRae authored
This patch introduces the SOURCE_DATE_EPOCH environmental variable. All files in a package are adjusted to have their modification dates set to the value of SOURCE_DATE_EPOCH, which defaults to "date +%s". Setting this variable allows a package that is built twice in the same environment to be (potentially) reproducible in that the checksum of the generated package file will be the same. Also adjust the compression of the mtree file to avoid gzip embedding a timestamp. Signed-off-by:
Levente Polyak <anthraxx@archlinux.org>
-
Allan McRae authored
This information is duplicated (in less friendly format) in the "builddate" entry and removing it improves reproducible packaging. Signed-off-by:
Allan McRae <allan@archlinux.org> Signed-off-by:
Levente Polyak <anthraxx@archlinux.org>
-
snprintf prints at most n bytes including the terminating '\0'. The extra reserved byte was never being used. Signed-off-by:
Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
gcc7 issues a warning about a potential overflow if left unchecked. Signed-off-by:
Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Copying a string into a buffer that has just been determined to not be able to hold it is obviously incorrect. The actual error handling appears to have been unintentionally removed in 47762ab6 . Signed-off-by:
Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Prevents SIGSEGV if we catch SIGINT or SIGHUP before initializing alpm. Signed-off-by:
Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- 08 May, 2017 5 commits
-
-
Signed-off-by:
Michael Straube <straubem@gmx.de> 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>
-
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>
-
Allan McRae authored
With recent version of gpg, signing within fakeroot works on the first invocation, but fails on later runs. Sign all packages outside of fakeroot to avoid this issue. Fixes FS#49946. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- 17 Apr, 2017 2 commits
-
-
Allan McRae authored
Setting PKGDEST and friends enables us to keep all built packages in a single location. Symlinking these files into the build directory creates unnecessary clutter and requires clean-up in multiple places when removing old version. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Delete log files for the pkgver and prepare functions if -c,--clean is passed. Fixes FS#51039 and FS#51075 Includes patch submitted by Christian Braun. Signed-off-by:
Michael Straube <straubem@gmx.de> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- 16 Apr, 2017 10 commits
-
-
Andrew Gregory authored
Signed-off-by:
Andrew Gregory <andrew.gregory.8@gmail.com>
-
Andrew Gregory authored
--root is not sufficient to properly operate on a mounted guest system. Using --root still uses the host system's configuration and there is no way to correctly use the guest configuration without manually modifying any Include directives. --sysroot provides an easier way to operate on a guest system by chrooting immediately after option parsing before configuration parsing or performing any operations. It is currently limited to the root user, but that's enough for restoring a guest system to a working state, which is the primary intended use case. Signed-off-by:
Andrew Gregory <andrew.gregory.8@gmail.com>
-
Andrew Gregory authored
If a scriptlet/hook dies at the wrong moment it can trigger SIGPIPE, terminating the process. For pipes, there is no way to prevent SIGPIPE other than ignoring it process-wide. This can have unintended consequences in a multi-threaded process. Using send(2) with sockets, however, allows ignoring SIGPIPE on a per-call basis, leaving other threads able to make use of SIGPIPE. Signed-off-by:
Andrew Gregory <andrew.gregory.8@gmail.com>
-
Andrew Gregory authored
Signed-off-by:
Andrew Gregory <andrew.gregory.8@gmail.com>
-
Andrew Gregory authored
If the user replaces a directory with a symlink, libalpm would get confused because the trailing slash causes system calls to resolve the symlink. This leads to errors and a misleading message during upgrades. Even though libalpm does not support this, it should not be giving misleading errors. Also adds an overflow check. Fixes FS#51377 Signed-off-by:
Andrew Gregory <andrew.gregory.8@gmail.com>
-
Andrew Gregory authored
vptr is a simple list iterator, which are typically named i. Signed-off-by:
Andrew Gregory <andrew.gregory.8@gmail.com>
-
Andrew Gregory authored
Signed-off-by:
Andrew Gregory <andrew.gregory.8@gmail.com>
-
Andrew Gregory authored
Signed-off-by:
Andrew Gregory <andrew.gregory.8@gmail.com>
-
Andrew Gregory authored
Signed-off-by:
Andrew Gregory <andrew.gregory.8@gmail.com>
-
Andrew Gregory authored
Signed-off-by:
Andrew Gregory <andrew.gregory.8@gmail.com>
-
- 12 Apr, 2017 3 commits
-
-
--force is widely misunderstood and the same effect can now be achieved with --overwrite, which is better named and can be used more safely. Signed-off-by:
Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allows for safer, more fine-grained control for overwriting files than --force's all-or-nothing approach. Implements FS#31549. Signed-off-by:
Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
archive_read_extract() forces resolution of uid/gid to names when extracting the tarball. This can lead to wrong file ownership when using pacman with -r option and when uid/gid differ in the host and in the chroot. archive_read_extract2() uses uid's and gid's only. See also: https://lists.archlinux.org/pipermail/pacman-dev/2017-March/021912.html Signed-off-by:
Armin K <krejzi@email.com> Signed-off-by:
Allan McRae <allan@archlinux.org>
-