pkg.sh: Fix broken version macro expansion #92
Loading…
Reference in a new issue
No description provided.
Delete branch "jan/feature/20260909-pkg-sh-fix-broken-version-macro-expansion"
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?
pkg.sh: Fix broken version macro expansion
pkg-dist.mk queries the package relations with --dont-expand-version-macros, and build_pkg() expanded the remaining VERSION and VERSION-REVISION macros with a local sed-based expand_version_macros(). That substitutes the version of the project being built for every macro, instead of the version of the dependency the macro refers to.
Drop --dont-expand-version-macros from the proj_query calls so the macros resolve to the dependency's own version, and remove expand_version_macros() from build_pkg(), which passes the PKG_* variables to rpmbuild as they are queried.