Skip to contentSkip to conversation

FreeBSD fixups

PATCH In review Ian Jackson 2 participants 6 messages Jun 21, 2018

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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
index 135cda3..fff3c5b 100644
@@ -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
#2 lore raw

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
index fff3c5b..e4a64f2 100644
@@ -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
#3 lore raw

PATCH 3/4 TestSupport: Honour $force option to package_install_cmd

In reply to Ian Jackson

From: Roger Pau Monné <[email protected]>

---
 Osstest/TestSupport.pm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Osstest/TestSupport.pm +3 -2
index 135cda3..0c57dcc 100644
@@ -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
#4 lore raw

PATCH 4/4 ts-xen-install: Use pkg_manager_install_cmd_line

In reply to Ian Jackson

Rather 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
index 9913e85..d54b2e4 100755
@@ -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
#5 lore raw
In reply to Ian Jackson
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: 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

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