Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-02-15lib/common.sh: Discourage use in favor of libremessages.Luke Shumaker
2017-02-15checkpkg, find-libdeps, finddeps, lddd: Use libremessages to add help text.Luke Shumaker
2017-02-15lib/common.sh: Internationalize.Luke Shumaker
2017-02-15makechrootpkg: Avoid having code floating around outside of a function.Luke Shumaker
This means wrapping variable initialization in init_variables(), and the main program routine in main(). I did NOT put `shopt -s nullglob` in to a function.
2017-02-15makechrootpkg: Adjust to have the functions work with `set -u`.Luke Shumaker
Even though main() doesn't call `set -u`; this way the functions will continue to work if copied into an environment with `set -u`, or so that we are ready if we ever want to start using `set -u`.
2017-02-15makechrootpkg, arch-nspawn: Force-enable local '/repo/' repository.Luke Shumaker
The change in arch-nspawn is subtle: This was the source of "infamous" "it fails every other time" bug that took me over a year to solve. <https://labs.parabola.nu/issues/435> By having a repository of local packages (rather than simply running `pacman -U`), we are inviting pacman to cache them in `/var/cache/pacman/pkg`. Besides being needless disk writes, this actually causes a real issue. If the package gets rebuilt, pacman will balk, as the file no longer matches the cached signature. So, how do we prevent pacman from caching these local packages? Simple: include the directory they are already in in the pacman.conf:CacheDir list. This will prevent pacman from copying the files to one of the other cache directories.
2017-02-15makechrootpkg: move_products: Mimic `makepkg` and symlink products into PWD.Luke Shumaker
2017-02-15makechrootpkg: _chrootprepare: Clean srcdest and startdir.Luke Shumaker
2017-02-15makechrootpkg: _chrootbuild: Split into _chroot{prepare,build}.Luke Shumaker
2017-02-15makechrootpkg: Detect the chroottype in individual functions, not globally.Luke Shumaker
2017-02-15makechrootpkg: Have functions be more function-y.Luke Shumaker
Rather than them simply being named blocks of code with braces around them. That is: have them take things via arguments rather than global variables. Specific notes: - download_sources: Observation: if $SUDO_USER is set, then src_owner=$SUDO_USER. So (for clarity), rather than checking if $SUDO_USER is set, check if $src_owner is different than $USER. This reduces how much we have to worry about global state. - install_packages: 1. Receive the list of packages as arguments, rather than a global variable. 2. Make the caller responsible for looking at PKGBUILD. From the name and arguments, one would never expect it to look at PKGBUILD. - create_chroot->sync_chroot: I pulled the `if [[ ! -d $copydir ]] || $clean_first;` check out; it is now the caller's responsibility to use that check when deciding if to call sync_chroot.
2017-02-15makechrootpkg: Improve status messages.Luke Shumaker
2017-02-15makechrootpkg: Quote directory passed to `rm -rf`.Luke Shumaker
2017-02-15mkarchroot: Don't let the environment affect pacstrap (sans proxy settings).Luke Shumaker
A previous iteration of this change (libretools commit d7dcce53396d) simply inserted `env -i` to clear the environment. However, that lead to it ignoring proxy settings, which some users had problems with: https://labs.parabola.nu/issues/487: > To fix other bugs, the pacstrap environment is blank, which also > means that the proxy settings are blank. So (in libretools commit d17d1d82349f), I changed it to use `declare -x` to inspect the environment, and create a version of it only consisting of variables ending with "_proxy" (case-insensitive). I honestly don't remember what "other bugs" prompted me to clear the environment in the first place.
2017-02-15mkarchroot, arch-nspawn: Add an `-s` flag to inhibit `setarch`.Luke Shumaker
This allows us to run an ARM chroot on an x86 box; as the binfmt runner will set the architecture for us, and the x86 `/usr/bin/setarch` program won't know about the ARM architecture string.
2017-02-15mkarchroot, arch-nspawn: Add an `-f` flag to add files to copy.Luke Shumaker
This allows us to copy in files like `qemu-arm-static`, which is necessary for running an ARM chroot on an x86 box.
2017-02-15lib/common.sh: Make it safe to include multiple times.Luke Shumaker
This is similar to common C #ifdef guards. I was tempted to wrap the entire thing in the if/fi (rather than use 'return' to bail early. However, that means it won't execute anything until after it reaches 'fi'. And if `shopt -s extglob` isn't executed before parsing, then it will syntax-error on the extended globs. One solution would have been to move `shopt -s extglob` up above the include-guard. But the committed solution is all-around simpler.
2017-02-15Add a "License:" tag to all code files.Luke Shumaker
2017-01-29makechrootpkg: Be recursive when deleting subvolumes.Luke Shumaker
This fixes https://labs.parabola.nu/issues/1201
2016-06-09Merge tag '20160527.1'libretools-20160609Luke Shumaker
2016-05-27This is 20160527.120160527.1Sven-Hendrik Haase
2016-05-27mkarchroot: Manually generate machine-id because nspawn expects itSven-Hendrik Haase
2016-05-27Makefile: change version to 20160527Sven-Hendrik Haase
2016-05-27Use repos.archlinux.org everywhere instead of hostname based domains20160527Sven-Hendrik Haase
This makes it a lot easier to swap out the host that actually serves the repos in the future.
2016-05-11arch-nspawn: add a table of CARCH/setarch overrides (just armv7h->armv7llibretools-20160511Luke Shumaker
for now)
2016-05-11Revert "remove setarch for non-i686 to support qemu-static" since Libretools ↵André Fabian Silva Delgado
arch-nspawn has the `-s` flag to turn off setarch This reverts commit c3819bb4224622c6d10ab7a3511472f314e026ba.
2016-05-10remove setarch for non-i686 to support qemu-staticcoadde [Márcio Alexandre Silva Delgado]
2016-05-09arch-nspawn: two spaces after a periodlibretools-20160510Luke Shumaker
2016-02-07Update bundled pacman and makepkg configurationPierre Schmitz
2016-02-04Merge tag '20151129'libretools-20160208Luke Shumaker
tag 20151129
2016-01-09makechrootpkg: set builduser's shell to /bin/bashEvangelos Foutras
Having it set to nologin breaks a couple of tests in Git and Python.
2016-01-09makechrootpkg: use /build as HOME for the builduserLevente Polyak
This way the HOME dir is writable and no ugly hacks are required in the PKGBUILD if $HOME is accessed (f.e. maven, gradle and also some python tests etc.)
2015-11-29Bump version to 2015112920151129Evangelos Foutras
2015-11-29arch-nspawn: preserve systemd-nspawn's stderrEvangelos Foutras
It is passed down to the container when stdin/stdout is not a tty; this is the case when archbuild's output is redirected to a pipe or file.
2015-10-02Bump version to 2015100220151002Evangelos Foutras
2015-10-02Sync makepkg.conf files with pacman 4.2.1-4Evangelos Foutras
2015-09-25Layer gnome-unstable above staging, not testingJan Alexander Steffens (heftig)
2015-06-06Reverse the previous commit--passing in makepkg_args as args is better.libretools-20150607Luke Shumaker
2015-06-06makechrootpkg: remove extra arguments to /chrootbuildLuke Shumaker
They have been part of the file itself via %q for a while.
2015-06-06Merge branch 'archlinux'Luke Shumaker
2015-06-06Bump version to 2015060620150606Evangelos Foutras
2015-06-06makechrootpkg: verify sources before preparing chrootEvangelos Foutras
This is needed in order to use GPG's auto-key-retrieve keyserver option, otherwise the keyring will get copied to the chroot before the required keys are retrieved during 'makepkg --verifysource'.
2015-06-06commitpkg: Force unarmored signaturesJohannes Löthberg
Pacman cannot handle armored signatures, so force a generation of a binary one using the --no-armor flag.
2015-05-17Merge branch 'archlinux'libretools-20150526Luke Shumaker
2015-05-14Prepare release20150514Pierre Schmitz
2015-05-14fix handling of public keyringChristian Hesse
Chances are that pubring.kbx has been created by gpgsm but pubring.gpg is still around with valid data. We do not know what file contains what we need, so just copy both. Signed-off-by: Christian Hesse <mail@eworm.de> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2015-04-13Merge branch 'archlinux'Luke Shumaker
2015-02-28prepare 20150228 release20150228Dave Reisner
2015-02-28handle gnupg 2.1.x public keyringChristian Hesse
2015-02-15makechrootpkg: keep all function defs togetherDave Reisner