mkdir -p "$tmpdstpath"
database_build_filter_ignored_requirements "$origin" < $srcfile | while read origin_requirement
do
+ # TODO: Reinstallation of the full build-time requirements triggers the need of reinstallation.
+ # TODO: But the least requirements of build are the direct build-time requirements and the full run-time requirements of the direct build-time requirements.
+ # TODO: The current implementation about full build-time requirements lacks the rationality.
database_build_get_complete_recursive_dependency "$tag" "$origin_requirement" "$suffix" \
> $tmppath.recursive_dependency
[ -e "$dbpath/ignored_requirements.filter" ] && \
return 1
fi
}
- pkg_add_f ()
+ pkg_add_f_common ()
{
- local pkgarc pkg pkg_tool pkg_gen opt_add opt_quit dev_out dev_err
+ local option pkgarc pkg pkg_tool pkg_gen opt_add opt_quit dev_out dev_err
+ option=$1
+ shift || :
pkg_tool=
pkg_gen=
for pkgarc in "$@"
dev_out=/dev/null
dev_err=/dev/null
fi
- ( cd "${TMPDIR}/pkg_add_f" && ln -s $pkg_gen && env ASSUME_ALWAYS_YES=YES pkg add $opt_quit $opt_add * > $dev_out 2> $dev_err )
+ ( cd "${TMPDIR}/pkg_add_f" && ln -s $pkg_gen && env ASSUME_ALWAYS_YES=YES pkg add -M $option $opt_quit $opt_add * > $dev_out 2> $dev_err )
fi
}
pkg_add_fF ()
{
- pkg_add_f "$@"
+ pkg_add_f_common '' "$@"
+ }
+ pkg_add_fF ()
+ {
+ pkg_add_f_common '-f' "$@"
}
pkg_inst_verify_pkg ()
{
dev_out=/dev/null
dev_err=/dev/null
fi
- ( cd "${TMPDIR}/pkg_inst_remote" && ln -s "$pkgarc" && env ASSUME_ALWAYS_YES=YES pkg add $opt_quit $opt_add * > $dev_out 2> $dev_err )
+ ( cd "${TMPDIR}/pkg_inst_remote" && ln -s "$pkgarc" && env ASSUME_ALWAYS_YES=YES pkg add -fM $opt_quit $opt_add * > $dev_out 2> $dev_err )
}
pkg_inst_wild_verify_pkg ()
{
\fB\-\-exclude\-runtime\-dependencies\fR
Exclude run\-time dependencies in evaluation of dependencies.
This option affects behaviors of \fB\-t\fR, \fB\-T\fR and \fB\-q\fR options.
+Use of this option should be just for temporary diagnosis or salvage because the full-run-time requirements are needed for building a port in principle.
.PD
.IP \fB\-b\fR
.PD 0
\fB\-\-include\-buildtime\-dependencies\fR
Include build\-time dependencies in evaluation of dependencies.
This option affects behaviors of \fB\-t\fR, \fB\-T\fR and \fB\-q\fR options.
+Use of this option will result in installation of the all build-time requirements regardless of the actual necessity for upgrade of installed packages.
.PD
.IP \fB\-C\fR
.PD 0
Without \fB\-o\fR option, the temporary database is maintained to have complete data on dependencies of all installed and necessary ports.
Combination with options \fB\-T\fR and \fB\-t\fR is available.
The behavior can be modified by \fB\-B\fR, \fB\-b\fR, \fB\-i\fR and \fB\-o\fR options.
+Use of this option should be just for temporary diagnosis or salvage.
.PD
.IP \fB\-o\fR
.PD 0
Ports outside of the scopes are kept untouched even if they are updated.
It is noted that this option disables detection and deinstallation of new leaf ports.
This option will be useful for quick upgrades or new installation (only) before complete construction of the temporary database for the all installed ports.
+Use of this option should be just for temporary diagnosis or salvage.
.PD
.IP \fB\-T\fR\ \fIglob1\fR[\fB:\fIglob2\fR[\fB:\fR...]]
.PD 0
Without \fB\-o\fR option, the temporary database is maintained to have complete data on dependencies of all installed and necessary ports.
Combination with options \fB\-T\fR and \fB\-t\fR is available.
The behavior can be modified by \fB\-B\fR, \fB\-b\fR, \fB\-i\fR and \fB\-o\fR options.
+Use of this option should be just for temporary diagnosis or salvage.
.PD
.IP \fB\-t\fR\ \fIglob1\fR[\fB:\fIglob2\fR[\fB:\fR...]]
.PD 0
Without \fB\-o\fR option, the temporary database is maintained to have complete data on dependencies of all installed and necessary ports.
Combination with options \fB\-T\fR and \fB\-t\fR is available.
The behavior can be modified by \fB\-B\fR, \fB\-b\fR, \fB\-i\fR and \fB\-o\fR options.
+Use of this option should be just for temporary diagnosis or salvage.
.PD
.SS Group 6: Saved and transferred to restarted runs, renewable by \-L option
Option settings in this group are saved at the first \fBdo\fR or \fBprepare\fR run, and transferred to the following runs.
.PP
[IMPROVED] The batch mode is made more quiet typically about the output of package tools and make.
.PP
+[BUG FIX] Adding packages sometimes failed due to lack of required packages.
+.PP
[BUG FIX] \fBreset\fR command discarded the information of the initially installed packages.
.PP
[BUG FIX] Dependency inspection might have terminated with error when obsolete ports exist.