Avoid cases where user git settings cause files to have different line
endings than the package and cause hash mismatches when building.
Signed-off-by: William Douglas <william.douglas@intel.com>
Add environment variable that autospec uses to decide when to log
fatal errors to a special file used for the update process.
Also does the cleanup of the autospec created file for new autospec
runs.
Signed-off-by: William Douglas <william.douglas@intel.com>
autospec learned how to use 'cargo vendor' output as a drop in
configuration file so put the output of cargo vendor there.
Signed-off-by: William Douglas <william.douglas@intel.com>
Add additional capability for update target to read a package's
update.first file that will run make update on each of the packages
included in that file.
The intended usage model is for packages that need to be updated in
order to specify that order via the update.first (the packages are
updated in the order specified unless a package in the list also has
an update.first file).
As part of this change, force the update target to always build in
koji synchronously to avoid issues where the update being depended on
isn't finished in koji.
Loops are not supported and will cause problems.
Signed-off-by: William Douglas <william.douglas@intel.com>
Changes vendor from a target (it could still have a stand-alone target
but it wouldn't be used by the autospec target).
This change is needed because the Makefile is rewritten in the
autospec target but the ARCHIVES make variable is going to use the
value when make is executed. The common change causes the ARCHIVES
value to be eval'd during the autospec target execution in order for
the update from the vendor script to be seen by make.
The vendor script changes fix bugs in updating the options.conf and
Makefile. It also now handles returning the original ARCHIVES value as
well as prevent subshell scripts from outputting and adding badness
into the eval'd ARCHIVES variable.
Signed-off-by: William Douglas <william.douglas@intel.com>
Fix a couple of places where we're trying to remove files from the files
list while we're iterating through it -- replicate the change elsewhere
to keep a temporary list of the files to remove, then iterate through
*that* list after iterating through the global files list.
This file is used for spec and upstream content so updating it is
important for improving the build automation.
Signed-off-by: William Douglas <william.douglas@intel.com>
Add koji-tag and koji-untag targets that can be used to tag and untag
dist-clear on the current nvr build of the package in koji.
Signed-off-by: William Douglas <william.douglas@intel.com>