Page MenuHomeFreeBSD

pkgbase: generate dependencies in generate-ucl.sh
ClosedPublic

Authored by kevans on Jan 29 2020, 7:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 22 2024, 2:26 AM
Unknown Object (File)
Nov 17 2024, 7:27 PM
Unknown Object (File)
Nov 14 2024, 1:58 PM
Unknown Object (File)
Nov 14 2024, 12:11 PM
Unknown Object (File)
Nov 4 2024, 11:54 PM
Unknown Object (File)
Nov 4 2024, 11:54 PM
Unknown Object (File)
Nov 4 2024, 11:51 PM
Unknown Object (File)
Nov 4 2024, 11:51 PM
Subscribers

Details

Summary

This cuts out a large chunk of duplicated *.ucl files that just needed dependencies tacked on, and gives generate-ucl.sh some leeway in case a future pkg may need more than one dependency.

Run-through to determine which ones could simply be removed done with for i in *.ucl; do diff -U3 template.ucl ${i}; done | less and inspecting for any differences beyond just adding deps at the end. The remaining ucl files are basically all differently-licensed or require scripts.

I've opted to remove %PKGDEPS% entirely without regard for third-party ucl, as pkgbase is not yet considered production. However, I do not hold a strong position on this and there is approximately 0 chance it will return.

Test Plan

Run make packages and observe output .ucl.

root@viper:/usr/obj/usr/src/amd64.amd64/worldstage# cat acct.ucl
#
# $FreeBSD$
#

name = "FreeBSD-acct"
origin = "base"
version = "13.0.s20200129192615"
comment = "Accounting Utilties"
categories = [ base ]
maintainer = "re@FreeBSD.org"
www = "https://www.FreeBSD.org"
prefix = "/"
licenselogic = "single"
licenses = [ BSD2CLAUSE ]
desc = <<EOD
Accounting Utilties
EOD
deps: {
        FreeBSD-runtime: {
                origin: "base",
                version: "13.0.s20200129192615"
        }
}

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Jan 29 2020, 8:10 PM

Reinstate clibs exception to having dependencies, which was previously done by having just copied the template over to clibs.ucl and I axed it in rS357257 (along with docs.ucl, but we don't seem to have a -docs pkg anymore).

Things are still fine in head/ today, but they wouldn't be after this change as generate-ucl tacks on the -runtime dependency.

This revision now requires review to proceed.Jan 29 2020, 8:11 PM
This revision is now accepted and ready to land.Jan 29 2020, 8:22 PM
This revision was automatically updated to reflect the committed changes.