HomeFreeBSD

package: fix dependency generation

Description

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

Details

Provenance
lexi_le-fay.orgAuthored on Apr 29 2024, 2:30 PM
impCommitted on Apr 29 2024, 2:31 PM
Parents
rG2ef5a8624a15: package: FreeBSD-periodic should depend on FreeBSD-cron
Branches
Unknown
Tags
Unknown