summaryrefslogtreecommitdiff
path: root/lib/SlackBuild/Request.pm
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2022-05-01 19:00:19 +0200
committerSergey Poznyakoff <gray@gnu.org>2022-05-01 19:00:19 +0200
commitf16ba7ddddf02f0501bdc178ce298964067e8073 (patch)
treebf6e33919fbd8b096c0fba989afcc1820f877c25 /lib/SlackBuild/Request.pm
parentf6bd1ba4bb134bb4b0c6a7976d94fc15d6304f43 (diff)
downloadslackbuilder-master.tar.gz
slackbuilder-master.tar.bz2
New request statement: build_prereqHEADmaster
The build_prereq statement declares build-time prerequisites. The syntax is the same as for the prereq statements. The two lists are merged to form the full list of dependencies when building the package. However, the packages from build_prereq are not listed in the resulting slack-required list, even if they also appear in the prereq list. * lib/SlackBuild/Rc.pm (resolve): Use prereq_full to get the list of dependencies. * lib/SlackBuild/Request.pm (%attributes): New attribute: build_prereq. * lib/SlackBuilder.pm (prereq_full): New method.
Diffstat (limited to 'lib/SlackBuild/Request.pm')
-rw-r--r--lib/SlackBuild/Request.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/SlackBuild/Request.pm b/lib/SlackBuild/Request.pm
index 8fa831b..581d739 100644
--- a/lib/SlackBuild/Request.pm
+++ b/lib/SlackBuild/Request.pm
@@ -143,6 +143,9 @@ my %attributes = (
type => 'ARRAY',
strategy => 'merge'
},
+ build_prereq => {
+ type => 'ARRAY',
+ },
rc => {
type => 'ARRAY',
},

Return to:

Send suggestions and report system problems to the System administrator.