summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-02-15Add support for pacman 5.2.0.HEADmasterOmar Vega Ramos
GNUtoo: split patch and wrote commit message. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
2023-02-23remove obsolete -d option from pacstrapbill-auger
2023-02-23docsbill-auger
2022-08-30refactor mksource() procedurebill-auger
2022-08-30declare main() local vars localbill-auger
2022-08-30use translatable libretools messages for usage() and parabola additionsbill-auger
2022-08-30[BACKPORTED]: prune-me - accept .zst packagesbill-auger
2022-08-30replace arch-nspawn with chroot-run (nonsystemd compat)David P
based in artix/artools Signed-off-by: David P <megver83@parabola.nu> Previously, these changes were kept on a separate nonsystemd branch for nonsystemd releases from v20180428 to v20190907. The nonsystemd build seems to work well on systemd systems, and it has no dependencies in [nonsystemd]; so there only needs to be one build in [libre]. This commit squashes the functional changes from the following commits from the former nonsystemd branch: * 7a2c689f3808a8b970006f9e8f01e883490ea72b chroot-run: declare mount_args at the beginning of the scriptlibretools-v20190907-nonsystemd * 37de77a06e7917ff50dec6ca469b45700986c698 chroot-run: better unshare arguments handling David P * 984c0b8e3c341b78ac689f0eeca1cf2460fc3336 chroot-run: use unshare David P * a57dfdb1cb87f9959b1cc218036456be7c7fa81d initial systemd-nspawn replacement with chroot David P
2022-08-30verify mksource() source-balls, and handle them gracefullybill-auger
2018-08-04Merge branch 'lukeshu/rebase/master'libretools-20180804Luke Shumaker
2018-08-04common.sh: Add a find_cached_srcpackage counterpart to find_cached_packagelukeshu/rebase/masterLuke Shumaker
2018-08-04makechrootpkg: Also build --allsource packagesLuke Shumaker
2018-08-02: - Do so outside of the chroot - Don't inject $pkgarch in to $SRCEXT
2018-08-04makechrootpkg: Create the source package when downloading sources, not ↵Luke Shumaker
building the binary package Also, don't bother injecting "-$pkgarch" in to the source package filename.
2018-08-03common.sh: find_cached_srcpkackage(): Add a comment about usageLuke Shumaker
2018-08-03Version 20180531Jan Alexander Steffens (heftig)
(cherry picked from commit 6364b3c9b9fae2b43bf3e02b9e84c814fc3f502f)
2018-08-03makechrootpkg: whitelist return code 14 from makepkgEli Schwartz via arch-projects
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> (cherry picked from commit 98ff92f4675aeab379b9d5ed85e68778e1cc0dfe)
2018-08-03Revert "makechrootpkg: _chrootbuild: Split into _chroot{prepare,build}"Luke Shumaker
This reverts commit ad54ac08ae475134f1ef6242cf4a831aa4ab770a.
2018-08-02mkarchroot: Use librelib rather than PATH to find arch-nspawnLuke Shumaker
2018-08-02lib/common.sh: Discourage use in favor of libremessagesLuke Shumaker
2018-08-02checkpkg, find-libdeps, finddeps, lddd: Use libremessages to add help textLuke Shumaker
2018-08-02lib/common.sh: InternationalizeLuke Shumaker
2017-02-15: (070092d) Import from libretools. 2017-02-19: (7c55e79) Tidy formatting (2018-01-02: erroneously removing newlines that had been added to avoid confusing xgettext). 2017-05-05: (c4d5957) Don't say "local var" and "var=$(subshell)" in the same command (shellcheck complains about this). 2017-09-24: Update to work with loading the message functions from /usr/share/makepkg/util.sh 2018-01-02: Avoid confusing xgettext.
2018-08-02makechrootpkg, arch-nspawn: Force-enable local '/repo/' repositoryLuke 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.
2018-08-02arch-nspawn: Add a table of CARCH/setarch overridesLuke Shumaker
The table is just armv7h->armv7l for now.
2018-07-30arch-nspawn: Message style: two spaces after a periodLuke Shumaker
This affects both the usage() text, and the error message if the `/.arch-chroot` version doesn't match. The latter is the one that I really care about, and motivates this change. On Parabola, the `arch-nspawn` program isn't in PATH, it's somewhere under `/usr/lib/`, and gets called as a helper to user-facing programs; and the error message is displayed directly to the user. These programs consistently put two spaces after a period when printing a message to the terminal.
2018-05-31Version 2018053120180531archlinuxJan Alexander Steffens (heftig)
2018-05-31makechrootpkg: whitelist return code 14 from makepkgEli Schwartz via arch-projects
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>
2018-05-29Merge branch 'lukeshu/rebase/master'libretools-20180530Luke Shumaker
2018-05-29common.sh: Add a find_cached_srcpackage counterpart to find_cached_packageLuke Shumaker
2018-05-29makechrootpkg: Also build --allsource packagesLuke Shumaker
It also sets SRCEXT="-$pkgarch$SRCEXT", so that two runs of makechrootpkg on different architectures don't overwrite eachothers source packages.
2018-05-29mkarchroot: Use librelib rather than PATH to find arch-nspawnLuke Shumaker
2018-05-29lib/common.sh: Discourage use in favor of libremessagesLuke Shumaker
2018-05-29checkpkg, find-libdeps, finddeps, lddd: Use libremessages to add help textLuke Shumaker
2018-05-29lib/common.sh: InternationalizeLuke Shumaker
2017-02-15: (070092d) Import from libretools. 2017-02-19: (7c55e79) Tidy formatting (2018-01-02: erroneously removing newlines that had been added to avoid confusing xgettext). 2017-05-05: (c4d5957) Don't say "local var" and "var=$(subshell)" in the same command (shellcheck complains about this). 2017-09-24: Update to work with loading the message functions from /usr/share/makepkg/util.sh 2018-01-02: Avoid confusing xgettext.
2018-05-29makechrootpkg, arch-nspawn: Force-enable local '/repo/' repositoryLuke 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.
2018-05-29arch-nspawn: Add a table of CARCH/setarch overridesLuke Shumaker
The table is just armv7h->armv7l for now.
2018-05-29makechrootpkg: _chrootbuild: Split into _chroot{prepare,build}Luke Shumaker
2018-05-29arch-nspawn: Message style: two spaces after a periodLuke Shumaker
This affects both the usage() text, and the error message if the `/.arch-chroot` version doesn't match. The latter is the one that I really care about, and motivates this change. On Parabola, the `arch-nspawn` program isn't in PATH, it's somewhere under `/usr/lib/`, and gets called as a helper to user-facing programs; and the error message is displayed directly to the user. These programs consistently put two spaces after a period when printing a message to the terminal.
2018-05-29update makefile for current versionAllan McRae
Signed-off-by: Allan McRae <allan@archlinux.org>
2018-05-20Merge branch 'lukeshu/rebase/master'libretools-20180520Luke Shumaker
2018-05-20common.sh: Add a find_cached_srcpackage counterpart to find_cached_packageLuke Shumaker
2018-05-20makechrootpkg: Also build --allsource packagesLuke Shumaker
It also sets SRCEXT="-$pkgarch$SRCEXT", so that two runs of makechrootpkg on different architectures don't overwrite eachothers source packages.
2018-05-20mkarchroot: Use librelib rather than PATH to find arch-nspawnLuke Shumaker
2018-05-20lib/common.sh: Discourage use in favor of libremessagesLuke Shumaker
2018-05-20checkpkg, find-libdeps, finddeps, lddd: Use libremessages to add help textLuke Shumaker
2018-05-20lib/common.sh: InternationalizeLuke Shumaker
2017-02-15: (070092d) Import from libretools. 2017-02-19: (7c55e79) Tidy formatting (2018-01-02: erroneously removing newlines that had been added to avoid confusing xgettext). 2017-05-05: (c4d5957) Don't say "local var" and "var=$(subshell)" in the same command (shellcheck complains about this). 2017-09-24: Update to work with loading the message functions from /usr/share/makepkg/util.sh 2018-01-02: Avoid confusing xgettext.
2018-05-20makechrootpkg, arch-nspawn: Force-enable local '/repo/' repositoryLuke 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.
2018-05-20arch-nspawn: Add a table of CARCH/setarch overridesLuke Shumaker
The table is just armv7h->armv7l for now.
2018-05-20makechrootpkg: _chrootbuild: Split into _chroot{prepare,build}Luke Shumaker
2018-05-20arch-nspawn: Message style: two spaces after a periodLuke Shumaker
This affects both the usage() text, and the error message if the `/.arch-chroot` version doesn't match. The latter is the one that I really care about, and motivates this change. On Parabola, the `arch-nspawn` program isn't in PATH, it's somewhere under `/usr/lib/`, and gets called as a helper to user-facing programs; and the error message is displayed directly to the user. These programs consistently put two spaces after a period when printing a message to the terminal.
2018-05-20makechrootpkg: Put "keyserver-options auto-key-retrieve" in gpg.confLuke Shumaker
This allows signature verification by `makepkg --verifysource`, `git verify-tag`, and such without requiring the user to manually retrieve the keys first. This is based off of devtools32 commit 009695b (2017-06-27) by Erich Eckner <git@eckner.net>. There are 2 differences from that commit: - In this version, gpg.conf is owned by builduser, not by root - In this version, we don't keep appending duplicate lines if we re-use a chroot