]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
package: fix dependency generation
authorLexi Winter <lexi@le-Fay.ORG>
Mon, 29 Apr 2024 14:30:46 +0000 (08:30 -0600)
committerWarner Losh <imp@FreeBSD.org>
Mon, 29 Apr 2024 14:31:36 +0000 (08:31 -0600)
commite05b6502f9ca36860236644884f12eff8e3243c4
tree58b3a2acb1847c6b285109c390752f90b6d3e74a
parent2ef5a8624a15a9c0240d626ca232cb9d26c514f5
package: fix dependency generation

A bug in release/packages/generate-ucl.sh causes package dependencies
(other than shlib depends) to not be generated correctly, meaning
packages are missing their dependencies.

generate-ucl.sh creates the UCL file by:

1. copying ${uclsource} (template.ucl) to ${uclfile}
2. appending dependencies to ${uclfile}
3. calling generate-ucl.lua on ${uclsource} to create ${uclfile}

This breaks because the dependencies added in step 2 are overwritten in
step 3.

Fix this by calling generate-ucl.lua with ${uclfile} as both the input
and output file, so anything we added to ${uclfile} is preserved.

Reviewed by: des, imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1203
release/packages/generate-ucl.sh