pkg-dist.mk, pkg.sh: Build RPMs in dist/build, drop the pckg spelling #127
Loading…
Reference in a new issue
No description provided.
Delete branch "jan/feature/20260924-pkg-dist-mk-pkg-sh-build-rpms-in-dist-build-drop-the-pckg-spelling"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR moves non-root RPM builds into an in-tree topdir and drops the pckg spelling from the package build: the artifact directory becomes
dist/pkgand the PCKG-named make variables become PKG:pkg-dist.mk, pkg.sh: Build RPMs in dist/build
pkg.shhardcodes$HOME/rpmbuildas the rpmbuild topdir whilemakecomputes the same location separately asPKG_DIR_BUILD, and a sandboxed shell cannot build at all: rpmbuild writes its scratch trees and results under the topdir, outside the project.PKG_DIR_BUILDto$(TOPDIR)/dist/buildfor non-root builds and pass it topkg.shas the new-Toption (root keeps/usr/src/packages;local.mkcan still override)--define _topdirpointing at that directory, resolved to an absolute path, so the scratch tree, RPMS and SRPMS stay in the project tree wheremake cleandrops thempkg-dist.mk, pkg.sh: Rename dist/pckg to dist/pkg
The directory holding the built packages uses the
pckgabbreviation while every other package-related name in the build system usespkg(PKG_PROJECT,PKG_FORMAT,PKG_ARCH).Rename
dist/pckgtodist/pkg, in theDIST_PCKG_DIRvariable and in the recipes that hardcode the path.pkg-dist.mk, pkg.sh: Rename PCKG variables to PKG
The previous commit renamed the
dist/pckgdirectory todist/pkgbut kept the pckg spelling in the variables that reference it.Rename the variables to PKG:
DIST_PCKG_DIRtoDIST_PKG_DIR(make/pkg-dist.mk, pkg.sh)PCKG_TARtoPKG_TAR,PCKG_ROOTtoPKG_ROOTandDIST_PCKG_RPMtoDIST_PKG_RPM(make/pkg-dist.mk)None of the other 320 janware projects use these variables.