Fork of Arch Linux devtools from https://git.archlinux.org/devtools.git
Go to file
Eli Schwartz 7b0a11677a
makechrootpkg: make the -U option work for the first time ever
The -U option was initially introduced in commit
cda9cf436b in order to enable running
makechrootpkg as root, delegating to another, manually selected, user to
perform various non-root tasks (given that makepkg was modified to throw
fatal errors when run as root without the option of --asroot to disable
that). However, it was only ever implemented for the --verifysource
option outside of the chroot, and the builduser inside the chroot is
created with the same uid as the makechrootpkg invoker. It needs to run
as the same uid, because it needs rw access to $startdir and $SRCDEST!
Additionally this lets the invoking user more easily inspect the build
directory in case of problems...

The correct solution for this is to properly implement the initial
intention of the -U option, and make it override the autodetection of
the "invoking user" which is normally done by inspecting $SUDO_USER.
This is then used as the single source of truth for "who am I pretending
to be".

Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
2019-08-09 19:41:53 +02:00
doc doc: add manpage for the new offload-build tool 2019-06-12 23:42:10 +02:00
lib Don't rely on $0 to determine script names. 2019-08-09 19:41:51 +02:00
.gitignore sogrep: don't be templated when it is not templated 2019-03-28 21:17:50 +01:00
.travis.yml ci: adding travis support for basic check 2019-01-22 03:33:53 +01:00
Makefile Makefile: don't inject DESTDIR into the pkgdatadir 2019-08-09 19:40:05 +02:00
PKGBUILD.proto Add `# shellcheck` directives to quiet shellcheck, add PKGBUILD.proto 2017-07-05 18:21:56 +02:00
README.md readme: fix faulty whitespace in release commands 2019-03-29 21:40:28 +01:00
arch-nspawn.in arch-nspawn: unshare the gpg namespace to prevent zombie processes 2019-08-09 19:41:53 +02:00
archbuild.in archbuild: prefer repo/arch-specific configs if they exist 2019-08-09 19:41:53 +02:00
archco.in Avoid using string interpolation; use printf format strings instead. 2017-04-05 22:11:16 +02:00
archrelease.in archrelease: actually fail in failure conditions 2019-08-09 19:41:53 +02:00
bash_completion.in Quote strings that shellcheck warns about. 2017-07-05 18:21:56 +02:00
checkpkg.in checkpkg: implement comparison against alternative targets 2019-08-09 19:41:52 +02:00
commitpkg.in Remove i686 support 2017-11-08 14:22:56 +01:00
crossrepomove.in crossrepomove: do not set svn propset 2019-03-13 22:06:00 +01:00
find-libdeps.in Don't rely on $0 to determine script names. 2019-08-09 19:41:51 +02:00
finddeps.in finddeps: suppress error messages for unreadable directories 2019-08-09 19:41:53 +02:00
lddd.in Make slightly more involved changes to make shellcheck happy. 2017-07-05 18:21:56 +02:00
makechrootpkg.in makechrootpkg: make the -U option work for the first time ever 2019-08-09 19:41:53 +02:00
makepkg-x86_64.conf conf: sync makepkg.conf with latest version from pacman package 2019-02-09 14:27:31 +01:00
mkarchroot.in ensure that sane umask is used where needed 2019-08-09 19:41:52 +02:00
offload-build offload-build: disable shellcheck false-positive for shell-escape 2019-06-13 00:17:11 +02:00
pacman-extra.conf Update bundled pacman and makepkg configuration 2016-02-07 10:12:56 +01:00
pacman-gnome-unstable.conf Update bundled pacman and makepkg configuration 2016-02-07 10:12:56 +01:00
pacman-kde-unstable.conf Update bundled pacman and makepkg configuration 2016-02-07 10:12:56 +01:00
pacman-multilib-staging.conf Update bundled pacman and makepkg configuration 2016-02-07 10:12:56 +01:00
pacman-multilib-testing.conf Update bundled pacman and makepkg configuration 2016-02-07 10:12:56 +01:00
pacman-multilib.conf Update bundled pacman and makepkg configuration 2016-02-07 10:12:56 +01:00
pacman-staging.conf Update bundled pacman and makepkg configuration 2016-02-07 10:12:56 +01:00
pacman-testing.conf Update bundled pacman and makepkg configuration 2016-02-07 10:12:56 +01:00
rebuildpkgs.in Don't rely on $0 to determine script names. 2019-08-09 19:41:51 +02:00
sogrep add sogrep command 2019-03-28 21:17:55 +01:00
zsh_completion.in remove arch rm as it's not really useful 2019-02-24 13:37:37 +01:00

README.md

Devtools - development tools for Arch Linux

This repository contains tools for the Arch Linux distribution for building and maintaining official repository packages.

Patches

Patches can be send to arch-projects@archlinux.org or via a pull request on Github. When sending patches to the mailing list make sure to set a valid subjectprefix otherwise the email is denied by mailman. Git can be configured as following.

git config format.subjectprefix 'devtools] [PATCH'

Releasing

  1. bump the version in the Makefile
  2. Commit everything as Version $(date +"%Y%m%d")
  3. Create a new tag git tag -s $(date +"%Y%m%d")
  4. Push changes
  5. Upload the source tarball with make dist upload
  6. Update the package