Fork of Arch Linux devtools from https://git.archlinux.org/devtools.git
Go to file
Eli Schwartz e963b6da9e
makechrootpkg: use the chroot database to find checkpkg packages
We don't want to check against the current version known to the host
system, because that will be incorrect in a wide variety of situations,
including:
- the build host hasn't done a full system upgrade yet
- we're building against staging, and want to see the delta between
  different staging versions
- we're building against extra, but the host runs testing which carries
  changes we don't want to visualize right now
- the chroot has a configured database not available to the host, and
  the package is only available there

Essentially, it's rarely 100% correct to run checkpkg on the host, but
we already have a database we *know* is correct, and that is the one we
just built the package against. So let's use that.

This also fixes a bug in the current logic, where in order to try
downloading fresh databases, we work in a non-cached temporary working
database to download the package files, but then let checkpkg default to
comparing packages in the system database. Since we are explicitly
trying to compare against packages that differ from the host's pacman
database, we need to pass the package files as options to checkpkg,
using the additional modes added in commit c14338c0fe

Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
2020-02-27 14:50:19 +01:00
doc makerepropkg: support checking multiple split packages 2020-02-27 14:49:54 +01:00
lib lib: support arbitrary compressed package files 2019-12-08 20:59:11 +01:00
.gitignore offload-build: convert to in-prog so we can perform pre-processing 2020-02-10 23:02:41 +01:00
.travis.yml ci: fix travis build using undocumented but reserved keyword 2019-10-15 23:50:52 +02:00
Makefile Version 20200213 2020-02-13 01:53:45 +01: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: rely on deduplication to avoid making multiple host_mirror mounts 2019-11-30 13:21:23 +01:00
archbuild.in archbuild: use better umask 2019-11-30 13:21:23 +01: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: fix support for http:// url comparisons 2020-02-27 14:50:14 +01:00
commitpkg.in commitpkg: clearly delineate the commit message template and the rationale 2019-11-30 13:21:23 +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: use the chroot database to find checkpkg packages 2020-02-27 14:50:19 +01:00
makepkg-x86_64.conf makepkg.conf: change default compression method to zstd 2019-12-27 16:04:56 +01:00
makerepropkg.in makerepropkg: support checking multiple split packages 2020-02-27 14:49:54 +01:00
mkarchroot.in mkarchroot: support wrapping pacstrap -U 2019-11-30 13:21:23 +01:00
offload-build.in offload-build: handle user specific makepkg.conf on the remote host 2020-02-12 00:05:00 +01:00
pacman-extra.conf conf: Sync with pacman 5.2.0-2 2019-11-06 01:14:05 +01:00
pacman-gnome-unstable.conf conf: Sync with pacman 5.2.0-2 2019-11-06 01:14:05 +01:00
pacman-kde-unstable.conf conf: Sync with pacman 5.2.0-2 2019-11-06 01:14:05 +01:00
pacman-multilib-staging.conf conf: Sync with pacman 5.2.0-2 2019-11-06 01:14:05 +01:00
pacman-multilib-testing.conf conf: Sync with pacman 5.2.0-2 2019-11-06 01:14:05 +01:00
pacman-multilib.conf conf: Sync with pacman 5.2.0-2 2019-11-06 01:14:05 +01:00
pacman-staging.conf conf: Sync with pacman 5.2.0-2 2019-11-06 01:14:05 +01:00
pacman-testing.conf conf: Sync with pacman 5.2.0-2 2019-11-06 01:14:05 +01:00
rebuildpkgs.in Don't rely on $0 to determine script names. 2019-08-09 19:41:51 +02:00
sogrep.in sogrep: redirect to destination mirror (#25) 2019-10-15 23:30:23 +02:00
zsh_completion.in zsh-completion: update for new makerepropkg options 2020-02-27 14:50:05 +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