- 04 Jun, 2017 2 commits
-
-
Andrew Gregory authored
Signed-off-by:
Andrew Gregory <andrew@archlinux.org>
-
Andrew Gregory authored
Signed-off-by:
Andrew Gregory <andrew@archlinux.org>
-
- 31 May, 2017 1 commit
-
-
Allan McRae authored
Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- 22 May, 2017 1 commit
-
-
Allan McRae authored
Pull translation updates from transifex and regenerate po files. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- 09 May, 2017 36 commits
-
-
Andrew Gregory authored
Some database files (install, mtree, and changelog) are extracted directly from the package, but DBONLY was skipping extraction altogether, causing those files to be missing after the transaction. Fixes #52052 Signed-off-by:
Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org> (cherry picked from commit 2c4511bd)
-
Christian Hesse authored
These files are generated at build time. Ignore in git. Signed-off-by:
Christian Hesse <mail@eworm.de> Signed-off-by:
Allan McRae <allan@archlinux.org> (cherry picked from commit fc756c3c)
-
Christian Hesse authored
Signed-off-by:
Christian Hesse <mail@eworm.de> Signed-off-by:
Allan McRae <allan@archlinux.org> (cherry picked from commit c3b954e7)
-
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> (cherry picked from commit 16b91f79)
-
Armin K authored
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> (cherry picked from commit 86f5c746)
-
Dave Reisner authored
This disables globbing, which should never be used in source URL specifications as it would lead to mismatches in the checksum mapping and un-checked sources. (cherry picked from commit e7fc5608)
-
Alad Wenter authored
In order for the scripts to be used in testsuites, it is easiest to generate all of them so they are found in the build directory (which may be different to the source directory). Signed-off-by:
Alad Wenter <alad@archlinux.info> Signed-off-by:
Allan McRae <allan@archlinux.org> (cherry picked from commit aca153bf)
-
Martin Kühne authored
This should make pacman's behavior consistent with GNU coreutils df, as well as follow advice from affected filesystems' devs as well as `man statvfs`. This fixes FS#37402 Signed-off-by:
Martin Kühne <mysatyre@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org> (cherry picked from commit 8c55c009)
-
Allan McRae authored
makepkg-wrapper did not get rebuilt if makepkg was regenerated due to library changes. Ensure makepkg-wrapper is always generated and linked any time makepkg changes. Signed-off-by:
Allan McRae <allan@archlinux.org> (cherry picked from commit ad27aa30)
-
Allan McRae authored
Signed-off-by:
Allan McRae <allan@archlinux.org> (cherry picked from commit 2e76c184)
-
Levente Polyak authored
This fixes the issue with --printsrcinfo that all arch specific variants of a variable get merged into their non arch specific variant. The .SRCINFO file ends up having $depends containing $depends_x86_64 and omitting the latter. Signed-off-by:
Allan McRae <allan@archlinux.org> (cherry picked from commit 3190b87b)
-
Ivy Foster authored
Signed-off-by:
Ivy Foster <ivy.foster@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org> (cherry picked from commit 0d2ba870)
-
Alastair Hughes authored
Add missing newline in paclog-pkglist help output Signed-off-by:
Alastair Hughes <hobbitalastair@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org> (cherry picked from commit 45b6a307)
-
Rikard Falkeborn authored
Making it size_t matches the return value of alpm_list_count() and avoids the implicit cast to int. Signed-off-by:
Rikard Falkeborn <rikard.falkeborn@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org> (cherry picked from commit 6a5156ee)
-
Rikard Falkeborn authored
Since the number of packages is not used anywhere, just return a boolean to avoid the implicit cast from size_t to int in be_local.c. Use 0 as success to be consistent with db_validate. Signed-off-by:
Rikard Falkeborn <rikard.falkeborn@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org> (cherry picked from commit 85171807)
-
Rikard Falkeborn authored
Recent gcc (tested with 6.2.1) produces the following error when compiling with both --enable-warningflags and --enable-debug. In particular, it seems it is the combination of GCC_STACK_PROTECT_LIB and -Wstrict-overflow=5 produces the error. be_local.c:609:4: error: assuming signed overflow does not occur when simplifying conditional [-Werror=strict-overflow] if(count > 0) { Fix this by changing the type of count from int to size_t, which is fine since count is never negative. Signed-off-by:
Rikard Falkeborn <rikard.falkeborn@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org> (cherry picked from commit 34f3f1e7)
-
Fabio Castell authored
Fixes FS#50285 Signed-off-by:
Allan McRae <allan@archlinux.org> (cherry picked from commit 07d1e044)
-
Ivy Foster authored
Signed-off-by:
Ivy Foster <ivy.foster@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org> (cherry picked from commit 900a22b9)
-
Eli Schwartz authored
Signed-off-by:
Eli Schwartz <eschwartz93@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org> (cherry picked from commit 38e229e4)
-
Allan McRae authored
Also add pactest which captures this leak when run under valgrind. Reported-by: Sergey Petrenko Signed-off-by:
Allan McRae <allan@archlinux.org> (cherry picked from commit fac4831a)
-
Allan McRae authored
Signed-off-by:
Allan McRae <allan@archlinux.org> (cherry picked from commit d560a9ae)
-
Alastair Hughes authored
We weren't supplying the rpl_malloc function needed if this failed, and didn't check for realloc, so just remove. Signed-off-by:
Alastair Hughes <hobbitalastair@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org> (cherry picked from commit 1dbfef7b)
-
Lukas Fleischer authored
Add a space between the option and its argument. Also, do not enclose the argument in asterisk characters. Fixes a typo introduced in aa4c61f9 (Document database checking options, 2014-12-28). Reported-by:
Luca Weiss <luca.emanuel.weiss@gmail.com> Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org> Signed-off-by:
Allan McRae <allan@archlinux.org> (cherry picked from commit 1e2b3984)
-
Giulio Fidente authored
As discussed on mailing list: https://lists.archlinux.org/pipermail/pacman-dev/2016-July/021239.html Signed-off-by:
Allan McRae <allan@archlinux.org> (cherry picked from commit 69aee3e3)
-
Jack O'Connor authored
`makepkg -g` looks for existing checksums in the PKGBUILD file, so that it can generate new sums of the same type. Previously it only checked variables of the form "sha256sums", and not "sha256sums_x86_64". That meant it would always fall back to MD5 for packages with only architecture-specific sources. This change makes it look at architecture-specific checksums too to determine the type. Signed-off-by:
Jack O'Connor <oconnor663@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org> (cherry picked from commit 56de1552) [andrew@archlinux.org: patch adapted to makepkg.sh.in]
-
Olivier Brunel authored
It was reported being --with-libcurl in the help (and the check for libcurl being installed used $with_libcurl accordingly), but the option handling was set using $with_curl and, therefore, expected option --with-curl. In the end, --with-libcurl wasn't recognized, and --with-curl had no effect. Signed-off-by:
Olivier Brunel <jjk@jjacky.com> Signed-off-by:
Allan McRae <allan@archlinux.org> (cherry picked from commit 56ae9603)
-
Andrew Gregory authored
macOS < 10.10 do not provide fstatat. We were constructing the full path to the hook file for all other operations anyway, so there was no real benefit to using fstatat. Fixes FS#49771 Signed-off-by:
Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org> (cherry picked from commit be1ffeda)
-
Andrew Gregory authored
glibc 2.24 deprecates readdir_r. Signed-off-by:
Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org> (cherry picked from commit c981f5ad)
-
Tobias Stoeckmann authored
The width of wchar_t is allowed to be of the same width as long, according to standards. The return type of mbscasecmp is int though. On amd64 with a 32 bit int, this means that mbscasecmp can return zero (indicating that strings are equal) even though the input strings differ. Signed-off-by:
Tobias Stoeckmann <tobias@stoeckmann.org> Signed-off-by:
Allan McRae <allan@archlinux.org> (cherry picked from commit af83a585)
-
Tobias Stoeckmann authored
If signature files are larger than SIZE_MAX, not enough memory could be allocated for this file. The script repo-add rejects files which are larger than 16384 bytes, therefore handle these as errors here, too. While at it, I also rearranged the code to avoid a quite harmless TOCTOU race condition between stat() and fopen(). Signed-off-by:
Tobias Stoeckmann <tobias@stoeckmann.org> Signed-off-by:
Allan McRae <allan@archlinux.org> (cherry picked from commit 5fcd60e2)
-
Tobias Stoeckmann authored
Some resources (memory or file descriptors) are not released on all error paths. Signed-off-by:
Tobias Stoeckmann <tobias@stoeckmann.org> Signed-off-by:
Allan McRae <allan@archlinux.org> (cherry picked from commit 681509fd)
-
Tobias Stoeckmann authored
In out of memory conditions, an undefined error value is written into *err, because myerr is never explicitly set in these cases. I have also converted a calloc into a MALLOC call, because the memory will be properly filled by the snprintf call right after it. Signed-off-by:
Tobias Stoeckmann <tobias@stoeckmann.org> Signed-off-by:
Allan McRae <allan@archlinux.org> (cherry picked from commit 80d97fcf)
-
Andrew Gregory authored
Cyclic dependencies (A depends on B, B depends on A) were not selected because neither package could be removed individually, so can_remove_package would always return false for both. By preselecting all dependencies then filtering back out any dependencies still required by any packages that will not be uninstalled, groups of unneeded cyclic dependencies can be found. Fixes FS#41031 Signed-off-by:
Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org> (cherry picked from commit 6ac2ee21)
-
Christian Hesse authored
Signed-off-by:
Christian Hesse <mail@eworm.de> Signed-off-by:
Allan McRae <allan@archlinux.org> (cherry picked from commit 839417e8)
-
Christian Hesse authored
Signed-off-by:
Christian Hesse <mail@eworm.de> Signed-off-by:
Allan McRae <allan@archlinux.org> (cherry picked from commit f018317f)
-
Alastair Hughes authored
Signed-off-by:
Alastair Hughes <hobbitalastair@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org> (cherry picked from commit 87082e3f)
-