FreeBSD fixups
cover FreeBSD fixups
From: Ian Jackson <[email protected]>
The FreeBSD series does not work properly on top of current osstest production, due to a semantic conflict with work done to support qemu depriv.
These patches, in combination, represent what I roughly intend to do to fix it. However, they need rebasing and merging and squashing into the FreeBSD series. Also, note that they cannot be applied from this email chain because two of the patches even conflict!
Ian Jackson (3):
TestSupport: Rename package_install_cmd to
package_install_cmd\b/pkg_manager_install_cmd_line
TestSupport: Export pkg_manager_install_cmd_line
ts-xen-install: Use pkg_manager_install_cmd_line
Roger Pau Monné (1):
TestSupport: Honour $force option to package_install_cmd
Osstest/TestSupport.pm | 5 +++-- ts-xen-install | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-)
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
PATCH 1/4 TestSupport: Rename package_install_cmd to package_install_cmd\b/pkg_manager_install_cmd_line
git-ls-files | xargs perl -i~ -pe 's/\bpackage_install_cmd\b/pkg_manager_install_cmd_line/g'
--- Osstest/TestSupport.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
Osstest/TestSupport.pm +3 -3
@@ -525,7 +525,7 @@ sub target_putfile_root ($$$$;$) { tputfileex('root', @_); } -sub package_install_cmd ($;$) { +sub pkg_manager_install_cmd_line ($;$) { my ($ho, $norec) = @_; my @cmd;
@@ -542,13 +542,13 @@ sub package_install_cmd ($;$) { } sub target_install_packages ($@) { my ($ho, @packages) = @_; - my @cmd = package_install_cmd($ho); + my @cmd = pkg_manager_install_cmd_line($ho); target_cmd_root($ho,"@cmd @packages", 3000); } sub target_install_packages_norec ($@) { my ($ho, @packages) = @_; - my @cmd = package_install_cmd($ho, 1); + my @cmd = pkg_manager_install_cmd_line($ho, 1); target_cmd_root($ho,"@cmd @packages", 3000); }
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
PATCH 2/4 TestSupport: Export pkg_manager_install_cmd_line
In reply to Ian Jackson--- Osstest/TestSupport.pm | 1 + 1 file changed, 1 insertion(+)
Osstest/TestSupport.pm +1 -0
@@ -68,6 +68,7 @@ BEGIN { http_proxy_envsettings target_editfile_root target_file_exists target_editfile_kvp_replace + pkg_manager_install_cmd_line target_install_packages target_install_packages_norec target_jobdir target_extract_jobdistpath_subdir target_extract_jobdistpath target_extract_distpart
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
PATCH 3/4 TestSupport: Honour $force option to package_install_cmd
In reply to Ian JacksonFrom: Roger Pau Monné <[email protected]>
--- Osstest/TestSupport.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
Osstest/TestSupport.pm +3 -2
@@ -525,8 +525,8 @@ sub target_putfile_root ($$$$;$) { tputfileex('root', @_); } -sub package_install_cmd ($;$) { - my ($ho, $norec) = @_; +sub package_install_cmd ($;$$) { + my ($ho, $norec, $force) = @_; my @cmd; if ($ho->{OS} eq "freebsd") {
@@ -535,6 +535,7 @@ sub package_install_cmd ($;$) { push @cmd, qw(DEBIAN_PRIORITY=critical UCF_FORCE_CONFFOLD=y with-lock-ex -w /var/lock/osstest-apt apt-get); push @cmd, qw(--no-install-recommends) if $norec; + push @cmd, qw(-f) if $force; push @cmd, qw(-y install); }
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
PATCH 4/4 ts-xen-install: Use pkg_manager_install_cmd_line
In reply to Ian JacksonRather than target_run_apt, which we are abolishing soon.
--- ts-xen-install | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
ts-xen-install +3 -1
@@ -99,7 +99,9 @@ sub some_extradebs ($) { target_cmd_root($ho, "dpkg --force-confold $dpkgopts $ontarget </dev/null", 300); - target_run_apt($ho, qw(-f install)); + target_cmd_root($ho, + pkg_manager_install_cmd_line($ho,0,1), + 3000); } }
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 11 lines · Ian Jackson
From: Ian Jackson <[email protected]>
The FreeBSD series does not work properly on top of current osstest production, due to a semantic conflict with work done to support qemu depriv.
These patches, in combination, represent what I roughly intend to do to fix it. However, they need rebasing and merging and squashing into the FreeBSD series. Also, note that they cannot be applied from this email chain because two of the patches even conflict!
Quoted 8 lines
Ian Jackson (3):
TestSupport: Renamepackage_install_cmdto
package_install_cmd\b/pkg_manager_install_cmd_line
TestSupport: Exportpkg_manager_install_cmd_line
ts-xen-install: Usepkg_manager_install_cmd_lineRoger Pau Monné (1):
TestSupport: Honour $force option topackage_install_cmd
LGTM. Do you want me to merge them into my FreeBSD series? Or adding them on top is fine?
Thanks, Roger.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel