- Jun 02, 2018
-
- May 31, 2018
-
-
Jan Alexander Steffens (heftig) authored
-
Eli Schwartz via arch-projects authored
makepkg 5.1 implements error codes, and 14 means that installing the packages after they were built has failed. We don't care about this error and would like makechrootpkg to succeed regardless, e.g. for split packages that are mutually exclusive. Signed-off-by:
Eli Schwartz <eschwartz@archlinux.org>
-
- May 29, 2018
-
-
Ramon Buldó authored
# Conflicts: # Makefile # arch-nspawn.in
-
Allan McRae authored
Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- May 16, 2018
-
-
Eli Schwartz authored
chown support "$user:$group" but also "$user:" which infers $group rather than leaving it as root. This looks up the group name in cases where the default group is e.g. "users" and users do not get their own unique groups.
-
- May 13, 2018
-
-
Eli Schwartz authored
It is much nicer to use a proper configuration parser to retrieve the primary mirror, rather than clever hacks using undocumented APIs, especially when their behavior as used then breaks in later releases. Fortunately, pacutils exists now and pacconf handles this quite elegantly. It has since been moved to pacman-git proper. Check if pacman-conf from a new enough version of pacman exists and fallback on pacconf from pacutils.
-
Eli Schwartz authored
This reverts commit eb6b0e3f. This never worked, as pacman-git returns file urls from the cache anyway and pacman stable doesn't have any problem at all. Having useless code which makes people think the issue is solved when it really isn't, is bloat, so remove it.
-
Eli Schwartz authored
Since commit 75fdff18 we no longer run integrity checks inside the chroot anyway, so this is no longer needed and will never be used.
-
Ramon Buldó authored
-
Ramon Buldó authored
-
Ramon Buldó authored
# Conflicts: # Makefile # commitpkg.in # lib/valid-tags.sh # zsh_completion.in
-
- May 12, 2018
-
-
Evangelos Foutras authored
Without it, sudo 1.8.23 will return an error: sudo: PAM account management error: Authentication service cannot retrieve authentication info
-
- Mar 24, 2018
-
-
Eli Schwartz authored
In pacman-git commit d8717a6a9666ec80c8645d190d6f9c7ab73084ac makepkg started checking that the setuid/setgid bit could be removed on the $BUILDDIR in order to prevent this propagating to the packages themselves. Unfortunately, this requires the temporary builddir used during the --verifysource stage of makepkg, to be owned by $makepkg_user which was not the case as it is created as root using mktemp (and given world rwx in addition to the restricted deletion bit.) Obviously makepkg cannot chmod a directory that it does not own. Fix this by making $makepkg_user the owner of that directory, as should have been the case all along. (Giving world rwx is illogical on general principle. The fact that this is a workaround for makepkg demanding these directories be writable even when they are not going to be used for the makepkg options in question, is not justification for being careless.) Signed-off-by:
Eli Schwartz <eschwartz@archlinux.org>
-
Emiel Wiedijk authored
Previously, makechrootpkg hardcoded ~/.gnupg. Therefore, if a user uses a custom GPG home directory, the siganture checking would fail. Now makechrootpkg uses $GNUPGHOME, with a fallback to ~/.gnupg. Signed-off-by:
Emiel Wiedijk <me@aimileus.nl>
-
Bartłomiej Piotrowski authored
While still possible with 'commitpkg core', there is a chance it will prevent accidental pushes straight to [core].
-
- Jan 21, 2018
-
-
Bartłomiej Piotrowski authored
-
Luke Shumaker authored
This worked properly until eab5aba9.
-
Luke Shumaker authored
Support for working with `set -u` was broken by 94160d62. Egg on my face; I'm the one who wants `set -u` support, and I'm the author of that commit! libmakepkg does not work with `set -u`; but mostly because of the include guards! So we just need to temporarily disable `set -u` (nounset) while loading libmakepkg. Instead of introducing a new variable, just store the initial nounset status in _INCLUDE_COMMON_SH; rather than a useless fixed-string "true". While we're at it, disable POSIX-mode (just in case we're running as "sh" instead of "bash"), since libmakepkg uses bash-isms that won't parse in POSIX mode.
-
Luke Shumaker authored
-
Eli Schwartz authored
Don't use error-prone logic e.g. foo=true; if $foo ... This completely fails to act as expected when the variable is unset because of unrelated bugs. While this merely causes the default behavior to be "false" rather than "true" in such cases, it is better to fail to enable explicitly requested behavior (which will be noticed by the user) than to simply upgrade to this behavior for free (which may not seem to have any obvious cause). Signed-off-by:
Eli Schwartz <eschwartz@archlinux.org>
-
Eli Schwartz authored
Fixes regression in 2fd5931a $run_namcap will always be set to "" `if $not_a_var; then ...; fi` is always truthful when $not_a_var is unset or equal to "" and the `then` clause will always be run. I'm not sure why global state variables need to be cloned locally for their sole explicit purpose. But for now this patch implements the minimum necessary work to properly pass the "do I want namcap" variable into prepare_chroot() according to the current logic flow. Note that I have still not thorougly tested makechrootpkg. Signed-off-by:
Eli Schwartz <eschwartz@archlinux.org>
-
- Dec 27, 2017
-
-
Evangelos Foutras authored
This reverts commit ddd508ef. The underlying bug (FS#56529) was fixed in glibc 2.26-9.
-
- Nov 22, 2017
-
-
Eli Schwartz authored
Recent development versions of makepkg support reproducible builds through the environment variable SOURCE_DATE_EPOCH. Pass this variable through makechrootpkg to makepkg when available. Also initialize SOURCE_DATE_EPOCH whenever running archbuild to enforce reproducible builds for repository packages. Signed-off-by:
Eli Schwartz <eschwartz@archlinux.org> Signed-off-by:
Levente Polyak <anthraxx@archlinux.org>
-
- Nov 08, 2017
-
-
Bartłomiej Piotrowski authored
-
Bartłomiej Piotrowski authored
-
- Oct 30, 2017
-
-
Luke Shumaker authored
This mirrors dbscripts commit 625fa02 by Pierre Schmitz <pierre@archlinux.de> at 2017-04-18 14:20:49
-
Luke Shumaker authored
A couple of the comments noting which globals are used by functions are outdated/wrong. - download_sources() : Remove USER from the list. It was always wrong. Originally, it should have been SUDO_USER (not USER), but I should have removed it entirely in 4f23609d. - move_products() : Add SRCPKGDEST to the list. Though the commit adding the comment was only recently upstreamed (as 2fd5931a), it originated in 2013 in a commit that has since been rebased many times. Anyway, in this rebasing, it missed move_products() starting to pay attention to SRCPKGDEST in fd1be1b2 (since nothing made git think there was a "conflict").
-
Luke Shumaker authored
The reason it wasn't moved before was just to keep the diffs (with --ignore-all-space) smaller, to make merging and rebasing work easier. Moving code around in a file tends to make that difficult. But, readability wise, it belongs in main().
-
- Sep 14, 2017
-
-
Jan Alexander Steffens (heftig) authored
nspawn does not give us a controlling terminal, hence we ignore interrupts. Apparently this was lost in systemd at some point. Hack around this by reopening the console to make it the controlling terminal.
-
Jan Alexander Steffens (heftig) authored
Coredumps from build chroots are not generally useful. Prevent them from being generated. Avoids a lot of annoyance from the GCC testsuite spawning lots of systemd-coredump processes. Just set the soft limit so the user can still raise it in the PKGBUILD if they insist.
-
- Sep 12, 2017
-
-
Jan Alexander Steffens (heftig) authored
Whoops, this will of course mess with nspawn arguments passed to arch-nspawn.
-
Jan Alexander Steffens (heftig) authored
This was lost at some point.
-
Jan Alexander Steffens (heftig) authored
As not all commands we run are capable of reaping processes correctly. For example, pacman is not.
-
- Sep 11, 2017
-
-
Sébastien Luttringer authored
-
Sébastien Luttringer authored
systemd-nspawn use a default environ PATH value of: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin Since filesystem 2017.08, this is no more overrided by /etc/profile to the Arch default: PATH=/usr/local/sbin:/usr/local/bin:/usr/bin
- Aug 24, 2017
-
-
Jan Alexander Steffens (heftig) authored
-